~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/sysvsem/config.m4

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl
 
2
dnl $Id: config.m4,v 1.5 2002/03/12 16:36:40 sas Exp $
 
3
dnl
 
4
 
 
5
PHP_ARG_ENABLE(sysvsem,whether to enable System V semaphore support,
 
6
[  --enable-sysvsem        Enable System V semaphore support.])
 
7
 
 
8
if test "$PHP_SYSVSEM" != "no"; then
 
9
 PHP_NEW_EXTENSION(sysvsem, sysvsem.c, $ext_shared)
 
10
 AC_DEFINE(HAVE_SYSVSEM, 1, [ ])
 
11
 AC_CACHE_CHECK(for union semun,php_cv_semun,
 
12
   AC_TRY_COMPILE([
 
13
#include <sys/types.h>
 
14
#include <sys/ipc.h>
 
15
#include <sys/sem.h>
 
16
   ],
 
17
   [union semun x;],
 
18
   [
 
19
     php_cv_semun=yes
 
20
   ],[
 
21
     php_cv_semun=no
 
22
   ])
 
23
 )
 
24
 if test "$php_cv_semun" = "yes"; then
 
25
   AC_DEFINE(HAVE_SEMUN, 1, [ ])
 
26
 else
 
27
   AC_DEFINE(HAVE_SEMUN, 0, [ ])
 
28
 fi
 
29
fi