com php-src: Remove AC_C_CONST: ext/mbstring/config.m 4 ext/mbstring/libmbfl/config.h.in ext/xmlrpc/libxmlr pc/acinclude.m4
| From: | Peter Kokot | Date: | Sun, 02 Sep 2018 16:55:03 +0000 |
| Subject: | com php-src: Remove AC_C_CONST: ext/mbstring/config.m 4 ext/mbstring/libmbfl/config.h.in ext/xmlrpc/libxmlr pc/acinclude.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102959@lists.php.net to get a copy of this message | ||
Commit: 8e230d364d9d86b7b4d1eec1cbc2a26d843393be
Author: Peter Kokot <peterkokot@gmail.com> Sat, 1 Sep 2018 04:18:46 +0200
Parents: 217159d57a083908823b6d9e356ccde14abf37dc
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8e230d364d9d86b7b4d1eec1cbc2a26d843393be
Log:
Remove AC_C_CONST
Autoconf 2.59d (released in 2006) [1] started promoting several macros
as not relevant for newer systems, including the
AC_C_CONST.
The const keyword is used in C since C89. On old systems some compilers
lacked the const and this macro defined it to be empty. This check was
relevant on systems with compilers before C89 and on current systems it
can be omitted. [2]
PHP also requires at least C89 so const is always available.
Refs:
[1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
[2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
Changed paths:
M ext/mbstring/config.m4
M ext/mbstring/libmbfl/config.h.in
M ext/xmlrpc/libxmlrpc/acinclude.m4
Diff:
diff --git a/ext/mbstring/config.m4 b/ext/mbstring/config.m4
index b2d901a..b5503f3 100644
--- a/ext/mbstring/config.m4
+++ b/ext/mbstring/config.m4
@@ -98,7 +98,6 @@ int main() { return foo(10, "", 3.14); }
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(short, 2)
AC_CHECK_SIZEOF(long, 4)
- AC_C_CONST
AC_HEADER_TIME
AC_FUNC_ALLOCA
AC_FUNC_MEMCMP
diff --git a/ext/mbstring/libmbfl/config.h.in b/ext/mbstring/libmbfl/config.h.in
index bded33a..867df52 100644
--- a/ext/mbstring/libmbfl/config.h.in
+++ b/ext/mbstring/libmbfl/config.h.in
@@ -81,9 +81,6 @@
/* Version number of package */
#undef VERSION
-/* Define to empty if `const' does not conform to ANSI C. */
-#undef const
-
/* Define to rpl_malloc if the replacement function should be used. */
#undef malloc
diff --git a/ext/xmlrpc/libxmlrpc/acinclude..m4 b/ext/xmlrpc/libxmlrpc/acinclude.m4
index 49b6090..77e372c 100644
--- a/ext/xmlrpc/libxmlrpc/acinclude.m4
+++ b/ext/xmlrpc/libxmlrpc/acinclude.m4
@@ -17,7 +17,6 @@ AC_CHECK_HEADERS(xmlparse.h xmltok.h stdlib.h strings.h string.h)
AC_DEFUN([XMLRPC_TYPE_CHECKS],[
-AC_REQUIRE([AC_C_CONST])
AC_REQUIRE([AC_C_INLINE])
AC_CHECK_SIZEOF(char, 1)