summaryrefslogtreecommitdiff
path: root/net-analyzer/labrea/files/labrea-2.5-libdir.patch
blob: 039745205c3ca25439031539e59f0664751a70c7 (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
--- a/configure.in
+++ b/configure.in
@@ -82,9 +82,9 @@ AC_ARG_WITH(libpcap,
 	if cd $withval; then withval=`pwd`; cd $owd; fi
 	PCAPINC="-I$withval/include"
 	if test -f $withval/lib/libwpcap.a; then
-	   PCAPLIB="-L$withval/lib -lwpcap"
+	   PCAPLIB="-L$withval/${libdir} -lwpcap"
 	else
-	   PCAPLIB="-L$withval/lib -lpcap"
+	   PCAPLIB="-L$withval/${libdir} -lpcap"
         fi
      else
         AC_ERROR(pcap.h, net/bpf.h, or libpcap.a not found in $withval)
@@ -94,9 +94,9 @@ AC_ARG_WITH(libpcap,
 [ if test -f ${prefix}/include/pcap.h; then
      PCAPINC="-I${prefix}/include"
      if test -f ${prefix}/lib/libwpcap.a; then
-	PCAPLIB="-L${prefix}/lib -lwpcap"
+	PCAPLIB="-L${libdir} -lwpcap"
      else
-        PCAPLIB="-L${prefix}/lib -lpcap"
+        PCAPLIB="-L${libdir} -lpcap"
      fi
   elif test -f /usr/include/pcap/pcap.h; then
      PCAPINC="-I/usr/include/pcap"