From: Sascha Schumann Date: Wed, 2 Jul 2003 03:03:41 +0000 (+0000) Subject: Always store temporary information in LDFLAGS X-Git-Tag: php-4.3.3RC2~187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4c03fb0a92bd0609a30179eb8be4aec9bc63510;p=php Always store temporary information in LDFLAGS This also avoids use of PHP_RUN_ONCE which caused some config.m4s to fail. --- diff --git a/acinclude.m4 b/acinclude.m4 index bd3f45f51b..692225cc51 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1603,12 +1603,17 @@ dnl AC_DEFUN([PHP_CHECK_LIBRARY], [ save_old_LDFLAGS=$LDFLAGS ac_stuff="$5" + + save_ext_shared=$ext_shared + ext_shared=yes PHP_EVAL_LIBLINE([$]ac_stuff, LDFLAGS) AC_CHECK_LIB([$1],[$2],[ LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared $3 ],[ LDFLAGS=$save_old_LDFLAGS + ext_shared=$save_ext_shared unset ac_cv_func_$1 $4 ])dnl