1 # $Id: configure.in,v 1.3 1998/09/17 02:01:46 gerald Exp $
2 dnl Process this file with autoconf to produce a configure script.
5 AM_INIT_AUTOMAKE(ethereal, 0.3.16)
7 dnl Checks for programs.
10 # If LD_LIBRARY_PATH is defined, add it as a link directory.
11 # This should help Solaris users.
12 if test x$LD_LIBRARY_PATH != x ; then
13 LIBS="$LIBS -R$LD_LIBRARY_PATH"
17 AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS",
18 AC_MSG_ERROR(GTK+ distribution not found.))
21 AC_CHECK_HEADER(pcap.h,, AC_MSG_ERROR(Header file pcap.h not found.))
22 AC_CHECK_HEADER(net/bpf.h,, AC_MSG_ERROR(Header file net/bpf.h not found.))
23 AC_CHECK_LIB(pcap, pcap_open_offline,, AC_MSG_ERROR(Library libpcap not found.))
25 dnl Checks for header files.
27 # AC_CHECK_HEADERS(fcntl.h strings.h sys/ioctl.h sys/time.h unistd.h)
29 AC_CHECK_HEADERS(sys/sockio.h sys/types.h netinet/in.h)
31 dnl Checks for typedefs, structures, and compiler characteristics.
34 # We need libpcap's AC_LBL_SOCKADDR_SA_LEN test for get_interface_list().
36 AC_LBL_SOCKADDR_SA_LEN
38 # We must know our byte order
41 dnl Checks for library functions.
42 AC_PROG_GCC_TRADITIONAL
43 AC_CHECK_FUNC(socket,, AC_MSG_ERROR(Function 'socket' not found.))
44 # If there's a system out there that has snprintf and _doesn't_ have vsnprintf,
45 # then this won't work.
46 AC_CHECK_FUNC(snprintf, SNPRINTF_C="" SNPRINTF_O="",
47 SNPRINTF_C="snprintf.c" SNPRINTF_O="snprintf.o")
51 AM_CONFIG_HEADER(config.h)