From: Roy Marples Date: Fri, 15 Feb 2013 12:55:38 +0000 (+0000) Subject: Add -h|--help option to configure X-Git-Tag: v5.6.8~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0c740ab784ed6d852646f583c91ea423bbf46f9;p=thirdparty%2Fdhcpcd.git Add -h|--help option to configure --- diff --git a/configure b/configure index 44a72116..fbfdb48a 100755 --- a/configure +++ b/configure @@ -56,7 +56,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