Browse Source

origin version

stanley-king 9 years ago
commit
436c9e1e7c
37 changed files with 71938 additions and 0 deletions
  1. 1 0
      CREDITS
  2. 0 0
      EXPERIMENTAL
  3. 188 0
      Makefile
  4. 0 0
      Makefile.fragments
  5. 134 0
      Makefile.global
  6. 10 0
      Makefile.objects
  7. 3033 0
      acinclude.m4
  8. 9398 0
      aclocal.m4
  9. 13837 0
      autom4te.cache/output.0
  10. 78 0
      autom4te.cache/requests
  11. 503 0
      autom4te.cache/traces.0
  12. 6365 0
      build/libtool.m4
  13. 75 0
      build/mkdep.awk
  14. 32 0
      build/scan_makefile_in.awk
  15. 1814 0
      build/shtool
  16. 1543 0
      config.guess
  17. 59 0
      config.h
  18. 58 0
      config.h.in
  19. 576 0
      config.log
  20. 63 0
      config.m4
  21. 6 0
      config.nice
  22. 786 0
      config.status
  23. 1793 0
      config.sub
  24. 13 0
      config.w32
  25. 13837 0
      configure
  26. 202 0
      configure.in
  27. 194 0
      fcgi.c
  28. 21 0
      fcgi.php
  29. 0 0
      install-sh
  30. 7310 0
      libtool
  31. 6957 0
      ltmain.sh
  32. 0 0
      missing
  33. 0 0
      mkinstalldirs
  34. 92 0
      php_fcgi.h
  35. 2836 0
      run-tests.php
  36. 103 0
      swap.c
  37. 21 0
      tests/001.phpt

+ 1 - 0
CREDITS

@@ -0,0 +1 @@
+fcgi

+ 0 - 0
EXPERIMENTAL


+ 188 - 0
Makefile

@@ -0,0 +1,188 @@
+srcdir = /Users/stanley-king/work/lrlz/phpext/fcgi
+builddir = /Users/stanley-king/work/lrlz/phpext/fcgi
+top_srcdir = /Users/stanley-king/work/lrlz/phpext/fcgi
+top_builddir = /Users/stanley-king/work/lrlz/phpext/fcgi
+EGREP = /usr/bin/grep -E
+SED = /opt/local/bin/gsed
+CONFIGURE_COMMAND = './configure'
+CONFIGURE_OPTIONS =
+SHLIB_SUFFIX_NAME = dylib
+SHLIB_DL_SUFFIX_NAME = so
+ZEND_EXT_TYPE = zend_extension
+RE2C = exit 0;
+AWK = awk
+shared_objects_fcgi = fcgi.lo swap.lo
+PHP_PECL_EXTENSION = fcgi
+PHP_MODULES = $(phplibdir)/fcgi.la
+PHP_ZEND_EX =
+all_targets = $(PHP_MODULES) $(PHP_ZEND_EX)
+install_targets = install-modules install-headers
+prefix = /usr/local/Cellar/php56/5.6.14
+exec_prefix = $(prefix)
+libdir = ${exec_prefix}/lib
+prefix = /usr/local/Cellar/php56/5.6.14
+phplibdir = /Users/stanley-king/work/lrlz/phpext/fcgi/modules
+phpincludedir = /usr/local/Cellar/php56/5.6.14/include/php
+CC = cc
+CFLAGS = -g -O2
+CFLAGS_CLEAN = $(CFLAGS)
+CPP = cc -E
+CPPFLAGS = -DHAVE_CONFIG_H
+CXX =
+CXXFLAGS =
+CXXFLAGS_CLEAN = $(CXXFLAGS)
+EXTENSION_DIR = /usr/local/Cellar/php56/5.6.14/lib/php/extensions/no-debug-non-zts-20131226
+PHP_EXECUTABLE = /usr/local/Cellar/php56/5.6.14/bin/php
+EXTRA_LDFLAGS =
+EXTRA_LIBS =
+INCLUDES = -I/usr/local/fcgi/include -I/usr/local/Cellar/php56/5.6.14/include/php -I/usr/local/Cellar/php56/5.6.14/include/php/main -I/usr/local/Cellar/php56/5.6.14/include/php/TSRM -I/usr/local/Cellar/php56/5.6.14/include/php/Zend -I/usr/local/Cellar/php56/5.6.14/include/php/ext -I/usr/local/Cellar/php56/5.6.14/include/php/ext/date/lib
+LFLAGS =
+LDFLAGS =/usr/local/fcgi/lib/libfcgi.a /usr/local/fcgi/lib/libfcgi++.a
+SHARED_LIBTOOL =
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+SHELL = /bin/sh
+INSTALL_HEADERS =
+mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
+INSTALL = $(top_srcdir)/build/shtool install -c
+INSTALL_DATA = $(INSTALL) -m 644
+
+DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
+COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
+
+all: $(all_targets) 
+	@echo
+	@echo "Build complete."
+	@echo "Don't forget to run 'make test'."
+	@echo
+
+build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
+
+build-binaries: $(PHP_BINARIES)
+
+libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
+	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
+	-@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
+
+libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
+	$(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
+
+install: $(all_targets) $(install_targets)
+
+install-sapi: $(OVERALL_TARGET)
+	@echo "Installing PHP SAPI module:       $(PHP_SAPI)"
+	-@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
+	-@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \
+		for i in 0.0.0 0.0 0; do \
+			if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \
+				$(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \
+				break; \
+			fi; \
+		done; \
+	fi
+	@$(INSTALL_IT)
+
+install-binaries: build-binaries $(install_binary_targets)
+
+install-modules: build-modules
+	@test -d modules && \
+	$(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
+	@echo "Installing shared extensions:     $(INSTALL_ROOT)$(EXTENSION_DIR)/"
+	@rm -f modules/*.la >/dev/null 2>&1
+	@$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
+
+install-headers:
+	-@if test "$(INSTALL_HEADERS)"; then \
+		for i in `echo $(INSTALL_HEADERS)`; do \
+			i=`$(top_srcdir)/build/shtool path -d $$i`; \
+			paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
+		done; \
+		$(mkinstalldirs) $$paths && \
+		echo "Installing header files:          $(INSTALL_ROOT)$(phpincludedir)/" && \
+		for i in `echo $(INSTALL_HEADERS)`; do \
+			if test "$(PHP_PECL_EXTENSION)"; then \
+				src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \
+			else \
+				src=$$i; \
+			fi; \
+			if test -f "$(top_srcdir)/$$src"; then \
+				$(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+			elif test -f "$(top_builddir)/$$src"; then \
+				$(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+			else \
+				(cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+				cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
+			fi \
+		done; \
+	fi
+
+PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1'
+PHP_TEST_SHARED_EXTENSIONS =  ` \
+	if test "x$(PHP_MODULES)" != "x"; then \
+		for i in $(PHP_MODULES)""; do \
+			. $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \
+		done; \
+	fi; \
+	if test "x$(PHP_ZEND_EX)" != "x"; then \
+		for i in $(PHP_ZEND_EX)""; do \
+			. $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \
+		done; \
+	fi`
+PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
+
+test: all
+	@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
+		INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
+		if test "$$INI_FILE"; then \
+			$(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
+		else \
+			echo > $(top_builddir)/tmp-php.ini; \
+		fi; \
+		INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
+		if test "$$INI_SCANNED_PATH"; then \
+			INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
+			$(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
+		fi; \
+		TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
+		TEST_PHP_SRCDIR=$(top_srcdir) \
+		CC="$(CC)" \
+			$(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
+		TEST_RESULT_EXIT_CODE=$$?; \
+		rm $(top_builddir)/tmp-php.ini; \
+		exit $$TEST_RESULT_EXIT_CODE; \
+	else \
+		echo "ERROR: Cannot run tests without CLI sapi."; \
+	fi
+
+clean:
+	find . -name \*.gcno -o -name \*.gcda | xargs rm -f
+	find . -name \*.lo -o -name \*.o | xargs rm -f
+	find . -name \*.la -o -name \*.a | xargs rm -f 
+	find . -name \*.so | xargs rm -f
+	find . -name .libs -a -type d|xargs rm -rf
+	rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_MILTER_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/*
+
+distclean: clean
+	rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module sapi/apache_hooks/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h TSRM/tsrm_config.h
+	rm -f php5.spec main/build-defs.h scripts/phpize
+	rm -f ext/date/lib/timelib_config.h ext/mbstring/oniguruma/config.h ext/mbstring/libmbfl/config.h ext/oci8/oci8_dtrace_gen.h ext/oci8/oci8_dtrace_gen.h.bak
+	rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 ext/phar/phar.1 ext/phar/phar.phar.1
+	rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html
+	rm -f ext/iconv/php_have_bsd_iconv.h ext/iconv/php_have_glibc_iconv.h ext/iconv/php_have_ibm_iconv.h ext/iconv/php_have_iconv.h ext/iconv/php_have_libiconv.h ext/iconv/php_iconv_aliased_libiconv.h ext/iconv/php_iconv_supports_errno.h ext/iconv/php_php_iconv_h_path.h ext/iconv/php_php_iconv_impl.h
+	rm -f ext/phar/phar.phar ext/phar/phar.php
+	if test "$(srcdir)" != "$(builddir)"; then \
+	  rm -f ext/phar/phar/phar.inc; \
+	fi
+	$(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
+
+.PHONY: all clean install distclean test
+.NOEXPORT:
+fcgi.lo: /Users/stanley-king/work/lrlz/phpext/fcgi/fcgi.c
+	$(LIBTOOL) --mode=compile $(CC)  -I. -I/Users/stanley-king/work/lrlz/phpext/fcgi $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)  -c /Users/stanley-king/work/lrlz/phpext/fcgi/fcgi.c -o fcgi.lo 
+swap.lo: /Users/stanley-king/work/lrlz/phpext/fcgi/swap.c
+	$(LIBTOOL) --mode=compile $(CC)  -I. -I/Users/stanley-king/work/lrlz/phpext/fcgi $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)  -c /Users/stanley-king/work/lrlz/phpext/fcgi/swap.c -o swap.lo 
+$(phplibdir)/fcgi.la: ./fcgi.la
+	$(LIBTOOL) --mode=install cp ./fcgi.la $(phplibdir)
+
+./fcgi.la: $(shared_objects_fcgi) $(FCGI_SHARED_DEPENDENCIES)
+	$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fcgi) $(FCGI_SHARED_LIBADD)
+

+ 0 - 0
Makefile.fragments


+ 134 - 0
Makefile.global

@@ -0,0 +1,134 @@
+mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
+INSTALL = $(top_srcdir)/build/shtool install -c
+INSTALL_DATA = $(INSTALL) -m 644
+
+DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
+COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
+
+all: $(all_targets) 
+	@echo
+	@echo "Build complete."
+	@echo "Don't forget to run 'make test'."
+	@echo
+
+build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
+
+build-binaries: $(PHP_BINARIES)
+
+libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
+	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
+	-@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
+
+libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
+	$(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
+
+install: $(all_targets) $(install_targets)
+
+install-sapi: $(OVERALL_TARGET)
+	@echo "Installing PHP SAPI module:       $(PHP_SAPI)"
+	-@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
+	-@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \
+		for i in 0.0.0 0.0 0; do \
+			if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \
+				$(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \
+				break; \
+			fi; \
+		done; \
+	fi
+	@$(INSTALL_IT)
+
+install-binaries: build-binaries $(install_binary_targets)
+
+install-modules: build-modules
+	@test -d modules && \
+	$(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
+	@echo "Installing shared extensions:     $(INSTALL_ROOT)$(EXTENSION_DIR)/"
+	@rm -f modules/*.la >/dev/null 2>&1
+	@$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
+
+install-headers:
+	-@if test "$(INSTALL_HEADERS)"; then \
+		for i in `echo $(INSTALL_HEADERS)`; do \
+			i=`$(top_srcdir)/build/shtool path -d $$i`; \
+			paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
+		done; \
+		$(mkinstalldirs) $$paths && \
+		echo "Installing header files:          $(INSTALL_ROOT)$(phpincludedir)/" && \
+		for i in `echo $(INSTALL_HEADERS)`; do \
+			if test "$(PHP_PECL_EXTENSION)"; then \
+				src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \
+			else \
+				src=$$i; \
+			fi; \
+			if test -f "$(top_srcdir)/$$src"; then \
+				$(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+			elif test -f "$(top_builddir)/$$src"; then \
+				$(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+			else \
+				(cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
+				cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
+			fi \
+		done; \
+	fi
+
+PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1'
+PHP_TEST_SHARED_EXTENSIONS =  ` \
+	if test "x$(PHP_MODULES)" != "x"; then \
+		for i in $(PHP_MODULES)""; do \
+			. $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \
+		done; \
+	fi; \
+	if test "x$(PHP_ZEND_EX)" != "x"; then \
+		for i in $(PHP_ZEND_EX)""; do \
+			. $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \
+		done; \
+	fi`
+PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
+
+test: all
+	@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
+		INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
+		if test "$$INI_FILE"; then \
+			$(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
+		else \
+			echo > $(top_builddir)/tmp-php.ini; \
+		fi; \
+		INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
+		if test "$$INI_SCANNED_PATH"; then \
+			INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
+			$(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
+		fi; \
+		TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
+		TEST_PHP_SRCDIR=$(top_srcdir) \
+		CC="$(CC)" \
+			$(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
+		TEST_RESULT_EXIT_CODE=$$?; \
+		rm $(top_builddir)/tmp-php.ini; \
+		exit $$TEST_RESULT_EXIT_CODE; \
+	else \
+		echo "ERROR: Cannot run tests without CLI sapi."; \
+	fi
+
+clean:
+	find . -name \*.gcno -o -name \*.gcda | xargs rm -f
+	find . -name \*.lo -o -name \*.o | xargs rm -f
+	find . -name \*.la -o -name \*.a | xargs rm -f 
+	find . -name \*.so | xargs rm -f
+	find . -name .libs -a -type d|xargs rm -rf
+	rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_MILTER_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/*
+
+distclean: clean
+	rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h main/internal_functions_cli.c main/internal_functions.c stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module sapi/apache_hooks/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp Zend/zend_dtrace_gen.h Zend/zend_dtrace_gen.h.bak Zend/zend_config.h TSRM/tsrm_config.h
+	rm -f php5.spec main/build-defs.h scripts/phpize
+	rm -f ext/date/lib/timelib_config.h ext/mbstring/oniguruma/config.h ext/mbstring/libmbfl/config.h ext/oci8/oci8_dtrace_gen.h ext/oci8/oci8_dtrace_gen.h.bak
+	rm -f scripts/man1/phpize.1 scripts/php-config scripts/man1/php-config.1 sapi/cli/php.1 sapi/cgi/php-cgi.1 ext/phar/phar.1 ext/phar/phar.phar.1
+	rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html
+	rm -f ext/iconv/php_have_bsd_iconv.h ext/iconv/php_have_glibc_iconv.h ext/iconv/php_have_ibm_iconv.h ext/iconv/php_have_iconv.h ext/iconv/php_have_libiconv.h ext/iconv/php_iconv_aliased_libiconv.h ext/iconv/php_iconv_supports_errno.h ext/iconv/php_php_iconv_h_path.h ext/iconv/php_php_iconv_impl.h
+	rm -f ext/phar/phar.phar ext/phar/phar.php
+	if test "$(srcdir)" != "$(builddir)"; then \
+	  rm -f ext/phar/phar/phar.inc; \
+	fi
+	$(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
+
+.PHONY: all clean install distclean test
+.NOEXPORT:

+ 10 - 0
Makefile.objects

@@ -0,0 +1,10 @@
+fcgi.lo: /Users/stanley-king/work/lrlz/phpext/fcgi/fcgi.c
+	$(LIBTOOL) --mode=compile $(CC)  -I. -I/Users/stanley-king/work/lrlz/phpext/fcgi $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)  -c /Users/stanley-king/work/lrlz/phpext/fcgi/fcgi.c -o fcgi.lo 
+swap.lo: /Users/stanley-king/work/lrlz/phpext/fcgi/swap.c
+	$(LIBTOOL) --mode=compile $(CC)  -I. -I/Users/stanley-king/work/lrlz/phpext/fcgi $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)  -c /Users/stanley-king/work/lrlz/phpext/fcgi/swap.c -o swap.lo 
+$(phplibdir)/fcgi.la: ./fcgi.la
+	$(LIBTOOL) --mode=install cp ./fcgi.la $(phplibdir)
+
+./fcgi.la: $(shared_objects_fcgi) $(FCGI_SHARED_DEPENDENCIES)
+	$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fcgi) $(FCGI_SHARED_LIBADD)
+

File diff suppressed because it is too large
+ 3033 - 0
acinclude.m4


File diff suppressed because it is too large
+ 9398 - 0
aclocal.m4


File diff suppressed because it is too large
+ 13837 - 0
autom4te.cache/output.0


+ 78 - 0
autom4te.cache/requests

@@ -0,0 +1,78 @@
+# This file was generated.
+# It contains the lists of macros which have been traced.
+# It can be safely removed.
+
+@request = (
+             bless( [
+                      '0',
+                      1,
+                      [
+                        '/opt/local/share/autoconf'
+                      ],
+                      [
+                        '/opt/local/share/autoconf/autoconf/autoconf.m4f',
+                        'aclocal.m4',
+                        'configure.in'
+                      ],
+                      {
+                        'AM_PROG_MOC' => 1,
+                        'AM_SILENT_RULES' => 1,
+                        'AC_REQUIRE_AUX_FILE' => 1,
+                        'AC_SUBST' => 1,
+                        '_LT_AC_TAGCONFIG' => 1,
+                        'AM_AUTOMAKE_VERSION' => 1,
+                        'AC_CANONICAL_HOST' => 1,
+                        '_AM_COND_IF' => 1,
+                        'AC_CANONICAL_BUILD' => 1,
+                        'AM_XGETTEXT_OPTION' => 1,
+                        'AM_PROG_CXX_C_O' => 1,
+                        '_AM_SUBST_NOTMAKE' => 1,
+                        '_m4_warn' => 1,
+                        'AC_FC_SRCEXT' => 1,
+                        '_AM_COND_ELSE' => 1,
+                        'AM_ENABLE_MULTILIB' => 1,
+                        'm4_sinclude' => 1,
+                        'AM_POT_TOOLS' => 1,
+                        'AC_CANONICAL_SYSTEM' => 1,
+                        'sinclude' => 1,
+                        'AM_PATH_GUILE' => 1,
+                        'AC_PROG_LIBTOOL' => 1,
+                        'AC_LIBSOURCE' => 1,
+                        'AM_MAINTAINER_MODE' => 1,
+                        'AC_FC_FREEFORM' => 1,
+                        'AH_OUTPUT' => 1,
+                        'AC_SUBST_TRACE' => 1,
+                        'm4_include' => 1,
+                        'LT_CONFIG_LTDL_DIR' => 1,
+                        'AC_CONFIG_AUX_DIR' => 1,
+                        'AC_CONFIG_FILES' => 1,
+                        'AM_PROG_FC_C_O' => 1,
+                        'AM_CONDITIONAL' => 1,
+                        '_AM_MAKEFILE_INCLUDE' => 1,
+                        'm4_pattern_allow' => 1,
+                        'AM_PROG_CC_C_O' => 1,
+                        'AM_PROG_F77_C_O' => 1,
+                        'AC_FC_PP_DEFINE' => 1,
+                        'AC_CONFIG_HEADERS' => 1,
+                        'AC_DEFINE_TRACE_LITERAL' => 1,
+                        'LT_SUPPORTED_TAG' => 1,
+                        'AM_GNU_GETTEXT' => 1,
+                        '_AM_COND_ENDIF' => 1,
+                        'AM_MAKEFILE_INCLUDE' => 1,
+                        'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
+                        'AC_CANONICAL_TARGET' => 1,
+                        'AC_CONFIG_LINKS' => 1,
+                        'AC_FC_PP_SRCEXT' => 1,
+                        'AM_PROG_AR' => 1,
+                        'AC_INIT' => 1,
+                        'm4_pattern_forbid' => 1,
+                        'AC_CONFIG_LIBOBJ_DIR' => 1,
+                        'AC_CONFIG_SUBDIRS' => 1,
+                        'AM_INIT_AUTOMAKE' => 1,
+                        'include' => 1,
+                        'LT_INIT' => 1,
+                        'AM_NLS' => 1
+                      }
+                    ], 'Autom4te::Request' )
+           );
+

+ 503 - 0
autom4te.cache/traces.0

@@ -0,0 +1,503 @@
+m4trace:configure.in:4: -1- AC_INIT([config.m4])
+m4trace:configure.in:4: -1- m4_pattern_forbid([^_?A[CHUM]_])
+m4trace:configure.in:4: -1- m4_pattern_forbid([_AC_])
+m4trace:configure.in:4: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
+m4trace:configure.in:4: -1- m4_pattern_allow([^AS_FLAGS$])
+m4trace:configure.in:4: -1- m4_pattern_forbid([^_?m4_])
+m4trace:configure.in:4: -1- m4_pattern_forbid([^dnl$])
+m4trace:configure.in:4: -1- m4_pattern_forbid([^_?AS_])
+m4trace:configure.in:4: -1- AC_SUBST([SHELL])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([SHELL])
+m4trace:configure.in:4: -1- m4_pattern_allow([^SHELL$])
+m4trace:configure.in:4: -1- AC_SUBST([PATH_SEPARATOR])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([PATH_SEPARATOR])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PATH_SEPARATOR$])
+m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME],      ['AC_PACKAGE_NAME'])])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_NAME])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_NAME$])
+m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME],   ['AC_PACKAGE_TARNAME'])])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_TARNAME])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
+m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION],   ['AC_PACKAGE_VERSION'])])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_VERSION])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_VERSION$])
+m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING],    ['AC_PACKAGE_STRING'])])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_STRING])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_STRING$])
+m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
+m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL],       ['AC_PACKAGE_URL'])])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_URL])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_URL$])
+m4trace:configure.in:4: -1- AC_SUBST([exec_prefix], [NONE])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([exec_prefix])
+m4trace:configure.in:4: -1- m4_pattern_allow([^exec_prefix$])
+m4trace:configure.in:4: -1- AC_SUBST([prefix], [NONE])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([prefix])
+m4trace:configure.in:4: -1- m4_pattern_allow([^prefix$])
+m4trace:configure.in:4: -1- AC_SUBST([program_transform_name], [s,x,x,])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([program_transform_name])
+m4trace:configure.in:4: -1- m4_pattern_allow([^program_transform_name$])
+m4trace:configure.in:4: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([bindir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^bindir$])
+m4trace:configure.in:4: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([sbindir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^sbindir$])
+m4trace:configure.in:4: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([libexecdir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^libexecdir$])
+m4trace:configure.in:4: -1- AC_SUBST([datarootdir], ['${prefix}/share'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([datarootdir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^datarootdir$])
+m4trace:configure.in:4: -1- AC_SUBST([datadir], ['${datarootdir}'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([datadir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^datadir$])
+m4trace:configure.in:4: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([sysconfdir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^sysconfdir$])
+m4trace:configure.in:4: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([sharedstatedir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^sharedstatedir$])
+m4trace:configure.in:4: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([localstatedir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^localstatedir$])
+m4trace:configure.in:4: -1- AC_SUBST([includedir], ['${prefix}/include'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([includedir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^includedir$])
+m4trace:configure.in:4: -1- AC_SUBST([oldincludedir], ['/usr/include'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([oldincludedir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^oldincludedir$])
+m4trace:configure.in:4: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME],
+				     ['${datarootdir}/doc/${PACKAGE_TARNAME}'],
+				     ['${datarootdir}/doc/${PACKAGE}'])])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([docdir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^docdir$])
+m4trace:configure.in:4: -1- AC_SUBST([infodir], ['${datarootdir}/info'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([infodir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^infodir$])
+m4trace:configure.in:4: -1- AC_SUBST([htmldir], ['${docdir}'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([htmldir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^htmldir$])
+m4trace:configure.in:4: -1- AC_SUBST([dvidir], ['${docdir}'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([dvidir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^dvidir$])
+m4trace:configure.in:4: -1- AC_SUBST([pdfdir], ['${docdir}'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([pdfdir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^pdfdir$])
+m4trace:configure.in:4: -1- AC_SUBST([psdir], ['${docdir}'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([psdir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^psdir$])
+m4trace:configure.in:4: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([libdir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^libdir$])
+m4trace:configure.in:4: -1- AC_SUBST([localedir], ['${datarootdir}/locale'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([localedir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^localedir$])
+m4trace:configure.in:4: -1- AC_SUBST([mandir], ['${datarootdir}/man'])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([mandir])
+m4trace:configure.in:4: -1- m4_pattern_allow([^mandir$])
+m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_NAME$])
+m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
+@%:@undef PACKAGE_NAME])
+m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
+m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
+@%:@undef PACKAGE_TARNAME])
+m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_VERSION$])
+m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
+@%:@undef PACKAGE_VERSION])
+m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_STRING$])
+m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
+@%:@undef PACKAGE_STRING])
+m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
+m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
+@%:@undef PACKAGE_BUGREPORT])
+m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL])
+m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_URL$])
+m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */
+@%:@undef PACKAGE_URL])
+m4trace:configure.in:4: -1- AC_SUBST([DEFS])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([DEFS])
+m4trace:configure.in:4: -1- m4_pattern_allow([^DEFS$])
+m4trace:configure.in:4: -1- AC_SUBST([ECHO_C])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([ECHO_C])
+m4trace:configure.in:4: -1- m4_pattern_allow([^ECHO_C$])
+m4trace:configure.in:4: -1- AC_SUBST([ECHO_N])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([ECHO_N])
+m4trace:configure.in:4: -1- m4_pattern_allow([^ECHO_N$])
+m4trace:configure.in:4: -1- AC_SUBST([ECHO_T])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([ECHO_T])
+m4trace:configure.in:4: -1- m4_pattern_allow([^ECHO_T$])
+m4trace:configure.in:4: -1- AC_SUBST([LIBS])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([LIBS])
+m4trace:configure.in:4: -1- m4_pattern_allow([^LIBS$])
+m4trace:configure.in:4: -1- AC_SUBST([build_alias])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([build_alias])
+m4trace:configure.in:4: -1- m4_pattern_allow([^build_alias$])
+m4trace:configure.in:4: -1- AC_SUBST([host_alias])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([host_alias])
+m4trace:configure.in:4: -1- m4_pattern_allow([^host_alias$])
+m4trace:configure.in:4: -1- AC_SUBST([target_alias])
+m4trace:configure.in:4: -1- AC_SUBST_TRACE([target_alias])
+m4trace:configure.in:4: -1- m4_pattern_allow([^target_alias$])
+m4trace:configure.in:7: -1- AC_SUBST([GREP])
+m4trace:configure.in:7: -1- AC_SUBST_TRACE([GREP])
+m4trace:configure.in:7: -1- m4_pattern_allow([^GREP$])
+m4trace:configure.in:7: -1- AC_SUBST([EGREP])
+m4trace:configure.in:7: -1- AC_SUBST_TRACE([EGREP])
+m4trace:configure.in:7: -1- m4_pattern_allow([^EGREP$])
+m4trace:configure.in:7: -1- AC_SUBST([EGREP])
+m4trace:configure.in:7: -1- AC_SUBST_TRACE([EGREP])
+m4trace:configure.in:7: -1- m4_pattern_allow([^EGREP$])
+m4trace:configure.in:7: -1- AC_SUBST([SED])
+m4trace:configure.in:7: -1- AC_SUBST_TRACE([SED])
+m4trace:configure.in:7: -1- m4_pattern_allow([^SED$])
+m4trace:configure.in:7: -1- AC_SUBST([CONFIGURE_COMMAND])
+m4trace:configure.in:7: -1- AC_SUBST_TRACE([CONFIGURE_COMMAND])
+m4trace:configure.in:7: -1- m4_pattern_allow([^CONFIGURE_COMMAND$])
+m4trace:configure.in:7: -1- AC_SUBST([CONFIGURE_OPTIONS])
+m4trace:configure.in:7: -1- AC_SUBST_TRACE([CONFIGURE_OPTIONS])
+m4trace:configure.in:7: -1- m4_pattern_allow([^CONFIGURE_OPTIONS$])
+m4trace:configure.in:25: -1- AC_SUBST([CC])
+m4trace:configure.in:25: -1- AC_SUBST_TRACE([CC])
+m4trace:configure.in:25: -1- m4_pattern_allow([^CC$])
+m4trace:configure.in:25: -1- AC_SUBST([CFLAGS])
+m4trace:configure.in:25: -1- AC_SUBST_TRACE([CFLAGS])
+m4trace:configure.in:25: -1- m4_pattern_allow([^CFLAGS$])
+m4trace:configure.in:25: -1- AC_SUBST([LDFLAGS])
+m4trace:configure.in:25: -1- AC_SUBST_TRACE([LDFLAGS])
+m4trace:configure.in:25: -1- m4_pattern_allow([^LDFLAGS$])
+m4trace:configure.in:25: -1- AC_SUBST([LIBS])
+m4trace:configure.in:25: -1- AC_SUBST_TRACE([LIBS])
+m4trace:configure.in:25: -1- m4_pattern_allow([^LIBS$])
+m4trace:configure.in:25: -1- AC_SUBST([CPPFLAGS])
+m4trace:configure.in:25: -1- AC_SUBST_TRACE([CPPFLAGS])
+m4trace:configure.in:25: -1- m4_pattern_allow([^CPPFLAGS$])
+m4trace:configure.in:25: -1- AC_SUBST([CC])
+m4trace:configure.in:25: -1- AC_SUBST_TRACE([CC])
+m4trace:configure.in:25: -1- m4_pattern_allow([^CC$])
+m4trace:configure.in:25: -1- AC_SUBST([ac_ct_CC])
+m4trace:configure.in:25: -1- AC_SUBST_TRACE([ac_ct_CC])
+m4trace:configure.in:25: -1- m4_pattern_allow([^ac_ct_CC$])
+m4trace:configure.in:25: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
+m4trace:configure.in:25: -1- AC_SUBST_TRACE([EXEEXT])
+m4trace:configure.in:25: -1- m4_pattern_allow([^EXEEXT$])
+m4trace:configure.in:25: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
+m4trace:configure.in:25: -1- AC_SUBST_TRACE([OBJEXT])
+m4trace:configure.in:25: -1- m4_pattern_allow([^OBJEXT$])
+m4trace:configure.in:26: -1- AC_SUBST([CPP])
+m4trace:configure.in:26: -1- AC_SUBST_TRACE([CPP])
+m4trace:configure.in:26: -1- m4_pattern_allow([^CPP$])
+m4trace:configure.in:26: -1- AC_SUBST([CPPFLAGS])
+m4trace:configure.in:26: -1- AC_SUBST_TRACE([CPPFLAGS])
+m4trace:configure.in:26: -1- m4_pattern_allow([^CPPFLAGS$])
+m4trace:configure.in:26: -1- AC_SUBST([CPP])
+m4trace:configure.in:26: -1- AC_SUBST_TRACE([CPP])
+m4trace:configure.in:26: -1- m4_pattern_allow([^CPP$])
+m4trace:configure.in:28: -1- AC_DEFINE_TRACE_LITERAL([NO_MINUS_C_MINUS_O])
+m4trace:configure.in:28: -1- m4_pattern_allow([^NO_MINUS_C_MINUS_O$])
+m4trace:configure.in:28: -1- AH_OUTPUT([NO_MINUS_C_MINUS_O], [/* Define to 1 if your C compiler doesn\'t accept -c and -o together. */
+@%:@undef NO_MINUS_C_MINUS_O])
+m4trace:configure.in:34: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded from...
+../../lib/m4sugar/m4sh.m4:643: AS_IF is expanded from...
+../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from...
+aclocal.m4:329: PHP_RUNPATH_SWITCH is expanded from...
+configure.in:34: the top level])
+m4trace:configure.in:34: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded from...
+../../lib/m4sugar/m4sh.m4:643: AS_IF is expanded from...
+../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from...
+aclocal.m4:329: PHP_RUNPATH_SWITCH is expanded from...
+configure.in:34: the top level])
+m4trace:configure.in:35: -1- AC_CANONICAL_HOST
+m4trace:configure.in:35: -1- AC_CANONICAL_BUILD
+m4trace:configure.in:35: -1- AC_REQUIRE_AUX_FILE([config.sub])
+m4trace:configure.in:35: -1- AC_REQUIRE_AUX_FILE([config.guess])
+m4trace:configure.in:35: -1- AC_SUBST([build], [$ac_cv_build])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([build])
+m4trace:configure.in:35: -1- m4_pattern_allow([^build$])
+m4trace:configure.in:35: -1- AC_SUBST([build_cpu], [$[1]])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([build_cpu])
+m4trace:configure.in:35: -1- m4_pattern_allow([^build_cpu$])
+m4trace:configure.in:35: -1- AC_SUBST([build_vendor], [$[2]])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([build_vendor])
+m4trace:configure.in:35: -1- m4_pattern_allow([^build_vendor$])
+m4trace:configure.in:35: -1- AC_SUBST([build_os])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([build_os])
+m4trace:configure.in:35: -1- m4_pattern_allow([^build_os$])
+m4trace:configure.in:35: -1- AC_SUBST([host], [$ac_cv_host])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([host])
+m4trace:configure.in:35: -1- m4_pattern_allow([^host$])
+m4trace:configure.in:35: -1- AC_SUBST([host_cpu], [$[1]])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([host_cpu])
+m4trace:configure.in:35: -1- m4_pattern_allow([^host_cpu$])
+m4trace:configure.in:35: -1- AC_SUBST([host_vendor], [$[2]])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([host_vendor])
+m4trace:configure.in:35: -1- m4_pattern_allow([^host_vendor$])
+m4trace:configure.in:35: -1- AC_SUBST([host_os])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([host_os])
+m4trace:configure.in:35: -1- m4_pattern_allow([^host_os$])
+m4trace:configure.in:35: -1- AC_CANONICAL_TARGET
+m4trace:configure.in:35: -1- AC_SUBST([target], [$ac_cv_target])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([target])
+m4trace:configure.in:35: -1- m4_pattern_allow([^target$])
+m4trace:configure.in:35: -1- AC_SUBST([target_cpu], [$[1]])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([target_cpu])
+m4trace:configure.in:35: -1- m4_pattern_allow([^target_cpu$])
+m4trace:configure.in:35: -1- AC_SUBST([target_vendor], [$[2]])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([target_vendor])
+m4trace:configure.in:35: -1- m4_pattern_allow([^target_vendor$])
+m4trace:configure.in:35: -1- AC_SUBST([target_os])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([target_os])
+m4trace:configure.in:35: -1- m4_pattern_allow([^target_os$])
+m4trace:configure.in:35: -1- AC_SUBST([SHLIB_SUFFIX_NAME])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([SHLIB_SUFFIX_NAME])
+m4trace:configure.in:35: -1- m4_pattern_allow([^SHLIB_SUFFIX_NAME$])
+m4trace:configure.in:35: -1- AC_SUBST([SHLIB_DL_SUFFIX_NAME])
+m4trace:configure.in:35: -1- AC_SUBST_TRACE([SHLIB_DL_SUFFIX_NAME])
+m4trace:configure.in:35: -1- m4_pattern_allow([^SHLIB_DL_SUFFIX_NAME$])
+m4trace:configure.in:133: -1- AC_SUBST([RE2C])
+m4trace:configure.in:133: -1- AC_SUBST_TRACE([RE2C])
+m4trace:configure.in:133: -1- m4_pattern_allow([^RE2C$])
+m4trace:configure.in:134: -1- AC_SUBST([AWK])
+m4trace:configure.in:134: -1- AC_SUBST_TRACE([AWK])
+m4trace:configure.in:134: -1- m4_pattern_allow([^AWK$])
+m4trace:configure.in:136: -1- sinclude([config.m4])
+m4trace:config.m4:62: -1- AC_DEFINE_TRACE_LITERAL([COMPILE_DL_FCGI])
+m4trace:config.m4:62: -1- m4_pattern_allow([^COMPILE_DL_FCGI$])
+m4trace:config.m4:62: -1- AH_OUTPUT([COMPILE_DL_FCGI], [/* Whether to build fcgi as dynamic module */
+@%:@undef COMPILE_DL_FCGI])
+m4trace:configure.in:149: -1- AC_PROG_LIBTOOL
+m4trace:configure.in:149: -1- AC_SUBST([LN_S], [$as_ln_s])
+m4trace:configure.in:149: -1- AC_SUBST_TRACE([LN_S])
+m4trace:configure.in:149: -1- m4_pattern_allow([^LN_S$])
+m4trace:configure.in:149: -1- AC_SUBST([ECHO])
+m4trace:configure.in:149: -1- AC_SUBST_TRACE([ECHO])
+m4trace:configure.in:149: -1- m4_pattern_allow([^ECHO$])
+m4trace:configure.in:149: -1- AC_SUBST([AR])
+m4trace:configure.in:149: -1- AC_SUBST_TRACE([AR])
+m4trace:configure.in:149: -1- m4_pattern_allow([^AR$])
+m4trace:configure.in:149: -1- AC_SUBST([RANLIB])
+m4trace:configure.in:149: -1- AC_SUBST_TRACE([RANLIB])
+m4trace:configure.in:149: -1- m4_pattern_allow([^RANLIB$])
+m4trace:configure.in:149: -1- AC_SUBST([STRIP])
+m4trace:configure.in:149: -1- AC_SUBST_TRACE([STRIP])
+m4trace:configure.in:149: -1- m4_pattern_allow([^STRIP$])
+m4trace:configure.in:149: -1- AC_SUBST([DSYMUTIL])
+m4trace:configure.in:149: -1- AC_SUBST_TRACE([DSYMUTIL])
+m4trace:configure.in:149: -1- m4_pattern_allow([^DSYMUTIL$])
+m4trace:configure.in:149: -1- AC_SUBST([NMEDIT])
+m4trace:configure.in:149: -1- AC_SUBST_TRACE([NMEDIT])
+m4trace:configure.in:149: -1- m4_pattern_allow([^NMEDIT$])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/lang.m4:128: AC_LANG_SAVE is expanded from...
+aclocal.m4:5837: _LT_AC_LANG_C_CONFIG is expanded from...
+aclocal.m4:5763: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
+aclocal.m4:5837: _LT_AC_LANG_C_CONFIG is expanded from...
+aclocal.m4:5763: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/lang.m4:128: AC_LANG_SAVE is expanded from...
+../../lib/m4sugar/m4sh.m4:643: AS_IF is expanded from...
+../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from...
+../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from...
+aclocal.m4:3751: _LT_AC_LOCK is expanded from...
+aclocal.m4:4242: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
+aclocal.m4:5837: _LT_AC_LANG_C_CONFIG is expanded from...
+aclocal.m4:5763: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
+../../lib/m4sugar/m4sh.m4:643: AS_IF is expanded from...
+../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from...
+../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from...
+aclocal.m4:3751: _LT_AC_LOCK is expanded from...
+aclocal.m4:4242: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
+aclocal.m4:5837: _LT_AC_LANG_C_CONFIG is expanded from...
+aclocal.m4:5763: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/general.m4:2688: AC_TRY_LINK is expanded from...
+../../lib/m4sugar/m4sh.m4:643: AS_IF is expanded from...
+../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from...
+../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from...
+aclocal.m4:3751: _LT_AC_LOCK is expanded from...
+aclocal.m4:4242: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
+aclocal.m4:5837: _LT_AC_LANG_C_CONFIG is expanded from...
+aclocal.m4:5763: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/lang.m4:134: AC_LANG_RESTORE is expanded from...
+../../lib/m4sugar/m4sh.m4:643: AS_IF is expanded from...
+../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from...
+../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from...
+aclocal.m4:3751: _LT_AC_LOCK is expanded from...
+aclocal.m4:4242: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
+aclocal.m4:5837: _LT_AC_LANG_C_CONFIG is expanded from...
+aclocal.m4:5763: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe], [aclocal.m4:4242: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
+aclocal.m4:5837: _LT_AC_LANG_C_CONFIG is expanded from...
+aclocal.m4:5763: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe], [aclocal.m4:4242: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
+aclocal.m4:5837: _LT_AC_LANG_C_CONFIG is expanded from...
+aclocal.m4:5763: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the <dlfcn.h> header file. */
+@%:@undef HAVE_DLFCN_H])
+m4trace:configure.in:149: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
+m4trace:configure.in:149: -1- m4_pattern_allow([^STDC_HEADERS$])
+m4trace:configure.in:149: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
+@%:@undef STDC_HEADERS])
+m4trace:configure.in:149: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
+@%:@undef HAVE_SYS_TYPES_H])
+m4trace:configure.in:149: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
+@%:@undef HAVE_SYS_STAT_H])
+m4trace:configure.in:149: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
+@%:@undef HAVE_STDLIB_H])
+m4trace:configure.in:149: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
+@%:@undef HAVE_STRING_H])
+m4trace:configure.in:149: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
+@%:@undef HAVE_MEMORY_H])
+m4trace:configure.in:149: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
+@%:@undef HAVE_STRINGS_H])
+m4trace:configure.in:149: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
+@%:@undef HAVE_INTTYPES_H])
+m4trace:configure.in:149: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
+@%:@undef HAVE_STDINT_H])
+m4trace:configure.in:149: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
+@%:@undef HAVE_UNISTD_H])
+m4trace:configure.in:149: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DLFCN_H])
+m4trace:configure.in:149: -1- m4_pattern_allow([^HAVE_DLFCN_H$])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/lang.m4:134: AC_LANG_RESTORE is expanded from...
+aclocal.m4:5837: _LT_AC_LANG_C_CONFIG is expanded from...
+aclocal.m4:5763: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _LT_AC_TAGCONFIG
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist], [aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not exist], [aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script], [aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not look like a libtool script], [aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'], [aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'], [aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: tag name \"$tagname\" already exists], [aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/lang.m4:128: AC_LANG_SAVE is expanded from...
+aclocal.m4:6845: _LT_AC_LANG_CXX_CONFIG is expanded from...
+aclocal.m4:5845: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
+aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [The macro `AC_LANG_CPLUSPLUS' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/c.m4:252: AC_LANG_CPLUSPLUS is expanded from...
+aclocal.m4:6845: _LT_AC_LANG_CXX_CONFIG is expanded from...
+aclocal.m4:5845: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
+aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe], [aclocal.m4:4242: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
+aclocal.m4:6845: _LT_AC_LANG_CXX_CONFIG is expanded from...
+aclocal.m4:5845: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
+aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe], [aclocal.m4:4242: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
+aclocal.m4:6845: _LT_AC_LANG_CXX_CONFIG is expanded from...
+aclocal.m4:5845: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
+aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete.
+You should run autoupdate.], [../../lib/autoconf/lang.m4:134: AC_LANG_RESTORE is expanded from...
+aclocal.m4:6845: _LT_AC_LANG_CXX_CONFIG is expanded from...
+aclocal.m4:5845: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
+aclocal.m4:5034: _LT_AC_TAGCONFIG is expanded from...
+aclocal.m4:3242: AC_LIBTOOL_SETUP is expanded from...
+aclocal.m4:3098: _AC_PROG_LIBTOOL is expanded from...
+aclocal.m4:3080: AC_PROG_LIBTOOL is expanded from...
+configure.in:149: the top level])
+m4trace:configure.in:149: -1- AC_SUBST([LIBTOOL])
+m4trace:configure.in:149: -1- AC_SUBST_TRACE([LIBTOOL])
+m4trace:configure.in:149: -1- m4_pattern_allow([^LIBTOOL$])
+m4trace:configure.in:200: -1- AC_CONFIG_HEADERS([config.h])
+m4trace:configure.in:202: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
+m4trace:configure.in:202: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
+m4trace:configure.in:202: -1- m4_pattern_allow([^LIB@&t@OBJS$])
+m4trace:configure.in:202: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
+m4trace:configure.in:202: -1- AC_SUBST_TRACE([LTLIBOBJS])
+m4trace:configure.in:202: -1- m4_pattern_allow([^LTLIBOBJS$])

File diff suppressed because it is too large
+ 6365 - 0
build/libtool.m4


+ 75 - 0
build/mkdep.awk

@@ -0,0 +1,75 @@
+#  +----------------------------------------------------------------------+
+#  | PHP Version 5                                                        |
+#  +----------------------------------------------------------------------+
+#  | Copyright (c) 2000-2006 The PHP Group                                |
+#  +----------------------------------------------------------------------+
+#  | This source file is subject to version 3.01 of the PHP license,      |
+#  | that is bundled with this package in the file LICENSE, and is        |
+#  | available through the world-wide-web at the following url:           |
+#  | http://www.php.net/license/3_01.txt                                  |
+#  | If you did not receive a copy of the PHP license and are unable to   |
+#  | obtain it through the world-wide-web, please send a note to          |
+#  | license@php.net so we can mail you a copy immediately.               |
+#  +----------------------------------------------------------------------+
+#  | Author: Sascha Schumann <sascha@schumann.cx>                         |
+#  +----------------------------------------------------------------------+
+#
+# $Id$
+#
+# Usage:
+#
+# echo top_srcdir top_builddir srcdir CPP [CPP-ARGS] filenames | \
+#      awk -f mkdep.awk > dependencies
+
+
+{
+	top_srcdir=$1
+	top_builddir=$2
+	srcdir=$3
+	cmd=$4
+
+	for (i = 5; i <= NF; i++) {
+		if (match($i, "^-[A-Z]") == 0)
+			break;
+		cmd=cmd " " $i
+	}
+
+	dif=i-1
+		
+	for (; i <= NF; i++)
+		filenames[i-dif]=$i
+	
+	no_files=NF-dif
+	
+	for(i = 1; i <= no_files; i++) {
+		if (system("test -r " filenames[i]) != 0)
+			continue
+		
+		target=filenames[i]
+		sub(srcdir "/", "", target)
+		target2=target
+		sub("\.(c|cpp)$", ".lo", target);
+		sub("\.(c|cpp)$", ".slo", target2);
+
+		for (e in used)
+			delete used[e]
+		
+		cmdx=cmd " " filenames[i]
+		done=0
+		while ((cmdx | getline) > 0) {
+			if (match($0, "^# [0-9]* \".*\.h\"") != 0) {
+				if (sub(top_srcdir, "$(top_srcdir)", $3) == 0)
+					sub(top_builddir, "$(top_builddir)", $3)
+				if (substr($3,2,1) != "/" && used[$3] != 1) {
+					if (done == 0)
+						printf(target " " target2 ":")
+					done=1
+					printf(" \\\n\t" substr($3,2,length($3)-2))
+					used[$3] = 1;
+				}	
+			}
+		}
+		if (done == 1)
+			print "\n"
+	}
+} 

+ 32 - 0
build/scan_makefile_in.awk

@@ -0,0 +1,32 @@
+BEGIN {
+	mode=0
+	sources=""
+}
+	
+mode == 0 && /^LTLIBRARY_SOURCES.*\\$/ {
+	if (match($0, "[^=]*$")) {
+	sources=substr($0, RSTART, RLENGTH-1)
+	}
+	mode=1
+	next
+}
+
+mode == 0 && /^LTLIBRARY_SOURCES.*/ {
+	if (match($0, "[^=]*$")) {
+	sources=substr($0, RSTART, RLENGTH)
+	}
+}
+
+mode == 1 && /.*\\$/ {
+	sources=sources substr($0, 0, length - 1)
+	next
+}
+
+mode == 1 {
+	sources=sources $0
+	mode=0
+}
+
+END {
+	print sources
+}

File diff suppressed because it is too large
+ 1814 - 0
build/shtool


File diff suppressed because it is too large
+ 1543 - 0
config.guess


+ 59 - 0
config.h

@@ -0,0 +1,59 @@
+/* config.h.  Generated from config.h.in by configure.  */
+/* config.h.in.  Generated from configure.in by autoheader.  */
+
+/* Whether to build fcgi as dynamic module */
+#define COMPILE_DL_FCGI 1
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if your C compiler doesn't accept -c and -o together. */
+/* #undef NO_MINUS_C_MINUS_O */
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT ""
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME ""
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING ""
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME ""
+
+/* Define to the home page for this package. */
+#define PACKAGE_URL ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION ""
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1

+ 58 - 0
config.h.in

@@ -0,0 +1,58 @@
+/* config.h.in.  Generated from configure.in by autoheader.  */
+
+/* Whether to build fcgi as dynamic module */
+#undef COMPILE_DL_FCGI
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if your C compiler doesn't accept -c and -o together. */
+#undef NO_MINUS_C_MINUS_O
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS

+ 576 - 0
config.log

@@ -0,0 +1,576 @@
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by configure, which was
+generated by GNU Autoconf 2.69.  Invocation command line was
+
+  $ ./configure 
+
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = MacBook-Air.local
+uname -m = x86_64
+uname -r = 15.0.0
+uname -s = Darwin
+uname -v = Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu-3247.1.106~1/RELEASE_X86_64
+
+/usr/bin/uname -p = i386
+/bin/uname -X     = unknown
+
+/bin/arch              = unknown
+/usr/bin/arch -k       = unknown
+/usr/convex/getsysinfo = unknown
+/usr/bin/hostinfo      = Mach kernel version:
+	 Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu-3247.1.106~1/RELEASE_X86_64
+Kernel configured for up to 4 processors.
+2 processors are physically available.
+4 processors are logically available.
+Processor type: x86_64h (Intel x86-64h Haswell)
+Processors active: 0 1 2 3
+Primary memory available: 16.00 gigabytes
+Default processor set: 245 tasks, 947 threads, 4 processors
+Load average: 2.10, Mach factor: 1.89
+/bin/machine           = unknown
+/usr/bin/oslevel       = unknown
+/bin/universe          = unknown
+
+PATH: /opt/local/bin
+PATH: /opt/local/sbin
+PATH: /opt/local/bin
+PATH: /opt/local/sbin
+PATH: /usr/local/bin
+PATH: /usr/bin
+PATH: /bin
+PATH: /usr/sbin
+PATH: /sbin
+PATH: /opt/X11/bin
+PATH: /usr/local/git/bin
+PATH: /usr/local/apache-tomcat/bin
+PATH: /Users/stanley-king/Downloads/QDownload/depot_tools
+PATH: /usr/local/gradle/bin
+PATH: /usr/local/android/tools
+PATH: /usr/local/android-ndk-r10d
+PATH: /usr/local/android/platform-tools
+PATH: /usr/local/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+configure:2294: checking for grep that handles long lines and -e
+configure:2352: result: /usr/bin/grep
+configure:2357: checking for egrep
+configure:2419: result: /usr/bin/grep -E
+configure:2424: checking for a sed that does not truncate output
+configure:2478: result: /opt/local/bin/gsed
+configure:2610: checking for cc
+configure:2626: found /usr/bin/cc
+configure:2637: result: cc
+configure:2668: checking for C compiler version
+configure:2677: cc --version >&5
+Apple LLVM version 7.0.0 (clang-700.0.72)
+Target: x86_64-apple-darwin15.0.0
+Thread model: posix
+configure:2688: $? = 0
+configure:2677: cc -v >&5
+Apple LLVM version 7.0.0 (clang-700.0.72)
+Target: x86_64-apple-darwin15.0.0
+Thread model: posix
+configure:2688: $? = 0
+configure:2677: cc -V >&5
+clang: error: argument to '-V' is missing (expected 1 value)
+clang: error: no input files
+configure:2688: $? = 1
+configure:2677: cc -qversion >&5
+clang: error: unknown argument: '-qversion'
+clang: error: no input files
+configure:2688: $? = 1
+configure:2708: checking whether the C compiler works
+configure:2730: cc    conftest.c  >&5
+configure:2734: $? = 0
+configure:2782: result: yes
+configure:2785: checking for C compiler default output file name
+configure:2787: result: a.out
+configure:2793: checking for suffix of executables
+configure:2800: cc -o conftest    conftest.c  >&5
+configure:2804: $? = 0
+configure:2826: result: 
+configure:2848: checking whether we are cross compiling
+configure:2856: cc -o conftest    conftest.c  >&5
+configure:2860: $? = 0
+configure:2867: ./conftest
+configure:2871: $? = 0
+configure:2886: result: no
+configure:2891: checking for suffix of object files
+configure:2913: cc -c   conftest.c >&5
+configure:2917: $? = 0
+configure:2938: result: o
+configure:2942: checking whether we are using the GNU C compiler
+configure:2961: cc -c   conftest.c >&5
+configure:2961: $? = 0
+configure:2970: result: yes
+configure:2979: checking whether cc accepts -g
+configure:2999: cc -c -g  conftest.c >&5
+configure:2999: $? = 0
+configure:3040: result: yes
+configure:3057: checking for cc option to accept ISO C89
+configure:3120: cc  -c -g -O2  conftest.c >&5
+configure:3120: $? = 0
+configure:3133: result: none needed
+configure:3159: checking how to run the C preprocessor
+configure:3190: cc -E  conftest.c
+configure:3190: $? = 0
+configure:3204: cc -E  conftest.c
+conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
+#include <ac_nonexistent.h>
+         ^
+1 error generated.
+configure:3204: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define PACKAGE_URL ""
+| /* end confdefs.h.  */
+| #include <ac_nonexistent.h>
+configure:3229: result: cc -E
+configure:3249: cc -E  conftest.c
+configure:3249: $? = 0
+configure:3263: cc -E  conftest.c
+conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
+#include <ac_nonexistent.h>
+         ^
+1 error generated.
+configure:3263: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define PACKAGE_URL ""
+| /* end confdefs.h.  */
+| #include <ac_nonexistent.h>
+configure:3294: checking for icc
+configure:3303: result: no
+configure:3317: checking for suncc
+configure:3326: result: no
+configure:3344: checking whether cc understands -c and -o together
+configure:3372: cc -c conftest.c -o conftest2.o >&5
+configure:3376: $? = 0
+configure:3382: cc -c conftest.c -o conftest2.o >&5
+configure:3386: $? = 0
+configure:3441: result: yes
+configure:3455: checking for system library directory
+configure:3470: result: lib
+configure:3477: checking if compiler supports -R
+configure:3496: cc -o conftest -g -O2   conftest.c -R /usr/lib  >&5
+warning: unknown remark option '-R' [-Wunknown-warning-option]
+1 warning generated.
+ld: can't map file, errno=22 file '/usr/lib' for architecture x86_64
+clang: error: linker command failed with exit code 1 (use -v to see invocation)
+configure:3496: $? = 1
+configure: failed program was:
+| /* confdefs.h */
+| #define PACKAGE_NAME ""
+| #define PACKAGE_TARNAME ""
+| #define PACKAGE_VERSION ""
+| #define PACKAGE_STRING ""
+| #define PACKAGE_BUGREPORT ""
+| #define PACKAGE_URL ""
+| /* end confdefs.h.  */
+| 
+| int
+| main ()
+| {
+| 
+|   ;
+|   return 0;
+| }
+configure:3506: result: no
+configure:3511: checking if compiler supports -Wl,-rpath,
+configure:3530: cc -o conftest -g -O2   conftest.c -Wl,-rpath,/usr/lib  >&5
+configure:3530: $? = 0
+configure:3540: result: yes
+configure:3585: checking build system type
+configure:3599: result: x86_64-apple-darwin15.0.0
+configure:3619: checking host system type
+configure:3632: result: x86_64-apple-darwin15.0.0
+configure:3652: checking target system type
+configure:3665: result: x86_64-apple-darwin15.0.0
+configure:3768: checking for PHP prefix
+configure:3770: result: /usr/local/Cellar/php56/5.6.14
+configure:3772: checking for PHP includes
+configure:3774: result: -I/usr/local/Cellar/php56/5.6.14/include/php -I/usr/local/Cellar/php56/5.6.14/include/php/main -I/usr/local/Cellar/php56/5.6.14/include/php/TSRM -I/usr/local/Cellar/php56/5.6.14/include/php/Zend -I/usr/local/Cellar/php56/5.6.14/include/php/ext -I/usr/local/Cellar/php56/5.6.14/include/php/ext/date/lib
+configure:3776: checking for PHP extension directory
+configure:3778: result: /usr/local/Cellar/php56/5.6.14/lib/php/extensions/no-debug-non-zts-20131226
+configure:3780: checking for PHP installed headers prefix
+configure:3782: result: /usr/local/Cellar/php56/5.6.14/include/php
+configure:3785: checking if debug is enabled
+configure:3811: result: no
+configure:3814: checking if zts is enabled
+configure:3840: result: no
+configure:3911: checking for re2c
+configure:3941: result: no
+configure:3966: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
+configure:3980: checking for gawk
+configure:4011: result: no
+configure:3980: checking for nawk
+configure:4011: result: no
+configure:3980: checking for awk
+configure:3997: found /usr/bin/awk
+configure:4008: result: awk
+configure:4031: checking if awk is broken
+configure:4038: result: no
+configure:4056: checking whether to enable fcgi support
+configure:4095: result: yes, shared
+configure:4495: checking for ld used by cc
+configure:4562: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
+configure:4569: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld
+configure:4584: result: no
+configure:4589: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files
+configure:4596: result: -r
+configure:4614: checking for BSD-compatible nm
+configure:4663: result: /usr/bin/nm
+configure:4667: checking whether ln -s works
+configure:4671: result: yes
+configure:4678: checking how to recognize dependent libraries
+configure:4864: result: pass_all
+configure:5082: checking for ANSI C header files
+configure:5102: cc -c -g -O2  conftest.c >&5
+configure:5102: $? = 0
+configure:5175: cc -o conftest -g -O2   conftest.c  >&5
+configure:5175: $? = 0
+configure:5175: ./conftest
+configure:5175: $? = 0
+configure:5186: result: yes
+configure:5199: checking for sys/types.h
+configure:5199: cc -c -g -O2  conftest.c >&5
+configure:5199: $? = 0
+configure:5199: result: yes
+configure:5199: checking for sys/stat.h
+configure:5199: cc -c -g -O2  conftest.c >&5
+configure:5199: $? = 0
+configure:5199: result: yes
+configure:5199: checking for stdlib.h
+configure:5199: cc -c -g -O2  conftest.c >&5
+configure:5199: $? = 0
+configure:5199: result: yes
+configure:5199: checking for string.h
+configure:5199: cc -c -g -O2  conftest.c >&5
+configure:5199: $? = 0
+configure:5199: result: yes
+configure:5199: checking for memory.h
+configure:5199: cc -c -g -O2  conftest.c >&5
+configure:5199: $? = 0
+configure:5199: result: yes
+configure:5199: checking for strings.h
+configure:5199: cc -c -g -O2  conftest.c >&5
+configure:5199: $? = 0
+configure:5199: result: yes
+configure:5199: checking for inttypes.h
+configure:5199: cc -c -g -O2  conftest.c >&5
+configure:5199: $? = 0
+configure:5199: result: yes
+configure:5199: checking for stdint.h
+configure:5199: cc -c -g -O2  conftest.c >&5
+configure:5199: $? = 0
+configure:5199: result: yes
+configure:5199: checking for unistd.h
+configure:5199: cc -c -g -O2  conftest.c >&5
+configure:5199: $? = 0
+configure:5199: result: yes
+configure:5213: checking dlfcn.h usability
+configure:5213: cc -c -g -O2  conftest.c >&5
+configure:5213: $? = 0
+configure:5213: result: yes
+configure:5213: checking dlfcn.h presence
+configure:5213: cc -E  conftest.c
+configure:5213: $? = 0
+configure:5213: result: yes
+configure:5213: checking for dlfcn.h
+configure:5213: result: yes
+configure:5235: checking the maximum length of command line arguments
+configure:5347: result: 196608
+configure:5359: checking command to parse /usr/bin/nm output from cc object
+configure:5464: cc -c -g -O2  conftest.c >&5
+configure:5467: $? = 0
+configure:5471: /usr/bin/nm conftest.o \| sed -n -e 's/^.*[ 	]\([BCDEGRST][BCDEGRST]*\)[ 	][ 	]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm
+configure:5474: $? = 0
+cannot find nm_test_var in conftest.nm
+configure:5464: cc -c -g -O2  conftest.c >&5
+configure:5467: $? = 0
+configure:5471: /usr/bin/nm conftest.o \| sed -n -e 's/^.*[ 	]\([BCDEGRST][BCDEGRST]*\)[ 	][ 	]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' \> conftest.nm
+configure:5474: $? = 0
+configure:5526: cc -o conftest -g -O2   conftest.c conftstm.o >&5
+warning: (x86_64)  could not find object file symbol for symbol _main
+configure:5529: $? = 0
+configure:5567: result: ok
+configure:5571: checking for objdir
+configure:5586: result: .libs
+configure:5678: checking for ar
+configure:5694: found /usr/bin/ar
+configure:5705: result: ar
+configure:5770: checking for ranlib
+configure:5786: found /usr/bin/ranlib
+configure:5797: result: ranlib
+configure:5862: checking for strip
+configure:5878: found /usr/bin/strip
+configure:5889: result: strip
+configure:6142: checking for dsymutil
+configure:6158: found /usr/bin/dsymutil
+configure:6169: result: dsymutil
+configure:6234: checking for nmedit
+configure:6250: found /usr/bin/nmedit
+configure:6261: result: nmedit
+configure:6284: checking for -single_module linker flag
+configure:6305: result: yes
+configure:6307: checking for -exported_symbols_list linker flag
+configure:6323: cc -o conftest -g -O2   -Wl,-exported_symbols_list,conftest.sym conftest.c  >&5
+configure:6326: $? = 0
+configure:6340: result: yes
+configure:6458: checking if cc supports -fno-rtti -fno-exceptions
+configure:6476: cc -c -g -O2  -fno-rtti -fno-exceptions conftest.c >&5
+configure:6480: $? = 0
+configure:6493: result: yes
+configure:6508: checking for cc option to produce PIC
+configure:6748: result: -fno-common
+configure:6756: checking if cc PIC flag -fno-common works
+configure:6774: cc -c -g -O2  -fno-common -DPIC conftest.c >&5
+configure:6778: $? = 0
+configure:6791: result: yes
+configure:6819: checking if cc static flag -static works
+configure:6847: result: no
+configure:6857: checking if cc supports -c -o file.o
+configure:6878: cc -c -g -O2  -o out/conftest2.o conftest.c >&5
+configure:6882: $? = 0
+configure:6904: result: yes
+configure:6930: checking whether the cc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries
+configure:7858: result: yes
+configure:7925: checking dynamic linker characteristics
+configure:8523: result: darwin15.0.0 dyld
+configure:8547: checking how to hardcode library paths into programs
+configure:8572: result: immediate
+configure:8586: checking whether stripping libraries is possible
+configure:8600: result: yes
+configure:9108: checking if libtool supports shared libraries
+configure:9110: result: yes
+configure:9113: checking whether to build shared libraries
+configure:9134: result: yes
+configure:9137: checking whether to build static libraries
+configure:9141: result: no
+configure:9236: result:
+creating libtool
+configure:12935: creating ./config.status
+
+## ---------------------- ##
+## Running config.status. ##
+## ---------------------- ##
+
+This file was extended by config.status, which was
+generated by GNU Autoconf 2.69.  Invocation command line was
+
+  CONFIG_FILES    = 
+  CONFIG_HEADERS  = 
+  CONFIG_LINKS    = 
+  CONFIG_COMMANDS = 
+  $ ./config.status 
+
+on MacBook-Air.local
+
+config.status:676: creating config.h
+config.status:766: config.h is unchanged
+
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+
+ac_cv_build=x86_64-apple-darwin15.0.0
+ac_cv_c_compiler_gnu=yes
+ac_cv_env_CC_set=
+ac_cv_env_CC_value=
+ac_cv_env_CFLAGS_set=
+ac_cv_env_CFLAGS_value=
+ac_cv_env_CPPFLAGS_set=
+ac_cv_env_CPPFLAGS_value=
+ac_cv_env_CPP_set=
+ac_cv_env_CPP_value=
+ac_cv_env_LDFLAGS_set=
+ac_cv_env_LDFLAGS_value=
+ac_cv_env_LIBS_set=
+ac_cv_env_LIBS_value=
+ac_cv_env_build_alias_set=
+ac_cv_env_build_alias_value=
+ac_cv_env_host_alias_set=
+ac_cv_env_host_alias_value=
+ac_cv_env_target_alias_set=
+ac_cv_env_target_alias_value=
+ac_cv_header_dlfcn_h=yes
+ac_cv_header_inttypes_h=yes
+ac_cv_header_memory_h=yes
+ac_cv_header_stdc=yes
+ac_cv_header_stdint_h=yes
+ac_cv_header_stdlib_h=yes
+ac_cv_header_string_h=yes
+ac_cv_header_strings_h=yes
+ac_cv_header_sys_stat_h=yes
+ac_cv_header_sys_types_h=yes
+ac_cv_header_unistd_h=yes
+ac_cv_host=x86_64-apple-darwin15.0.0
+ac_cv_objext=o
+ac_cv_path_EGREP='/usr/bin/grep -E'
+ac_cv_path_GREP=/usr/bin/grep
+ac_cv_prog_AWK=awk
+ac_cv_prog_CPP='cc -E'
+ac_cv_prog_ac_ct_AR=ar
+ac_cv_prog_ac_ct_CC=cc
+ac_cv_prog_ac_ct_DSYMUTIL=dsymutil
+ac_cv_prog_ac_ct_NMEDIT=nmedit
+ac_cv_prog_ac_ct_RANLIB=ranlib
+ac_cv_prog_ac_ct_STRIP=strip
+ac_cv_prog_cc_c89=
+ac_cv_prog_cc_cc_c_o=yes
+ac_cv_prog_cc_g=yes
+ac_cv_target=x86_64-apple-darwin15.0.0
+lt_cv_apple_cc_single_mod=yes
+lt_cv_deplibs_check_method=pass_all
+lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_ld_exported_symbols_list=yes
+lt_cv_ld_reload_flag=-r
+lt_cv_objdir=.libs
+lt_cv_path_LD=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
+lt_cv_path_NM=/usr/bin/nm
+lt_cv_path_SED=/opt/local/bin/gsed
+lt_cv_prog_compiler_c_o=yes
+lt_cv_prog_compiler_pic_works=yes
+lt_cv_prog_compiler_rtti_exceptions=yes
+lt_cv_prog_compiler_static_works=no
+lt_cv_prog_gnu_ld=no
+lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ 	]\([BCDEGRST][BCDEGRST]*\)[ 	][ 	]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p'\'''
+lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/  {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/  {"\2", (lt_ptr) \&\2},/p'\'''
+lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\'''
+lt_cv_sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+lt_cv_sys_lib_search_path_spec='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.0.0 /usr/local/lib'
+lt_cv_sys_max_cmd_len=196608
+lt_lt_cv_prog_compiler_c_o='"yes"'
+lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ 	]\\([BCDEGRST][BCDEGRST]*\\)[ 	][ 	]*_\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 _\\2 \\2/p'\''"'
+lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/  {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/  {\"\\2\", (lt_ptr) \\&\\2},/p'\''"'
+lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"'
+php_cv_cc_dashr=no
+php_cv_cc_rpath=yes
+
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+
+AR='ar'
+AWK='awk'
+CC='cc'
+CFLAGS='-g -O2'
+CONFIGURE_COMMAND=' '\''./configure'\'' '
+CONFIGURE_OPTIONS=''
+CPP='cc -E'
+CPPFLAGS=' -DHAVE_CONFIG_H'
+DEFS='-DHAVE_CONFIG_H'
+DSYMUTIL='dsymutil'
+ECHO='/bin/echo'
+ECHO_C='\c'
+ECHO_N=''
+ECHO_T=''
+EGREP='/usr/bin/grep -E'
+EXEEXT=''
+GREP='/usr/bin/grep'
+LDFLAGS=''
+LIBOBJS=''
+LIBS=''
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+LN_S='ln -s'
+LTLIBOBJS=''
+NMEDIT='nmedit'
+OBJEXT='o'
+PACKAGE_BUGREPORT=''
+PACKAGE_NAME=''
+PACKAGE_STRING=''
+PACKAGE_TARNAME=''
+PACKAGE_URL=''
+PACKAGE_VERSION=''
+PATH_SEPARATOR=':'
+RANLIB='ranlib'
+RE2C='exit 0;'
+SED='/opt/local/bin/gsed'
+SHELL='/bin/sh'
+SHLIB_DL_SUFFIX_NAME='so'
+SHLIB_SUFFIX_NAME='dylib'
+STRIP='strip'
+ac_ct_CC='cc'
+bindir='${exec_prefix}/bin'
+build='x86_64-apple-darwin15.0.0'
+build_alias=''
+build_cpu='x86_64'
+build_os='darwin15.0.0'
+build_vendor='apple'
+datadir='${datarootdir}'
+datarootdir='${prefix}/share'
+docdir='${datarootdir}/doc/${PACKAGE}'
+dvidir='${docdir}'
+exec_prefix='$(prefix)'
+host='x86_64-apple-darwin15.0.0'
+host_alias='x86_64-apple-darwin15.0.0'
+host_cpu='x86_64'
+host_os='darwin15.0.0'
+host_vendor='apple'
+htmldir='${docdir}'
+includedir='${prefix}/include'
+infodir='${datarootdir}/info'
+libdir='${exec_prefix}/lib'
+libexecdir='${exec_prefix}/libexec'
+localedir='${datarootdir}/locale'
+localstatedir='${prefix}/var'
+mandir='${datarootdir}/man'
+oldincludedir='/usr/include'
+pdfdir='${docdir}'
+prefix='/usr/local/Cellar/php56/5.6.14'
+program_transform_name='s,x,x,'
+psdir='${docdir}'
+sbindir='${exec_prefix}/sbin'
+sharedstatedir='${prefix}/com'
+sysconfdir='${prefix}/etc'
+target='x86_64-apple-darwin15.0.0'
+target_alias=''
+target_cpu='x86_64'
+target_os='darwin15.0.0'
+target_vendor='apple'
+
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+
+/* confdefs.h */
+#define PACKAGE_NAME ""
+#define PACKAGE_TARNAME ""
+#define PACKAGE_VERSION ""
+#define PACKAGE_STRING ""
+#define PACKAGE_BUGREPORT ""
+#define PACKAGE_URL ""
+#define COMPILE_DL_FCGI 1
+#define STDC_HEADERS 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_SYS_STAT_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRING_H 1
+#define HAVE_MEMORY_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_UNISTD_H 1
+#define HAVE_DLFCN_H 1
+
+configure: exit 0

+ 63 - 0
config.m4

@@ -0,0 +1,63 @@
+dnl $Id$
+dnl config.m4 for extension fcgi
+
+dnl Comments in this file start with the string 'dnl'.
+dnl Remove where necessary. This file will not work
+dnl without editing.
+
+dnl If your extension references something external, use with:
+
+dnl PHP_ARG_WITH(fcgi, for fcgi support,
+dnl Make sure that the comment is aligned:
+dnl [  --with-fcgi             Include fcgi support])
+
+dnl Otherwise use enable:
+
+PHP_ARG_ENABLE(fcgi, whether to enable fcgi support,
+dnl Make sure that the comment is aligned:
+[  --enable-fcgi           Enable fcgi support])
+
+if test "$PHP_FCGI" != "no"; then
+  dnl Write more examples of tests here...
+
+  dnl # --with-fcgi -> check with-path
+  dnl SEARCH_PATH="/usr/local /usr"     # you might want to change this
+  dnl SEARCH_FOR="/include/fcgi.h"  # you most likely want to change this
+  dnl if test -r $PHP_FCGI/$SEARCH_FOR; then # path given as parameter
+  dnl   FCGI_DIR=$PHP_FCGI
+  dnl else # search default path list
+  dnl   AC_MSG_CHECKING([for fcgi files in default path])
+  dnl   for i in $SEARCH_PATH ; do
+  dnl     if test -r $i/$SEARCH_FOR; then
+  dnl       FCGI_DIR=$i
+  dnl       AC_MSG_RESULT(found in $i)
+  dnl     fi
+  dnl   done
+  dnl fi
+  dnl
+  dnl if test -z "$FCGI_DIR"; then
+  dnl   AC_MSG_RESULT([not found])
+  dnl   AC_MSG_ERROR([Please reinstall the fcgi distribution])
+  dnl fi
+
+  dnl # --with-fcgi -> add include path
+  dnl PHP_ADD_INCLUDE($FCGI_DIR/include)
+
+  dnl # --with-fcgi -> check for lib and symbol presence
+  dnl LIBNAME=fcgi # you may want to change this
+  dnl LIBSYMBOL=fcgi # you most likely want to change this 
+
+  dnl PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
+  dnl [
+  dnl   PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $FCGI_DIR/$PHP_LIBDIR, FCGI_SHARED_LIBADD)
+  dnl   AC_DEFINE(HAVE_FCGILIB,1,[ ])
+  dnl ],[
+  dnl   AC_MSG_ERROR([wrong fcgi lib version or lib not found])
+  dnl ],[
+  dnl   -L$FCGI_DIR/$PHP_LIBDIR -lm
+  dnl ])
+  dnl
+  dnl PHP_SUBST(FCGI_SHARED_LIBADD)
+
+  PHP_NEW_EXTENSION(fcgi, fcgi.c swap.c, $ext_shared)
+fi

+ 6 - 0
config.nice

@@ -0,0 +1,6 @@
+#! /bin/sh
+#
+# Created by configure
+
+'./configure' \
+"$@"

+ 786 - 0
config.status

@@ -0,0 +1,786 @@
+#! /bin/sh
+# Generated by configure.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+
+SHELL=${CONFIG_SHELL-/bin/sh}
+export SHELL
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+  emulate sh
+  NULLCMD=:
+  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+  setopt NO_GLOB_SUBST
+else
+  case `(set -o) 2>/dev/null` in #(
+  *posix*) :
+    set -o posix ;; #(
+  *) :
+     ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+  as_echo='print -r --'
+  as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+  as_echo='printf %s\n'
+  as_echo_n='printf %s'
+else
+  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+    as_echo_n='/usr/ucb/echo -n'
+  else
+    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+    as_echo_n_body='eval
+      arg=$1;
+      case $arg in #(
+      *"$as_nl"*)
+	expr "X$arg" : "X\\(.*\\)$as_nl";
+	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+      esac;
+      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+    '
+    export as_echo_n_body
+    as_echo_n='sh -c $as_echo_n_body as_echo'
+  fi
+  export as_echo_body
+  as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+  PATH_SEPARATOR=:
+  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+      PATH_SEPARATOR=';'
+  }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.  Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" ""	$as_nl"
+
+# Find who we are.  Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+  *[\\/]* ) as_myself=$0 ;;
+  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+  done
+IFS=$as_save_IFS
+
+     ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+  as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+  exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there.  '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+  as_status=$1; test $as_status -eq 0 && as_status=1
+  if test "$4"; then
+    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+  fi
+  $as_echo "$as_me: error: $2" >&2
+  as_fn_exit $as_status
+} # as_fn_error
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+  return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+  set +e
+  as_fn_set_status $1
+  exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+  { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+  eval 'as_fn_append ()
+  {
+    eval $1+=\$2
+  }'
+else
+  as_fn_append ()
+  {
+    eval $1=\$$1\$2
+  }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+  eval 'as_fn_arith ()
+  {
+    as_val=$(( $* ))
+  }'
+else
+  as_fn_arith ()
+  {
+    as_val=`expr "$@" || test $? -eq 1`
+  }
+fi # as_fn_arith
+
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+  as_basename=basename
+else
+  as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+  as_dirname=dirname
+else
+  as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+	 X"$0" : 'X\(//\)$' \| \
+	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+    sed '/^.*\/\([^/][^/]*\)\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\/\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\/\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+  case `echo 'xy\c'` in
+  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
+  xy)  ECHO_C='\c';;
+  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
+       ECHO_T='	';;
+  esac;;
+*)
+  ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+  rm -f conf$$.dir/conf$$.file
+else
+  rm -f conf$$.dir
+  mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+  if ln -s conf$$.file conf$$ 2>/dev/null; then
+    as_ln_s='ln -s'
+    # ... but there are two gotchas:
+    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+    # In both cases, we have to default to `cp -pR'.
+    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+      as_ln_s='cp -pR'
+  elif ln conf$$.file conf$$ 2>/dev/null; then
+    as_ln_s=ln
+  else
+    as_ln_s='cp -pR'
+  fi
+else
+  as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+  case $as_dir in #(
+  -*) as_dir=./$as_dir;;
+  esac
+  test -d "$as_dir" || eval $as_mkdir_p || {
+    as_dirs=
+    while :; do
+      case $as_dir in #(
+      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+      *) as_qdir=$as_dir;;
+      esac
+      as_dirs="'$as_qdir' $as_dirs"
+      as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$as_dir" : 'X\(//\)[^/]' \| \
+	 X"$as_dir" : 'X\(//\)$' \| \
+	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)[^/].*/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+      test -d "$as_dir" && break
+    done
+    test -z "$as_dirs" || eval "mkdir $as_dirs"
+  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p='mkdir -p "$as_dir"'
+else
+  test -d ./-p && rmdir ./-p
+  as_mkdir_p=false
+fi
+
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+  test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+## ----------------------------------- ##
+## Main body of $CONFIG_STATUS script. ##
+## ----------------------------------- ##
+# Save the log message, to keep $0 and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by $as_me, which was
+generated by GNU Autoconf 2.69.  Invocation command line was
+
+  CONFIG_FILES    = $CONFIG_FILES
+  CONFIG_HEADERS  = $CONFIG_HEADERS
+  CONFIG_LINKS    = $CONFIG_LINKS
+  CONFIG_COMMANDS = $CONFIG_COMMANDS
+  $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+# Files that config.status was made for.
+config_headers=" config.h"
+
+ac_cs_usage="\
+\`$as_me' instantiates files and other configuration actions
+from templates according to the current configuration.  Unless the files
+and actions are specified as TAGs, all are instantiated by default.
+
+Usage: $0 [OPTION]... [TAG]...
+
+  -h, --help       print this help, then exit
+  -V, --version    print version number and configuration settings, then exit
+      --config     print configuration, then exit
+  -q, --quiet, --silent
+                   do not print progress messages
+  -d, --debug      don't remove temporary files
+      --recheck    update $as_me by reconfiguring in the same conditions
+      --header=FILE[:TEMPLATE]
+                   instantiate the configuration header FILE
+
+Configuration headers:
+$config_headers
+
+Report bugs to the package provider."
+
+ac_cs_config=""
+ac_cs_version="\
+config.status
+configured by ./configure, generated by GNU Autoconf 2.69,
+  with options \"$ac_cs_config\"
+
+Copyright (C) 2012 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='/Users/stanley-king/work/lrlz/phpext/fcgi'
+srcdir='.'
+test -n "$AWK" || AWK=awk
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+  case $1 in
+  --*=?*)
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
+    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+    ac_shift=:
+    ;;
+  --*=)
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
+    ac_optarg=
+    ac_shift=:
+    ;;
+  *)
+    ac_option=$1
+    ac_optarg=$2
+    ac_shift=shift
+    ;;
+  esac
+
+  case $ac_option in
+  # Handling of the options.
+  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+    ac_cs_recheck=: ;;
+  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+    $as_echo "$ac_cs_version"; exit ;;
+  --config | --confi | --conf | --con | --co | --c )
+    $as_echo "$ac_cs_config"; exit ;;
+  --debug | --debu | --deb | --de | --d | -d )
+    debug=: ;;
+  --header | --heade | --head | --hea )
+    $ac_shift
+    case $ac_optarg in
+    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+    esac
+    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
+    ac_need_defaults=false;;
+  --he | --h)
+    # Conflict between --help and --header
+    as_fn_error $? "ambiguous option: \`$1'
+Try \`$0 --help' for more information.";;
+  --help | --hel | -h )
+    $as_echo "$ac_cs_usage"; exit ;;
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil | --si | --s)
+    ac_cs_silent=: ;;
+
+  # This is an error.
+  -*) as_fn_error $? "unrecognized option: \`$1'
+Try \`$0 --help' for more information." ;;
+
+  *) as_fn_append ac_config_targets " $1"
+     ac_need_defaults=false ;;
+
+  esac
+  shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+  exec 6>/dev/null
+  ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+if $ac_cs_recheck; then
+  set X /bin/sh './configure'  $ac_configure_extra_args --no-create --no-recursion
+  shift
+  $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
+  CONFIG_SHELL='/bin/sh'
+  export CONFIG_SHELL
+  exec "$@"
+fi
+
+exec 5>>config.log
+{
+  echo
+  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+  $as_echo "$ac_log"
+} >&5
+
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+  case $ac_config_target in
+    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+
+  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+  esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used.  Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+fi
+
+# Have a temporary directory for convenience.  Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+  tmp= ac_tmp=
+  trap 'exit_status=$?
+  : "${ac_tmp:=$tmp}"
+  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
+' 0
+  trap 'as_fn_exit 1' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+  test -d "$tmp"
+}  ||
+{
+  tmp=./conf$$-$RANDOM
+  (umask 077 && mkdir "$tmp")
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+ac_tmp=$tmp
+
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
+D["PACKAGE_NAME"]=" \"\""
+D["PACKAGE_TARNAME"]=" \"\""
+D["PACKAGE_VERSION"]=" \"\""
+D["PACKAGE_STRING"]=" \"\""
+D["PACKAGE_BUGREPORT"]=" \"\""
+D["PACKAGE_URL"]=" \"\""
+D["COMPILE_DL_FCGI"]=" 1"
+D["STDC_HEADERS"]=" 1"
+D["HAVE_SYS_TYPES_H"]=" 1"
+D["HAVE_SYS_STAT_H"]=" 1"
+D["HAVE_STDLIB_H"]=" 1"
+D["HAVE_STRING_H"]=" 1"
+D["HAVE_MEMORY_H"]=" 1"
+D["HAVE_STRINGS_H"]=" 1"
+D["HAVE_INTTYPES_H"]=" 1"
+D["HAVE_STDINT_H"]=" 1"
+D["HAVE_UNISTD_H"]=" 1"
+D["HAVE_DLFCN_H"]=" 1"
+  for (key in D) D_is_set[key] = 1
+  FS = ""
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
+  line = $ 0
+  split(line, arg, " ")
+  if (arg[1] == "#") {
+    defundef = arg[2]
+    mac1 = arg[3]
+  } else {
+    defundef = substr(arg[1], 2)
+    mac1 = arg[2]
+  }
+  split(mac1, mac2, "(") #)
+  macro = mac2[1]
+  prefix = substr(line, 1, index(line, defundef) - 1)
+  if (D_is_set[macro]) {
+    # Preserve the white space surrounding the "#".
+    print prefix "define", macro P[macro] D[macro]
+    next
+  } else {
+    # Replace #undef with comments.  This is necessary, for example,
+    # in the case of _POSIX_SOURCE, which is predefined and required
+    # on some systems where configure will not decide to define it.
+    if (defundef == "undef") {
+      print "/*", prefix defundef, macro, "*/"
+      next
+    }
+  }
+}
+{ print }
+_ACAWK
+  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X "    :H $CONFIG_HEADERS    "
+shift
+for ac_tag
+do
+  case $ac_tag in
+  :[FHLC]) ac_mode=$ac_tag; continue;;
+  esac
+  case $ac_mode$ac_tag in
+  :[FHL]*:*);;
+  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+  :[FH]-) ac_tag=-:-;;
+  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+  esac
+  ac_save_IFS=$IFS
+  IFS=:
+  set x $ac_tag
+  IFS=$ac_save_IFS
+  shift
+  ac_file=$1
+  shift
+
+  case $ac_mode in
+  :L) ac_source=$1;;
+  :[FH])
+    ac_file_inputs=
+    for ac_f
+    do
+      case $ac_f in
+      -) ac_f="$ac_tmp/stdin";;
+      *) # Look for the file first in the build tree, then in the source tree
+	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
+	 # because $ac_f cannot contain `:'.
+	 test -f "$ac_f" ||
+	   case $ac_f in
+	   [\\/$]*) false;;
+	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+	   esac ||
+	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+      esac
+      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+      as_fn_append ac_file_inputs " '$ac_f'"
+    done
+
+    # Let's still pretend it is `configure' which instantiates (i.e., don't
+    # use $as_me), people would be surprised to read:
+    #    /* config.h.  Generated by config.status.  */
+    configure_input='Generated from '`
+	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+	`' by configure.'
+    if test x"$ac_file" != x-; then
+      configure_input="$ac_file.  $configure_input"
+      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+    fi
+    # Neutralize special characters interpreted by sed in replacement strings.
+    case $configure_input in #(
+    *\&* | *\|* | *\\* )
+       ac_sed_conf_input=`$as_echo "$configure_input" |
+       sed 's/[\\\\&|]/\\\\&/g'`;; #(
+    *) ac_sed_conf_input=$configure_input;;
+    esac
+
+    case $ac_tag in
+    *:-:* | *:-) cat >"$ac_tmp/stdin" \
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+    esac
+    ;;
+  esac
+
+  ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$ac_file" : 'X\(//\)[^/]' \| \
+	 X"$ac_file" : 'X\(//\)$' \| \
+	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ac_file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)[^/].*/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+  as_dir="$ac_dir"; as_fn_mkdir_p
+  ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+  # A ".." for each directory in $ac_dir_suffix.
+  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+  case $ac_top_builddir_sub in
+  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+  esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+  .)  # We are building in place.
+    ac_srcdir=.
+    ac_top_srcdir=$ac_top_builddir_sub
+    ac_abs_top_srcdir=$ac_pwd ;;
+  [\\/]* | ?:[\\/]* )  # Absolute name.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir
+    ac_abs_top_srcdir=$srcdir ;;
+  *) # Relative name.
+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_build_prefix$srcdir
+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+  case $ac_mode in
+
+  :H)
+  #
+  # CONFIG_HEADER
+  #
+  if test x"$ac_file" != x-; then
+    {
+      $as_echo "/* $configure_input  */" \
+      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
+    } >"$ac_tmp/config.h" \
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
+$as_echo "$as_me: $ac_file is unchanged" >&6;}
+    else
+      rm -f "$ac_file"
+      mv "$ac_tmp/config.h" "$ac_file" \
+	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
+    fi
+  else
+    $as_echo "/* $configure_input  */" \
+      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
+      || as_fn_error $? "could not create -" "$LINENO" 5
+  fi
+ ;;
+
+
+  esac
+
+done # for ac_tag
+
+
+as_fn_exit 0

File diff suppressed because it is too large
+ 1793 - 0
config.sub


+ 13 - 0
config.w32

@@ -0,0 +1,13 @@
+// $Id$
+// vim:ft=javascript
+
+// If your extension references something external, use ARG_WITH
+// ARG_WITH("fcgi", "for fcgi support", "no");
+
+// Otherwise, use ARG_ENABLE
+// ARG_ENABLE("fcgi", "enable fcgi support", "no");
+
+if (PHP_FCGI != "no") {
+	EXTENSION("fcgi", "fcgi.c");
+}
+

File diff suppressed because it is too large
+ 13837 - 0
configure


+ 202 - 0
configure.in

@@ -0,0 +1,202 @@
+dnl This file becomes configure.in for self-contained extensions.
+
+AC_PREREQ(2.59)
+AC_INIT(config.m4)
+ifdef([AC_PRESERVE_HELP_ORDER], [AC_PRESERVE_HELP_ORDER], [])
+
+PHP_CONFIG_NICE(config.nice)
+
+dnl 
+AC_DEFUN([PHP_EXT_BUILDDIR],[.])dnl
+AC_DEFUN([PHP_EXT_DIR],[""])dnl
+AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir])dnl
+AC_DEFUN([PHP_ALWAYS_SHARED],[
+  ext_output="yes, shared"
+  ext_shared=yes
+  test "[$]$1" = "no" && $1=yes
+])dnl
+dnl
+
+test -z "$CFLAGS" && auto_cflags=1
+
+abs_srcdir=`(cd $srcdir && pwd)`
+abs_builddir=`pwd`
+
+AC_PROG_CC([cc gcc])
+PHP_DETECT_ICC
+PHP_DETECT_SUNCC
+AC_PROG_CC_C_O
+
+dnl Support systems with system libraries in e.g. /usr/lib64
+PHP_ARG_WITH(libdir, for system library directory,
+[  --with-libdir=NAME      Look for libraries in .../NAME rather than .../lib], lib, no)
+
+PHP_RUNPATH_SWITCH
+PHP_SHLIB_SUFFIX_NAMES
+
+dnl Find php-config script
+PHP_ARG_WITH(php-config,,
+[  --with-php-config=PATH  Path to php-config [php-config]], php-config, no)
+
+dnl For BC
+PHP_CONFIG=$PHP_PHP_CONFIG
+prefix=`$PHP_CONFIG --prefix 2>/dev/null`
+phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
+INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
+EXTENSION_DIR=`$PHP_CONFIG --extension-dir 2>/dev/null`
+PHP_EXECUTABLE=`$PHP_CONFIG --php-binary 2>/dev/null`
+ 
+if test -z "$prefix"; then
+  AC_MSG_ERROR([Cannot find php-config. Please use --with-php-config=PATH])
+fi
+
+php_shtool=$srcdir/build/shtool
+PHP_INIT_BUILD_SYSTEM
+
+AC_MSG_CHECKING([for PHP prefix])
+AC_MSG_RESULT([$prefix])
+AC_MSG_CHECKING([for PHP includes])
+AC_MSG_RESULT([$INCLUDES])
+AC_MSG_CHECKING([for PHP extension directory])
+AC_MSG_RESULT([$EXTENSION_DIR])
+AC_MSG_CHECKING([for PHP installed headers prefix])
+AC_MSG_RESULT([$phpincludedir])
+
+dnl Checks for PHP_DEBUG / ZEND_DEBUG / ZTS
+AC_MSG_CHECKING([if debug is enabled])
+old_CPPFLAGS=$CPPFLAGS
+CPPFLAGS="-I$phpincludedir"
+AC_EGREP_CPP(php_debug_is_enabled,[
+#include <main/php_config.h>
+#if ZEND_DEBUG
+php_debug_is_enabled
+#endif
+],[
+  PHP_DEBUG=yes
+],[
+  PHP_DEBUG=no
+])
+CPPFLAGS=$old_CPPFLAGS
+AC_MSG_RESULT([$PHP_DEBUG])
+
+AC_MSG_CHECKING([if zts is enabled])
+old_CPPFLAGS=$CPPFLAGS
+CPPFLAGS="-I$phpincludedir"
+AC_EGREP_CPP(php_zts_is_enabled,[
+#include <main/php_config.h>
+#if ZTS
+php_zts_is_enabled
+#endif
+],[
+  PHP_THREAD_SAFETY=yes
+],[
+  PHP_THREAD_SAFETY=no
+])
+CPPFLAGS=$old_CPPFLAGS
+AC_MSG_RESULT([$PHP_DEBUG])
+
+dnl Support for building and testing Zend extensions
+ZEND_EXT_TYPE="zend_extension"
+PHP_SUBST(ZEND_EXT_TYPE)
+
+dnl Discard optimization flags when debugging is enabled
+if test "$PHP_DEBUG" = "yes"; then
+  PHP_DEBUG=1
+  ZEND_DEBUG=yes
+  changequote({,})
+  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
+  CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
+  changequote([,])
+  dnl add -O0 only if GCC or ICC is used
+  if test "$GCC" = "yes" || test "$ICC" = "yes"; then
+    CFLAGS="$CFLAGS -O0"
+    CXXFLAGS="$CXXFLAGS -g -O0"
+  fi
+  if test "$SUNCC" = "yes"; then
+    if test -n "$auto_cflags"; then
+      CFLAGS="-g"
+      CXXFLAGS="-g"
+    else
+      CFLAGS="$CFLAGS -g"
+      CXXFLAGS="$CFLAGS -g"
+    fi
+  fi
+else
+  PHP_DEBUG=0
+  ZEND_DEBUG=no
+fi
+
+dnl Always shared
+PHP_BUILD_SHARED
+
+dnl Required programs
+PHP_PROG_RE2C
+PHP_PROG_AWK
+
+sinclude(config.m4)
+
+enable_static=no
+enable_shared=yes
+
+dnl Only allow AC_PROG_CXX and AC_PROG_CXXCPP if they are explicitly called (by PHP_REQUIRE_CXX).
+dnl Otherwise AC_PROG_LIBTOOL fails if there is no working C++ compiler.
+AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [], [
+  undefine([AC_PROG_CXX])
+  AC_DEFUN([AC_PROG_CXX], [])
+  undefine([AC_PROG_CXXCPP])
+  AC_DEFUN([AC_PROG_CXXCPP], [php_prog_cxxcpp=disabled])
+])
+AC_PROG_LIBTOOL
+
+all_targets='$(PHP_MODULES) $(PHP_ZEND_EX)'
+install_targets="install-modules install-headers"
+phplibdir="`pwd`/modules"
+CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
+CFLAGS_CLEAN='$(CFLAGS)'
+CXXFLAGS_CLEAN='$(CXXFLAGS)'
+
+test "$prefix" = "NONE" && prefix="/usr/local"
+test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
+
+PHP_SUBST(PHP_MODULES)
+PHP_SUBST(PHP_ZEND_EX)
+
+PHP_SUBST(all_targets)
+PHP_SUBST(install_targets)
+
+PHP_SUBST(prefix)
+PHP_SUBST(exec_prefix)
+PHP_SUBST(libdir)
+PHP_SUBST(prefix)
+PHP_SUBST(phplibdir)
+PHP_SUBST(phpincludedir)
+
+PHP_SUBST(CC)
+PHP_SUBST(CFLAGS)
+PHP_SUBST(CFLAGS_CLEAN)
+PHP_SUBST(CPP)
+PHP_SUBST(CPPFLAGS)
+PHP_SUBST(CXX)
+PHP_SUBST(CXXFLAGS)
+PHP_SUBST(CXXFLAGS_CLEAN)
+PHP_SUBST(EXTENSION_DIR)
+PHP_SUBST(PHP_EXECUTABLE)
+PHP_SUBST(EXTRA_LDFLAGS)
+PHP_SUBST(EXTRA_LIBS)
+PHP_SUBST(INCLUDES)
+PHP_SUBST(LFLAGS)
+PHP_SUBST(LDFLAGS)
+PHP_SUBST(SHARED_LIBTOOL)
+PHP_SUBST(LIBTOOL)
+PHP_SUBST(SHELL)
+PHP_SUBST(INSTALL_HEADERS)
+
+PHP_GEN_BUILD_DIRS
+PHP_GEN_GLOBAL_MAKEFILE
+
+test -d modules || $php_shtool mkdir modules
+touch .deps
+
+AC_CONFIG_HEADER(config.h)
+
+AC_OUTPUT()

+ 194 - 0
fcgi.c

@@ -0,0 +1,194 @@
+/*
+  +----------------------------------------------------------------------+
+  | PHP Version 5                                                        |
+  +----------------------------------------------------------------------+
+  | Copyright (c) 1997-2015 The PHP Group                                |
+  +----------------------------------------------------------------------+
+  | This source file is subject to version 3.01 of the PHP license,      |
+  | that is bundled with this package in the file LICENSE, and is        |
+  | available through the world-wide-web at the following url:           |
+  | http://www.php.net/license/3_01.txt                                  |
+  | If you did not receive a copy of the PHP license and are unable to   |
+  | obtain it through the world-wide-web, please send a note to          |
+  | license@php.net so we can mail you a copy immediately.               |
+  +----------------------------------------------------------------------+
+  | Author:                                                              |
+  +----------------------------------------------------------------------+
+*/
+
+/* $Id$ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "php.h"
+#include "php_ini.h"
+#include "ext/standard/info.h"
+#include "php_fcgi.h"
+#include <fcgi_stdio.h>
+
+static int le_fcgi;
+
+const zend_function_entry fcgi_functions[] = {
+	PHP_FE(confirm_fcgi_compiled,	NULL)		/* For testing, remove later. */
+	PHP_FE(fcgi_init,	NULL)
+	PHP_FE(fcgi_fini,	NULL)	
+	PHP_FE(fcgi_accept,	NULL)
+	PHP_FE(fcgi_finish,	NULL)	
+	PHP_FE(fcgi_getparam, NULL)
+	PHP_FE_END	/* Must be the last line in fcgi_functions[] */
+};
+
+zend_module_entry fcgi_module_entry = {
+#if ZEND_MODULE_API_NO >= 20010901
+	STANDARD_MODULE_HEADER,
+#endif
+	"fcgi",
+	fcgi_functions,
+	PHP_MINIT(fcgi),
+	PHP_MSHUTDOWN(fcgi),
+	PHP_RINIT(fcgi),		/* Replace with NULL if there's nothing to do at request start */
+	PHP_RSHUTDOWN(fcgi),	/* Replace with NULL if there's nothing to do at request end */
+	PHP_MINFO(fcgi),
+#if ZEND_MODULE_API_NO >= 20010901
+	PHP_FCGI_VERSION,
+#endif
+	STANDARD_MODULE_PROPERTIES
+};
+/* }}} */
+
+#ifdef COMPILE_DL_FCGI
+ZEND_GET_MODULE(fcgi)
+#endif
+
+PHP_MINIT_FUNCTION(fcgi)
+{
+	/* If you have INI entries, uncomment these lines 
+	REGISTER_INI_ENTRIES();
+	*/
+	return SUCCESS;
+}
+
+PHP_MSHUTDOWN_FUNCTION(fcgi)
+{
+	/* uncomment this line if you have INI entries
+	UNREGISTER_INI_ENTRIES();
+	*/
+	return SUCCESS;
+}
+
+PHP_RINIT_FUNCTION(fcgi)
+{
+	return SUCCESS;
+}
+
+PHP_RSHUTDOWN_FUNCTION(fcgi)
+{
+	return SUCCESS;
+}
+
+PHP_MINFO_FUNCTION(fcgi)
+{
+	php_info_print_table_start();
+	php_info_print_table_header(2, "fcgi support", "enabled");
+	php_info_print_table_end();
+}
+
+PHP_FUNCTION(confirm_fcgi_compiled)
+{
+	char *arg = NULL;
+	int arg_len, len;
+	char *strg;
+
+	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arg, &arg_len) == FAILURE) {
+		return;
+	}
+
+	len = spprintf(&strg, 0, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "fcgi", arg);
+	RETURN_STRINGL(strg, len, 0);
+}
+
+extern void swap_init();
+extern void fcgi_log(const char* szBuf);
+extern void swap_fini();
+extern void start_accept();
+extern void fini_accept(void (* pFun)(char*) );
+
+PHP_FUNCTION(fcgi_init)
+{
+	char *arg = NULL;	 
+	int arg_len;	 
+	 
+	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arg, &arg_len) == FAILURE) {	 
+		return;
+	}
+
+	swap_init(arg);
+}
+
+PHP_FUNCTION(fcgi_fini)
+{
+	swap_fini();
+}
+
+static FCGX_Stream* stInstream;
+static FCGX_Stream* stOutstream;
+static FCGX_Stream* stErrstream;
+static FCGX_ParamArray stParams;
+
+PHP_FUNCTION(fcgi_accept)
+{
+	fcgi_log("\r\n\r\nstart fcgi_accept:\r\n");
+	start_accept();
+
+	int ret = FCGX_Accept(&stInstream,&stOutstream,&stErrstream,&stParams);
+	printf("Content-Type: text/html; charset=UTF-8\r\n\r\n");
+
+	if(stInstream == NULL) {
+		fcgi_log("Error: in stream = null \r\n");
+	}
+	if(stOutstream == NULL) {
+		fcgi_log("Error: out stream = null \r\n");
+	}
+	if(stErrstream == NULL) {
+		fcgi_log("Error: err stream = null \r\n");
+	}
+
+	if(ret < 0) {		
+		fcgi_log("Error: fcgi_accept ret < 0.\r\n");
+	}
+
+	RETVAL_LONG(ret);
+}
+
+PHP_FUNCTION(fcgi_getparam)
+{
+	char *arg = NULL;	 
+	int arg_len;	 
+	 
+	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arg, &arg_len) == FAILURE) {	 
+		return;
+	}
+
+	const char* ret = FCGX_GetParam(arg, stParams);
+	ret == NULL ? "" : ret;
+
+	char* result = estrdup(ret);
+	RETURN_STRINGL(result,strlen(result),0);
+}
+
+void print_fun(char* szBuf)
+{
+	if(stOutstream && szBuf) {
+		FCGX_PutS(szBuf,stOutstream);
+	}
+}
+
+PHP_FUNCTION(fcgi_finish)
+{
+	fini_accept(print_fun);
+	FCGX_Finish();
+	fcgi_log("fcgi_finish\r\n");
+}
+

+ 21 - 0
fcgi.php

@@ -0,0 +1,21 @@
+<?php
+$br = (php_sapi_name() == "cli")? "":"<br>";
+
+if(!extension_loaded('fcgi')) {
+	dl('fcgi.' . PHP_SHLIB_SUFFIX);
+}
+$module = 'fcgi';
+$functions = get_extension_funcs($module);
+echo "Functions available in the test extension:$br\n";
+foreach($functions as $func) {
+    echo $func."$br\n";
+}
+echo "$br\n";
+$function = 'confirm_' . $module . '_compiled';
+if (extension_loaded($module)) {
+	$str = $function($module);
+} else {
+	$str = "Module $module is not compiled into PHP";
+}
+echo "$str\n";
+?>

+ 0 - 0
install-sh


File diff suppressed because it is too large
+ 7310 - 0
libtool


File diff suppressed because it is too large
+ 6957 - 0
ltmain.sh


+ 0 - 0
missing


+ 0 - 0
mkinstalldirs


+ 92 - 0
php_fcgi.h

@@ -0,0 +1,92 @@
+/*
+  +----------------------------------------------------------------------+
+  | PHP Version 5                                                        |
+  +----------------------------------------------------------------------+
+  | Copyright (c) 1997-2015 The PHP Group                                |
+  +----------------------------------------------------------------------+
+  | This source file is subject to version 3.01 of the PHP license,      |
+  | that is bundled with this package in the file LICENSE, and is        |
+  | available through the world-wide-web at the following url:           |
+  | http://www.php.net/license/3_01.txt                                  |
+  | If you did not receive a copy of the PHP license and are unable to   |
+  | obtain it through the world-wide-web, please send a note to          |
+  | license@php.net so we can mail you a copy immediately.               |
+  +----------------------------------------------------------------------+
+  | Author:                                                              |
+  +----------------------------------------------------------------------+
+*/
+
+/* $Id$ */
+
+#ifndef PHP_FCGI_H
+#define PHP_FCGI_H
+
+extern zend_module_entry fcgi_module_entry;
+#define phpext_fcgi_ptr &fcgi_module_entry
+
+#define PHP_FCGI_VERSION "0.1.0" /* Replace with version number for your extension */
+
+#ifdef PHP_WIN32
+#	define PHP_FCGI_API __declspec(dllexport)
+#elif defined(__GNUC__) && __GNUC__ >= 4
+#	define PHP_FCGI_API __attribute__ ((visibility("default")))
+#else
+#	define PHP_FCGI_API
+#endif
+
+#ifdef ZTS
+#include "TSRM.h"
+#endif
+
+PHP_MINIT_FUNCTION(fcgi);
+PHP_MSHUTDOWN_FUNCTION(fcgi);
+PHP_RINIT_FUNCTION(fcgi);
+PHP_RSHUTDOWN_FUNCTION(fcgi);
+PHP_MINFO_FUNCTION(fcgi);
+
+PHP_FUNCTION(confirm_fcgi_compiled);	/* For testing, remove later. */
+PHP_FUNCTION(fcgi_init);
+PHP_FUNCTION(fcgi_fini);
+PHP_FUNCTION(fcgi_accept);
+PHP_FUNCTION(fcgi_finish);
+PHP_FUNCTION(fcgi_getparam);
+
+
+
+/* 
+  	Declare any global variables you may need between the BEGIN
+	and END macros here:     
+
+ZEND_BEGIN_MODULE_GLOBALS(fcgi)
+	long  global_value;
+	char *global_string;
+ZEND_END_MODULE_GLOBALS(fcgi)
+*/
+
+/* In every utility function you add that needs to use variables 
+   in php_fcgi_globals, call TSRMLS_FETCH(); after declaring other 
+   variables used by that function, or better yet, pass in TSRMLS_CC
+   after the last function argument and declare your utility function
+   with TSRMLS_DC after the last declared argument.  Always refer to
+   the globals in your function as FCGI_G(variable).  You are 
+   encouraged to rename these macros something shorter, see
+   examples in any other php module directory.
+*/
+
+#ifdef ZTS
+#define FCGI_G(v) TSRMG(fcgi_globals_id, zend_fcgi_globals *, v)
+#else
+#define FCGI_G(v) (fcgi_globals.v)
+#endif
+
+#endif	/* PHP_FCGI_H */
+
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */

File diff suppressed because it is too large
+ 2836 - 0
run-tests.php


+ 103 - 0
swap.c

@@ -0,0 +1,103 @@
+
+#include <unistd.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <errno.h>
+
+static char* stPath = NULL;
+static FILE* stLogFile = NULL;
+static FILE* stSwapFile = NULL;
+
+char* get_path()
+{
+	int pid = getpid();
+	static char szFile[128] = {0};
+	sprintf(szFile,"%s/swap/fcig_%d.dat",stPath,pid);
+
+	return szFile;
+}
+
+void fcgi_log(const char* szBuf) 
+{
+	if(stLogFile && szBuf != NULL) {
+		fprintf(stLogFile , szBuf);
+		fflush(stLogFile);
+	}
+}
+
+void swap_init(char* path)
+{
+	stPath = path;
+	char szLogfile[128] = {0};
+	sprintf(szLogfile,"%s/fcgi-log.txt",stPath);
+
+	stLogFile = fopen(szLogfile,"a+");
+	stSwapFile = freopen(get_path(),"w+",stdout);
+
+	if(stLogFile == NULL) return;
+
+	if(stSwapFile != NULL) {
+		int fd = fileno(stSwapFile);
+		char szBuf[128];
+		sprintf(szBuf,"open swapfile fd=%d\n",fd);
+		fcgi_log(szBuf);
+	} else {
+		fcgi_log("create swap file error");
+	}
+}
+
+void swap_fini()
+{
+	if(stLogFile) {
+		fclose(stLogFile);
+		fclose(stSwapFile);
+		stLogFile = NULL;
+		stSwapFile = NULL;
+	}
+}
+
+void start_accept()
+{
+	if (stSwapFile) {
+		fseek(stSwapFile,0,SEEK_SET);
+	}
+}
+
+void fini_accept(void (* pFun)(char*) )
+{
+	if(stSwapFile == NULL) return;
+
+	fflush(stdout);
+	fseek(stSwapFile,0,SEEK_SET);
+	char szBuf[5000] = {0};
+	do {
+		int nRead = fread(szBuf,1,4096,stSwapFile);
+		if(nRead <= 0) {
+			char szLog[128];
+			sprintf(szLog,"read file fd=%d len=%d\n",fileno(stSwapFile),nRead);
+			fcgi_log(szLog);
+			break;
+		} 
+		else 
+		{
+			char szLog[128];
+			sprintf(szLog,"read file fd=%d len=%d\n",fileno(stSwapFile),nRead);
+			fcgi_log(szLog);
+
+			szBuf[nRead] = 0;
+			pFun(szBuf);	
+		}
+	} while(1);
+
+	if(stSwapFile) 
+	{
+		if(ftruncate(fileno(stSwapFile),0) < 0) {
+			char szLog[128] = {0};
+			sprintf(szLog,"ftruncate err:%d",errno);
+			fcgi_log(szLog);
+		}
+	}
+}
+
+
+

+ 21 - 0
tests/001.phpt

@@ -0,0 +1,21 @@
+--TEST--
+Check for fcgi presence
+--SKIPIF--
+<?php if (!extension_loaded("fcgi")) print "skip"; ?>
+--FILE--
+<?php 
+echo "fcgi extension is available";
+/*
+	you can add regression tests for your extension here
+
+  the output of your test code has to be equal to the
+  text in the --EXPECT-- section below for the tests
+  to pass, differences between the output and the
+  expected text are interpreted as failure
+
+	see php5/README.TESTING for further information on
+  writing regression tests
+*/
+?>
+--EXPECT--
+fcgi extension is available