Deleted Added
full compact
configure.in (39291) configure.in (56889)
1dnl @(#) $Header: configure.in,v 1.67 97/07/27 22:16:17 leres Exp $ (LBL)
1dnl @(#) $Header: /tcpdump/master/libpcap/configure.in,v 1.71 1999/11/01 15:56:40 itojun Exp $ (LBL)
2dnl
3dnl Copyright (c) 1994, 1995, 1996, 1997
4dnl The Regents of the University of California. All rights reserved.
5dnl
6dnl Process this file with autoconf to produce a configure script.
7dnl
8
9AC_INIT(pcap.c)

--- 9 unchanged lines hidden (view full) ---

19AC_LBL_C_INIT(V_CCOPT, V_INCLS)
20
21AC_CHECK_HEADERS(malloc.h sys/ioccom.h sys/sockio.h)
22
23AC_LBL_FIXINCLUDES
24
25AC_CHECK_FUNCS(ether_hostton strerror)
26
2dnl
3dnl Copyright (c) 1994, 1995, 1996, 1997
4dnl The Regents of the University of California. All rights reserved.
5dnl
6dnl Process this file with autoconf to produce a configure script.
7dnl
8
9AC_INIT(pcap.c)

--- 9 unchanged lines hidden (view full) ---

19AC_LBL_C_INIT(V_CCOPT, V_INCLS)
20
21AC_CHECK_HEADERS(malloc.h sys/ioccom.h sys/sockio.h)
22
23AC_LBL_FIXINCLUDES
24
25AC_CHECK_FUNCS(ether_hostton strerror)
26
27dnl to pacify those who hate protochain insn
28AC_MSG_CHECKING(if --disable-protochain option is specified)
29AC_ARG_ENABLE(protochain, [ --disable-protochain disable \"protochain\" insn])
30case "x$enable_protochain" in
31xyes) enable_protochain=enabled ;;
32xno) enable_protochain=disabled ;;
33x) enable_protochain=enabled ;;
34esac
35
36if test "$enable_protochain" = "disabled"; then
37 AC_DEFINE(NO_PROTOCHAIN)
38fi
39AC_MSG_RESULT(${enable_protochain})
40
27dnl
28dnl Not all versions of test support -c (character special) but it's a
29dnl better way of testing since the device might be protected. So we
30dnl check in our normal order using -r and then check the for the /dev
31dnl guys again using -c.
32dnl
33AC_ARG_WITH(pcap, [ --with-pcap=TYPE use packet capture TYPE])
34AC_MSG_CHECKING(packet capture type)

--- 21 unchanged lines hidden (view full) ---

56 V_PCAP=enet
57elif test -c /dev/nit ; then # check again in case not readable
58 V_PCAP=snit
59else
60 V_PCAP=null
61fi
62AC_MSG_RESULT($V_PCAP)
63
41dnl
42dnl Not all versions of test support -c (character special) but it's a
43dnl better way of testing since the device might be protected. So we
44dnl check in our normal order using -r and then check the for the /dev
45dnl guys again using -c.
46dnl
47AC_ARG_WITH(pcap, [ --with-pcap=TYPE use packet capture TYPE])
48AC_MSG_CHECKING(packet capture type)

--- 21 unchanged lines hidden (view full) ---

70 V_PCAP=enet
71elif test -c /dev/nit ; then # check again in case not readable
72 V_PCAP=snit
73else
74 V_PCAP=null
75fi
76AC_MSG_RESULT($V_PCAP)
77
78AC_MSG_CHECKING(if --enable-ipv6 option is specified)
79AC_ARG_ENABLE(ipv6, [ --enable-ipv6 build IPv6-capable version])
80if test "$enable_ipv6" = "yes"; then
81 AC_DEFINE(INET6)
82fi
83AC_MSG_RESULT(${enable_ipv6-no})
84
64case "$V_PCAP" in
65
66dlpi)
67 AC_CHECK_HEADERS(sys/bufmod.h sys/dlpi_ext.h)
68 AC_MSG_CHECKING(for /dev/dlpi device)
69 if test -c /dev/dlpi ; then
70 AC_MSG_RESULT(yes)
71 AC_DEFINE(HAVE_DEV_DLPI)

--- 79 unchanged lines hidden (view full) ---

151AC_CHECK_PROGS(V_RANLIB, ranlib, @true)
152
153AC_LBL_DEVEL(V_CCOPT)
154
155AC_LBL_SOCKADDR_SA_LEN
156
157AC_LBL_UNALIGNED_ACCESS
158
85case "$V_PCAP" in
86
87dlpi)
88 AC_CHECK_HEADERS(sys/bufmod.h sys/dlpi_ext.h)
89 AC_MSG_CHECKING(for /dev/dlpi device)
90 if test -c /dev/dlpi ; then
91 AC_MSG_RESULT(yes)
92 AC_DEFINE(HAVE_DEV_DLPI)

--- 79 unchanged lines hidden (view full) ---

172AC_CHECK_PROGS(V_RANLIB, ranlib, @true)
173
174AC_LBL_DEVEL(V_CCOPT)
175
176AC_LBL_SOCKADDR_SA_LEN
177
178AC_LBL_UNALIGNED_ACCESS
179
159if test "${srcdir}" = "." ; then
160 srcdirprefix=""
161else
162 srcdirprefix="./"
163fi
164
165if test -r ${srcdirprefix}lbl/gnuc.h ; then
180if test -r ${srcdir}/lbl/gnuc.h ; then
166 rm -f gnuc.h
181 rm -f gnuc.h
167 ln -s ${srcdirprefix}lbl/gnuc.h gnuc.h
182 ln -s ${srcdir}/lbl/gnuc.h gnuc.h
168fi
169
183fi
184
170rm -f bpf_filter.c
171ln -s ${srcdirprefix}bpf/net/bpf_filter.c bpf_filter.c
172rm -f net
185rm -f net
173ln -s ${srcdirprefix}bpf/net net
186ln -s ${srcdir}/bpf/net net
174
175AC_SUBST(V_CCOPT)
176AC_SUBST(V_INCLS)
177AC_SUBST(V_LEX)
178AC_SUBST(V_PCAP)
179AC_SUBST(V_RANLIB)
180AC_SUBST(V_YACC)
181
182AC_PROG_INSTALL
183
184AC_OUTPUT(Makefile)
185
186if test -f .devel ; then
187 make depend
188fi
189exit 0
187
188AC_SUBST(V_CCOPT)
189AC_SUBST(V_INCLS)
190AC_SUBST(V_LEX)
191AC_SUBST(V_PCAP)
192AC_SUBST(V_RANLIB)
193AC_SUBST(V_YACC)
194
195AC_PROG_INSTALL
196
197AC_OUTPUT(Makefile)
198
199if test -f .devel ; then
200 make depend
201fi
202exit 0