This patch makes configure.in and */config.m4 compatible with autoconf-2.52
Patch created around php-4.1.2 tarball.
--- configure.in- Wed Feb 27 11:06:31 2002
+++ configure.in Wed Apr 10 13:11:25 2002
@@ -122,6 +122,10 @@
AC_PROG_LEX
if test -n "$LEX"; then
AC_DECL_YYTEXT
+ true # AC_DECL_YYTEXT does nothing and is empty under autoconf-2.52.
+ # Therefore need yet another instruction beside AC_DECL_YYTEXT
+ # unless you don't want to see syntax error when configure
+ # script runs.
fi
dnl ## Make flex scanners use const if they can, even if __STDC__ is not
@@ -227,7 +231,7 @@
unset ac_cv_func_yp_get_default_domain
AC_CHECK_FUNC(yp_get_default_domain,
- [php_no_nsl_checks=yes],[ ])
+ [php_no_nsl_checks=yes],[])
unset ac_cv_func_yp_get_default_domain
if test "$php_no_nsl_checks" != "yes"; then
--- ext/imap/config.m4- Tue Aug 7 19:18:04 2001
+++ ext/imap/config.m4 Wed Apr 10 13:25:57 2002
@@ -133,7 +133,7 @@
#endif
],[
AC_DEFINE(HAVE_IMAP2001, 1, [ ])
- ],[ ])
+ ],[])
CPPFLAGS=$old_CPPFLAGS
AC_CHECK_LIB(pam, pam_start)
--- ext/mcrypt/config.m4- Sat May 12 12:13:39 2001
+++ ext/mcrypt/config.m4 Wed Apr 10 13:40:16 2002
@@ -26,7 +26,7 @@
[
AC_DEFINE(HAVE_LIBMCRYPT22,1,[ ])
],[
- AC_MSG_ERROR(Sorry, I was not able to diagnose which libmcrypt version you have
installed.)
+ AC_MSG_ERROR([Sorry, I was not able to diagnose which libmcrypt version you
+have installed.])
],[
-L$MCRYPT_DIR/lib
])
--- ext/pcntl/config.m4- Thu Jul 5 00:51:22 2001
+++ ext/pcntl/config.m4 Wed Apr 10 13:41:58 2002
@@ -8,7 +8,7 @@
if test "$PHP_PCNTL" != "no"; then
if test "$PHP_SAPI" != "cgi"; then
- AC_MSG_ERROR(pcntl currently only accepts the CGI SAPI, this will save you from
harming your webserver.)
+ AC_MSG_ERROR([pcntl currently only accepts the CGI SAPI, this will save you
+from harming your webserver.])
fi
AC_CHECK_FUNCS(fork, [ AC_DEFINE(HAVE_FORK,1,[ ]) ], [ AC_MSG_ERROR(pcntl: fork()
not supported by this platform) ])
--- ext/pdf/config.m4- Thu Jun 14 07:35:10 2001
+++ ext/pdf/config.m4 Wed Apr 10 13:38:04 2002
@@ -18,7 +18,7 @@
AC_CHECK_LIB(pdf, PDF_show_boxed, [
AC_DEFINE(HAVE_PDFLIB,1,[ ])
],[
- AC_MSG_ERROR(pdflib extension requires at least pdflib 3.x. You may also need
libtiff and libjpeg. If so, use the options --with-tiff-dir=<DIR> and
--with-jpeg-dir=<DIR>)
+ AC_MSG_ERROR([pdflib extension requires at least pdflib 3.x. You may also
+need libtiff and libjpeg. If so, use the options --with-tiff-dir=<DIR> and
+--with-jpeg-dir=<DIR>])
],[
-ltiff -ljpeg -lpng -lz
])
--- ext/xmlrpc/config.m4- Wed Oct 17 18:32:54 2001
+++ ext/xmlrpc/config.m4 Wed Apr 10 13:43:26 2002
@@ -41,7 +41,7 @@
fi
if test "$found_iconv" = "no"; then
- AC_MSG_ERROR(iconv not found, in order to build xmlrpc you need the iconv library)
+ AC_MSG_ERROR([iconv not found, in order to build xmlrpc you need the iconv
+library])
fi
fi
--- ext/xslt/config.m4- Fri Aug 17 19:42:57 2001
+++ ext/xslt/config.m4 Wed Apr 10 13:44:28 2002
@@ -77,7 +77,7 @@
fi
if test "$found_iconv" = "no"; then
- AC_MSG_ERROR(iconv not found, in order to build sablotron you need the iconv
library)
+ AC_MSG_ERROR([iconv not found, in order to build sablotron you need the iconv
+library])
fi
AC_DEFINE(HAVE_SABLOT_BACKEND, 1, [ ])
--
Andrew W. Nosenko ([EMAIL PROTECTED])
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php