diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -27,6 +27,8 @@ ENABLE_DEBUG=0 PREFIX="/usr/local" HAVE_PREFIX=0 +SYSCONF_DIR="" + usage() { echo "Usage: ./configure [OPTION]... [VAR=VALUE]..." @@ -36,6 +38,7 @@ usage() echo "Installation directories:" echo " --prefix=PREFIX install architecture-independent files in PREFIX" echo " [$PREFIX]" + echo " --sysconfdir=DIR read-only single-machine data [PREFIX/etc]" echo "" echo "By default, \`make install' will install all the files in" echo "\`$PREFIX/bin', \`$PREFIX/lib' etc. You can specify" @@ -64,6 +67,9 @@ while [ $# -gt 0 ] ; do PREFIX="${1#*=}" HAVE_PREFIX=1 ;; + --sysconfdir=*) + SYSCONF_DIR="${1#*=}" + ;; --disable-libnl) DISABLE_LIBNL=1 ;; @@ -814,6 +820,10 @@ if [ "$HAVE_PREFIX" == "1" ] ; then echo "PREFIX=$PREFIX" >> Config fi +if [ ! -z $SYSCONF_DIR ] ; then + echo "ETCDIR=$SYSCONF_DIR" >> Config +fi + echo "CONFIG_DEBUG=$ENABLE_DEBUG" >> Config echo "CONFIG_TOOLS=$TOOLS" >> Config echo "CONFIG_OK=1" >> Config |