summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-31 02:18:21 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-31 02:18:21 +0000
commit7cad346f3529c71f0a512cb3a437e1d3c475ea94 (patch)
tree8f6ce34ad29df7f0545ef798c99fd326d3f580e2 /src/configure
parentported new -n functionality to windows (now using new tun ioctl) (diff)
added disable-routing to configure script
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/configure b/src/configure
index 827081f..1e8786f 100755
--- a/src/configure
+++ b/src/configure
@@ -38,6 +38,7 @@ LDFLAGS='-g -Wall -O2 -lboost_thread -lboost_serialization -lboost_system'
CRYPTO_LIB='gcrypt'
ANYTUN_02_COMPAT=0
PASSPHRASE=1
+ROUTING=1
print_usage() {
echo "configure --help print this"
@@ -45,6 +46,7 @@ print_usage() {
echo " --disable-crypto disable crypto at all (only NULL cipher)"
echo " --enable-anytun02-compat enable compatiblity mode for anytun 0.2.x and prior"
echo " --disable-passphrase disable master key and salt passphrase"
+ echo " --disable-routing disable built-in routing capability"
}
for arg
@@ -62,6 +64,9 @@ do
--disable-passphrase)
PASSPHRASE=0
;;
+ --disable-routing)
+ ROUTING=0
+ ;;
--help)
print_usage
exit 0
@@ -121,6 +126,11 @@ if [ $PASSPHRASE -eq 0 ]; then
echo "disabling master key and salt passphrase"
fi
+if [ $ROUTING -eq 0 ]; then
+ CXXFLAGS=$CXXFLAGS' -DNO_ROUTING'
+ echo "disabling built-in routing capability"
+fi
+
cat >> include.mk <<EOF
TARGET = $TARGET
CXX = gcc