From: ewt Date: Wed, 12 Feb 1997 04:48:06 +0000 (+0000) Subject: if a prefix other then /usr or /usr/local is used look in $prefix/lib X-Git-Tag: tznext/4.11.0.1.tizen20130304~10559 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c503f570f32253a6eea3a41bc8b2cbc40f4c5e3;p=tools%2Flibrpm-tizen.git 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 --- diff --git a/configure.in b/configure.in index 4036a7e..ef55b3e 100644 --- a/configure.in +++ b/configure.in @@ -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"