summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2011-03-10 22:34:12 +0000
committerChristian Pointner <equinox@anytun.org>2011-03-10 22:34:12 +0000
commitbb9509b9f61f1b083a98c4a51527dca1a16fd258 (patch)
treedbc102857afc26e817d8248e38724f2f0a96b4cf /src
parentfixed typos at manpage (diff)
configure script cleanup
Diffstat (limited to 'src')
-rwxr-xr-xsrc/configure19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/configure b/src/configure
index 8cecd9c..2f5cb5e 100755
--- a/src/configure
+++ b/src/configure
@@ -14,7 +14,7 @@
# message authentication based on the methodes used by SRTP. It is
# intended to deliver a generic, scaleable and secure solution for
# tunneling and relaying of packets of any protocol.
-#
+#
#
# Copyright (C) 2007-2010 Christian Pointner <equinox@anytun.org>
#
@@ -100,7 +100,7 @@ do
;;
--no-crypto)
CRYPTO_LIB='none'
- ;;
+ ;;
--disable-passphrase)
PASSPHRASE=0
;;
@@ -131,7 +131,7 @@ fi
rm -f version.h
rm -f include.mk
-case $TARGET in
+case $TARGET in
Linux)
rm -f tun.c
ln -sf linux/tun.c
@@ -163,7 +163,6 @@ case $CRYPTO_LIB in
;;
none)
CFLAGS=$CFLAGS' -DNO_CRYPT'
- echo "NO_CRYPT_OBJ = 1" >> include.mk
echo "disabling crypto"
;;
esac
@@ -189,9 +188,9 @@ if [ -z "$EXAMPLESDIR" ]; then
EXAMPLESDIR=$PREFIX/share/examples
fi
-cat >> include.mk <<EOF
+cat > include.mk <<EOF
# this file was created automatically
-# do not edit this file directly
+# do not edit this file directly
# use ./configure instead
TARGET := $TARGET
@@ -206,6 +205,10 @@ SBINDIR := $SBINDIR
ETCDIR := $ETCDIR
EOF
+if [ $CRYPTO_LIB = "none" ]; then
+ echo "NO_CRYPT_OBJ = 1" >> include.mk
+fi
+
if [ $INSTALLMANPAGE -eq 1 ]; then
echo "MANDIR := $MANDIR" >> include.mk
echo "installing manpage"
@@ -230,8 +233,8 @@ fi
HOSTNAME=`hostname`
DATE=`date +"%d.%m.%Y %H:%M:%S %Z"`
-cat >> version.h <<EOF
-/*
+cat > version.h <<EOF
+/*
* uanytun version info
*
* this file was created automatically