From: Carl Worth Date: Sat, 5 Dec 2009 00:05:12 +0000 (-0800) Subject: configure: Implement a --help option to document --prefix. X-Git-Tag: 0.1~221 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e50461eb84a10f07278f944aea33ce6aa1a244d8;p=notmuch.git configure: Implement a --help option to document --prefix. Also document that values for CC, CFLAGS, etc. can be specified via environment variables. --- diff --git a/configure b/configure index ff8baa5e..fa8e142b 100755 --- a/configure +++ b/configure @@ -1,17 +1,70 @@ #! /bin/sh +# Set several defaults (optionally specified by the user in +# environemnt variables) CC=${CC:-gcc} CXX=${CXX:-g++} CFLAGS=${CFLAGS:--O2} CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)} -# defaults +# Set the defaults for values the user can specify with command-line +# options. PREFIX=/usr/local -# option parsing +usage () +{ + cat <