if a prefix other then /usr or /usr/local is used look in $prefix/lib

and $prefix/include for libraries

CVS patchset: 1401
CVS date: 1997/02/12 04:48:06
This commit is contained in:
ewt 1997-02-12 04:48:06 +00:00
parent 900266be6a
commit 5c503f570f
1 changed files with 21 additions and 0 deletions

View File

@ -77,6 +77,27 @@ fi
topdir=`pwd`
if test $prefix != "/usr" -a $prefix != "/usr/local"; then
echo $ac_n "checking for $prefix/lib... $ac_c"
if test -d $prefix/lib ; then
LIBS="$LIBS -L$prefix/lib"
LIBPATH="$LIBPATH -L$prefix/lib"
echo "yes"
else
echo "no"
fi
echo $ac_n "checking for $prefix/include... $ac_c"
if test -d $prefix/include ; then
INCPATH="$INCPATH -I$prefix/include"
echo "yes"
else
echo "no"
fi
fi
AC_MSG_CHECKING(checking for /usr/local/lib...)
if test -d /usr/local/lib ; then
LIBS="$LIBS -L/usr/local/lib"