X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=da1b57ccb09e11facbaadef7ca0208810c6fce60;hb=HEAD;hp=6cf97e470391aca891a603bc2a0168b038a1b488;hpb=ba7ff87d14cce0897e832665b9d4b9957fc99af1;p=freeradius.git diff --git a/configure.in b/configure.in index 6cf97e4..da1b57c 100644 --- a/configure.in +++ b/configure.in @@ -95,7 +95,8 @@ AC_SUBST(LTDL_SUBDIRS) dnl use system-wide libtool, if it exists AC_ARG_WITH(system-libtool, [ --with-system-libtool Use the libtool installed in your system (default=use our own)], -[ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) ], +[ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) AC_LIBTOOL_DLOPEN +AC_PROG_LIBTOOL], [ LIBTOOL="`pwd`/libtool" AC_SUBST(LIBTOOL) @@ -716,6 +717,15 @@ else [ PCAP_LIBS= AC_MSG_WARN([pcap.h not found, silently disabling the RADIUS sniffer.]) ]) + + AC_CHECK_LIB(pcap, pcap_fopen_offline, + [ AC_DEFINE(HAVE_PCAP_FOPEN_OFFLINE, 1, + [Define to 1 if you have the function pcap_fopen_offline.]) + ]) + AC_CHECK_LIB(pcap, pcap_dump_fopen, + [ AC_DEFINE(HAVE_PCAP_DUMP_FOPEN, 1, + [Define to 1 if you have the function pcap_dump_fopen.]) + ]) fi AC_SUBST(PCAP_LIBS)