php-src/ext/sysvsem/config.m4
Peter Kokot 3693ad2d93
Refactor union semun in ext/sysvsem (#13473)
The union semun is always defined in php-src code. Current systems
require user to define it manually as done in the ext/sysvsem/sysvsem.c.
The conditional checks for HAVE_SEMUN were unused. The PHP 3.0.12 AIX
bug bugs.php.net/2149 was fixed by the removal of __GNU_LIBRARY__ check,
so this now further simplifies the code. The Autoconf AC_CHECK_TYPES
checks if system by any chance has the union semun, and by default
defines the HAVE_UNION_SEMUN.
2024-02-22 15:48:12 +01:00

13 lines
394 B
Plaintext

PHP_ARG_ENABLE([sysvsem],
[whether to enable System V semaphore support],
[AS_HELP_STRING([--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_CHECK_TYPES([union semun],,,[#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>])
fi