Make calendar buildable as shared module

This commit is contained in:
Sascha Schumann 2000-05-02 02:02:05 +00:00
parent 095e13632c
commit 4f5717d0a0
3 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
LTLIBRARY_NAME = libcalendar.la
LTLIBRARY_SOURCES = calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c
LTLIBRARY_SHARED_NAME = calendar.la
include $(top_srcdir)/build/dynlib.mk

View File

@ -53,6 +53,10 @@ zend_module_entry calendar_module_entry = {
STANDARD_MODULE_PROPERTIES,
};
#ifdef COMPILE_DL_CALENDAR
ZEND_GET_MODULE(calendar)
#endif
PHP_MINIT_FUNCTION(calendar)
{
/*

View File

@ -5,5 +5,5 @@ PHP_ARG_ENABLE(calendar,whether to enable calendar conversion support,
if test "$PHP_CALENDAR" = "yes"; then
AC_DEFINE(HAVE_CALENDAR,1,[ ])
PHP_EXTENSION(calendar)
PHP_EXTENSION(calendar, $ext_shared)
fi