config.m4 639 B

12345678910111213141516171819202122232425
  1. PHP_ARG_ENABLE([sysvsem],
  2. [whether to enable System V semaphore support],
  3. [AS_HELP_STRING([--enable-sysvsem],
  4. [Enable System V semaphore support])])
  5. if test "$PHP_SYSVSEM" != "no"; then
  6. PHP_NEW_EXTENSION(sysvsem, sysvsem.c, $ext_shared)
  7. AC_DEFINE(HAVE_SYSVSEM, 1, [ ])
  8. AC_CACHE_CHECK(for union semun,php_cv_semun,
  9. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  10. #include <sys/types.h>
  11. #include <sys/ipc.h>
  12. #include <sys/sem.h>
  13. ]], [[union semun x;]])],[
  14. php_cv_semun=yes
  15. ],[
  16. php_cv_semun=no
  17. ])
  18. )
  19. if test "$php_cv_semun" = "yes"; then
  20. AC_DEFINE(HAVE_SEMUN, 1, [ ])
  21. else
  22. AC_DEFINE(HAVE_SEMUN, 0, [ ])
  23. fi
  24. fi