From: Sascha Schumann Date: Tue, 2 Sep 2003 19:42:03 +0000 (+0000) Subject: enable re2c check for self-contained extensions X-Git-Tag: php-4.3.4RC1~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20a35aa472493a1506d2bd86696d8fc252e3d751;p=php enable re2c check for self-contained extensions --- diff --git a/acinclude.m4 b/acinclude.m4 index f29dc29622..55cca0102b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -16,6 +16,9 @@ AC_DEFUN([PHP_ADD_MAKEFILE_FRAGMENT],[ sed -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments ]) +AC_DEFUN(PHP_PROG_RE2C,[ + AC_CHECK_PROG(RE2C, re2c, re2c, [exit 0;]) +]) dnl PHP_DEFINE(WHAT[, value]) dnl diff --git a/configure.in b/configure.in index 4c829acfd7..e1bcc4f27d 100644 --- a/configure.in +++ b/configure.in @@ -127,8 +127,7 @@ dnl AC_PROG_CXXCPP dnl check for -R, etc. switch PHP_RUNPATH_SWITCH -AC_CHECK_PROG(RE2C, re2c, re2c, [exit 0;]) - +PHP_PROG_RE2C AC_PROG_RANLIB AC_PROG_LN_S AC_PROG_AWK diff --git a/scripts/phpize.m4 b/scripts/phpize.m4 index 388cb8bb6b..8dd3d0ba67 100644 --- a/scripts/phpize.m4 +++ b/scripts/phpize.m4 @@ -54,6 +54,7 @@ PHP_BUILD_SHARED AC_PREFIX_DEFAULT() +PHP_PROG_RE2C AC_PROG_AWK sinclude(config.m4)