chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rearrange so as not to include Linux headers unless we need to.
[tripe]
/
configure.in
diff --git
a/configure.in
b/configure.in
index de7f3acbe487c5b24c263ec2db70e6ddeda2f2a6..cf55a2d3f1cdcbc9bab6ec66b79fdadb806ab616 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:57
mdw Exp $
+dnl $Id: configure.in,v 1.
9 2003/04/06 10:33:31
mdw Exp $
dnl
dnl Configuration script for TrIPE
dnl
dnl
dnl Configuration script for TrIPE
dnl
@@
-28,6
+28,15
@@
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.9 2003/04/06 10:33:31 mdw
+dnl And again. (Sigh.)
+dnl
+dnl Revision 1.8 2003/04/06 10:31:13 mdw
+dnl Fix stupid bug.
+dnl
+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
+57,34
@@
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
+changequote(,)dnl
+ 2.[4-9].* | 2.[1-9][0-9]*.* | [3-9].* | [1-9][0-9]*.*)
+changequote([,])dnl
+ tun=linux
+ AC_DEFINE([TUN_TYPE], [TUN_LINUX])
+ ;;
+ *)
+ tun=unet
+ AC_DEFINE([TUN_TYPE], [TUN_UNET])
+ ;;
+ esac
;;
*bsd*)
tun=bsd
;;
*bsd*)
tun=bsd