summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-01 21:36:52 +0000
committerSascha Schumann <sas@php.net>2000-05-01 21:36:52 +0000
commit358bdc88321b671d08fb34b2db535253e31a6f0c (patch)
tree069181d64e185e60d307227ae5b8e93177d844c0
parent1e3d94b70b276fdb9b6079d0d86a346f19c67c8f (diff)
downloadphp-git-358bdc88321b671d08fb34b2db535253e31a6f0c.tar.gz
Make posix module buildable as shared module
-rw-r--r--ext/posix/Makefile.in2
-rw-r--r--ext/posix/config.m413
-rw-r--r--ext/posix/posix.c2
3 files changed, 7 insertions, 10 deletions
diff --git a/ext/posix/Makefile.in b/ext/posix/Makefile.in
index 82f169b2d0..4a0266354b 100644
--- a/ext/posix/Makefile.in
+++ b/ext/posix/Makefile.in
@@ -1,5 +1,7 @@
LTLIBRARY_NAME = libposix.la
LTLIBRARY_SOURCES = posix.c
+LTLIBRARY_SHARED_NAME = posix.la
include $(top_srcdir)/build/dynlib.mk
+
diff --git a/ext/posix/config.m4 b/ext/posix/config.m4
index 1d54a9a71a..cc17d0329f 100644
--- a/ext/posix/config.m4
+++ b/ext/posix/config.m4
@@ -2,17 +2,12 @@ dnl $Id$
dnl config.m4 for extension posix
dnl don't forget to call PHP_EXTENSION(posix)
-AC_ARG_ENABLE(posix,
-[ --disable-posix Disable POSIX-like functions],[
- PHP_POSIX=$enableval
-],[
- PHP_POSIX=yes
-])
-AC_MSG_CHECKING(whether to include POSIX-like functions)
-AC_MSG_RESULT($PHP_POSIX)
+
+PHP_ARG_ENABLE(posix,whether to include POSIX-like functions,
+[ --disable-posix Disable POSIX-like functions], yes)
if test "$PHP_POSIX" = "yes"; then
AC_DEFINE(HAVE_POSIX, 1, [whether to include POSIX-like functions])
- PHP_EXTENSION(posix)
+ PHP_EXTENSION(posix, $ext_shared)
fi
diff --git a/ext/posix/posix.c b/ext/posix/posix.c
index ca637f5732..21221c6184 100644
--- a/ext/posix/posix.c
+++ b/ext/posix/posix.c
@@ -130,7 +130,7 @@ zend_module_entry posix_module_entry = {
};
#ifdef COMPILE_DL
-DLEXPORT zend_module_entry *get_module(void) { return &posix__module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &posix_module_entry; }
#endif
static PHP_MINFO_FUNCTION(posix)