2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
1999-04-22 02:48:28 +00:00
|
|
|
dnl $Id$
|
2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
1999-04-22 02:48:28 +00:00
|
|
|
|
2000-05-02 02:00:36 +00:00
|
|
|
PHP_ARG_ENABLE(sysvsem,whether to enable System V semaphore support,
|
2005-05-29 23:17:16 +00:00
|
|
|
[ --enable-sysvsem Enable System V semaphore support])
|
2000-05-02 02:00:36 +00:00
|
|
|
|
|
|
|
if test "$PHP_SYSVSEM" != "no"; then
|
2002-03-12 16:44:00 +00:00
|
|
|
PHP_NEW_EXTENSION(sysvsem, sysvsem.c, $ext_shared)
|
2000-05-02 02:00:36 +00:00
|
|
|
AC_DEFINE(HAVE_SYSVSEM, 1, [ ])
|
|
|
|
AC_CACHE_CHECK(for union semun,php_cv_semun,
|
|
|
|
AC_TRY_COMPILE([
|
1999-04-22 02:48:28 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/ipc.h>
|
|
|
|
#include <sys/sem.h>
|
2000-05-02 02:00:36 +00:00
|
|
|
],
|
|
|
|
[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
|