?RCS: $Id: libs.U,v 3.0.1.6 1997/02/28 16:09:11 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS:
?MAKE:libs ignore_versioned_solibs libsfound libsfiles libsdirs libspath: \
test cat Myread Oldconfig Loc libpth package xlibpth so _a \
- usesocks sed
+ usesocks sed uselongdouble
?MAKE: -pick add $@ %<
?S:libs:
?S: This variable holds the additional libraries we want to use.
-?S: It is up to the Makefile to deal with it.
+?S: It is up to the Makefile to deal with it. The list can be empty.
?S:.
?S:libsfound:
?S: This variable holds the full pathnames of the libraries
?INIT:: some systems want to use only the non-versioned libso:s
?INIT:ignore_versioned_solibs=''
?LINT:extern libscheck
-?LINT:use libscheck
+?LINT:extern p
+?LINT:use uselongdouble
: Looking for optional libraries
echo " "
echo "Checking for optional libraries..." >&4
'') libswanted='c_s';;
esac
?X: libsocks has nasty naming scheme.
-?X: This does not work if somebody wants SOCKS 4.
+?X: This does not work if somebody wants SOCKS 4.
case "$usesocks" in
"$define") libswanted="$libswanted socks5 socks5_sh" ;;
esac
for thisdir in $libspath; do
xxx=''
if $test ! -f "$xxx" -a "X$ignore_versioned_solibs" = "X"; then
- xxx=`ls $thisdir/lib$thislib.$so.[0-9] 2>/dev/null|tail -1`
+ xxx=`ls $thisdir/lib$thislib.$so.[0-9] 2>/dev/null|sed -n '$p'`
$test -f "$xxx" && eval $libscheck
$test -f "$xxx" && libstyle=shared
fi
xxx=$thisdir/lib$thislib.$so
$test -f "$xxx" && eval $libscheck
$test -f "$xxx" && libstyle=shared
- fi
+ fi
if test ! -f "$xxx"; then
xxx=$thisdir/lib$thislib$_a
$test -f "$xxx" && eval $libscheck
;;
esac
break
- fi
+ fi
done
if $test ! -f "$xxx"; then
echo "No -l$thislib."