cvs: /php4/ext/yp Makefile.in config.m4 yp.c

From: Date: Tue, 02 May 2000 01:21:27 +0000
Subject: cvs: /php4/ext/yp Makefile.in config.m4 yp.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-14302@lists.php.net to get a copy of this message
sas Tue May 2 03:21:27 2000 EDT Modified files: /php4/ext/yp Makefile.in config.m4 yp.c Log: Make yp buildable as shared module Index: php4/ext/yp/Makefile.in diff -u php4/ext/yp/Makefile.in:1.6 php4/ext/yp/Makefile.in:1.7 --- php4/ext/yp/Makefile.in:1.6 Tue May 2 00:38:35 2000 +++ php4/ext/yp/Makefile.in Tue May 2 03:21:26 2000 @@ -1,5 +1,6 @@ LTLIBRARY_NAME = libyp.la LTLIBRARY_SOURCES = yp.c +LTLIBRARY_SHARED_NAME = yp.la include $(top_srcdir)/build/dynlib.mk Index: php4/ext/yp/config.m4 diff -u php4/ext/yp/config.m4:1.4 php4/ext/yp/config.m4:1.5 --- php4/ext/yp/config.m4:1.4 Thu Dec 30 05:52:14 1999 +++ php4/ext/yp/config.m4 Tue May 2 03:21:26 2000 @@ -1,29 +1,15 @@ -dnl $Id: config.m4,v 1.4 1999/12/30 04:52:14 sas Exp $ +dnl $Id: config.m4,v 1.5 2000/05/02 01:21:26 sas Exp $ dnl config.m4 for extension yp dnl don't forget to call PHP_EXTENSION(yp) -AC_MSG_CHECKING(whether to include YP support) -AC_ARG_WITH(yp, -[ --with-yp Include YP support], -[ - if test "$withval" = "yes"; then - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_YP,1,[ ]) - PHP_EXTENSION(yp) - if test uname = "SunOS";then - release=uname -r - case "$release" in - 5*) - AC_DEFINE(SOLARIS_YP,1,[ ]) - ;; - *) - ;; - esac - fi - else - AC_MSG_RESULT(no) - fi -],[ - AC_MSG_RESULT(no) -]) +PHP_ARG_ENABLE(yp,whether to include YP support, +[ --enable-yp Include YP support]) +if test "$PHP_YP" != "no"; then + AC_DEFINE(HAVE_YP,1,[ ]) + PHP_EXTENSION(yp, $ext_shared) + case "$host_alias" in + *solaris*) + AC_DEFINE(SOLARIS_YP,1,[ ]) ;; + esac +fi Index: php4/ext/yp/yp.c diff -u php4/ext/yp/yp.c:1.11 php4/ext/yp/yp.c:1.12 --- php4/ext/yp/yp.c:1.11 Wed Apr 5 23:43:03 2000 +++ php4/ext/yp/yp.c Tue May 2 03:21:26 2000 @@ -15,7 +15,7 @@ | Authors: Stephanie Wehner <_@r4k.net> | +----------------------------------------------------------------------+ */ -/* $Id: yp.c,v 1.11 2000/04/05 21:43:03 cmv Exp $ */ +/* $Id: yp.c,v 1.12 2000/05/02 01:21:26 sas Exp $ */ #include "php.h" #include "ext/standard/info.h" @@ -46,6 +46,10 @@ PHP_MINFO(yp), STANDARD_MODULE_PROPERTIES }; + +#ifdef COMPILE_DL_YP +ZEND_GET_MODULE(yp) +#endif /* {{{ proto string yp_get_default_domain(void) Returns the domain or false */

« previous php.version4 (#14302) next »