php-src/sapi/isapi/config.m4

32 lines
878 B
Plaintext
Raw Normal View History

Generalized server-API build process on UNIX. Each SAPI implementation now has its own directory under sapi/, just like extensions have theirs under ext/. To make the final targets appear in the main dir, the top-level Makefile includes sapi/NN/Makefile.inc from the selected sapi backend. This is a plan Makefile stub without any autoconf substitutions. Each SAPI backend also has its own config.m4 like extensions (read at the end of diversion 2) and config.h.stub files. Each SAPI backend has to contain: config.m4: just like for extensions, this file contains autoconf/automake directives that end up in the configure script. The only difference is that the sapi config.m4 files are read in diversion (output block) 2 instead of 3. The sapi config.m4 files should set two variables: PHP_SAPI (which sapi backend to choose) and SAPI_TARGET (the name of the resulting library or program, previously BINNAME). If they are not specified, they will default to "cgi" and "php", respectively. Makefile.inc: has to exist, has to define "INSTALL_IT" to the command used to install the final target (or ":" for no operation). It also has to define a plain Makefile rule (without autoconf substitutions) to build $(SAPI_TARGET) Makefile.am: just what you think. Make sure your target is called "libphpsapi_NNN.a", where NNN is the value of PHP_SAPI. Some testing and fixing probably remains. To make everything hang together, I've done some ugly tricks that I can imagine causing some problems. I've built and run the CGI version and built the Apache DSO.
1999-09-27 16:34:28 +00:00
dnl ## $Id$ -*- sh -*-
1999-09-28 12:55:49 +00:00
dnl AC_MSG_CHECKING(for Zeus ISAPI support)
dnl AC_ARG_WITH(zeus,
dnl [ --with-zeus=DIR Build PHP as an ISAPI module for use with Zeus.],
dnl [
dnl if test "$withval" != "no"; then
dnl AC_MSG_RESULT(yes)
dnl if test "${enable_thread_safety}" != "yes"; then
dnl AC_MSG_ERROR(You must specify --enable-thread-safety to build as an ISAPI module)
dnl fi
dnl if test "$withval" = "yes"; then
dnl zeuspath=/usr/local/zeus # the default
dnl fi
dnl if ! test -f "$zeuspath/web/include/httpext.h"; then
dnl AC_MSG_ERROR(Unable to find httpext.h in $zeuspath/web/include)
dnl fi
dnl AC_DEFINE(WITH_ZEUS)
dnl AC_ADD_INCLUDE($zeuspath/web/include)
dnl PHP_SAPI=isapi
dnl PHP_BUILD_SHARED
1999-09-28 12:55:49 +00:00
dnl else
dnl AC_MSG_RESULT(no)
dnl fi
dnl ],[
dnl AC_MSG_RESULT(no)
dnl ])
Generalized server-API build process on UNIX. Each SAPI implementation now has its own directory under sapi/, just like extensions have theirs under ext/. To make the final targets appear in the main dir, the top-level Makefile includes sapi/NN/Makefile.inc from the selected sapi backend. This is a plan Makefile stub without any autoconf substitutions. Each SAPI backend also has its own config.m4 like extensions (read at the end of diversion 2) and config.h.stub files. Each SAPI backend has to contain: config.m4: just like for extensions, this file contains autoconf/automake directives that end up in the configure script. The only difference is that the sapi config.m4 files are read in diversion (output block) 2 instead of 3. The sapi config.m4 files should set two variables: PHP_SAPI (which sapi backend to choose) and SAPI_TARGET (the name of the resulting library or program, previously BINNAME). If they are not specified, they will default to "cgi" and "php", respectively. Makefile.inc: has to exist, has to define "INSTALL_IT" to the command used to install the final target (or ":" for no operation). It also has to define a plain Makefile rule (without autoconf substitutions) to build $(SAPI_TARGET) Makefile.am: just what you think. Make sure your target is called "libphpsapi_NNN.a", where NNN is the value of PHP_SAPI. Some testing and fixing probably remains. To make everything hang together, I've done some ugly tricks that I can imagine causing some problems. I've built and run the CGI version and built the Apache DSO.
1999-09-27 16:34:28 +00:00
dnl ## Local Variables:
dnl ## tab-width: 4
dnl ## End: