You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-libs/libnids/files/libnids-1.24-libdir.patch

45 lines
1.6 KiB

--- 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"