diff options
| author | foobar <sniper@php.net> | 2005-06-27 18:30:14 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2005-06-27 18:30:14 +0000 |
| commit | e04f5603f7dbb7d6151d443f6dc304a9fa005f04 (patch) | |
| tree | ef10b7a87464560e41601eb747d7e6bae2454d00 /acinclude.m4 | |
| parent | d5a129600895cdd0cba0b8834cb9951863c6999b (diff) | |
| download | php-git-e04f5603f7dbb7d6151d443f6dc304a9fa005f04.tar.gz | |
- Cache the xml2-config path
Diffstat (limited to 'acinclude.m4')
| -rw-r--r-- | acinclude.m4 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 70666daa25..52d54a9782 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2305,15 +2305,18 @@ dnl dnl Common setup macro for libxml dnl AC_DEFUN([PHP_SETUP_LIBXML], [ - +AC_CACHE_CHECK([for xml2-config path], ac_cv_php_xml2_config_path, +[ for i in $PHP_LIBXML_DIR /usr/local /usr; do if test -x "$i/bin/xml2-config"; then - XML2_CONFIG="$i/bin/xml2-config" + ac_cv_php_xml2_config_path="$i/bin/xml2-config" break fi done +]) - if test -x "$XML2_CONFIG"; then + if test -x "$ac_cv_php_xml2_config_path"; then + XML2_CONFIG="$ac_cv_php_xml2_config_path" libxml_full_version=`$XML2_CONFIG --version` ac_IFS=$IFS IFS="." |
