From: Danny Heijl Date: Mon, 11 Oct 1999 11:53:09 +0000 (+0000) Subject: (configure) Allow IFX_LIBDIR environment variable to specify the X-Git-Tag: php-4.0b3_RC2~213 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2939ffadd7339598d40c129c82478c6f51661f6;p=php (configure) Allow IFX_LIBDIR environment variable to specify the Informix library path to allow linking with the static libraries (libtool related). (Danny). @- IXF_LIBDIR environment variable specifies alternate Informix library path for configure (Danny). --- diff --git a/ext/informix/config.m4 b/ext/informix/config.m4 index 21ad6ff27b..92b96c1f7b 100644 --- a/ext/informix/config.m4 +++ b/ext/informix/config.m4 @@ -18,10 +18,18 @@ WARNING: You asked for Informix support, but don't have \\\$INFORMIXDIR else if test "$withval" = "yes"; then IFX_INCDIR=$INFORMIXDIR/incl/esql - IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql" + if test -z "$IFX_LIBDIR"; then + IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql" + else + IFX_LIBDIR=$IFX_LIBDIR + fi else IFX_INCDIR=$withval/incl/esql - IFX_LIBDIR="-L$withval/lib -L$withval/lib/esql" + if test -z "$IFX_LIBDIR"; then + IFX_LIBDIR="-L$withval/lib -L$withval/lib/esql" + else + IFX_LIBDIR=$IFX_LIBDIR + fi if test "$withval" != "$INFORMIXDIR"; then INFORMIX_WARNING=" WARNING: You specified Informix base install directory that is different