PHP_ADD_BUILD_DIR($ext_builddir/phpstr, 1)
PHP_SUBST([HTTP_SHARED_LIBADD])
- HTTP_HEADER_FILES= \
- phpstr/phpstr.h \
- php_http_std_defs.h \
- php_http.h \
- php_http_api.h \
- php_http_cache_api.h \
- php_http_date_api.h \
- php_http_headers_api.h \
- php_http_info_api.h \
- php_http_message_api.h \
- php_http_request_api.h \
- php_http_request_method_api.h \
- php_http_send_api.h \
- php_http_url_api.h
+ HTTP_HEADER_FILES="php_http_std_defs.h php_http.h php_http_api.h php_http_cache_api.h \
+ php_http_date_api.h php_http_headers_api.h php_http_info_api.h php_http_message_api.h \
+ php_http_request_api.h php_http_request_method_api.h php_http_send_api.h php_http_url_api.h"
PHP_SUBST([HTTP_HEADER_FILES])
ifdef([PHP_INSTALL_HEADERS],
[
- PHP_INSTALL_HEADERS(ext/http, [HTTP_HEADER_FILES])
+ PHP_INSTALL_HEADERS(ext/http, $HTTP_HEADER_FILES)
+ PHP_INSTALL_HEADERS(ext/http/phpstr, [phpstr/phpstr.h])
], [
PHP_ADD_MAKEFILE_FRAGMENT
])
#endif
#ifdef ZEND_ENGINE_2
-# define EMPTY_FUNCTION_ENTRY {NULL, NULL, NULL, 0}
+# define EMPTY_FUNCTION_ENTRY {NULL, NULL, NULL, 0, 0}
#else
# define EMPTY_FUNCTION_ENTRY {NULL, NULL, NULL}
#endif
--- /dev/null
+#!/bin/bash
+rm -f warnings
+
+echo -n "executing phpize... "
+phpize 2>&1 >/dev/null
+if test $? -ne 0 ; then
+ echo "FAILED!"
+ exit 1
+fi
+echo "DONE"
+
+echo -n "configuring... "
+CFLAGS="-W -Wchar-subscripts -Wformat=2 -Wno-format-y2k -Wimplicit -Wmissing-braces -Wunused-variable -Wbad-function-cast -Wpointer-arith -Wsign-compare -Winline" \
+ ./configure >/dev/null
+if test $? -ne 0 ; then
+ echo "FAILED!"
+ exit 1
+fi
+echo "DONE"
+
+echo -n "building... "
+make clean install 2>warnings >/dev/null
+if test $? -ne 0 ; then
+ echo "FAILED!"
+else
+ echo "DONE"
+fi
+
+if test -s warnings; then
+ cat warnings
+fi
+