sas             Sat Aug 30 03:29:56 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src    configure.in 
    /php-src/ext/ircg   Makefile.frag 
    /php-src/ext/standard       Makefile.frag 
  Log:
  Never overwrite .c files when re2c does not exist.
  
  
Index: php-src/configure.in
diff -u php-src/configure.in:1.396.2.72 php-src/configure.in:1.396.2.73
--- php-src/configure.in:1.396.2.72     Wed Aug 27 13:57:28 2003
+++ php-src/configure.in        Sat Aug 30 03:29:54 2003
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.396.2.72 2003/08/27 17:57:28 sniper Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.396.2.73 2003/08/30 07:29:54 sas Exp $ -*- sh -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -127,6 +127,8 @@
 dnl check for -R, etc. switch
 PHP_RUNPATH_SWITCH
 
+AC_CHECK_PROG(RE2C, re2c, re2c, [exit 0;])
+
 AC_PROG_RANLIB
 AC_PROG_LN_S
 AC_PROG_AWK
@@ -1069,6 +1071,7 @@
 PHP_SUBST(PHP_SAPI)
 PHP_SUBST_OLD(PHP_VERSION)
 PHP_SUBST(PROG_SENDMAIL)
+PHP_SUBST(RE2C)
 PHP_SUBST(SHELL)
 PHP_SUBST(SHARED_LIBTOOL)
 PHP_SUBST(TSRM_DIR)
Index: php-src/ext/ircg/Makefile.frag
diff -u php-src/ext/ircg/Makefile.frag:1.1.4.1 php-src/ext/ircg/Makefile.frag:1.1.4.2
--- php-src/ext/ircg/Makefile.frag:1.1.4.1      Tue Jan 28 09:33:02 2003
+++ php-src/ext/ircg/Makefile.frag      Sat Aug 30 03:29:55 2003
@@ -1,2 +1,2 @@
 $(srcdir)/ircg_scanner.c: $(srcdir)/ircg_scanner.re
-       re2c $(srcdir)/ircg_scanner.re > $@
+       $(RE2C) $(srcdir)/ircg_scanner.re > $@
Index: php-src/ext/standard/Makefile.frag
diff -u php-src/ext/standard/Makefile.frag:1.3 
php-src/ext/standard/Makefile.frag:1.3.4.1
--- php-src/ext/standard/Makefile.frag:1.3      Thu Jun 27 06:01:06 2002
+++ php-src/ext/standard/Makefile.frag  Sat Aug 30 03:29:55 2003
@@ -2,9 +2,9 @@
 $(srcdir)/parsedate.c: $(srcdir)/parsedate.y
 
 $(srcdir)/var_unserializer.c: $(srcdir)/var_unserializer.re
-       re2c -b $(srcdir)/var_unserializer.re > $@
+       $(RE2C) -b $(srcdir)/var_unserializer.re > $@
 
 $(srcdir)/url_scanner_ex.c: $(srcdir)/url_scanner_ex.re
-       re2c -b $(srcdir)/url_scanner_ex.re > $@
+       $(RE2C) -b $(srcdir)/url_scanner_ex.re > $@
 
 $(srcdir)/info.c: $(builddir)/../../main/build-defs.h

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to