diff options
Diffstat (limited to 'src/configure')
-rwxr-xr-x | src/configure | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/configure b/src/configure index 77002f3..cfffbe7 100755 --- a/src/configure +++ b/src/configure @@ -47,6 +47,7 @@ BINDIR='' SBINDIR='' ETCDIR='' MANDIR='' +EXAMPLESDIR='' print_usage() { echo "configure --help print this" @@ -56,6 +57,7 @@ print_usage() { echo " --sbindir=<DIR> the path to the sbin directory (default: $PREFIX/sbin)" echo " --sysconfdir=<DIR> the path to the system configuration directory (default: $PREFIX/etc" echo " --mandir=<DIR> the path to the system man pages (default: $PREFIX/share/man)" + echo " --examplesdir=<DIR> the path to the examples files (default: $PREFIX/share/examples)" echo " --use-ssl-crypto use ssl crypto library instead of libgcrypt" echo " --no-crypto disable crypto at all (only NULL cipher)" echo " --disable-passphrase disable master key and salt passphrase" @@ -85,6 +87,9 @@ do --mandir=*) MANDIR=${arg#--mandir=} ;; + --examplesdir=*) + EXAMPLESDIR=${arg#--examplesdir=} + ;; --use-ssl-crypto) CRYPTO_LIB='ssl' ;; @@ -189,6 +194,10 @@ if [ -z "$MANDIR" ]; then MANDIR=$PREFIX/share/man fi +if [ -z "$EXAMPLESDIR" ]; then + EXAMPLESDIR=$PREFIX/share/examples +fi + cat >> include.mk <<EOF # this file was created automatically # do not edit this file directly @@ -207,6 +216,7 @@ BINDIR := $BINDIR SBINDIR := $SBINDIR ETCDIR := $ETCDIR MANDIR := $MANDIR +EXAMPLESDIR := $EXAMPLESDIR EOF exit 0 |