Browse Source

* create Makefiles for ext, pcrelib, sapi/*

* copy files for Apache from $(srcdir)
experimetnal/RETURN_REF_PATCH
Sascha Schumann 27 years ago
parent
commit
cf4afd61f0
  1. 10
      configure.in
  2. 2
      ext/pcre/config.m4
  3. 2
      ext/pcre/config0.m4
  4. 11
      sapi/apache/config.m4

10
configure.in

@ -706,6 +706,11 @@ AC_SUBST(EXTRA_LIBS)
# reading config stubs
esyscmd(./scripts/config-stubs ext)
dnl if it's still the default choice, enable this implicitly
if test "$PHP_SAPI" = "cgi"; then
PHP_OUTPUT(sapi/cgi/Makefile)
fi
divert(4)
dnl If we are using gcc and the user has not specified CFLAGS, add -O2.
@ -741,11 +746,8 @@ AC_SUBST(PHP_LIBS)
AC_SUBST(PHP_SAPI)
AC_SUBST(SAPI_TARGET)
test -d sapi || mkdir sapi
test -d ext || mkdir ext
#libphp4.module
AC_OUTPUT([Makefile php4.spec $PHP_OUTPUT_FILES
AC_OUTPUT([Makefile php4.spec ext/Makefile sapi/Makefile $PHP_OUTPUT_FILES
scripts/mkextlib regex/Makefile build-defs.h], [], [
if test ! -f $srcdir/ext/bcmath/number.c; then

2
ext/pcre/config.m4

@ -21,6 +21,7 @@ AC_ARG_WITH(pcre-regex,
AC_DEFINE(HAVE_BUNDLED_PCRE, 1)
AC_MSG_RESULT(yes)
PHP_EXTENSION(pcre)
PHP_OUTPUT(ext/pcre/pcrelib/Makefile)
;;
*)
if test -f $withval/pcre.h ; then
@ -55,5 +56,6 @@ AC_ARG_WITH(pcre-regex,
AC_DEFINE(HAVE_BUNDLED_PCRE, 1)
AC_MSG_RESULT(yes)
PHP_EXTENSION(pcre)
PHP_OUTPUT(ext/pcre/pcrelib/Makefile)
])
AC_SUBST(PCRE_SUBDIR)

2
ext/pcre/config0.m4

@ -21,6 +21,7 @@ AC_ARG_WITH(pcre-regex,
AC_DEFINE(HAVE_BUNDLED_PCRE, 1)
AC_MSG_RESULT(yes)
PHP_EXTENSION(pcre)
PHP_OUTPUT(ext/pcre/pcrelib/Makefile)
;;
*)
if test -f $withval/pcre.h ; then
@ -55,5 +56,6 @@ AC_ARG_WITH(pcre-regex,
AC_DEFINE(HAVE_BUNDLED_PCRE, 1)
AC_MSG_RESULT(yes)
PHP_EXTENSION(pcre)
PHP_OUTPUT(ext/pcre/pcrelib/Makefile)
])
AC_SUBST(PCRE_SUBDIR)

11
sapi/apache/config.m4

@ -29,12 +29,12 @@ AC_ARG_WITH(apxs,
AC_DEFINE(HAVE_AP_CONFIG_H)
AC_DEFINE(HAVE_AP_COMPAT_H)
AC_MSG_RESULT(yes)
PHP_OUTPUT(sapi/apache/Makefile)
],[
AC_MSG_RESULT(no)
])
APACHE_INSTALL_FILES="sapi/apache/mod_php4.* sapi/apache/libphp4.module"
PHP_OUTPUT(sapi/apache/libphp4.module)
APACHE_INSTALL_FILES="\$(srcdir)/sapi/apache/mod_php4.* sapi/apache/libphp4.module"
if test "$SAPI_TARGET" != "libmodphp4-so.a"; then
if test "$SAPI_TARGET" != "libphp4.so"; then
@ -48,6 +48,8 @@ AC_ARG_WITH(apache,
withval=/usr/local/apache
fi
if test "$withval" != "no"; then
APACHE_MODULE=yes
PHP_OUTPUT(sapi/apache/Makefile)
AC_EXPAND_PATH($withval, withval)
# For Apache 1.2.x
if test -f $withval/src/httpd.h; then
@ -182,6 +184,11 @@ AC_ARG_WITH(mod_charset,
AC_MSG_RESULT(no)
])
if test -n "$APACHE_MODULE"; then
PHP_OUTPUT(sapi/apache/libphp4.module)
fi
dnl ## Local Variables:
dnl ## tab-width: 4
dnl ## End:
Loading…
Cancel
Save