summaryrefslogtreecommitdiff
path: root/ext/sysvsem
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-12-30 04:07:46 +0000
committerSascha Schumann <sas@php.net>1999-12-30 04:07:46 +0000
commit2c99bef442d71a455628628e932daf26aaec8a46 (patch)
treef4a7ca3e976ff07d3d6a730bded4ed1598b6ff8d /ext/sysvsem
parente3af8ed3217b0a3bd46382e523bb12cfdc12e230 (diff)
downloadphp-git-2c99bef442d71a455628628e932daf26aaec8a46.tar.gz
Get rid of config.h.stub. Note that you should embed a comment about
what the respective define does into the AC_DEFINE macro. I.e. AC_DEFINE(HAVE_FOO, 1, [Whether you have FOO])
Diffstat (limited to 'ext/sysvsem')
-rw-r--r--ext/sysvsem/config.h.stub7
-rw-r--r--ext/sysvsem/config.m410
2 files changed, 5 insertions, 12 deletions
diff --git a/ext/sysvsem/config.h.stub b/ext/sysvsem/config.h.stub
deleted file mode 100644
index 09634a8cfd..0000000000
--- a/ext/sysvsem/config.h.stub
+++ /dev/null
@@ -1,7 +0,0 @@
-/* Define if you want System V semaphore support.
- */
-#define HAVE_SYSVSEM 0
-
-/* Define if you have union semun.
- */
-#define HAVE_SEMUN 0
diff --git a/ext/sysvsem/config.m4 b/ext/sysvsem/config.m4
index afdd602e30..c0b3b3c029 100644
--- a/ext/sysvsem/config.m4
+++ b/ext/sysvsem/config.m4
@@ -7,7 +7,7 @@ AC_ARG_ENABLE(sysvsem,
if test "$enableval" = "yes"; then
AC_MSG_RESULT(yes)
PHP_EXTENSION(sysvsem)
- AC_DEFINE(HAVE_SYSVSEM, 1)
+ AC_DEFINE(HAVE_SYSVSEM, 1, [ ])
AC_CACHE_CHECK(for union semun,php_cv_semun,
AC_TRY_COMPILE([
#include <sys/types.h>
@@ -22,16 +22,16 @@ AC_ARG_ENABLE(sysvsem,
])
)
if test $php_cv_semun = "yes"; then
- AC_DEFINE(HAVE_SEMUN, 1)
+ AC_DEFINE(HAVE_SEMUN, 1, [ ])
else
- AC_DEFINE(HAVE_SEMUN, 0)
+ AC_DEFINE(HAVE_SEMUN, 0, [ ])
fi
else
AC_MSG_RESULT(no)
- AC_DEFINE(HAVE_SYSVSEM, 0)
+ AC_DEFINE(HAVE_SYSVSEM, 0, [ ])
fi
],[
AC_MSG_RESULT(no)
- AC_DEFINE(HAVE_SYSVSEM, 0)
+ AC_DEFINE(HAVE_SYSVSEM, 0, [ ])
])