-if test $libgmp = none; then
- AC_MSG_ERROR(libgmp is not installed. Please grab it from your
- nearest GNU mirror and install it (see README))
-else
- LIBS="$LIBS -l$libgmp"
-fi
+AC_CACHE_SAVE
+
+dnl These are defined in files in m4/
+tinc_TUNTAP
+tinc_OPENSSL
+tinc_ZLIB
+
+dnl Check if support for jumbograms is requested
+AC_ARG_ENABLE(jumbograms,
+ [ --enable-jumbograms enable support for jumbograms (packets up to 9000 bytes)],
+ [ AC_DEFINE(ENABLE_JUMBOGRAMS) ]
+)
+
+dnl Check if checkpoint tracing has to be enabled
+AC_ARG_ENABLE(tracing,
+ [ --enable-tracing enable checkpoint tracing (debugging only)],
+ [ AC_DEFINE(ENABLE_TRACING) ]
+)
+
+AC_SUBST(INCLUDES)