]> granicus.if.org Git - php/commitdiff
* create Makefiles for ext, pcrelib, sapi/*
authorSascha Schumann <sas@php.net>
Wed, 29 Sep 1999 22:18:43 +0000 (22:18 +0000)
committerSascha Schumann <sas@php.net>
Wed, 29 Sep 1999 22:18:43 +0000 (22:18 +0000)
    * copy files for Apache from $(srcdir)

configure.in
ext/pcre/config.m4
ext/pcre/config0.m4
sapi/apache/config.m4

index c9b3f100f37cd0f0fb7d74a06db06cc7d11eea0a..9f4883bf39552e98b3c06e0973cb2bf44b7eb783 100644 (file)
@@ -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
index 7c01193fdcd51a4e160d2a11f5aa24448399ff83..2480ff7e6aaccac8784dd9d0719383cf1749f107 100644 (file)
@@ -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)
index 7c01193fdcd51a4e160d2a11f5aa24448399ff83..2480ff7e6aaccac8784dd9d0719383cf1749f107 100644 (file)
@@ -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)
index 7489f25fd60dba136477bd2b77e1610d13aa9618..4265f7f35c675898e25ae7d8089bd779041b1db0 100644 (file)
@@ -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: