mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00

Autoconf 2.50 released in 2001 made several macros obsolete including the AC_TRY_RUN, AC_TRY_COMPILE and AC_TRY_LINK: http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2 These macros should be replaced with the current AC_FOO_IFELSE instead: - AC_TRY_RUN with AC_RUN_IFELSE and AC_LANG_SOURCE - AC_TRY_LINK with AC_LINK_IFELSE and AC_LANG_PROGRAM - AC_TRY_COMPILE with AC_COMPILE_IFELSE and AC_LANG_PROGRAM PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require 2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which are all greater than above mentioned 2.50 version therefore systems should be well supported by now. This patch was created with the help of autoupdate script: autoupdate <file> Reference docs: - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html - https://www.gnu.org/software/autoconf/manual/autoconf-2.59/autoconf.pdf
25 lines
651 B
Text
25 lines
651 B
Text
dnl config.m4 for extension sysvsem
|
|
|
|
PHP_ARG_ENABLE(sysvsem,whether to enable System V semaphore support,
|
|
[ --enable-sysvsem Enable System V semaphore support])
|
|
|
|
if test "$PHP_SYSVSEM" != "no"; then
|
|
PHP_NEW_EXTENSION(sysvsem, sysvsem.c, $ext_shared)
|
|
AC_DEFINE(HAVE_SYSVSEM, 1, [ ])
|
|
AC_CACHE_CHECK(for union semun,php_cv_semun,
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
|
#include <sys/types.h>
|
|
#include <sys/ipc.h>
|
|
#include <sys/sem.h>
|
|
]], [[union semun x;]])],[
|
|
php_cv_semun=yes
|
|
],[
|
|
php_cv_semun=no
|
|
])
|
|
)
|
|
if test "$php_cv_semun" = "yes"; then
|
|
AC_DEFINE(HAVE_SEMUN, 1, [ ])
|
|
else
|
|
AC_DEFINE(HAVE_SEMUN, 0, [ ])
|
|
fi
|
|
fi
|