From e50461eb84a10f07278f944aea33ce6aa1a244d8 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 4 Dec 2009 16:05:12 -0800 Subject: [PATCH] configure: Implement a --help option to document --prefix. Also document that values for CC, CFLAGS, etc. can be specified via environment variables. --- configure | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 3 deletions(-) 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 <