aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 15:09:47 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 15:09:47 +0000
commit1dd1049794d518ac6a9aec2e46727ea9d9685be8 (patch)
treecb1885ab63770bb2dd57ec7aa7c91b43a84394c0 /configure
parentfix possible buffer overrun (diff)
downloadw3m-1dd1049794d518ac6a9aec2e46727ea9d9685be8.tar.gz
w3m-1dd1049794d518ac6a9aec2e46727ea9d9685be8.zip
[w3m-dev 02455] some suggestion
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rwxr-xr-xconfigure23
1 files changed, 17 insertions, 6 deletions
diff --git a/configure b/configure
index f3f011a..18d296a 100755
--- a/configure
+++ b/configure
@@ -806,16 +806,27 @@ esac
extlib=''
case $sysname in
- *bsd)
- searchlibs="socket nsl"
- ;;
- *BSD)
- searchlibs="socket nsl"
+ *bsd|*BSD)
+ searchlibs=""
;;
*)
searchlibs="bsd BSD 44bsd socket nsl"
;;
esac
+
+for lib in $searchlibs
+do
+ for libdir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib $prefix/lib
+ do
+ if [ -f $libdir/lib$lib.a -o -f $libdir/lib$lib.$so_ext ] ; then
+ bsdlib="$bsdlib -l$lib"
+ break
+ fi
+ done
+done
+extlib=''
+
+searchlibs="socket nsl"
for lib in $searchlibs
do
for libdir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib $prefix/lib
@@ -1780,7 +1791,7 @@ HELP_DIR = $helpdir
LIB_DIR = $suplibdir
HELP_FILE = $helpfile
SYS_LIBRARIES = $gpmlib $extlib $termlib $ssllib $v6lib
-LOCAL_LIBRARIES = $ldflags
+LOCAL_LIBRARIES = $bsdlib $ldflags
CC = $cc
MYCFLAGS = $cflags $bsdinclude $sslinclude
GCCFLAGS = $cflags -I./\$(srcdir)/include -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DSILENT -DALL_INTERIOR_POINTERS