summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/configure b/src/configure
index 11cf0e1..9f6ff4b 100755
--- a/src/configure
+++ b/src/configure
@@ -1,5 +1,27 @@
#!/bin/sh
-cd openvpn
-./configure --disable-lzo --disable-crypto
-cd ..
+TARGET=$1
+if [ -z "$TARGET" ]; then
+ TARGET="ovpn"
+fi
+
+case $TARGET in
+ linux)
+ rm -rf tunDevice.cpp
+ rm -rf tunDevice.h
+ ln -sf linux/tunDevice.cpp
+ ln -sf linux/tunDevice.h
+ ;;
+ ovpn)
+ rm -rf tunDevice.cpp
+ rm -rf tunDevice.cpp
+ ln -sf ovpn/tunDevice.cpp
+ ln -sf ovpn/tunDevice.h
+ cd openvpn
+ ./configure --disable-lzo --disable-crypto
+ cd ..
+ ;;
+ *)
+ echo "Usage: $0 (linux|ovpn)"
+ ;;
+esac