summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/configure b/src/configure
index 13b3c21..76b1017 100755
--- a/src/configure
+++ b/src/configure
@@ -142,6 +142,7 @@ fi
rm -f include.mk
+rm -f version.h
case $TARGET in
Linux)
rm -f tunDevice.cpp
@@ -187,7 +188,6 @@ case $CRYPTO_LIB in
;;
none)
CXXFLAGS=$CXXFLAGS' -DNO_CRYPT'
- echo "NO_CRYPT_OBJ = 1" >> include.mk
echo "disabling crypto"
;;
esac
@@ -222,7 +222,7 @@ 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
# use ./configure instead
@@ -241,6 +241,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"
@@ -265,7 +269,7 @@ fi
HOSTNAME=`hostname`
DATE=`date +"%d.%m.%Y %H:%M:%S %Z"`
-cat >> version.h <<EOF
+cat > version.h <<EOF
/*
* anytun version info
*