+
+
RADIUSD_MAJOR_VERSION=`cat VERSION | cut -f1 -d.`
RADIUSD_MINOR_VERSION=`cat VERSION | cut -f2 -d.`
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>." >&5
$as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>." >&2;}
else
-
-$as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
-
-
for ac_func in \
pcap_fopen_offline \
pcap_dump_fopen \
smart_prefix=
- if test "x$ac_cv_header_pcap_h" = "xyes"; then
+ if test "x$ac_cv_header_pcap_h" = "xyes" && test "x$ac_cv_lib_pcap_pcap_open_live" = "xyes"; then
-$as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
+$as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
if test "x$ac_cv_lib_pcap_pcap_open_live" != "xyes"; then
AC_MSG_WARN([pcap library not found, silently disabling the RADIUS sniffer, and ARP listener. Use --with-pcap-lib-dir=<path>.])
else
- AC_DEFINE(HAVE_LIBPCAP, 1,
- [Define to 1 if you have the `pcap' library (-lpcap).]
- )
-
AC_CHECK_FUNCS(\
pcap_fopen_offline \
pcap_dump_fopen \
dnl #
smart_try_dir="$pcap_include_dir"
FR_SMART_CHECK_INCLUDE([pcap.h])
- if test "x$ac_cv_header_pcap_h" = "xyes"; then
- AC_DEFINE(HAVE_PCAP_H, 1, [Define to 1 if you have the <pcap.h> header file.])
+ if test "x$ac_cv_header_pcap_h" = "xyes" && test "x$ac_cv_lib_pcap_pcap_open_live" = "xyes"; then
+ AC_DEFINE(HAVE_LIBPCAP, 1, [Define to 1 if you have the `pcap' library (-lpcap) and header file <pcap.h>.])
AC_SUBST(PCAP_LIBS)
AC_SUBST(PCAP_LDFLAGS)
else
/* Define to 1 if you have the <sys/capability.h> header file. */
#undef HAVE_CAPABILITY_H
-/* Define to 1 if you have the <linux/if_packet.h> header file. */
-#undef HAVE_LINUX_IF_PACKET_H
-
/* Define to 1 if you have the `clock_gettime' function. */
#undef HAVE_CLOCK_GETTIME
/* Define to 1 if you have the `nsl' library (-lnsl). */
#undef HAVE_LIBNSL
-/* Define to 1 if you have the `pcap' library (-lpcap). */
+/* Define to 1 if you have the `pcap' library (-lpcap) and header file
+ <pcap.h>. */
#undef HAVE_LIBPCAP
/* Define if you have a readline compatible library */
/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
+/* Define to 1 if you have the <linux/if_packet.h> header file. */
+#undef HAVE_LINUX_IF_PACKET_H
+
/* Define to 1 if you have the `localtime_r' function. */
#undef HAVE_LOCALTIME_R
/* Define to 1 if you have the `pcap_fopen_offline' function. */
#undef HAVE_PCAP_FOPEN_OFFLINE
-/* Define to 1 if you have the <pcap.h> header file. */
-#undef HAVE_PCAP_H
-
/* define this if we have libpcre */
#undef HAVE_PCRE