- SPL cannot be built shared, so no need to check
authorMichael Wallner <mike@php.net>
Wed, 7 Jun 2006 21:05:34 +0000 (21:05 +0000)
committerMichael Wallner <mike@php.net>
Wed, 7 Jun 2006 21:05:34 +0000 (21:05 +0000)
- fix grepping for shared extensions
- re-add config.m4 stub for phpize/pear

config.m4 [new file with mode: 0644]
config9.m4
package2.xml

diff --git a/config.m4 b/config.m4
new file mode 100644 (file)
index 0000000..4b14343
--- /dev/null
+++ b/config.m4
@@ -0,0 +1,5 @@
+dnl phpize stub of config9.m4 for pecl/http
+dnl $Id$
+dnl vim: noet ts=1 sw=1
+
+sinclude(config9.m4)
index 648cc5b0972576250a10a509686efa6bcad6b16d..bba07d02caa7020c6fd8833334d73b952ccff45f 100644 (file)
@@ -13,9 +13,9 @@ PHP_ARG_WITH([http-zlib-compression], [whether to enable zlib encodings support]
 PHP_ARG_WITH([http-magic-mime], [whether to enable response content type guessing],
 [  --with-http-magic-mime[=LIBMAGICDIR]
                            HTTP: with magic mime response content type guessing], "no", "no")
-PHP_ARG_WITH([http-shared-deps], [whether to depend on shared extensions],
-[  --with-http-shared-deps HTTP: disable to not depend on shared extensions
-                           like SPL, hash, iconv and session], $PHP_HTTP, $PHP_HTTP)
+PHP_ARG_WITH([http-shared-deps], [whether to depend on extensions which have been built shared],
+[  --with-http-shared-deps HTTP: disable to not depend on extensions like hash,
+                                 iconv and session (when built shared)], $PHP_HTTP, $PHP_HTTP)
 
 if test "$PHP_HTTP" != "no"; then
 
@@ -72,7 +72,7 @@ if test "$PHP_HTTP" != "no"; then
                
                AC_MSG_CHECKING([for ext/$extname support])
                if test -x "$PHP_EXECUTABLE"; then
-                       if test "`$PHP_EXECUTABLE -m | $EGREP '^$extname$'`" = "$extname"; then
+                       if test "`$PHP_EXECUTABLE -m | $EGREP ^$extname\$`" = "$extname"; then
                                [HTTP_HAVE_EXT_]translit($1,a-z_-,A-Z__)=1
                                AC_MSG_RESULT([yes])
                                $2
@@ -284,11 +284,6 @@ dnl SESSION
 dnl ----
        HTTP_HAVE_PHP_EXT([session])
 
-dnl ----
-dnl SPL
-dnl ----
-       HTTP_HAVE_PHP_EXT([spl])
-
 dnl ----
 dnl DONE
 dnl ----
@@ -308,7 +303,6 @@ dnl ----
        HTTP_SHARED_DEP([hash])
        HTTP_SHARED_DEP([iconv])
        HTTP_SHARED_DEP([session])
-       HTTP_SHARED_DEP([spl])
        
        PHP_ADD_BUILD_DIR($ext_builddir/phpstr, 1)
        PHP_SUBST([HTTP_SHARED_LIBADD])
index 08348fffd711dd0b85ff8b8b6d84dbd2d5c43b73..f3552fa85253b8dc4894c2a2b27aed56c31de11a 100644 (file)
@@ -30,7 +30,7 @@ support. Parallel requests are available for PHP 5 and greater.
  </lead>
  <date>2006-00-00</date>
  <version>
-  <release>1.0.0-dev</release>
+  <release>1.0.0dev</release>
   <api>1.0.0</api>
  </version>
  <stability>
@@ -57,6 +57,7 @@ support. Parallel requests are available for PHP 5 and greater.
    
    <file role="src" name="http.dsp"/>
    <file role="src" name="config.w32"/>
+   <file role="src" name="config.m4"/>
    <file role="src" name="config9.m4"/>
    <file role="src" name="Makefile.frag"/>
    
@@ -290,14 +291,19 @@ support. Parallel requests are available for PHP 5 and greater.
    prompt="whether to enable cURL HTTP requests; specify libcurl directory"
    default="yes"
   />
+  <configureoption
+   name="with-http-zlib-compression"
+   prompt="whether to enable support for gzencoded/deflated message bodies; specify zlib directory"
+   default="yes"
+  />
   <configureoption
    name="with-http-magic-mime"
    prompt="whether to enable response content type guessing; specify libmagic directory"
    default="no"
   />
   <configureoption
-   name="with-http-zlib-compression"
-   prompt="whether to enable support for gzencoded/deflated message bodies; specify zlib directory"
+   name="with-http-shared-deps"
+   prompt="whether to depend on extensions which have been built shared"
    default="yes"
   />
   <filelist>