source: configure.in @ b296c02

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since b296c02 was a4ce365, checked in by Daniel Lawson <dlawson@…>, 17 years ago

i.

  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[14e60c60]1dnl Process this file with autoconf to produce a configure script.
[a4ce365]2AC_INIT(libtrace,2.0.2,[libtrace@wand.net.nz],libtrace)
[3085992]3AC_CONFIG_SRCDIR(lib/trace.c)
[a4ce365]4AM_INIT_AUTOMAKE(libtrace,2.0.2)
[14e60c60]5
6AC_PREREQ(2.5)
7
[1f3696b]8dnl GNU C library
9AC_GNU_SOURCE
[3085992]10
[0a46fbb]11AM_CONFIG_HEADER(config.h)
[14e60c60]12dnl Checks for programs.
13AC_PROG_CC
14AC_PROG_INSTALL
15AC_PROG_LIBTOOL
16
[97eadcc]17
[14e60c60]18
19dnl Checks for header files.
20AC_HEADER_STDC
[97eadcc]21dnl AC_CHECK_HEADERS(errno.h stdlib.h stdio.h assert.h string.h netinet/in.h assert.h errno.h fcntl.h net/ethernet.h netdb.h pcap.h stdio.h stdlib.h string.h sys/stat.h sys/types.h sys/socket.h sys/un.h unistd.h time.h sys/ioctl.h net/bpf.h pcap.h zlib.h pcap-bpf.h)
[dfef05d]22AC_CHECK_HEADERS(pcap.h zlib.h pcap-bpf.h net/bpf.h sys/limits.h stddef.h stdint.h)
[14e60c60]23
24dnl Checks for typedefs, structures, and compiler characteristics.
25AC_C_CONST
26AC_C_INLINE
[97eadcc]27AC_C_BIGENDIAN
[14e60c60]28AC_TYPE_SIZE_T
29AC_HEADER_TIME
[60fc8aa]30AC_SYS_LARGEFILE
[14e60c60]31
32dnl Checks for library functions.
33AC_PROG_GCC_TRADITIONAL
34AC_CHECK_FUNCS(socket strdup)
35
[97eadcc]36
37
[de8ccadb]38dnl configure time options for selecting which libpcap and libz to use
39dnl this is provided to allow for systems whose default libraries don't support
40dnl large files - you can build your own and link using these options
[4b42c39]41AC_DEFUN([CHECK_LIBPCAP],
[7d31d26]42         [AC_ARG_WITH([pcap],
43                      AC_HELP_STRING([--with-pcap],
44                                     [name of pcap library (default is pcap)]),
45                      [ac_cv_use_pcap=$withval], [ac_cv_use_pcap=pcap])
46AC_CACHE_CHECK([which pcap library to use],
47               [ac_cv_use_pcap], [ac_cv_use_pcap=pcap])])
48
[4b42c39]49AC_DEFUN([CHECK_LIBPCAP_PATH],
[0654f5a]50         [AC_ARG_WITH([pcap-path],
51                      AC_HELP_STRING([--with-pcap-path],
52                                     [location of pcap library (default is /usr/lib)]),
53                      [ac_cv_use_pcap_path=$withval], [ac_cv_use_pcap_path=/usr/lib])
54AC_CACHE_CHECK([location of pcap library],
55               [ac_cv_use_pcap_path], [ac_cv_use_pcap_path=/usr/lib])])
56
[c130a95]57
[4b42c39]58AC_DEFUN([CHECK_LIBZ],
[7d31d26]59         [AC_ARG_WITH([zlib],
60                      AC_HELP_STRING([--with-zlib],
61                                     [name of zlib library (default is z)]),
62                      [ac_cv_use_zlib=$withval], [ac_cv_use_zlib=z])
63AC_CACHE_CHECK([which zlib library to use],
64               [ac_cv_use_zlib], [ac_cv_use_zlib=z])])
65
[4b42c39]66AC_DEFUN([CHECK_LIBZ_PATH],
[c130a95]67        [AC_ARG_WITH([zlib-path],
68                AC_HELP_STRING([--with-zlib-path],
69                        [location of zlib library (default is /usr/lib)]),
70                [ac_cv_use_zlib_path=$withval], [ac_cv_use_zlib_path=/usr/lib])
[0654f5a]71AC_CACHE_CHECK([location of zlib library],
72               [ac_cv_use_zlib_path], [ac_cv_use_zlib_path=/usr/lib])])
73
[4b42c39]74CHECK_LIBPCAP
75CHECK_LIBPCAP_PATH
76CHECK_LIBZ
77CHECK_LIBZ_PATH
[7d31d26]78
79LIBPCAP=-l$ac_cv_use_pcap
[0654f5a]80LIBPCAP_PATH=-L$ac_cv_use_pcap_path
81
[7d31d26]82AC_SUBST([LIBPCAP])
[c130a95]83AC_SUBST([LIBPCAP_PATH])
[7d31d26]84
85LIBZ=-l$ac_cv_use_zlib
[0654f5a]86LIBZ_PATH=-L$ac_cv_use_zlib_path
[7d31d26]87AC_SUBST([LIBZ])
[0654f5a]88AC_SUBST([LIBZ_PATH])
[7d31d26]89
[14e60c60]90AC_OUTPUT(Makefile lib/Makefile)
Note: See TracBrowser for help on using the repository browser.