@@ -44,22 +44,15 @@ ]) AC_CHECK_HEADERS(libipq.h stdlib.h stdio.h string.h netinet/in.h netinet/tcp.h resolv.h netdb.h ctype.h syslog.h sys/stat.h sys/types.h unistd.h getopt.h dotconf.h libpool.h time.h) -AC_CHECK_LIB(pool, pool_free, [ - AC_DEFINE(HAVE_POOL, [], [Enable if you have the required pool library]) - LIBS="$LIBS -lpool" -], [ - AC_MSG_FAILURE([You must have dotconf (libpool), find it here: http://www.azzit.de/dotconf/]) -]) - -AC_CHECK_LIB(dotconf, dotconf_create, [ - AC_DEFINE(HAVE_DOTCONF, [], [Enable if you have the required dotconf library.]) - LIBS="$LIBS -ldotconf" -], [ - AC_MSG_FAILURE([You must have dotconf, find it here: http://www.azzit.de/dotconf/]) +AC_CHECK_LIB(config, config_init, [ + AC_DEFINE(HAVE_LIBCONFIG, [], [Enable if you have the required libconfig library.]) + LIBS="$LIBS -lconfig" +], [ + AC_MSG_FAILURE([You must have libconfig]) ]) AC_CHECK_LIB(netfilter_queue, nfq_set_verdict, [ AC_DEFINE(HAVE_NFQUEUE, [], [Enable if you have nfqueue]) LIBS="$LIBS -lnetfilter_queue"