From: Antony Dovgal Date: Mon, 21 May 2007 11:37:43 +0000 (+0000) Subject: fix #41455 (ext/dba/config.m4 pollutes global $LIBS and $LDFLAGS) X-Git-Tag: RELEASE_1_4~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4f2d9749c4c88a0078bc42f9f32024011702bab;p=php fix #41455 (ext/dba/config.m4 pollutes global $LIBS and $LDFLAGS) --- diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 index 8ac827bf8f..0b5e62f858 100644 --- a/ext/dba/config.m4 +++ b/ext/dba/config.m4 @@ -172,6 +172,7 @@ dnl parameters(version, library list, function) AC_DEFUN([PHP_DBA_DB_CHECK],[ for LIB in $2; do if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a -o -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + lib_found="" PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/$PHP_LIBDIR, -l$LIB,[ AC_TRY_LINK([ #include "$THIS_INCLUDE" @@ -185,10 +186,14 @@ AC_DEFUN([PHP_DBA_DB_CHECK],[ #endif ],[ THIS_LIBS=$LIB - break + lib_found=1 ]) ]) ]) + if test -n "$lib_found"; then + lib_found=""; + break; + fi fi done if test -z "$THIS_LIBS"; then