chiark / gitweb /
server/tripe-admin.5: Describe the quoting convention.
[tripe] / configure.ac
index 1c67cb78c975b823522e54e263e9288c254bf64f..61ed4a8fd1c1c25119d33bcd6989b15b9cc64d09 100644 (file)
@@ -38,6 +38,8 @@ AX_CFLAGS_WARN_ALL
 AC_CANONICAL_HOST
 AM_PROG_LIBTOOL
 
+AC_CHECK_PROGS([AUTOM4TE], [autom4te])
+
 dnl--------------------------------------------------------------------------
 dnl C programming environment.
 
@@ -59,7 +61,6 @@ PKG_CHECK_MODULES([mLib], [mLib >= 2.0.4])
 PKG_CHECK_MODULES([catacomb], [catacomb >= 2.1.1])
 
 CFLAGS="$CFLAGS $mLib_CFLAGS $catacomb_CFLAGS"
-LIBS="$LIBS $mLib_LIBS"
 
 dnl--------------------------------------------------------------------------
 dnl Directories to install things into.
@@ -94,6 +95,15 @@ TRIPE_DEFINE_PATH(
 TRIPE_DEFINE_PATH(
   [logfile], [FILE], [logging output [[./tripe.log]]], [tripe.log])
 
+dnl--------------------------------------------------------------------------
+dnl Privilege-separation helper.
+
+mdw_DEFINE_PATHS([
+  AC_DEFINE_UNQUOTED([PRIVSEP_HELPER],
+    ["mdw_PATH([$libexecdir])/mdw_PROG([tripe-privhelper])"],
+    [Pathname of privilege-separation helper.])
+])
+
 dnl--------------------------------------------------------------------------
 dnl Other options.
 
@@ -105,6 +115,19 @@ AC_ARG_WITH([tracing],
              AC_DEFINE([NTRACE], [1], [Disable all tracing.])],
            [:])
 
+dnl--------------------------------------------------------------------------
+dnl Path MTU discovery.
+
+case $host_os in
+  linux*)
+    pmtu=yes
+    ;;
+  *)
+    pmtu=no
+    ;;
+esac
+AM_CONDITIONAL([PATHMTU], [test $pmtu = yes])
+
 dnl--------------------------------------------------------------------------
 dnl Tunnel devices.
 
@@ -190,7 +213,7 @@ AC_ARG_WITH([wireshark],
               no)  haveshark=no needshark=no ;;
               yes) haveshark=yes needshark=yes ;;
               *)   haveshark=yes needshark=yes
-                   wireshark_plugindir=$withval ;;
+                   wireshark_plugindir=$withval ;;
            esac],
            [haveshark=yes needshark=no])
 
@@ -225,7 +248,7 @@ esac
 
 dnl If we're still interested, find Glib.
 case "$haveshark" in
-  yes) AM_PATH_GLIB([1.2.0], [], haveshark=false, [gmodule]) ;;
+  yes) AM_PATH_GLIB_2_0([2.4.0], [], [haveshark=false], [gmodule]) ;;
 esac
 
 dnl Find the include directory.  This would be much easier if they just
@@ -236,7 +259,7 @@ case "$haveshark" in
     mdw_CFLAGS=$CFLAGS
     wsprefix=`echo $wireshark_plugindir | sed 's:/lib/.*$::'`
     AC_CACHE_CHECK([how to find the Wireshark headers],
-                  [mdw_cv_wireshark_includes], [
+                  [mdw_cv_wireshark_includes], [
       mdw_cv_wireshark_includes=failed
       for i in \
          "" \
@@ -283,18 +306,23 @@ dnl--------------------------------------------------------------------------
 dnl Produce output.
 
 AC_CONFIG_HEADER([config/config.h])
+AC_CONFIG_TESTDIR([t])
 
 AC_CONFIG_FILES(
   [Makefile]
   [common/Makefile]
+  [uslip/Makefile]
+  [pathmtu/Makefile]
   [client/Makefile]
+  [priv/Makefile]
   [server/Makefile]
   [proxy/Makefile]
   [pkstream/Makefile]
   [wireshark/Makefile]
   [init/Makefile]
   [keys/Makefile]
-  [mon/Makefile])
+  [mon/Makefile]
+  [t/Makefile t/atlocal])
 AC_OUTPUT
 
 dnl ----- That's all, folks -------------------------------------------------