]> git.meshlink.io Git - catta/blobdiff - configure.ac
add config.h inclusion to glib integration example
[catta] / configure.ac
index 3bcffabe06959d656062a0505523753f048c47bf..2ed9a8a1e7df62f528590c25d4afc6403f674963 100644 (file)
@@ -101,6 +101,19 @@ AC_DEFINE([HAVE_NETLINK],[],[Support for Linux netlink])
 
 AM_CONDITIONAL(HAVE_NETLINK, [ test x"$HAVE_NETLINK" = xyes ])
 
+#
+# Check for net/route.h
+#
+AC_CHECK_HEADER(net/route.h, 
+HAVE_PF_ROUTE=yes
+AC_DEFINE([HAVE_PF_ROUTE],[],[Support for PF_ROUTE])
+, [], [
+#include <sys/types.h>
+#include <sys/socket.h>
+])
+
+AM_CONDITIONAL(HAVE_PF_ROUTE, [ test x"$HAVE_PF_ROUTE" = xyes ])
+
 #
 # Check for struct ip_mreqn
 #