[dhcp-agent-commits] dhcp-agent config.h.in,1.5,1.6 configure.ac,1.8,1.9
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2003-06-09 02:01:04
|
Update of /cvsroot/dhcp-agent/dhcp-agent In directory sc8-pr-cvs1:/tmp/cvs-serv22192 Modified Files: config.h.in configure.ac Log Message: checking for pcap_freecode now; some minor fixes too Index: config.h.in =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/config.h.in,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** config.h.in 18 May 2003 02:58:25 -0000 1.5 --- config.h.in 9 Jun 2003 02:01:01 -0000 1.6 *************** *** 31,34 **** --- 31,37 ---- #undef HAVE_MEMORY_H + /* have pcap_freecode() */ + #undef HAVE_PCAP_FREECODE + /* have __progname var */ #undef HAVE_PROGNAME Index: configure.ac =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/configure.ac,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** configure.ac 9 Jun 2003 00:34:48 -0000 1.8 --- configure.ac 9 Jun 2003 02:01:01 -0000 1.9 *************** *** 140,143 **** --- 140,170 ---- fi + dnl check for pcap_freecode + + + AC_MSG_CHECKING([pcap_freecode in pcap]) + LIBS=$PCAP_LIB + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[ pcap_freecode(); ]])],[ have_pcap_freecode="yes" ],[ have_pcap_freecode="no" ]) + LIBS= + + if test x$have_pcap_freecode = "xyes"; then + AC_MSG_RESULT([found]) + AC_DEFINE(HAVE_PCAP_FREECODE, 1, [have pcap_freecode()]) + else + AC_MSG_RESULT([not found]) + AC_MSG_WARN([you don't seem to have an up to date libpcap installed. i could not + find pcap_freecode() because of this you may encounter a small + memory leak. please considering updating to the latest pcap + distribution from http://www.tcpdump.org/]) + fi + + AC_MSG_CHECKING(BIOCIMMEDIATE) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> + #include <stdlib.h> + #include <pcap.h> + ]], [[ ioctl(0, BIOCIMMEDIATE, NULL);]])],[AC_MSG_RESULT(found) + AC_DEFINE(HAVE_BPF_IMMEDIATE, 1, [have BPF_IMMEDIATE])],[AC_MSG_RESULT(not found)]) + + dnl dnl libdnet sifting; actually it's a lot more well behaved *************** *** 205,209 **** AC_SUBST(dhcpdocdir) ! AM_CONFIG_HEADER([config.h]) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile tests/Makefile conf/Makefile doc/Makefile]) AC_OUTPUT --- 232,236 ---- AC_SUBST(dhcpdocdir) ! AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile tests/Makefile conf/Makefile doc/Makefile]) AC_OUTPUT |