From: Roy Marples Date: Fri, 15 Feb 2013 20:07:26 +0000 (+0000) Subject: Add -h|--help option to configure X-Git-Tag: v5.99.6~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cebe222c56901ba2f943a07eaf815d9660ba836b;p=thirdparty%2Fdhcpcd.git Add -h|--help option to configure --- diff --git a/configure b/configure index 02225f3c..7d684414 100755 --- a/configure +++ b/configure @@ -64,7 +64,69 @@ for x do --includedir) eval INCLUDEDIR="$INCLUDEDIR${INCLUDEDIR:+ }$var";; --datadir|--infodir) ;; # ignore autotools --disable-maintainer-mode|--disable-dependency-tracking) ;; - --help) echo "See the README file for available options"; exit 0;; + -V|--version) + v=$(sed -ne 's/.*VERSION[[:space:]]*"\([^"]*\).*/\1/p' defs.h); + c=$(sed -ne 's/^.*copyright\[\] = "\([^"]*\).*/\1/p' dhcpcd.c); + echo "dhcpcd-$v $c"; + exit 0;; + -h|--help) cat < if you have libraries in a + nonstandard directory + CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have + headers in a nonstandard directory + CPP C preprocessor + +Use these variables to override the choices made by \`configure' or to help +it to find libraries and programs with nonstandard names/locations. +EOF +exit 0 +;; *) echo "$0: WARNING: unknown option $opt" >&2;; esac done