summaryrefslogtreecommitdiff
path: root/net/nast/files/patch-configure
blob: a2fd431efbcbd4941529a9a9978563da2cd84e16 (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
--- ./configure.orig	Wed Sep 27 18:27:36 2006
+++ ./configure	Wed Sep 27 19:04:20 2006
@@ -2337,52 +2337,8 @@
 #
 
 filechk="yes"
-echo "$as_me:$LINENO: checking for /usr/lib/libnet.a" >&5
-echo $ECHO_N "checking for /usr/lib/libnet.a... $ECHO_C" >&6
-if test "${ac_cv_file__usr_lib_libnet_a+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  test "$cross_compiling" = yes &&
-  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
-   { (exit 1); exit 1; }; }
-if test -r "/usr/lib/libnet.a"; then
-  ac_cv_file__usr_lib_libnet_a=yes
-else
-  ac_cv_file__usr_lib_libnet_a=no
-fi
-fi
-echo "$as_me:$LINENO: result: $ac_cv_file__usr_lib_libnet_a" >&5
-echo "${ECHO_T}$ac_cv_file__usr_lib_libnet_a" >&6
-if test $ac_cv_file__usr_lib_libnet_a = yes; then
-  :
-else
-  filechk="no"
-fi
-
-if test "$filechk" = "no"; then
- echo "$as_me:$LINENO: checking for /usr/local/lib/libnet.a" >&5
-echo $ECHO_N "checking for /usr/local/lib/libnet.a... $ECHO_C" >&6
-if test "${ac_cv_file__usr_local_lib_libnet_a+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  test "$cross_compiling" = yes &&
-  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
-echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
-   { (exit 1); exit 1; }; }
-if test -r "/usr/local/lib/libnet.a"; then
-  ac_cv_file__usr_local_lib_libnet_a=yes
-else
-  ac_cv_file__usr_local_lib_libnet_a=no
-fi
-fi
-echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_lib_libnet_a" >&5
-echo "${ECHO_T}$ac_cv_file__usr_local_lib_libnet_a" >&6
-if test $ac_cv_file__usr_local_lib_libnet_a = yes; then
-  filechk="yes" ; LDFLAGS="-L/usr/local/lib"; CPPFLAGS="-I/usr/local/include"
-fi
-
-fi
+CPPFLAGS="`libnet-config --cflags`"
+LDFLAGS="`libnet-config --libs`"
 
 if test "$filechk" = "no"; then { { echo "$as_me:$LINENO: error: