]> granicus.if.org Git - php/commit
Remove AC_C_CONST
authorPeter Kokot <peterkokot@gmail.com>
Sat, 1 Sep 2018 02:18:46 +0000 (04:18 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Sun, 2 Sep 2018 16:55:03 +0000 (18:55 +0200)
commit8e230d364d9d86b7b4d1eec1cbc2a26d843393be
tree0d86c1ea19161ed8b205534b001b8f684f02110a
parent217159d57a083908823b6d9e356ccde14abf37dc
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
ext/mbstring/config.m4
ext/mbstring/libmbfl/config.h.in
ext/xmlrpc/libxmlrpc/acinclude.m4