X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/49f86fe47a4da6219516d0fc28feaa0054abebe8..a02240ba1ed0d7f8ca6b4ab45e9c9e3532a9f7ea:/configure.ac diff --git a/configure.ac b/configure.ac index 0eeb1ec5..3ad53dc8 100644 --- a/configure.ac +++ b/configure.ac @@ -57,11 +57,10 @@ case "$host_os" in ;; esac -PKG_CHECK_MODULES([mLib], [mLib >= 2.0.4]) +PKG_CHECK_MODULES([mLib], [mLib >= 2.1.0]) 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. @@ -90,12 +89,22 @@ TRIPE_DEFINE_PATH( [pidfile], [FILE], [process-id [[./tripectl.pid]]], [tripectl.pid]) TRIPE_DEFINE_PATH( - [initconfig], [FILE], [configuration for init script [[/etc/tripe.conf]]], - [/etc/tripe.conf]) + [initconfig], [FILE], + [configuration for init script [[SYSCONFDIR/tripe.conf]]], + ['${sysconfdir}/tripe.conf']) 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. @@ -107,6 +116,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. @@ -227,7 +249,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 @@ -291,13 +313,18 @@ AC_CONFIG_FILES( [Makefile] [common/Makefile] [uslip/Makefile] + [pathmtu/Makefile] [client/Makefile] + [priv/Makefile] [server/Makefile] [proxy/Makefile] [pkstream/Makefile] [wireshark/Makefile] [init/Makefile] + [py/Makefile] + [peerdb/Makefile] [keys/Makefile] + [svc/Makefile] [mon/Makefile] [t/Makefile t/atlocal]) AC_OUTPUT