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 AC_CACHE_CHECK(for union semun,php_cv_semun, 10 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 11#include <sys/types.h> 12#include <sys/ipc.h> 13#include <sys/sem.h> 14 ]], [[union semun x;]])],[ 15 php_cv_semun=yes 16 ],[ 17 php_cv_semun=no 18 ]) 19 ) 20 if test "$php_cv_semun" = "yes"; then 21 AC_DEFINE(HAVE_SEMUN, 1, [ ]) 22 else 23 AC_DEFINE(HAVE_SEMUN, 0, [ ]) 24 fi 25fi 26