summaryrefslogtreecommitdiff
path: root/net/tcpreplay/patches/patch-aa
blob: 09760717d6ed108ca1d71857907be78121232e6f (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
$NetBSD: patch-aa,v 1.1 2007/02/18 18:51:55 adrianp Exp $

--- configure.orig	2007-02-18 17:30:43.000000000 +0000
+++ configure
@@ -6974,14 +6974,12 @@ if test "${with_libnet+set}" = set; then
   trynetdir=$withval
 fi;
 
-for testdir in $trynetdir /usr/local /usr ; do
-    if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
-        LNETINC="-I${testdir}/include"
-        LNETINCDIR="$testdir/include"
-        LNETLIB="-L${testdir}/lib -lnet"
-        foundnet=$testdir
-    fi
-done
+if test -f "@@LN_INC@@/libnet.h" -a $foundnet = no ; then
+  LNETINC="-I@@LN_INC@@"
+  LNETINCDIR="@@LN_INC@@"
+  LNETLIB="-L@@LN_LIB@@ -lnet"
+  foundnet=$testdir
+fi
 
 if test $foundnet = no ; then
     echo "$as_me:$LINENO: result: no" >&5