2008-12-23 20:49:26 +00:00
dnl @(#) $Header: /tcpdump/master/libpcap/configure.in,v 1.168 2008-12-23 20:49:26 guy Exp $ (LBL)
1999-10-07 23:46:40 +00:00
dnl
dnl Copyright (c) 1994, 1995, 1996, 1997
dnl The Regents of the University of California. All rights reserved.
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
2009-04-21 16:09:37 +00:00
#
# See
#
# http://ftp.gnu.org/gnu/config/README
#
# for the URLs to use to fetch new versions of config.guess and
# config.sub.
#
2008-12-23 20:49:26 +00:00
AC_REVISION($Revision: 1.168 $)
2004-01-14 03:00:36 +00:00
AC_PREREQ(2.50)
1999-10-07 23:46:40 +00:00
AC_INIT(pcap.c)
AC_CANONICAL_SYSTEM
2010-01-02 22:15:46 +00:00
AC_LBL_C_INIT_BEFORE_CC(V_CCOPT, V_INCLS)
AC_PROG_CC
2009-07-02 19:14:14 +00:00
AC_LBL_C_INIT(V_CCOPT, V_INCLS)
2010-01-02 23:08:06 +00:00
AC_LBL_SHLIBS_INIT
2002-06-28 10:34:35 +00:00
AC_LBL_C_INLINE
2000-07-11 00:38:19 +00:00
AC_C___ATTRIBUTE__
1999-10-07 23:46:40 +00:00
2009-07-08 08:10:18 +00:00
AC_CHECK_HEADERS(sys/bitypes.h)
AC_CHECK_TYPE([int8_t], ,
[AC_DEFINE([int8_t], [signed char],
[Define to `signed char' if int8_t not defined.])],
[AC_INCLUDES_DEFAULT
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif])
AC_CHECK_TYPE([u_int8_t], ,
[AC_DEFINE([u_int8_t], [unsigned char],
[Define to `unsigned char' if u_int8_t not defined.])],
[AC_INCLUDES_DEFAULT
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif])
AC_CHECK_TYPE([int16_t], ,
[AC_DEFINE([int16_t], [short],
[Define to `short' if int16_t not defined.])]
[AC_INCLUDES_DEFAULT
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif])
AC_CHECK_TYPE([u_int16_t], ,
[AC_DEFINE([u_int16_t], [unsigned short],
[Define to `unsigned short' if u_int16_t not defined.])],
[AC_INCLUDES_DEFAULT
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif])
AC_CHECK_TYPE([int32_t], ,
[AC_DEFINE([int32_t], [int],
[Define to `int' if int32_t not defined.])],
[AC_INCLUDES_DEFAULT
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif])
AC_CHECK_TYPE([u_int32_t], ,
[AC_DEFINE([u_int32_t], [unsigned int],
[Define to `unsigned int' if u_int32_t not defined.])],
[AC_INCLUDES_DEFAULT
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif])
AC_CHECK_TYPE([int64_t], ,
[AC_DEFINE([int64_t], [long long],
[Define to `long long' if int64_t not defined.])],
[AC_INCLUDES_DEFAULT
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif])
AC_CHECK_TYPE([u_int64_t], ,
[AC_DEFINE([u_int64_t], [unsigned long long],
[Define to `unsigned long long' if u_int64_t not defined.])],
[AC_INCLUDES_DEFAULT
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif])
2000-04-09 17:44:26 +00:00
2008-01-01 03:49:11 +00:00
#
# Try to arrange for large file support.
#
AC_SYS_LARGEFILE
AC_FUNC_FSEEKO
2000-07-14 02:12:36 +00:00
dnl
2009-04-18 20:04:27 +00:00
dnl Even if <net/bpf.h> were, on all OSes that support BPF, fixed to
dnl include <sys/ioccom.h>, and we were to drop support for older
dnl releases without that fix, so that pcap-bpf.c doesn't need to
dnl include <sys/ioccom.h>, the test program in "AC_LBL_FIXINCLUDES"
dnl in "aclocal.m4" uses it, so we would still have to test for it
dnl and set "HAVE_SYS_IOCCOM_H" if we have it, otherwise
dnl "AC_LBL_FIXINCLUDES" wouldn't work on some platforms such as Solaris.
2000-07-14 02:12:36 +00:00
dnl
2007-06-11 10:04:24 +00:00
AC_CHECK_HEADERS(sys/ioccom.h sys/sockio.h limits.h paths.h)
2007-09-12 19:09:49 +00:00
AC_CHECK_HEADERS(net/pfvar.h, , , [#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>])
2008-09-16 00:20:23 +00:00
if test "$ac_cv_header_net_pfvar_h" = yes; then
2007-11-14 00:54:35 +00:00
#
# Check for various PF actions.
#
AC_MSG_CHECKING(whether net/pfvar.h defines PF_NAT through PF_NORDR)
AC_TRY_COMPILE(
[#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/pfvar.h>],
[return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;],
[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_PF_NAT_THROUGH_PF_NORDR, 1,
[define if net/pfvar.h defines PF_NAT through PF_NORDR])
],
AC_MSG_RESULT(no))
fi
2005-03-27 01:07:01 +00:00
AC_CHECK_HEADERS(netinet/if_ether.h, , , [#include <sys/types.h>
#include <sys/socket.h>])
2005-03-27 00:57:08 +00:00
if test "$ac_cv_header_netinet_if_ether_h" != yes; then
2005-03-27 00:30:21 +00:00
#
2005-03-27 00:57:08 +00:00
# The simple test didn't work.
2005-03-27 00:30:21 +00:00
# Do we need to include <net/if.h> first?
2005-03-27 01:07:01 +00:00
# Unset ac_cv_header_netinet_if_ether_h so we don't
2005-03-27 03:36:36 +00:00
# treat the previous failure as a cached value and
2005-03-27 00:57:08 +00:00
# suppress the next test.
2005-03-27 00:30:21 +00:00
#
2005-03-27 01:07:01 +00:00
AC_MSG_NOTICE([Rechecking with some additional includes])
2005-03-27 00:57:08 +00:00
unset ac_cv_header_netinet_if_ether_h
2005-03-27 01:07:01 +00:00
AC_CHECK_HEADERS(netinet/if_ether.h, , , [#include <sys/types.h>
2005-03-27 00:30:21 +00:00
#include <sys/socket.h>
2005-03-27 01:15:20 +00:00
#include <netinet/in.h>
2005-03-27 00:30:21 +00:00
struct mbuf;
struct rtentry;
2005-03-27 01:07:01 +00:00
#include <net/if.h>])
2005-03-27 00:57:08 +00:00
fi
1999-10-07 23:46:40 +00:00
AC_LBL_FIXINCLUDES
2005-03-26 23:07:50 +00:00
AC_CHECK_FUNCS(strerror strlcpy)
1999-10-07 23:46:40 +00:00
2003-12-15 01:35:03 +00:00
needsnprintf=no
AC_CHECK_FUNCS(vsnprintf snprintf,,
[needsnprintf=yes])
if test $needsnprintf = yes; then
2004-02-09 06:28:19 +00:00
AC_LIBOBJ(snprintf)
2003-12-15 01:35:03 +00:00
fi
2005-03-26 23:57:42 +00:00
#
# Do this before checking for ether_hostton(), as it's a
# "gethostbyname() -ish function".
#
AC_LBL_LIBRARY_NET
2005-03-27 02:45:03 +00:00
#
# You are in a twisty little maze of UN*Xes, all different.
# Some might not have ether_hostton().
# Some might have it, but not declare it in any header file.
# Some might have it, but declare it in <netinet/if_ether.h>.
# Some might have it, but declare it in <netinet/ether.h>
# (And some might have it but document it as something declared in
# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
#
# Before you is a C compiler.
#
2005-03-26 23:07:50 +00:00
AC_CHECK_FUNCS(ether_hostton)
if test "$ac_cv_func_ether_hostton" = yes; then
#
2005-03-27 22:26:25 +00:00
# OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
2005-03-26 23:07:50 +00:00
#
if test "$ac_cv_header_netinet_if_ether_h" = yes; then
#
# Yes. Does it declare ether_hostton()?
#
2005-04-23 22:43:15 +00:00
AC_CHECK_DECL(ether_hostton,
2005-03-27 02:45:03 +00:00
[
AC_DEFINE(NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON,,
[Define to 1 if netinet/if_ether.h declares `ether_hostton'])
],,
2005-03-26 23:07:50 +00:00
[
#include <sys/types.h>
#include <sys/socket.h>
2005-03-27 21:51:23 +00:00
#include <netinet/in.h>
2005-04-19 00:49:37 +00:00
#include <arpa/inet.h>
2005-03-27 21:51:23 +00:00
struct mbuf;
struct rtentry;
#include <net/if.h>
2005-03-26 23:07:50 +00:00
#include <netinet/if_ether.h>
])
fi
2005-03-27 02:45:03 +00:00
#
# Did that succeed?
#
if test "$ac_cv_have_decl_ether_hostton" != yes; then
#
# No, how about <netinet/ether.h>, as on Linux?
#
AC_CHECK_HEADERS(netinet/ether.h)
if test "$ac_cv_header_netinet_ether_h" = yes; then
#
2005-03-27 22:26:25 +00:00
# We have it - does it declare ether_hostton()?
2005-03-27 03:36:36 +00:00
# Unset ac_cv_have_decl_ether_hostton so we don't
# treat the previous failure as a cached value and
# suppress the next test.
2005-03-27 02:45:03 +00:00
#
2005-03-27 03:36:36 +00:00
unset ac_cv_have_decl_ether_hostton
2005-04-23 22:43:15 +00:00
AC_CHECK_DECL(ether_hostton,
2005-03-27 02:45:03 +00:00
[
AC_DEFINE(NETINET_ETHER_H_DECLARES_ETHER_HOSTTON,,
[Define to 1 if netinet/ether.h declares `ether_hostton'])
],,
[
#include <netinet/ether.h>
])
fi
fi
2005-04-20 11:12:36 +00:00
#
# Is ether_hostton() declared?
#
if test "$ac_cv_have_decl_ether_hostton" != yes; then
#
# No, we'll have to declare it ourselves.
# Do we have "struct ether_addr"?
#
AC_CHECK_TYPES(struct ether_addr,,,
[
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
struct mbuf;
struct rtentry;
#include <net/if.h>
#include <netinet/if_ether.h>
])
2005-04-23 22:43:15 +00:00
AC_DEFINE(HAVE_DECL_ETHER_HOSTTON, 0,
[Define to 1 if you have the declaration of `ether_hostton', and to 0 if you
don't.])
else
AC_DEFINE(HAVE_DECL_ETHER_HOSTTON, 1,
[Define to 1 if you have the declaration of `ether_hostton', and to 0 if you
don't.])
2005-04-20 11:12:36 +00:00
fi
2005-03-26 23:07:50 +00:00
fi
1999-11-01 15:56:40 +00:00
dnl to pacify those who hate protochain insn
AC_MSG_CHECKING(if --disable-protochain option is specified)
2008-11-18 07:03:09 +00:00
AC_ARG_ENABLE(protochain,
2008-11-18 07:23:04 +00:00
AC_HELP_STRING([--disable-protochain],[disable \"protochain\" insn]))
1999-11-01 15:56:40 +00:00
case "x$enable_protochain" in
xyes) enable_protochain=enabled ;;
xno) enable_protochain=disabled ;;
x) enable_protochain=enabled ;;
esac
if test "$enable_protochain" = "disabled"; then
2000-07-11 00:38:19 +00:00
AC_DEFINE(NO_PROTOCHAIN,1,[do not use protochain])
1999-11-01 15:56:40 +00:00
fi
AC_MSG_RESULT(${enable_protochain})
The SITA code in pcap-linux.c shares very little with the Linux code;
move it into pcap-sita.c, and make --with-sita set the pcap type to
"sita", so we build pcap-sita.c instead of, rather than in addition to,
pcap-linux.c.
Use "bpf_u_int32" rather than "ulong" in the SITA code, as it's intended
to be 32 bits long (the "l" in "htonl()" and "ntohl()" is historical -
they work on 32-bit quantities, and the "l" dates back to the days when
32-bit processors were a bit newer and 16-bit Unix was more common).
Those changes also, at least in theory, makes the SITA support work on
other Unix-compatible platforms; note that in README.sita.
Clean up pcap-sita.c, making routines no longer called outside it
static, folding trivial wrappers, and fixing various warnings.
Put the routines used by fad-sita.c and defined by pcap-sita.c into
pcap-sita.h. Remove from pcap-sita.h the files that are now static to
pcap-sita.c. Include pcap-sita.h in both fad-sita.c and pcap-sita.c, so
that we do cross-file prototype checking.
2008-01-06 20:23:17 +00:00
#
# SITA support is mutually exclusive with native capture support;
# "--with-sita" selects SITA support.
#
2008-11-18 07:03:09 +00:00
AC_ARG_WITH(sita,
2008-11-18 07:23:04 +00:00
AC_HELP_STRING([--with-sita],[include SITA support]),
The SITA code in pcap-linux.c shares very little with the Linux code;
move it into pcap-sita.c, and make --with-sita set the pcap type to
"sita", so we build pcap-sita.c instead of, rather than in addition to,
pcap-linux.c.
Use "bpf_u_int32" rather than "ulong" in the SITA code, as it's intended
to be 32 bits long (the "l" in "htonl()" and "ntohl()" is historical -
they work on 32-bit quantities, and the "l" dates back to the days when
32-bit processors were a bit newer and 16-bit Unix was more common).
Those changes also, at least in theory, makes the SITA support work on
other Unix-compatible platforms; note that in README.sita.
Clean up pcap-sita.c, making routines no longer called outside it
static, folding trivial wrappers, and fixing various warnings.
Put the routines used by fad-sita.c and defined by pcap-sita.c into
pcap-sita.h. Remove from pcap-sita.h the files that are now static to
pcap-sita.c. Include pcap-sita.h in both fad-sita.c and pcap-sita.c, so
that we do cross-file prototype checking.
2008-01-06 20:23:17 +00:00
[
2008-11-18 06:59:04 +00:00
if test ! "x$withval" = "xno" ; then
AC_DEFINE(SITA,1,[include ACN support])
AC_MSG_NOTICE(Enabling SITA ACN support)
V_PCAP=sita
V_FINDALLDEVS=sita
fi
The SITA code in pcap-linux.c shares very little with the Linux code;
move it into pcap-sita.c, and make --with-sita set the pcap type to
"sita", so we build pcap-sita.c instead of, rather than in addition to,
pcap-linux.c.
Use "bpf_u_int32" rather than "ulong" in the SITA code, as it's intended
to be 32 bits long (the "l" in "htonl()" and "ntohl()" is historical -
they work on 32-bit quantities, and the "l" dates back to the days when
32-bit processors were a bit newer and 16-bit Unix was more common).
Those changes also, at least in theory, makes the SITA support work on
other Unix-compatible platforms; note that in README.sita.
Clean up pcap-sita.c, making routines no longer called outside it
static, folding trivial wrappers, and fixing various warnings.
Put the routines used by fad-sita.c and defined by pcap-sita.c into
pcap-sita.h. Remove from pcap-sita.h the files that are now static to
pcap-sita.c. Include pcap-sita.h in both fad-sita.c and pcap-sita.c, so
that we do cross-file prototype checking.
2008-01-06 20:23:17 +00:00
],
[
1999-10-07 23:46:40 +00:00
dnl
dnl Not all versions of test support -c (character special) but it's a
dnl better way of testing since the device might be protected. So we
dnl check in our normal order using -r and then check the for the /dev
dnl guys again using -c.
dnl
2000-06-10 14:18:39 +00:00
dnl XXX This could be done for cross-compiling, but for now it's not.
dnl
if test -z "$with_pcap" && test "$cross_compiling" = yes; then
AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...)
fi
2008-11-18 07:03:09 +00:00
AC_ARG_WITH(pcap,
2008-11-18 07:23:04 +00:00
AC_HELP_STRING([--with-pcap=TYPE],[use packet capture TYPE]))
1999-10-07 23:46:40 +00:00
AC_MSG_CHECKING(packet capture type)
if test ! -z "$with_pcap" ; then
V_PCAP="$withval"
2009-11-25 02:40:44 +00:00
elif test -r /dev/bpf -o -h /dev/bpf ; then
2007-06-15 17:55:50 +00:00
#
# Cloning BPF device.
#
V_PCAP=bpf
AC_DEFINE(HAVE_CLONING_BPF,1,[define if you have a cloning BPF device])
1999-10-07 23:46:40 +00:00
elif test -r /dev/bpf0 ; then
V_PCAP=bpf
elif test -r /usr/include/net/pfilt.h ; then
V_PCAP=pf
elif test -r /dev/enet ; then
V_PCAP=enet
elif test -r /dev/nit ; then
V_PCAP=snit
elif test -r /usr/include/sys/net/nit.h ; then
V_PCAP=nit
2002-09-04 20:31:33 +00:00
elif test -r /usr/include/linux/socket.h ; then
V_PCAP=linux
1999-10-07 23:46:40 +00:00
elif test -r /usr/include/net/raw.h ; then
V_PCAP=snoop
2003-02-11 06:21:00 +00:00
elif test -r /usr/include/odmi.h ; then
#
# On AIX, the BPF devices might not yet be present - they're
# created the first time libpcap runs after booting.
# We check for odmi.h instead.
#
V_PCAP=bpf
2008-04-05 04:56:47 +00:00
elif test -c /dev/bpf0 ; then # check again in case not readable
V_PCAP=bpf
2009-04-18 20:04:27 +00:00
elif test -r /usr/include/sys/dlpi.h ; then
V_PCAP=dlpi
2008-04-05 04:56:47 +00:00
elif test -c /dev/enet ; then # check again in case not readable
V_PCAP=enet
elif test -c /dev/nit ; then # check again in case not readable
V_PCAP=snit
else
V_PCAP=null
fi
AC_MSG_RESULT($V_PCAP)
2008-09-16 07:10:31 +00:00
#
# Do capture-mechanism-dependent tests.
#
2008-09-16 00:20:23 +00:00
case "$V_PCAP" in
dlpi)
2008-03-13 18:13:57 +00:00
#
# Checks to see if Solaris has the public libdlpi(3LIB) library.
# Note: The existence of /usr/include/libdlpi.h does not mean it is the
# public libdlpi(3LIB) version. Before libdlpi was made public, a
# private version also existed, which did not have the same APIs.
# Due to a gcc bug, the default search path for 32-bit libraries does
# not include /lib, we add it explicitly here.
# [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
# Also, due to the bug above applications that link to libpcap with
# libdlpi will have to add "-L/lib" option to "configure".
#
saved_ldflags=$LDFLAGS
LDFLAGS="$LIBS -L/lib"
AC_CHECK_LIB(dlpi, dlpi_walk,
LIBS="-ldlpi $LIBS"
V_PCAP=libdlpi
AC_DEFINE(HAVE_LIBDLPI,1,[if libdlpi exists]),
V_PCAP=dlpi)
LDFLAGS=$saved_ldflags
2008-09-16 07:10:31 +00:00
#
# Checks whether <sys/dlpi.h> is usable, to catch weird SCO
# versions of DLPI.
#
AC_MSG_CHECKING(whether <sys/dlpi.h> is usable)
AC_CACHE_VAL(ac_cv_sys_dlpi_usable,
AC_TRY_COMPILE(
[
#include <sys/types.h>
#include <sys/time.h>
#include <sys/dlpi.h>
],
[int i = DL_PROMISC_PHYS;],
ac_cv_sys_dlpi_usable=yes,
ac_cv_sys_dlpi_usable=no))
AC_MSG_RESULT($ac_cv_sys_dlpi_usable)
if test $ac_cv_sys_dlpi_usable = no ; then
AC_MSG_ERROR(<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI)
fi
#
# Check whether we have a /dev/dlpi device or have multiple devices.
#
AC_MSG_CHECKING(for /dev/dlpi device)
if test -c /dev/dlpi ; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_DEV_DLPI, 1, [define if you have a /dev/dlpi])
else
AC_MSG_RESULT(no)
dir="/dev/dlpi"
AC_MSG_CHECKING(for $dir directory)
if test -d $dir ; then
AC_MSG_RESULT(yes)
AC_DEFINE_UNQUOTED(PCAP_DEV_PREFIX, "$dir", [/dev/dlpi directory])
else
AC_MSG_RESULT(no)
fi
fi
#
# This check is for Solaris with DLPI support for passive modes.
# See dlpi(7P) for more details.
#
AC_LBL_DL_PASSIVE_REQ_T
;;
linux)
AC_MSG_CHECKING(Linux kernel version)
if test "$cross_compiling" = yes; then
AC_CACHE_VAL(ac_cv_linux_vers,
ac_cv_linux_vers=unknown)
else
AC_CACHE_VAL(ac_cv_linux_vers,
ac_cv_linux_vers=`uname -r 2>&1 | \
sed -n -e '$s/.* //' -e '$s/\..*//p'`)
fi
AC_MSG_RESULT($ac_cv_linux_vers)
if test $ac_cv_linux_vers = unknown ; then
AC_MSG_ERROR(cannot determine linux version when cross-compiling)
fi
if test $ac_cv_linux_vers -lt 2 ; then
AC_MSG_ERROR(version 2 or higher required; see the INSTALL doc for more info)
fi
2009-06-01 19:56:05 +00:00
#
# Do we have the wireless extensions?
#
2008-12-14 22:00:57 +00:00
AC_CHECK_HEADERS(linux/wireless.h, [], [],
2008-12-14 20:17:14 +00:00
[
#include <sys/socket.h>
2008-12-14 22:00:57 +00:00
#include <linux/if.h>
2008-09-16 07:10:31 +00:00
#include <linux/types.h>
])
2009-06-01 19:56:05 +00:00
#
# Do we have libnl?
#
2009-07-09 20:55:49 +00:00
AC_ARG_WITH(libnl,
AC_HELP_STRING([--without-libnl],[disable libnl support @<:@default=yes, on Linux, if present@:>@]),
with_libnl=$withval,,)
if test x$with_libnl != xno ; then
2010-11-14 01:42:47 +00:00
#
# Try libnl 2.x first.
#
AC_CHECK_LIB(nl, nl_socket_alloc,
[
#
# Yes, we have libnl 2.x.
#
LIBS="-lnl-genl -lnl $LIBS"
AC_DEFINE(HAVE_LIBNL,1,[if libnl exists])
AC_DEFINE(HAVE_LIBNL_2_x,1,[if libnl exists and is version 2.x])
],
[
#
# No, we don't; do we have libnl 1.x?
#
AC_CHECK_LIB(nl, nl_handle_alloc,
[
#
# Yes.
#
LIBS="-lnl $LIBS"
AC_DEFINE(HAVE_LIBNL,1,[if libnl exists])
],
[
#
# No, we don't have libnl at all.
#
if test x$with_libnl = xyes ; then
AC_MSG_ERROR([libnl support requested but libnl not found])
fi
])
])
2009-07-09 20:55:49 +00:00
fi
2009-06-01 19:56:05 +00:00
2008-09-16 07:10:31 +00:00
AC_LBL_TPACKET_STATS
AC_LBL_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI
2008-09-16 00:20:23 +00:00
;;
bpf)
2008-09-16 07:10:31 +00:00
#
# Check whether we have the *BSD-style ioctls.
#
AC_CHECK_HEADERS(net/if_media.h)
2008-09-16 00:20:23 +00:00
AC_MSG_CHECKING(whether the system supports zerocopy BPF)
AC_TRY_COMPILE(
[#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <net/bpf.h>],
[return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);],
[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_ZEROCOPY_BPF, 1,
[define if the system supports zerocopy BPF])
],
AC_MSG_RESULT(no))
2009-10-11 18:05:46 +00:00
#
# Check whether we have struct BPF_TIMEVAL.
#
AC_CHECK_TYPES(struct BPF_TIMEVAL,,,
[
#include <sys/types.h>
#include <sys/ioctl.h>
#ifdef HAVE_SYS_IOCCOM_H
#include <sys/ioccom.h>
#endif
#include <net/bpf.h>
])
2008-09-16 00:20:23 +00:00
;;
2008-09-16 07:10:31 +00:00
dag)
V_DEFS="$V_DEFS -DDAG_ONLY"
;;
septel)
V_DEFS="$V_DEFS -DSEPTEL_ONLY"
;;
2010-01-26 19:58:37 +00:00
snf)
V_DEFS="$V_DEFS -DSNF_ONLY"
;;
2008-09-16 07:10:31 +00:00
null)
AC_MSG_WARN(cannot determine packet capture interface)
AC_MSG_WARN((see the INSTALL doc for more info))
;;
2008-09-16 00:20:23 +00:00
esac
1999-10-07 23:46:40 +00:00
2002-07-27 18:45:34 +00:00
dnl
2004-12-16 22:22:20 +00:00
dnl Now figure out how we get a list of interfaces and addresses,
dnl if we support capturing. Don't bother if we don't support
dnl capturing.
2002-07-27 18:45:34 +00:00
dnl
2004-12-16 22:22:20 +00:00
if test "$V_PCAP" = null
then
2002-07-27 18:45:34 +00:00
#
2004-12-16 22:22:20 +00:00
# We can't capture, so we can't open any capture
# devices, so we won't return any interfaces.
2002-07-27 18:45:34 +00:00
#
2004-12-16 22:22:20 +00:00
V_FINDALLDEVS=null
else
AC_CHECK_FUNC(getifaddrs,[
2002-07-27 18:45:34 +00:00
#
2004-12-16 22:22:20 +00:00
# We have "getifaddrs()"; make sure we have <ifaddrs.h>
# as well, just in case some platform is really weird.
2002-07-27 18:45:34 +00:00
#
2004-12-16 22:22:20 +00:00
AC_CHECK_HEADER(ifaddrs.h,[
#
# We have the header, so we use "getifaddrs()" to
# get the list of interfaces.
#
V_FINDALLDEVS=getad
],[
#
# We don't have the header - give up.
# XXX - we could also fall back on some other
# mechanism, but, for now, this'll catch this
# problem so that we can at least try to figure
# out something to do on systems with "getifaddrs()"
# but without "ifaddrs.h", if there is something
# we can do on those systems.
#
AC_MSG_ERROR([Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>.])
])
],[
2002-07-27 18:45:34 +00:00
#
2004-12-16 22:22:20 +00:00
# Well, we don't have "getifaddrs()", so we have to use
# some other mechanism; determine what that mechanism is.
2002-07-27 18:45:34 +00:00
#
2004-12-16 22:22:20 +00:00
# The first thing we use is the type of capture mechanism,
# which is somewhat of a proxy for the OS we're using.
2002-07-27 18:45:34 +00:00
#
2004-12-16 22:22:20 +00:00
case "$V_PCAP" in
2008-03-13 18:13:57 +00:00
dlpi|libdlpi)
AC_CHECK_HEADERS(sys/bufmod.h sys/dlpi_ext.h)
2004-12-16 22:22:20 +00:00
#
# This might be Solaris 8 or later, with
# SIOCGLIFCONF, or it might be some other OS
# or some older version of Solaris, with
# just SIOCGIFCONF.
#
AC_MSG_CHECKING(whether we have SIOCGLIFCONF)
AC_CACHE_VAL(ac_cv_lbl_have_siocglifconf,
AC_TRY_COMPILE(
[#include <sys/param.h>
#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/sockio.h>],
[ioctl(0, SIOCGLIFCONF, (char *)0);],
ac_cv_lbl_have_siocglifconf=yes,
ac_cv_lbl_have_siocglifconf=no))
AC_MSG_RESULT($ac_cv_lbl_have_siocglifconf)
if test $ac_cv_lbl_have_siocglifconf = yes ; then
V_FINDALLDEVS=glifc
else
V_FINDALLDEVS=gifc
fi
2008-03-13 18:13:57 +00:00
#
# Needed for common functions used by pcap-[dlpi,libdlpi].c
#
SSRC="dlpisubs.c"
2004-12-16 22:22:20 +00:00
;;
*)
#
# Assume we just have SIOCGIFCONF.
# (XXX - on at least later Linux kernels, there's
# another mechanism, and we should be using that
# instead.)
#
V_FINDALLDEVS=gifc
;;
esac])
fi
The SITA code in pcap-linux.c shares very little with the Linux code;
move it into pcap-sita.c, and make --with-sita set the pcap type to
"sita", so we build pcap-sita.c instead of, rather than in addition to,
pcap-linux.c.
Use "bpf_u_int32" rather than "ulong" in the SITA code, as it's intended
to be 32 bits long (the "l" in "htonl()" and "ntohl()" is historical -
they work on 32-bit quantities, and the "l" dates back to the days when
32-bit processors were a bit newer and 16-bit Unix was more common).
Those changes also, at least in theory, makes the SITA support work on
other Unix-compatible platforms; note that in README.sita.
Clean up pcap-sita.c, making routines no longer called outside it
static, folding trivial wrappers, and fixing various warnings.
Put the routines used by fad-sita.c and defined by pcap-sita.c into
pcap-sita.h. Remove from pcap-sita.h the files that are now static to
pcap-sita.c. Include pcap-sita.h in both fad-sita.c and pcap-sita.c, so
that we do cross-file prototype checking.
2008-01-06 20:23:17 +00:00
])
2002-07-27 18:45:34 +00:00
2008-03-14 09:09:13 +00:00
AC_MSG_CHECKING(for socklen_t)
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
],
[ socklen_t x; ],
have_socklen_t=yes,
have_socklen_t=no)
if test "x$have_socklen_t" = "xyes"; then
2008-03-14 09:12:49 +00:00
AC_DEFINE(HAVE_SOCKLEN_T, 1, [define if socklen_t is defined])
2008-03-14 09:09:13 +00:00
fi
AC_MSG_RESULT($have_socklen_t)
2008-11-18 07:03:09 +00:00
AC_ARG_ENABLE(ipv6,
2008-11-18 07:23:04 +00:00
AC_HELP_STRING([--enable-ipv6],[build IPv6-capable version @<:@default=yes, if getaddrinfo available@:>@]),
2008-06-11 08:52:29 +00:00
[],
[enable_ipv6=ifavailable])
if test "$enable_ipv6" != "no"; then
AC_CHECK_FUNC(getaddrinfo,
[
AC_DEFINE(INET6,1,[IPv6])
],
[
if test "$enable_ipv6" != "ifavailable"; then
AC_MSG_FAILURE([--enable-ipv6 was given, but getaddrinfo isn't available])
fi
])
1999-10-19 15:18:28 +00:00
fi
2001-11-12 22:08:46 +00:00
AC_MSG_CHECKING(whether to build optimizer debugging code)
2008-11-18 07:03:09 +00:00
AC_ARG_ENABLE(optimizer-dbg,
2008-11-18 07:23:04 +00:00
AC_HELP_STRING([--enable-optimizer-dbg],[build optimizer debugging code]))
2001-11-12 22:08:46 +00:00
if test "$enable_optimizer_dbg" = "yes"; then
2001-11-12 22:18:57 +00:00
AC_DEFINE(BDEBUG,1,[Enable optimizer debugging])
2001-11-12 22:08:46 +00:00
fi
AC_MSG_RESULT(${enable_optimizer_dbg-no})
AC_MSG_CHECKING(whether to build parser debugging code)
2008-11-18 07:03:09 +00:00
AC_ARG_ENABLE(yydebug,
2008-11-18 07:23:04 +00:00
AC_HELP_STRING([--enable-yydebug],[build parser debugging code]))
2001-11-12 22:08:46 +00:00
if test "$enable_yydebug" = "yes"; then
2001-11-12 22:18:57 +00:00
AC_DEFINE(YYDEBUG,1,[Enable parser debugging])
2001-11-12 22:08:46 +00:00
fi
AC_MSG_RESULT(${enable_yydebug-no})
2004-11-09 18:32:22 +00:00
# Check for Endace DAG card support.
2008-11-18 07:03:09 +00:00
AC_ARG_WITH([dag],
2008-11-18 07:23:04 +00:00
AC_HELP_STRING([--with-dag@<:@=DIR@:>@],[include Endace DAG support @<:@"yes", "no" or DIR; default="yes" on BSD and Linux if present@:>@]),
2003-10-14 07:46:57 +00:00
[
if test "$withval" = no
then
2004-11-09 18:32:22 +00:00
# User doesn't want DAG support.
2003-10-14 07:46:57 +00:00
want_dag=no
elif test "$withval" = yes
then
2004-11-09 18:32:22 +00:00
# User wants DAG support but hasn't specified a directory.
2003-10-14 07:46:57 +00:00
want_dag=yes
else
2004-11-09 18:32:22 +00:00
# User wants DAG support and has specified a directory, so use the provided value.
2003-10-14 07:46:57 +00:00
want_dag=yes
dag_root=$withval
fi
],[
#
# Use DAG API if present, otherwise don't
#
want_dag=ifpresent
])
2004-11-09 18:32:22 +00:00
2008-11-18 07:03:09 +00:00
AC_ARG_WITH([dag-includes],
2008-11-18 07:23:04 +00:00
AC_HELP_STRING([--with-dag-includes=DIR],[Endace DAG include directory]),
2004-11-09 18:32:22 +00:00
[
# User wants DAG support and has specified a header directory, so use the provided value.
want_dag=yes
dag_include_dir=$withval
],[])
2008-11-18 07:03:09 +00:00
AC_ARG_WITH([dag-libraries],
2008-11-18 07:23:04 +00:00
AC_HELP_STRING([--with-dag-libraries=DIR],[Endace DAG library directory]),
2004-11-09 18:32:22 +00:00
[
# User wants DAG support and has specified a library directory, so use the provided value.
want_dag=yes
dag_lib_dir=$withval
],[])
2003-10-14 07:46:57 +00:00
case "$V_PCAP" in
linux|bpf|dag)
#
2005-06-20 21:27:07 +00:00
# We support the DAG API if we're on Linux or BSD, or if we're
# building a DAG-only libpcap.
2003-10-14 07:46:57 +00:00
#
;;
*)
#
# If the user explicitly requested DAG, tell them it's not
# supported.
#
# If they expressed no preference, don't include it.
#
if test $want_dag = yes; then
2004-11-09 18:32:22 +00:00
AC_MSG_ERROR([DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types])
2003-10-14 07:46:57 +00:00
elif test $want_dag = yes; then
want_dag=no
fi
;;
esac
2003-07-23 05:29:19 +00:00
2004-11-09 18:32:22 +00:00
ac_cv_lbl_dag_api=no
if test "$want_dag" != no; then
AC_MSG_CHECKING([whether we have DAG API headers])
2003-07-23 05:29:19 +00:00
2005-06-20 21:27:07 +00:00
# If necessary, set default paths for DAG API headers and libraries.
2003-10-14 07:46:57 +00:00
if test -z "$dag_root"; then
2004-11-09 18:32:22 +00:00
dag_root=/usr/local
2003-07-23 05:29:19 +00:00
fi
2004-11-09 18:32:22 +00:00
if test -z "$dag_include_dir"; then
2003-07-23 05:29:19 +00:00
dag_include_dir="$dag_root/include"
fi
2004-11-09 18:32:22 +00:00
if test -z "$dag_lib_dir"; then
dag_lib_dir="$dag_root/lib"
fi
if test -z "$dag_tools_dir"; then
dag_tools_dir="$dag_root/tools"
2003-07-23 05:29:19 +00:00
fi
2004-11-09 18:32:22 +00:00
if test -r $dag_include_dir/dagapi.h; then
2003-07-23 05:29:19 +00:00
ac_cv_lbl_dag_api=yes
fi
2005-06-20 21:27:07 +00:00
AC_MSG_RESULT([$ac_cv_lbl_dag_api ($dag_include_dir)])
2004-11-09 18:32:22 +00:00
fi
if test $ac_cv_lbl_dag_api = yes; then
AC_MSG_CHECKING([dagapi.o])
dagapi_obj=no
if test -r $dag_tools_dir/dagapi.o; then
2005-06-20 21:27:07 +00:00
# 2.4.x.
2004-11-09 18:32:22 +00:00
dagapi_obj=$dag_tools_dir/dagapi.o
elif test -r $dag_lib_dir/dagapi.o; then
2005-06-20 21:27:07 +00:00
# 2.5.x.
dagapi_obj=$dag_lib_dir/dagapi.o
elif test -r $dag_lib_dir/libdag.a; then
# 2.5.x.
2007-10-30 10:16:45 +00:00
ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
2004-11-09 18:32:22 +00:00
if test -r ./dagapi.o; then
dagapi_obj=./dagapi.o
2007-02-08 06:02:42 +00:00
else
2007-10-30 10:16:45 +00:00
ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
2007-02-08 06:02:42 +00:00
if test -r ./libdag_la-dagapi.o; then
dagapi_obj=./libdag_la-dagapi.o
fi
2004-11-09 18:32:22 +00:00
fi
2005-06-20 21:27:07 +00:00
fi
2004-11-09 18:32:22 +00:00
if test $dagapi_obj = no; then
2005-06-20 21:27:07 +00:00
AC_MSG_RESULT([no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)])
2003-12-10 09:30:57 +00:00
ac_cv_lbl_dag_api=no
2004-11-09 18:32:22 +00:00
else
AC_MSG_RESULT([yes ($dagapi_obj)])
2005-06-20 21:27:07 +00:00
fi
2004-11-09 18:32:22 +00:00
fi
if test $ac_cv_lbl_dag_api = yes; then
AC_MSG_CHECKING([dagopts.o])
dagopts_obj=no
if test -r $dag_tools_dir/dagopts.o; then
2005-06-20 21:27:07 +00:00
# 2.4.x.
2004-11-09 18:32:22 +00:00
dagopts_obj=$dag_tools_dir/dagopts.o
elif test -r $dag_lib_dir/dagopts.o; then
2005-06-20 21:27:07 +00:00
# 2.5.x.
dagopts_obj=$dag_lib_dir/dagopts.o
elif test -r $dag_lib_dir/libdag.a; then
# 2.5.x.
2007-10-30 10:16:45 +00:00
ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
2004-11-09 18:32:22 +00:00
if test -r ./dagopts.o; then
dagopts_obj=./dagopts.o
2007-02-08 06:02:42 +00:00
else
2007-10-30 10:16:45 +00:00
ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
2007-02-08 06:02:42 +00:00
if test -r ./libdag_la-dagopts.o; then
dagopts_obj=./libdag_la-dagopts.o
fi
2005-06-20 21:27:07 +00:00
fi
2003-12-10 09:30:57 +00:00
fi
2004-11-09 18:32:22 +00:00
if test $dagopts_obj = no; then
2005-06-20 21:27:07 +00:00
AC_MSG_RESULT([no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)])
2004-11-09 18:32:22 +00:00
ac_cv_lbl_dag_api=no
else
AC_MSG_RESULT([yes ($dagopts_obj)])
fi
fi
if test $ac_cv_lbl_dag_api = yes; then
# Under 2.5.x only we need to add dagreg.o.
if test -r $dag_include_dir/dagreg.h; then
2005-06-20 21:27:07 +00:00
AC_MSG_CHECKING([dagreg.o])
dagreg_obj=no
if test -r $dag_lib_dir/dagreg.o; then
# Object file is ready and waiting.
dagreg_obj=$dag_lib_dir/dagreg.o
elif test -r $dag_lib_dir/libdag.a; then
# Extract from libdag.a.
2007-10-30 10:16:45 +00:00
ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
2004-11-09 18:32:22 +00:00
if test -r ./dagreg.o; then
2005-06-20 21:27:07 +00:00
dagreg_obj=./dagreg.o
2007-02-08 06:02:42 +00:00
else
2007-10-30 10:16:45 +00:00
ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
2007-02-08 06:02:42 +00:00
if test -r ./libdag_la-dagreg.o; then
dagreg_obj=./libdag_la-dagreg.o
fi
2005-06-20 21:27:07 +00:00
fi
2004-11-09 18:32:22 +00:00
fi
if test $dagreg_obj = no; then
2005-06-20 21:27:07 +00:00
AC_MSG_RESULT([no (checked $dag_lib_dir $dag_lib_dir/libdag.a)])
2004-11-09 18:32:22 +00:00
ac_cv_lbl_dag_api=no
2005-06-20 21:27:07 +00:00
else
2004-11-09 18:32:22 +00:00
AC_MSG_RESULT([yes ($dagreg_obj)])
fi
2003-07-23 05:29:19 +00:00
fi
fi
2009-09-17 03:24:28 +00:00
if test $ac_cv_lbl_dag_api = yes; then
# Under 2.5.x only we need to add dagutil.o.
if test -r $dag_include_dir/dagutil.h; then
AC_MSG_CHECKING([dagutil.o])
dagutil_obj=no
if test -r $dag_lib_dir/dagutil.o; then
# Object file is ready and waiting.
dagutil_obj=$dag_lib_dir/dagutil.o
elif test -r $dag_lib_dir/libdag.a; then
# Extract from libdag.a.
ar x $dag_lib_dir/libdag.a dagutil.o 2>/dev/null
if test -r ./dagutil.o; then
dagutil_obj=./dagutil.o
else
ar x $dag_lib_dir/libdag.a libdag_la-dagutil.o 2>/dev/null
if test -r ./libdag_la-dagutil.o; then
dagutil_obj=./libdag_la-dagutil.o
fi
fi
fi
if test $dagutil_obj = no; then
AC_MSG_RESULT([no (checked $dag_lib_dir $dag_lib_dir/libdag.a)])
ac_cv_lbl_dag_api=no
else
AC_MSG_RESULT([yes ($dagutil_obj)])
fi
fi
fi
2004-11-09 18:32:22 +00:00
if test $ac_cv_lbl_dag_api = yes; then
V_INCLS="$V_INCLS -I$dag_include_dir"
2009-09-17 03:24:28 +00:00
ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $dagapi_obj $dagopts_obj $dagreg_obj $dagutil_obj"
2004-11-09 18:32:22 +00:00
if test $V_PCAP != dag ; then
SSRC="pcap-dag.c"
fi
# See if we can find a general version string.
2005-06-20 21:27:07 +00:00
# Don't need to save and restore LIBS to prevent -ldag being
# included if there's a found-action (arg 3).
2004-11-09 18:32:22 +00:00
saved_ldflags=$LDFLAGS
LDFLAGS="-L$dag_lib_dir"
2007-10-30 10:16:45 +00:00
AC_CHECK_LIB([dag], [dag_attach_stream], [dag_streams="1"], [dag_streams="0"])
2006-04-07 07:07:25 +00:00
AC_CHECK_LIB([dag],[dag_get_erf_types], [
2007-10-04 23:06:25 +00:00
AC_DEFINE(HAVE_DAG_GET_ERF_TYPES, 1, [define if you have dag_get_erf_types()])])
AC_CHECK_LIB([dag],[dag_get_stream_erf_types], [
AC_DEFINE(HAVE_DAG_GET_STREAM_ERF_TYPES, 1, [define if you have dag_get_stream_erf_types()])])
2004-11-09 18:32:22 +00:00
LDFLAGS=$saved_ldflags
2007-10-30 10:16:45 +00:00
if test "$dag_streams" = 1; then
2005-07-07 06:55:19 +00:00
AC_DEFINE(HAVE_DAG_STREAMS_API, 1, [define if you have streams capable DAG API])
2009-07-02 19:18:31 +00:00
LIBS="$LIBS -ldag"
2005-07-07 06:55:19 +00:00
fi
2004-11-09 18:32:22 +00:00
AC_DEFINE(HAVE_DAG_API, 1, [define if you have the DAG API])
fi
2007-10-30 10:16:45 +00:00
AC_MSG_CHECKING(whether we have the DAG API)
2004-11-09 18:32:22 +00:00
if test $ac_cv_lbl_dag_api = no; then
2007-10-30 10:16:45 +00:00
AC_MSG_RESULT(no)
2004-11-09 18:32:22 +00:00
if test "$want_dag" = yes; then
2005-06-20 21:27:07 +00:00
# User wanted DAG support but we couldn't find it.
2004-11-09 18:32:22 +00:00
AC_MSG_ERROR([DAG API requested, but not found at $dag_root: use --without-dag])
fi
2005-06-20 21:27:07 +00:00
if test "$V_PCAP" = dag; then
# User requested "dag" capture type but the DAG API wasn't
# found.
AC_MSG_ERROR([Specifying the capture type as "dag" requires the DAG API to be present; use the --with-dag options to specify the location. (Try "./configure --help" for more information.)])
fi
2007-10-30 10:16:45 +00:00
else
AC_MSG_RESULT(yes)
2005-06-20 21:27:07 +00:00
fi
2008-11-18 07:03:09 +00:00
AC_ARG_WITH(septel,
2008-11-18 07:23:04 +00:00
AC_HELP_STRING([--with-septel@<:@=DIR@:>@],[include Septel support (located in directory DIR, if supplied). @<:@default=yes, on Linux, if present@:>@]),
2005-06-20 21:27:07 +00:00
[
if test "$withval" = no
then
want_septel=no
elif test "$withval" = yes
then
want_septel=yes
septel_root=
else
want_septel=yes
septel_root=$withval
fi
],[
#
# Use Septel API if present, otherwise don't
#
want_septel=ifpresent
septel_root=./../septel
])
ac_cv_lbl_septel_api=no
case "$V_PCAP" in
linux|septel)
#
# We support the Septel API if we're on Linux, or if we're building
# a Septel-only libpcap.
#
;;
*)
#
# If the user explicitly requested Septel, tell them it's not
# supported.
#
# If they expressed no preference, don't include it.
#
if test $want_septel = yes; then
AC_MSG_ERROR(Septel support only available with 'linux' and 'septel' packet capture types)
elif test $want_septel = yes; then
want_septel=no
fi
;;
esac
if test "$with_septel" != no; then
AC_MSG_CHECKING(whether we have Septel API)
if test -z "$septel_root"; then
septel_root=$srcdir/../septel
fi
septel_tools_dir="$septel_root"
septel_include_dir="$septel_root/INC"
ac_cv_lbl_septel_api=no
if test -r "$septel_include_dir/msg.h"; then
V_INCLS="$V_INCLS -I$septel_include_dir"
2009-07-12 23:33:08 +00:00
ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
2005-06-20 21:27:07 +00:00
if test "$V_PCAP" != septel ; then
SSRC="pcap-septel.c"
fi
ac_cv_lbl_septel_api=yes
fi
AC_MSG_RESULT($ac_cv_lbl_septel_api)
if test $ac_cv_lbl_septel_api = no; then
if test "$want_septel" = yes; then
AC_MSG_ERROR(Septel API not found under directory $septel_root; use --without-septel)
fi
else
AC_DEFINE(HAVE_SEPTEL_API, 1, [define if you have a Septel API])
fi
fi
if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
AC_MSG_ERROR(Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR)
2003-07-23 05:29:19 +00:00
fi
2010-01-26 19:58:37 +00:00
# Check for Myricom SNF support.
AC_ARG_WITH([snf],
AC_HELP_STRING([--with-snf@<:@=DIR@:>@],[include Myricom SNF support @<:@"yes", "no" or DIR; default="yes" on BSD and Linux if present@:>@]),
[
if test "$withval" = no
then
# User explicitly doesn't want SNF
want_snf=no
elif test "$withval" = yes
then
# User wants SNF support but hasn't specific a directory.
want_snf=yes
else
# User wants SNF support with a specified directory.
want_snf=yes
snf_root=$withval
fi
],[
#
# Use Sniffer API if present, otherwise don't
#
want_snf=ifpresent
])
AC_ARG_WITH([snf-includes],
AC_HELP_STRING([--with-snf-includes=DIR],[Myricom SNF include directory]),
[
# User wants SNF with specific header directory
want_snf=yes
snf_include_dir=$withval
],[])
AC_ARG_WITH([snf-libraries],
AC_HELP_STRING([--with-snf-libraries=DIR],[Myricom SNF library directory]),
[
# User wants SNF with specific lib directory
want_snf=yes
snf_lib_dir=$withval
],[])
case "$V_PCAP" in
bpf|linux|snf)
#
# We support the Sniffer API if we're on BSD, Linux, or if we're
# building a Sniffer-only libpcap.
#
;;
*)
#
# If the user explicitly requested Sniffer, tell them it's not
# supported.
#
# If they expressed no preference, don't include it.
#
if test $want_snf = yes; then
AC_MSG_ERROR(Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types)
elif test $want_snf = yes; then
want_snf=no
fi
;;
esac
ac_cv_lbl_snf_api=no
if test "$with_snf" != no; then
AC_MSG_CHECKING(whether we have Myricom Sniffer API)
if test -z "$snf_root"; then
snf_root=/opt/snf
fi
if test -z "$snf_include_dir"; then
snf_include_dir="$snf_root/include"
fi
if test -z "$snf_lib_dir"; then
snf_lib_dir="$snf_root/lib"
fi
if test -f "$snf_include_dir/snf.h"; then
ac_cv_lbl_snf_api=yes
fi
AC_MSG_RESULT([$ac_cv_lbl_snf_api ($snf_root)])
if test $ac_cv_lbl_snf_api = no; then
if test "$want_snf" = yes; then
AC_MSG_ERROR(SNF API headers not found under $snf_include_dir; use --without-snf)
fi
else
saved_ldflags=$LDFLAGS
LDFLAGS="$LDFLAGS -L$snf_lib_dir"
AC_CHECK_LIB([snf], [snf_init], [ac_cv_lbl_snf_api="yes"], [ac_cv_lbl_snf_api="no"])
LDFLAGS="$saved_ldflags"
if test $ac_cv_lbl_snf_api = no; then
if test "$want_snf" = yes; then
AC_MSG_ERROR(SNF API cannot correctly be linked check config.log; use --without-snf)
fi
else
V_INCLS="$V_INCLS -I$snf_include_dir"
2010-01-26 20:02:38 +00:00
LIBS="$LIBS -lsnf"
LDFLAGS="$LDFLAGS -L$snf_lib_dir"
if test "$V_PCAP" != snf ; then
SSRC="pcap-snf.c"
fi
2010-01-26 19:58:37 +00:00
AC_DEFINE(HAVE_SNF_API, 1, [define if you have Myricom SNF API])
fi
fi
fi
if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
AC_MSG_ERROR(Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR)
fi
2003-07-23 05:29:19 +00:00
1999-10-07 23:46:40 +00:00
AC_LBL_LEX_AND_YACC(V_LEX, V_YACC, pcap_)
2000-08-16 20:28:52 +00:00
if test "$V_LEX" = lex ; then
# Some versions of lex can't handle the definitions section of scanner.l .
# Try lexing it and complain if it can't deal.
AC_CACHE_CHECK([for capable lex], tcpdump_cv_capable_lex,
if lex -t scanner.l > /dev/null 2>&1; then
tcpdump_cv_capable_lex=yes
else
tcpdump_cv_capable_lex=insufficient
fi)
if test $tcpdump_cv_capable_lex = insufficient ; then
AC_MSG_ERROR([Your operating system's lex is insufficient to compile
libpcap. flex is a lex replacement that has many advantages, including
being able to compile libpcap. For more information, see
http://www.gnu.org/software/flex/flex.html .])
fi
fi
1999-10-07 23:46:40 +00:00
2008-10-21 07:33:01 +00:00
#
2009-06-27 19:43:26 +00:00
# Assume, by default, no support for shared libraries and V7/BSD convention
# for man pages (file formats in section 5, miscellaneous info in section 7).
# Individual cases can override this.
2008-10-21 07:33:01 +00:00
#
2009-06-27 19:43:26 +00:00
DYEXT="none"
2008-10-21 07:33:01 +00:00
MAN_FILE_FORMATS=5
MAN_MISC_INFO=7
2001-12-10 08:33:41 +00:00
case "$host_os" in
1999-10-07 23:46:40 +00:00
aix*)
dnl Workaround to enable certain features
2000-07-11 00:38:19 +00:00
AC_DEFINE(_SUN,1,[define on AIX to get certain functions])
2008-09-23 18:04:01 +00:00
Add support for building AIX shared libraries. (It's complicated - we
build "traditional" AIX shared libraries, which are archive libraries
containing shared objects, so, on AIX, we build the archive library, for
the benefit of "build libpcap and tcpdump in subdirectories of the same
directory, with tcpdump linked statically with that libpcap", but don't
install it. Newer versions of AIX, at least, also support "standard"
.so-style UN*X shared libraries, but we stick with
<Tevye>Tradition!</Tevye>.)
Fix an AIX build problem that shows up when building with GCC.
Clean up HP-UX stuff.
2009-06-16 07:18:54 +00:00
#
# AIX makes it fun to build shared and static libraries,
# because they're *both* ".a" archive libraries. We
# build the static library for the benefit of the traditional
# scheme of building libpcap and tcpdump in subdirectories of
# the same directory, with tcpdump statically linked with the
# libpcap in question, but we also build a shared library as
# "libpcap.shareda" and install *it*, rather than the static
# library, as "libpcap.a".
#
DYEXT="shareda"
case "$V_PCAP" in
dlpi)
#
# If we're using DLPI, applications will need to
# use /lib/pse.exp if present, as we use the
# STREAMS routines.
#
pseexe="/lib/pse.exp"
AC_MSG_CHECKING(for $pseexe)
if test -f $pseexe ; then
AC_MSG_RESULT(yes)
2009-07-02 19:18:31 +00:00
LIBS="-I:$pseexe"
Add support for building AIX shared libraries. (It's complicated - we
build "traditional" AIX shared libraries, which are archive libraries
containing shared objects, so, on AIX, we build the archive library, for
the benefit of "build libpcap and tcpdump in subdirectories of the same
directory, with tcpdump linked statically with that libpcap", but don't
install it. Newer versions of AIX, at least, also support "standard"
.so-style UN*X shared libraries, but we stick with
<Tevye>Tradition!</Tevye>.)
Fix an AIX build problem that shows up when building with GCC.
Clean up HP-UX stuff.
2009-06-16 07:18:54 +00:00
fi
;;
bpf)
#
# If we're using BPF, we need "-lodm" and "-lcfg", as
# we use them to load the BPF module.
#
2009-07-02 19:18:31 +00:00
LIBS="-lodm -lcfg"
Add support for building AIX shared libraries. (It's complicated - we
build "traditional" AIX shared libraries, which are archive libraries
containing shared objects, so, on AIX, we build the archive library, for
the benefit of "build libpcap and tcpdump in subdirectories of the same
directory, with tcpdump linked statically with that libpcap", but don't
install it. Newer versions of AIX, at least, also support "standard"
.so-style UN*X shared libraries, but we stick with
<Tevye>Tradition!</Tevye>.)
Fix an AIX build problem that shows up when building with GCC.
Clean up HP-UX stuff.
2009-06-16 07:18:54 +00:00
;;
esac
2008-10-24 07:29:34 +00:00
;;
2008-10-21 07:33:01 +00:00
2008-10-24 07:29:34 +00:00
darwin*)
DYEXT="dylib"
V_CCOPT="$V_CCOPT -fno-common"
2010-04-04 18:51:01 +00:00
AC_ARG_ENABLE(universal,
2010-04-04 18:56:46 +00:00
AC_HELP_STRING([--disable-universal],[don't build universal on OS X]))
2010-04-04 18:51:01 +00:00
if test "$enable_universal" != "no"; then
case "$host_os" in
2010-04-06 22:06:34 +00:00
darwin9.*)
#
# Leopard. Build for 32-bit PowerPC, 64-bit
# PowerPC, x86, and x86-64, with 32-bit PowerPC
# first. (That's what Apple does.)
#
V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
;;
2010-04-04 19:37:15 +00:00
darwin10.*)
2010-04-04 18:51:01 +00:00
#
# Snow Leopard. Build for x86-64, x86, and
2010-04-06 22:06:34 +00:00
# 32-bit PowerPC, with x86-64 first. (That's
# what Apple does, even though Snow Leopard
# doesn't run on PPC, so PPC libpcap runs under
2010-04-04 18:51:01 +00:00
# Rosetta, and Rosetta doesn't support BPF
# ioctls, so PPC programs can't do live
2010-04-04 19:07:13 +00:00
# captures.)
2010-04-04 18:51:01 +00:00
#
V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
;;
esac
fi
1999-10-07 23:46:40 +00:00
;;
hpux9*)
2000-07-11 00:38:19 +00:00
AC_DEFINE(HAVE_HPUX9,1,[on HP-UX 9.x])
2008-10-21 07:33:01 +00:00
#
# Use System V conventions for man pages.
#
MAN_FILE_FORMATS=4
MAN_MISC_INFO=5
1999-10-07 23:46:40 +00:00
;;
hpux10.0*)
2008-10-21 07:33:01 +00:00
#
# Use System V conventions for man pages.
#
MAN_FILE_FORMATS=4
MAN_MISC_INFO=5
1999-10-07 23:46:40 +00:00
;;
hpux10.1*)
2008-10-21 07:33:01 +00:00
#
# Use System V conventions for man pages.
#
MAN_FILE_FORMATS=4
MAN_MISC_INFO=5
1999-10-07 23:46:40 +00:00
;;
hpux*)
2003-11-30 22:42:25 +00:00
dnl HPUX 10.20 and above is similar to HPUX 9, but
dnl not the same....
dnl
dnl XXX - DYEXT should be set to "sl" if this is building
dnl for 32-bit PA-RISC, but should be left as "so" for
dnl 64-bit PA-RISC or, I suspect, IA-64.
2005-04-08 02:15:49 +00:00
AC_DEFINE(HAVE_HPUX10_20_OR_LATER,1,[on HP-UX 10.20 or later])
2009-06-09 23:54:49 +00:00
if test "`uname -m`" = "ia64"; then
2009-04-21 16:09:37 +00:00
DYEXT="so"
else
DYEXT="sl"
fi
#
# "-b" builds a shared library; "+h" sets the soname.
#
SHLIB_OPT="-b"
SONAME_OPT="+h"
2008-10-21 07:33:01 +00:00
#
# Use System V conventions for man pages.
#
MAN_FILE_FORMATS=4
MAN_MISC_INFO=5
1999-10-07 23:46:40 +00:00
;;
2008-10-24 07:29:34 +00:00
irix*)
#
# Use System V conventions for man pages.
#
MAN_FILE_FORMATS=4
MAN_MISC_INFO=5
;;
2009-04-21 16:09:37 +00:00
linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
DYEXT="so"
2009-06-09 17:50:31 +00:00
#
# Compiler assumed to be GCC; run-time linker may require a -R
# flag.
#
if test "$libdir" != "/usr/lib"; then
V_RFLAGS=-Wl,-R$libdir
fi
2008-10-24 07:29:34 +00:00
;;
osf*)
2009-06-27 19:43:26 +00:00
DYEXT="so"
2008-10-24 07:29:34 +00:00
#
# Use System V conventions for man pages.
#
MAN_FILE_FORMATS=4
MAN_MISC_INFO=5
;;
1999-10-07 23:46:40 +00:00
sinix*)
AC_MSG_CHECKING(if SINIX compiler defines sinix)
AC_CACHE_VAL(ac_cv_cc_sinix_defined,
AC_TRY_COMPILE(
[],
[int i = sinix;],
ac_cv_cc_sinix_defined=yes,
ac_cv_cc_sinix_defined=no))
AC_MSG_RESULT($ac_cv_cc_sinix_defined)
if test $ac_cv_cc_sinix_defined = no ; then
2000-07-11 00:38:19 +00:00
AC_DEFINE(sinix,1,[on sinix])
1999-10-07 23:46:40 +00:00
fi
;;
solaris*)
2000-07-11 00:38:19 +00:00
AC_DEFINE(HAVE_SOLARIS,1,[On solaris])
2008-10-21 07:33:01 +00:00
2009-04-21 16:09:37 +00:00
DYEXT="so"
2008-10-21 07:33:01 +00:00
#
# Use System V conventions for man pages.
#
MAN_FILE_FORMATS=4
MAN_MISC_INFO=5
1999-10-07 23:46:40 +00:00
;;
esac
2000-06-10 14:18:39 +00:00
AC_PROG_RANLIB
2010-04-16 10:02:27 +00:00
AC_CHECK_TOOL([AR], [ar])
1999-10-07 23:46:40 +00:00
AC_LBL_DEVEL(V_CCOPT)
AC_LBL_SOCKADDR_SA_LEN
2002-07-27 18:45:34 +00:00
AC_LBL_SOCKADDR_STORAGE
2000-07-06 01:50:36 +00:00
AC_LBL_HP_PPA_INFO_T_DL_MODULE_ID_1
1999-10-07 23:46:40 +00:00
AC_LBL_UNALIGNED_ACCESS
2004-12-17 23:25:36 +00:00
#
# Makefile.in includes rules to generate version.h, so we assume
# that it will be generated if autoconf is used.
#
AC_DEFINE(HAVE_VERSION_H, 1, [define if version.h is generated in the build procedure])
1999-10-07 23:46:40 +00:00
rm -f net
1999-10-30 05:33:45 +00:00
ln -s ${srcdir}/bpf/net net
1999-10-07 23:46:40 +00:00
AC_SUBST(V_CCOPT)
2003-07-23 05:29:19 +00:00
AC_SUBST(V_DEFS)
2009-04-21 16:09:37 +00:00
AC_SUBST(V_FINDALLDEVS)
1999-10-07 23:46:40 +00:00
AC_SUBST(V_INCLS)
AC_SUBST(V_LEX)
AC_SUBST(V_PCAP)
2009-04-21 16:09:37 +00:00
AC_SUBST(V_SHLIB_CMD)
AC_SUBST(V_SHLIB_OPT)
AC_SUBST(V_SONAME_OPT)
2009-06-09 17:50:31 +00:00
AC_SUBST(V_RPATH_OPT)
1999-10-07 23:46:40 +00:00
AC_SUBST(V_YACC)
2009-07-12 23:33:08 +00:00
AC_SUBST(ADDLOBJS)
AC_SUBST(ADDLARCHIVEOBJS)
2003-07-23 05:29:19 +00:00
AC_SUBST(SSRC)
2003-11-30 04:45:02 +00:00
AC_SUBST(DYEXT)
2008-10-21 07:33:01 +00:00
AC_SUBST(MAN_FILE_FORMATS)
AC_SUBST(MAN_MISC_INFO)
1999-10-07 23:46:40 +00:00
2006-12-20 03:30:32 +00:00
dnl check for USB sniffing support
2006-10-04 15:50:26 +00:00
AC_MSG_CHECKING(for USB sniffing support)
case "$host_os" in
linux*)
2006-10-04 16:46:31 +00:00
AC_DEFINE(PCAP_SUPPORT_USB, 1, [target host supports USB sniffing])
2006-10-04 15:50:26 +00:00
USB_SRC=pcap-usb-linux.c
AC_MSG_RESULT(yes)
2006-12-20 03:30:32 +00:00
ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
if test $? -ne 0 ; then
ac_usb_dev_name="usbmon"
fi
AC_DEFINE_UNQUOTED(LINUX_USB_MON_DEV, "/dev/$ac_usb_dev_name", [path for device for USB sniffing])
AC_MSG_NOTICE(Device for USB sniffing is /dev/$ac_usb_dev_name)
2010-11-25 22:06:01 +00:00
#
# Do we have a version of <linux/compiler.h> available?
# If so, we might need it for <linux/usbdevice_fs.h>.
#
AC_CHECK_HEADERS(linux/compiler.h)
if test "$ac_cv_header_linux_compiler_h" = yes; then
#
# Yes - include it when testing for <linux/usbdevice_fs.h>.
#
AC_CHECK_HEADERS(linux/usbdevice_fs.h,,,[#include <linux/compiler.h>])
else
AC_CHECK_HEADERS(linux/usbdevice_fs.h)
fi
2009-07-04 22:04:59 +00:00
if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
#
# OK, does it define bRequestType? Older versions of the kernel
# define fields with names like "requesttype, "request", and
# "value", rather than "bRequestType", "bRequest", and
# "wValue".
#
AC_MSG_CHECKING(if usbdevfs_ctrltransfer struct has bRequestType member)
AC_CACHE_VAL(ac_cv_usbdevfs_ctrltransfer_has_bRequestType,
AC_TRY_COMPILE([
2009-07-13 08:08:32 +00:00
AC_INCLUDES_DEFAULT
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
2010-11-30 23:52:45 +00:00
#ifdef HAVE_LINUX_COMPILER_H
#include <linux/compiler.h>
#endif
2009-07-04 22:04:59 +00:00
# include <linux/usbdevice_fs.h>],
[u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)],
ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes,
ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no))
AC_MSG_RESULT($ac_cv_usbdevfs_ctrltransfer_has_bRequestType)
if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
AC_DEFINE(HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE,1,
[if struct usbdevfs_ctrltransfer has bRequestType])
fi
fi
2006-10-04 15:50:26 +00:00
;;
*)
AC_MSG_RESULT(no)
;;
esac
AC_SUBST(PCAP_SUPPORT_USB)
AC_SUBST(USB_SRC)
2010-10-15 00:21:10 +00:00
AC_MSG_CHECKING(for DECT sniffing support)
case "$host_os" in
linux*)
AC_CHECK_LIB([nl-dect],[nl_dect_cluster_alloc_cache],
AC_DEFINE(PCAP_SUPPORT_DECT, 1, [target host supports DECT sniffing]),
AC_MSG_RESULT([no]))
DECT_SRC=pcap-dect-linux.c
;;
*)
AC_MSG_RESULT(no)
;;
esac
AC_SUBST(PCAP_SUPPORT_DECT)
AC_SUBST(DECT_SRC)
2008-11-18 07:03:09 +00:00
AC_ARG_ENABLE([bluetooth],
2009-12-29 19:56:57 +00:00
[AC_HELP_STRING([--enable-bluetooth],[enable Bluetooth support @<:@default=yes, if support available@:>@])],
2008-11-18 07:03:09 +00:00
,enable_bluetooth=yes)
if test "x$enable_bluetooth" != "xno" ; then
2009-12-29 19:56:57 +00:00
dnl check for Bluetooth sniffing support
2008-11-18 07:03:09 +00:00
case "$host_os" in
linux*)
AC_CHECK_HEADER(bluetooth/bluetooth.h,
[
AC_DEFINE(PCAP_SUPPORT_BT, 1, [target host supports Bluetooth sniffing])
BT_SRC=pcap-bt-linux.c
AC_MSG_NOTICE(Bluetooth sniffing is supported)
],
AC_MSG_NOTICE(Bluetooth sniffing is not supported; install bluez-lib devel to enable it)
)
;;
*)
2009-12-31 01:14:20 +00:00
AC_MSG_NOTICE(no Bluetooth sniffing support implemented for $host_os)
2008-11-18 07:03:09 +00:00
;;
esac
AC_SUBST(PCAP_SUPPORT_BT)
AC_SUBST(BT_SRC)
fi
2006-10-13 17:34:53 +00:00
2009-12-29 09:04:20 +00:00
AC_ARG_ENABLE([can],
2009-12-29 19:56:57 +00:00
[AC_HELP_STRING([--enable-can],[enable CAN support @<:@default=yes, if support available@:>@])],
2009-12-29 09:04:20 +00:00
,enable_can=yes)
if test "x$enable_can" != "xno" ; then
dnl check for CAN sniffing support
case "$host_os" in
linux*)
2009-12-31 01:14:20 +00:00
AC_CHECK_HEADER(linux/can.h,
2009-12-29 09:04:20 +00:00
[ AC_DEFINE(PCAP_SUPPORT_CAN, 1, [target host supports CAN sniffing])
CAN_SRC=pcap-can-linux.c
AC_MSG_NOTICE(CAN sniffing is supported)],
2009-12-31 01:14:20 +00:00
AC_MSG_NOTICE(CAN sniffing is not supported),
[#include <sys/socket.h>]
)
2009-12-29 09:04:20 +00:00
;;
*)
AC_MSG_NOTICE(no CAN sniffing support implemented for $host_os)
;;
esac
AC_SUBST(PCAP_SUPPORT_CAN)
AC_SUBST(CAN_SRC)
fi
2010-08-23 00:36:27 +00:00
dnl check for hardware timestamp support
case "$host_os" in
linux*)
AC_CHECK_HEADERS([linux/net_tstamp.h])
;;
*)
AC_MSG_NOTICE(no hardware timestamp support implemented for $host_os)
;;
esac
1999-10-07 23:46:40 +00:00
AC_PROG_INSTALL
2000-07-11 00:38:19 +00:00
AC_CONFIG_HEADER(config.h)
2008-10-23 05:56:59 +00:00
AC_OUTPUT(Makefile pcap-filter.manmisc pcap-linktype.manmisc
2010-08-23 00:36:27 +00:00
pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap
pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap
pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap
pcap_open_dead.3pcap pcap_open_offline.3pcap
pcap_set_tstamp_type.3pcap)
1999-10-07 23:46:40 +00:00
if test -f .devel ; then
make depend
fi
exit 0