chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support Linux TUN/TAP device. Fix some bugs.
[tripe]
/
configure.in
diff --git
a/configure.in
b/configure.in
index de7f3acbe487c5b24c263ec2db70e6ddeda2f2a6..169907c3fb23dd235eab82c3959675bf01837f5d 100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-1,6
+1,6
@@
dnl -*-fundamental-*-
dnl
dnl -*-fundamental-*-
dnl
-dnl $Id: configure.in,v 1.
6 2001/06/19 22:13:5
7 mdw Exp $
+dnl $Id: configure.in,v 1.
7 2003/04/06 10:25:1
7 mdw Exp $
dnl
dnl Configuration script for TrIPE
dnl
dnl
dnl Configuration script for TrIPE
dnl
@@
-28,6
+28,9
@@
dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
dnl ----- Revision history --------------------------------------------------
dnl
dnl $Log: configure.in,v $
dnl ----- Revision history --------------------------------------------------
dnl
dnl $Log: configure.in,v $
+dnl Revision 1.7 2003/04/06 10:25:17 mdw
+dnl Support Linux TUN/TAP device. Fix some bugs.
+dnl
dnl Revision 1.6 2001/06/19 22:13:57 mdw
dnl Version bump.
dnl
dnl Revision 1.6 2001/06/19 22:13:57 mdw
dnl Version bump.
dnl
@@
-48,18
+51,32
@@
dnl Initial checkin.
dnl
AC_INIT(tripe.c)
dnl
AC_INIT(tripe.c)
-AM_INIT_AUTOMAKE(tripe, 1.0.0pre
2
)
+AM_INIT_AUTOMAKE(tripe, 1.0.0pre
3
)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
AC_PROG_CC
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
AC_PROG_CC
-mdw_GCC_FLAGS
+mdw_GCC_FLAGS
([-Wall])
mdw_OPT_TRACE
mdw_OPT_TRACE
+AC_ARG_WITH([linux-includes],
+[ --with-linux-includes=DIR
+ search for Linux kernel includes in DIR],
+[CFLAGS="$CFLAGS -I$withval"],
+[:])
+
case $host_os in
linux*)
case $host_os in
linux*)
- tun=unet
- AC_DEFINE([TUN_TYPE], [TUN_UNET])
+ case `uname -r` in
+ 2.[4-9].* | 2.??*.* | 3-9.* | ??*.*)
+ tun=linux
+ AC_DEFINE([TUN_TYPE], [TUN_LINUX])
+ ;;
+ *)
+ tun=unet
+ AC_DEFINE([TUN_TYPE], [TUN_UNET])
+ ;;
+ esac
;;
*bsd*)
tun=bsd
;;
*bsd*)
tun=bsd