dnl -*-fundamental-*-
dnl
-dnl $Id: configure.in,v 1.2 2001/02/04 01:17:54 mdw Exp $
+dnl $Id: configure.in,v 1.10 2003/05/16 10:00:59 mdw Exp $
dnl
dnl Configuration script for TrIPE
dnl
dnl ----- Revision history --------------------------------------------------
dnl
dnl $Log: configure.in,v $
+dnl Revision 1.10 2003/05/16 10:00:59 mdw
+dnl Version bump.
+dnl
+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.5 2001/03/03 12:30:39 mdw
+dnl Make this a pre-release.
+dnl
+dnl Revision 1.4 2001/02/22 09:07:28 mdw
+dnl Build documents now.
+dnl
+dnl Revision 1.3 2001/02/16 21:24:12 mdw
+dnl Don't link the client against Catacomb.
+dnl
dnl Revision 1.2 2001/02/04 01:17:54 mdw
dnl Create a configuration header file to tidy up command lines.
dnl
dnl
AC_INIT(tripe.c)
-AM_INIT_AUTOMAKE(tripe, 1.0.0)
+AM_INIT_AUTOMAKE(tripe, 1.0.0pre4)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
AC_PROG_CC
-mdw_GCC_FLAGS
+mdw_GCC_FLAGS([-Wall])
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*)
- 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
esac
AC_SUBST(tun)
-mdw_MLIB(2.0.0pre4)
-mdw_CATACOMB(2.0.0pre8)
+mdw_MLIB(2.0.0)
+mdw_CATACOMB(2.0.0, [CFLAGS="$CFLAGS $CATACOMB_CFLAGS"])
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile doc/Makefile)
dnl ----- That's all, folks -------------------------------------------------