xref: /php-src/ext/sysvsem/config.m4 (revision bb35da33)
1PHP_ARG_ENABLE([sysvsem],
2  [whether to enable System V semaphore support],
3  [AS_HELP_STRING([--enable-sysvsem],
4    [Enable System V semaphore support])])
5
6if test "$PHP_SYSVSEM" != "no"; then
7  PHP_NEW_EXTENSION([sysvsem], [sysvsem.c], [$ext_shared])
8  AC_DEFINE([HAVE_SYSVSEM], [1],
9    [Define to 1 if the PHP extension 'sysvsem' is available.])
10  AC_CHECK_TYPES([union semun],,, [
11    #include <sys/types.h>
12    #include <sys/ipc.h>
13    #include <sys/sem.h>
14  ])
15fi
16