summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-08-29 05:02:37 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-08-29 21:31:55 +0200
commitef12e9621517ba33f11c6983c607fae56cefc54a (patch)
tree396552b19916a610b8983872a81edfbc762e5274
parentcbc785dc8c89a5ff085909e555d677d4d8d7c9a1 (diff)
downloadphp-git-ef12e9621517ba33f11c6983c607fae56cefc54a.tar.gz
Remove AC_FUNC_VPRINTF
Autoconf 2.59d (released in 2006) 1 started promoting several macros as not relevant for newer systems anymore, including the AC_FUNC_VPRINTF. This macro checks for presence of the vprint function otherwise checks for presence of the _doprnt function. This check was relevant on very old systems and today can be omitted since it should be well supported by now. [2] Also PHP doesn't use the HAVE_VPRINTF or HAVE_DOPRNT symbols. 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
-rw-r--r--UPGRADING.INTERNALS2
-rw-r--r--Zend/Zend.m41
-rw-r--r--configure.ac1
-rw-r--r--win32/build/config.w32.h.in1
4 files changed, 2 insertions, 3 deletions
diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS
index a7399d16d4..af5a36b193 100644
--- a/UPGRADING.INTERNALS
+++ b/UPGRADING.INTERNALS
@@ -29,6 +29,8 @@ PHP 7.4 INTERNALS UPGRADE NOTES
a. Unix build system changes
- configure --help now also outputs --program-suffix and --program-prefix
information by using the Autoconf AC_ARG_PROGRAM macro.
+ - Obsolescent macro AC_FUNC_VPRINTF has been removed and the HAVE_VPRINTF
+ symbol is no longer defined since it is not needed on current systems.
b. Windows build system changes
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4
index 8d5cfe5372..5dadb84d39 100644
--- a/Zend/Zend.m4
+++ b/Zend/Zend.m4
@@ -91,7 +91,6 @@ LIBZEND_CHECK_INT_TYPE(int32_t)
LIBZEND_CHECK_INT_TYPE(uint32_t)
dnl Checks for library functions.
-AC_FUNC_VPRINTF
AC_FUNC_MEMCMP
AC_FUNC_ALLOCA
AC_CHECK_FUNCS(memcpy strdup getpid kill strtod strtol finite fpclass sigsetjmp)
diff --git a/configure.ac b/configure.ac
index b8350feb60..4758c9289a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -596,7 +596,6 @@ AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support,
dnl Checks for library functions.
dnl -------------------------------------------------------------------------
-AC_FUNC_VPRINTF
AC_CHECK_FUNCS(
alphasort \
asctime_r \
diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in
index 74342099c3..92d27dde9f 100644
--- a/win32/build/config.w32.h.in
+++ b/win32/build/config.w32.h.in
@@ -70,7 +70,6 @@
#undef HAVE_STRUCT_STAT_ST_BLOCKS
#define HAVE_STRUCT_STAT_ST_RDEV 1
#define HAVE_UTIME_NULL 1
-#define HAVE_VPRINTF 1
#define STDC_HEADERS 1
#define REGEX 1
#define HSREGEX 1