Make sysvshm buildable as shared module

This commit is contained in:
Sascha Schumann 2000-05-02 02:00:51 +00:00
parent 8d2d181e69
commit a4d401a67d
2 changed files with 8 additions and 15 deletions

View File

@ -1,5 +1,6 @@
LTLIBRARY_NAME = libsysvshm.la
LTLIBRARY_SOURCES = sysvshm.c
LTLIBRARY_SHARED_NAME = sysvshm.la
include $(top_srcdir)/build/dynlib.mk

View File

@ -1,17 +1,9 @@
dnl $Id$
AC_MSG_CHECKING(whether to enable System V shared memory support)
AC_ARG_ENABLE(sysvshm,
[ --enable-sysvshm Enable the System V shared memory support],[
if test "$enableval" = "yes"; then
AC_DEFINE(HAVE_SYSVSHM, 1, [ ])
AC_MSG_RESULT(yes)
PHP_EXTENSION(sysvshm)
else
AC_DEFINE(HAVE_SYSVSHM, 0, [ ])
AC_MSG_RESULT(no)
fi
],[
AC_DEFINE(HAVE_SYSVSHM, 0, [ ])
AC_MSG_RESULT(no)
])
PHP_ARG_ENABLE(sysvshm,whether to enable System V shared memory support,
[ --enable-sysvshm Enable the System V shared memory support])
if test "$PHP_SYSVSHM" != "no"; then
AC_DEFINE(HAVE_SYSVSHM, 1, [ ])
PHP_EXTENSION(sysvshm, $ext_shared)
fi