summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-04 17:01:56 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-04 17:01:56 +0000
commit70b82e9a450dacd0d4092d15e67a9d0a6c466f6c (patch)
treea684856b5765dbf5ad330dcfad4ddf55f693986d /src/configure
parentfixed build on FreeBSD (diff)
fixes for FreeBSD
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configure b/src/configure
index 9d13a5b..d88e333 100755
--- a/src/configure
+++ b/src/configure
@@ -92,7 +92,7 @@ do
V4_MAPPED=0
;;
--enable-v4-mapped)
- V4_MAPPED=1
+ V4_MAPPED=2
;;
--help)
print_usage
@@ -109,17 +109,17 @@ done
rm -f include.mk
case $TARGET in
Linux)
- rm -rf tun.c
+ rm -f tun.c
ln -sf linux/tun.c
echo "loading Linux specific TUN Device"
;;
OpenBSD|FreeBSD|NetBSD)
- rm -rf tun.c
+ rm -f tun.c
ln -sf bsd/tun.c
echo "loading BSD specific TUN Device"
CFLAGS=$CFLAGS' -I/usr/local/include'
LDFLAGS=$LDFLAGS' -L/usr/local/lib'
- if [ "x$TARGET" = "xOpenBSD" ]; then
+ if [ $V4_MAPPED -ne 2 ]; then
V4_MAPPED=0
fi
;;