From: Ard Biesheuvel Date: Sat, 27 Mar 2004 02:03:44 +0000 (+0000) Subject: Put AC_DEFINE in correct place so caching will work properly X-Git-Tag: php-5.0.0RC2RC1~203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=437840e85d87e9fa73405669e457842349e53190;p=php Put AC_DEFINE in correct place so caching will work properly --- diff --git a/acinclude.m4 b/acinclude.m4 index fdf75ee1ea..084f70cc56 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1794,7 +1794,6 @@ AC_DEFUN([PHP_SETUP_LIBXML], [ PHP_TEST_BUILD(xmlInitParser, [ php_cv_libxml_build_works=yes - AC_DEFINE(HAVE_LIBXML, 1, [ ]) ], [ AC_MSG_RESULT(no) AC_MSG_ERROR([build test failed. Please check the config.log for details.]) @@ -1802,6 +1801,9 @@ AC_DEFUN([PHP_SETUP_LIBXML], [ [$]$1 ]) ]) + if test "$php_cv_libxml_build_works" = "yes"; then + AC_DEFINE(HAVE_LIBXML, 1, [ ]) + fi $2 else AC_MSG_ERROR([libxml2 version 2.5.10 or greater required.])