blob: 578d9001d16e9762a59535e2d501c8a28980085c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
--- a/configure.in
+++ b/configure.in
@@ -69,7 +69,7 @@
owd=`pwd`
if cd $withval; then withval=`pwd`; cd $owd; fi
PCAP_CFLAGS="-I$withval -I$withval/bpf"
- PCAPLIB="-L$withval -lpcap"
+ PCAPLIB="-lpcap"
else
AC_ERROR(pcap.h or libpcap.a not found in $withval)
fi
@@ -77,7 +77,7 @@
esac ],
[ if test -f ${prefix}/include/pcap.h; then
PCAP_CFLAGS="-I${prefix}/include"
- PCAPLIB="-L${exec_prefix}/lib -lpcap"
+ PCAPLIB="-lpcap"
elif test -f /usr/include/pcap/pcap.h; then
PCAP_CFLAGS="-I/usr/include/pcap"
PCAPLIB="-lpcap"
@@ -146,12 +146,12 @@
owd=`pwd`
if cd $withval; then withval=`pwd`; cd $owd; fi
LNET_CFLAGS="-I$withval/include `$withval/libnet-config --defines`"
- LNETLIB="-L$withval/lib -lnet"
+ LNETLIB="-lnet"
elif test -f $withval/include/libnet.h -a -f $withval/src/libnet.a; then
owd=`pwd`
if cd $withval; then withval=`pwd`; cd $owd; fi
LNET_CFLAGS="-I$withval/include"
- LNETLIB="-L$withval/src -lnet"
+ LNETLIB="-lnet"
else
echo "A working combination of libnet.h, libnet.a and libnet-config not found in $withval; get libnet from www.packetfactory.net/projects/libnet and reinstall"
AC_ERROR(libnet)
@@ -163,7 +163,7 @@
else
if test -f ${prefix}/include/libnet.h -a ${exec_prefix}/lib/libnet.a ; then
LNET_CFLAGS="-I${prefix}/include `${exec_prefix}/bin/libnet-config --defines 2>/dev/null`"
- LNETLIB="-L${exec_prefix}/lib -lnet"
+ LNETLIB="-lnet"
else
LNET_CFLAGS="`libnet-config --defines 2>/dev/null`"
LNETLIB="-lnet"
|