summaryrefslogtreecommitdiff
path: root/net/tcpreplay/patches/patch-ab
blob: 34e73d43015e235befa4098f3c3be6a80fdbc9f4 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
$NetBSD: patch-ab,v 1.3 2013/11/19 03:07:49 minskim Exp $

--- configure.orig	2010-04-05 00:58:26.000000000 +0000
+++ configure
@@ -9872,7 +9872,11 @@ darwin* | rhapsody*)
   soname_spec='${libname}${release}${major}$shared_ext'
   shlibpath_overrides_runpath=yes
   shlibpath_var=DYLD_LIBRARY_PATH
-  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+  if test .$module = .yes ; then
+    shrext_cmds=".so"
+  else
+    shrext_cmds=".dylib"
+  fi
 
   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
@@ -14675,7 +14679,11 @@ darwin* | rhapsody*)
   soname_spec='${libname}${release}${major}$shared_ext'
   shlibpath_overrides_runpath=yes
   shlibpath_var=DYLD_LIBRARY_PATH
-  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+  if test .$module = .yes ; then
+      shrext_cmds=".so"
+  else
+      shrext_cmds=".dylib"
+  fi
 
   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   ;;
@@ -17353,9 +17361,9 @@ for testdir in $trypcapdir /usr/local /o
         LPCAPINC="${testdir}/include/pcap.h"
         LPCAPINCDIR="${testdir}/include"
         if test $dynamic_link = yes; then
-            if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
+            if test -e "${testdir}/lib64/libpcap${shrext_cmds}" ; then
                 LPCAPLIB="-L${testdir}/lib64 -lpcap"
-            elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
+            elif test -e "${testdir}/lib/libpcap${shrext_cmds}" ; then
                 LPCAPLIB="-L${testdir}/lib -lpcap"
             else
                 as_fn_error "Unable to find libpcap in ${testdir}" "$LINENO" 5
@@ -18172,7 +18180,7 @@ libdnet_version=
 enable_fragroute=no
 trydnetdir=/usr/local
 
-if test $have_cygwin == no ; then
+if test $have_cygwin = no ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
 $as_echo_n "checking for libdnet... " >&6; }
 
@@ -18751,7 +18759,7 @@ esac
 fi
 
 
- if test "$osx_frameworks" == "yes"; then
+ if test "$osx_frameworks" = "yes"; then
   ENABLE_OSX_FRAMEWORKS_TRUE=
   ENABLE_OSX_FRAMEWORKS_FALSE='#'
 else