[root@localhost libpcap-0.7.2]# ./configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works...
yes
checking whether the C compiler (gcc ) is
a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking gcc version... 3
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using gcc... yes
checking for u_int16_t using gcc... yes
checking for u_int32_t using gcc... yes
checking how to run the C preprocessor...
gcc -E
checking for sys/ioccom.h... no
checking for sys/sockio.h... no
checking for ifaddrs.h... yes
checking for limits.h... yes
checking for netinet/if_ether.h... yes
checking for ANSI ioctl definitions... yes
checking for ether_hostton... yes
checking for strerror... yes
checking for strlcpy... no
checking if --disable-protochain option is
specified... enabled
checking packet capture type... linux
checking if --enable-ipv6 option is specified...
no
checking whether to build optimizer debugging
code... no
checking whether to build parser debugging
code... no
checking Linux kernel version... 2
checking if if_packet.h has tpacket_stats
defined... yes
checking whether we have /proc/net/dev...
yes
checking for flex... flex
checking for flex 2.4 or higher... yes
checking for bison... bison
checking for ranlib... ranlib
checking if sockaddr struct has sa_len member...
no
checking if dl_hp_ppa_info_t struct has dl_module_id_1
member... no
checking if unaligned accesses fail... no
checking for a BSD compatible install...
/usr/bin/install -c
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
[root@localhost libpcap-0.7.2]# make
gcc -O2 -I. -DHAVE_CONFIG_H -c ./pcap-linux.c
gcc -O2 -I. -DHAVE_CONFIG_H -c ./pcap.c
gcc -O2 -I. -DHAVE_CONFIG_H -c ./inet.c
gcc -O2 -I. -DHAVE_CONFIG_H -c ./gencode.c
gcc -O2 -I. -DHAVE_CONFIG_H -c ./optimize.c
gcc -O2 -I. -DHAVE_CONFIG_H -c ./nametoaddr.c
gcc -O2 -I. -DHAVE_CONFIG_H -c ./etherent.c
gcc -O2 -I. -DHAVE_CONFIG_H -c ./savefile.c
rm -f bpf_filter.c
ln -s ./bpf/net/bpf_filter.c bpf_filter.c
gcc -O2 -I. -DHAVE_CONFIG_H -c bpf_filter.c
gcc -O2 -I. -DHAVE_CONFIG_H -c ./bpf_image.c
gcc -O2 -I. -DHAVE_CONFIG_H -c ./bpf_dump.c
flex -Ppcap_ -t scanner.l > $$.scanner.c;
mv $$.scanner.c scanner.c
bison -y -p pcap_ -d grammar.y
mv y.tab.c grammar.c
mv y.tab.h tokdefs.h
gcc -O2 -I. -DHAVE_CONFIG_H -c scanner.c
gcc -O2 -I. -DHAVE_CONFIG_H -Dyylval=pcap_lval
-c grammar.c
sed -e 's/.*/char pcap_version[] = "&";/'
./VERSION > version.c
gcc -O2 -I. -DHAVE_CONFIG_H -c version.c
ar rc libpcap.a pcap-linux.o pcap.o inet.o
gencode.o optimize.o nametoaddr.o etherent.o
savefile.o b
pf_filter.o bpf_image.o bpf_dump.o scanner.o
grammar.o version.o
ranlib libpcap.a
[root@localhost libpcap-0.7.2]# make install
[ -d /usr/local/lib ] || \
(mkdir -p /usr/local/lib; chmod 755 /usr/local/lib)
/usr/bin/install -c -m 644 libpcap.a /usr/local/lib/libpcap.a
ranlib /usr/local/lib/libpcap.a
[ -d /usr/local/include ] || \
(mkdir -p /usr/local/include; chmod 755 /usr/local/include)
/usr/bin/install -c -m 644 ./pcap.h /usr/local/include/pcap.h
/usr/bin/install -c -m 644 ./pcap-namedb.h
\
/usr/local/include/pcap-namedb.h
[ -d /usr/local/include/net ] || \
(mkdir -p /usr/local/include/net; chmod 755
/usr/local/include/net)
/usr/bin/install -c -m 644 ./bpf/net/bpf.h
\
/usr/local/include/net/bpf.h
[ -d /usr/local/man/man3 ] || \
(mkdir -p /usr/local/man/man3; chmod 755
/usr/local/man/man3)
/usr/bin/install -c -m 644 ./pcap.3 \
/usr/local/man/man3/pcap.3
[root@localhost libpcap-0.7.2]#