From: Michael Wallner Date: Thu, 3 Dec 2015 07:06:43 +0000 (+0100) Subject: fllowup on standards X-Git-Tag: RELEASE_3_0_0_RC1~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=105843f284e9fa1e5a827019458ba3b946f0967d;p=m6w6%2Fext-http fllowup on standards --- diff --git a/Makefile.frag b/Makefile.frag index 3ef9ecb..47f1879 100644 --- a/Makefile.frag +++ b/Makefile.frag @@ -13,4 +13,4 @@ http-build-headers: $(PHP_HTTP_HEADERS) .PHONY: http-clean-headers http-clean-headers: - -rm $(PHP_HTTP_HEADERS) + -rm -f $(PHP_HTTP_HEADERS) diff --git a/config9.m4 b/config9.m4 index dfad780..5c697d0 100644 --- a/config9.m4 +++ b/config9.m4 @@ -573,58 +573,32 @@ dnl ---- dnl ---- dnl DONE dnl ---- - PHP_ADD_INCLUDE(src) - PHP_ADD_BUILD_DIR(src) - PHP_HTTP_SOURCES="\ - src/php_http_buffer.c \ - src/php_http.c \ - src/php_http_client.c \ - src/php_http_client_curl.c \ - src/php_http_client_request.c \ - src/php_http_client_response.c \ - src/php_http_cookie.c \ - src/php_http_curl.c \ - src/php_http_encoding.c \ - src/php_http_env.c \ - src/php_http_env_request.c \ - src/php_http_env_response.c \ - src/php_http_etag.c \ - src/php_http_exception.c \ - src/php_http_filter.c \ - src/php_http_header_parser.c \ - src/php_http_header.c \ - src/php_http_info.c \ - src/php_http_message_body.c \ - src/php_http_message.c \ - src/php_http_message_parser.c \ - src/php_http_misc.c \ - src/php_http_negotiate.c \ - src/php_http_object.c \ - src/php_http_options.c \ - src/php_http_params.c \ - src/php_http_querystring.c \ - src/php_http_url.c \ - src/php_http_version.c \ - " - PHP_NEW_EXTENSION([http], $PHP_HTTP_SOURCES, $ext_shared) - - dnl shared extension deps + + PHP_SUBST([HTTP_SHARED_LIBADD]) + + PHP_HTTP_SRCDIR=PHP_EXT_SRCDIR(http) + PHP_HTTP_BUILDDIR=PHP_EXT_BUILDDIR(http) + + PHP_ADD_INCLUDE($PHP_HTTP_SRCDIR/src) + PHP_ADD_BUILD_DIR($PHP_HTTP_BUILDDIR/src) + + PHP_HTTP_HEADERS=`(cd $PHP_HTTP_SRCDIR/src && echo *.h)` + PHP_HTTP_SOURCES=`(cd $PHP_HTTP_SRCDIR && echo src/*.c)` + + PHP_NEW_EXTENSION(http, $PHP_HTTP_SOURCES, $ext_shared) + PHP_INSTALL_HEADERS(ext/http, php_http.h $PHP_HTTP_HEADERS) + HTTP_SHARED_DEP([hash]) HTTP_SHARED_DEP([iconv]) - - dnl extension deps PHP_ADD_EXTENSION_DEP([http], [raphf], true) PHP_ADD_EXTENSION_DEP([http], [propro], true) - PHP_SUBST([HTTP_SHARED_LIBADD]) + PHP_SUBST(PHP_HTTP_HEADERS) + PHP_SUBST(PHP_HTTP_SOURCES) + + PHP_SUBST(PHP_HTTP_SRCDIR) + PHP_SUBST(PHP_HTTP_BUILDDIR) - PHP_HTTP_HEADERS=`(cd $ext_srcdir/src && echo *.h)` - PHP_INSTALL_HEADERS(ext/http, php_http.h $PHP_HTTP_HEADERS) - PHP_SUBST([PHP_HTTP_HEADERS]) - PHP_HTTP_SRCDIR=$ext_srcdir - PHP_SUBST([PHP_HTTP_SRCDIR]) - PHP_HTTP_BUILDDIR=$ext_builddir - PHP_SUBST([PHP_HTTP_BUILDDIR]) PHP_ADD_MAKEFILE_FRAGMENT AC_DEFINE([HAVE_HTTP], [1], [Have extended HTTP support])