$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