if a prefix other then /usr or /usr/local is used look in $prefix/lib
authorewt <devnull@localhost>
Wed, 12 Feb 1997 04:48:06 +0000 (04:48 +0000)
committerewt <devnull@localhost>
Wed, 12 Feb 1997 04:48:06 +0000 (04:48 +0000)
and $prefix/include for libraries

CVS patchset: 1401
CVS date: 1997/02/12 04:48:06

configure.in

index 4036a7e..ef55b3e 100644 (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"