summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/configure b/src/configure
index 0e8e08b..a258120 100755
--- a/src/configure
+++ b/src/configure
@@ -1,33 +1,21 @@
#!/bin/sh
-TARGET=$1
-if [ -z "$TARGET" ]; then
- TARGET="ovpn"
-fi
+TARGET=`uname -s`
case $TARGET in
- linux)
+ Linux)
rm -rf tunDevice.cpp
rm -rf tunDevice.h
ln -sf linux/tunDevice.cpp
ln -sf linux/tunDevice.h
;;
- bsd)
+ OpenBSD|FreeBSD|NetBSD)
rm -rf tunDevice.cpp
rm -rf tunDevice.h
ln -sf bsd/tunDevice.cpp
ln -sf bsd/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|bsd|ovpn)"
+ echo "Plattform not supported"
;;
esac