rasmus Mon, 16 May 2011 00:14:47 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=311067
Log: Get rid of autoconf warnings Changed paths: D php/php-src/branches/PHP_5_4/TSRM/acconfig.h U php/php-src/branches/PHP_5_4/TSRM/build.mk U php/php-src/branches/PHP_5_4/TSRM/configure.in D php/php-src/branches/PHP_5_4/Zend/acconfig.h U php/php-src/branches/PHP_5_4/Zend/build.mk U php/php-src/branches/PHP_5_4/Zend/configure.in D php/php-src/branches/PHP_5_4/acconfig.h.in U php/php-src/branches/PHP_5_4/build/build.mk U php/php-src/branches/PHP_5_4/build/build2.mk U php/php-src/branches/PHP_5_4/configure.in D php/php-src/trunk/TSRM/acconfig.h U php/php-src/trunk/TSRM/build.mk U php/php-src/trunk/TSRM/configure.in D php/php-src/trunk/Zend/acconfig.h U php/php-src/trunk/Zend/build.mk U php/php-src/trunk/Zend/configure.in D php/php-src/trunk/acconfig.h.in U php/php-src/trunk/build/build.mk U php/php-src/trunk/build/build2.mk U php/php-src/trunk/configure.in U php/php-src/trunk/main/php_version.h
Deleted: php/php-src/branches/PHP_5_4/TSRM/acconfig.h =================================================================== --- php/php-src/branches/PHP_5_4/TSRM/acconfig.h 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/branches/PHP_5_4/TSRM/acconfig.h 2011-05-16 00:14:47 UTC (rev 311067) @@ -1 +0,0 @@ -#undef PTHREADS Modified: php/php-src/branches/PHP_5_4/TSRM/build.mk =================================================================== --- php/php-src/branches/PHP_5_4/TSRM/build.mk 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/branches/PHP_5_4/TSRM/build.mk 2011-05-16 00:14:47 UTC (rev 311067) @@ -33,7 +33,7 @@ aclocal.m4: configure.in acinclude.m4 aclocal -$(config_h_in): configure.in acconfig.h +$(config_h_in): configure.in # explicitly remove target since autoheader does not seem to work # correctly otherwise (timestamps are not updated) @rm -f $@ Modified: php/php-src/branches/PHP_5_4/TSRM/configure.in =================================================================== --- php/php-src/branches/PHP_5_4/TSRM/configure.in 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/branches/PHP_5_4/TSRM/configure.in 2011-05-16 00:14:47 UTC (rev 311067) @@ -7,6 +7,10 @@ AM_INIT_AUTOMAKE(TSRM, 1.0, nodefine) AM_CONFIG_HEADER(tsrm_config.h) +AH_TOP([ +#undef PTHREADS +]) + sinclude(tsrm.m4) TSRM_BASIC_CHECKS Deleted: php/php-src/branches/PHP_5_4/Zend/acconfig.h =================================================================== --- php/php-src/branches/PHP_5_4/Zend/acconfig.h 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/branches/PHP_5_4/Zend/acconfig.h 2011-05-16 00:14:47 UTC (rev 311067) @@ -1,127 +0,0 @@ -/* - +----------------------------------------------------------------------+ - | Zend Engine | - +----------------------------------------------------------------------+ - | Copyright (c) 1998-2011 Zend Technologies Ltd. (http://www.zend.com) | - +----------------------------------------------------------------------+ - | This source file is subject to version 2.00 of the Zend 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.zend.com/license/2_00.txt. | - | If you did not receive a copy of the Zend license and are unable to | - | obtain it through the world-wide-web, please send a note to | - | lice...@zend.com so we can mail you a copy immediately. | - +----------------------------------------------------------------------+ - | Authors: Andi Gutmans <a...@zend.com> | - | Zeev Suraski <z...@zend.com> | - +----------------------------------------------------------------------+ -*/ - -/* $Id$ */ - -#if defined(__GNUC__) && __GNUC__ >= 4 -# define ZEND_API __attribute__ ((visibility("default"))) -# define ZEND_DLEXPORT __attribute__ ((visibility("default"))) -#else -# define ZEND_API -# define ZEND_DLEXPORT -#endif - -#define ZEND_DLIMPORT - -@TOP@ - -#undef uint -#undef ulong - -/* Define if you want to enable memory limit support */ -#define MEMORY_LIMIT 0 - -@BOTTOM@ - -#ifndef ZEND_ACCONFIG_H_NO_C_PROTOS - -#ifdef HAVE_STDLIB_H -# include <stdlib.h> -#endif - -#ifdef HAVE_SYS_TYPES_H -# include <sys/types.h> -#endif - -#ifdef HAVE_SYS_SELECT_H -#include <sys/select.h> -#endif - -#ifdef HAVE_IEEEFP_H -# include <ieeefp.h> -#endif - -#ifdef HAVE_STRING_H -# include <string.h> -#else -# include <strings.h> -#endif - -#if ZEND_BROKEN_SPRINTF -int zend_sprintf(char *buffer, const char *format, ...); -#else -# define zend_sprintf sprintf -#endif - -#include <math.h> - -/* To enable the is_nan, is_infinite and is_finite PHP functions */ -#ifdef NETWARE - #define HAVE_ISNAN 1 - #define HAVE_ISINF 1 - #define HAVE_ISFINITE 1 -#endif - -#ifndef zend_isnan -#ifdef HAVE_ISNAN -#define zend_isnan(a) isnan(a) -#elif defined(HAVE_FPCLASS) -#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) -#else -#define zend_isnan(a) 0 -#endif -#endif - -#ifdef HAVE_ISINF -#define zend_isinf(a) isinf(a) -#elif defined(INFINITY) -/* Might not work, but is required by ISO C99 */ -#define zend_isinf(a) (((a)==INFINITY)?1:0) -#elif defined(HAVE_FPCLASS) -#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) -#else -#define zend_isinf(a) 0 -#endif - -#ifdef HAVE_FINITE -#define zend_finite(a) finite(a) -#elif defined(HAVE_ISFINITE) || defined(isfinite) -#define zend_finite(a) isfinite(a) -#elif defined(fpclassify) -#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0) -#else -#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1) -#endif - -#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */ - -#ifdef NETWARE -#ifdef USE_WINSOCK -#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T -#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H -#endif -#endif - -/* - * Local variables: - * tab-width: 4 - * c-basic-offset: 4 - * indent-tabs-mode: t - * End: - */ Modified: php/php-src/branches/PHP_5_4/Zend/build.mk =================================================================== --- php/php-src/branches/PHP_5_4/Zend/build.mk 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/branches/PHP_5_4/Zend/build.mk 2011-05-16 00:14:47 UTC (rev 311067) @@ -33,7 +33,7 @@ aclocal.m4: configure.in acinclude.m4 aclocal -$(config_h_in): configure.in acconfig.h +$(config_h_in): configure.in # explicitly remove target since autoheader does not seem to work # correctly otherwise (timestamps are not updated) @rm -f $@ Modified: php/php-src/branches/PHP_5_4/Zend/configure.in =================================================================== --- php/php-src/branches/PHP_5_4/Zend/configure.in 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/branches/PHP_5_4/Zend/configure.in 2011-05-16 00:14:47 UTC (rev 311067) @@ -11,6 +11,105 @@ ZEND_VERSION=$VERSION AC_ZEND_C_BIGENDIAN +AH_TOP([ +#if defined(__GNUC__) && __GNUC__ >= 4 +# define ZEND_API __attribute__ ((visibility("default"))) +# define ZEND_DLEXPORT __attribute__ ((visibility("default"))) +#else +# define ZEND_API +# define ZEND_DLEXPORT +#endif + +#define ZEND_DLIMPORT + +#undef uint +#undef ulong + +/* Define if you want to enable memory limit support */ +#define MEMORY_LIMIT 0 +]) + +AH_BOTTOM([ +#ifndef ZEND_ACCONFIG_H_NO_C_PROTOS + +#ifdef HAVE_STDLIB_H +# include <stdlib.h> +#endif + +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif + +#ifdef HAVE_SYS_SELECT_H +#include <sys/select.h> +#endif + +#ifdef HAVE_IEEEFP_H +# include <ieeefp.h> +#endif + +#ifdef HAVE_STRING_H +# include <string.h> +#else +# include <strings.h> +#endif + +#if ZEND_BROKEN_SPRINTF +int zend_sprintf(char *buffer, const char *format, ...); +#else +# define zend_sprintf sprintf +#endif + +#include <math.h> + +/* To enable the is_nan, is_infinite and is_finite PHP functions */ +#ifdef NETWARE + #define HAVE_ISNAN 1 + #define HAVE_ISINF 1 + #define HAVE_ISFINITE 1 +#endif + +#ifndef zend_isnan +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif +#endif + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +#ifdef HAVE_FINITE +#define zend_finite(a) finite(a) +#elif defined(HAVE_ISFINITE) || defined(isfinite) +#define zend_finite(a) isfinite(a) +#elif defined(fpclassify) +#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0) +#else +#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1) +#endif + +#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */ + +#ifdef NETWARE +#ifdef USE_WINSOCK +#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T +#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H +#endif +#endif +]) + dnl We want this one before the checks, so the checks can modify CFLAGS. test -z "$CFLAGS" && auto_cflags=1 Deleted: php/php-src/branches/PHP_5_4/acconfig.h.in =================================================================== --- php/php-src/branches/PHP_5_4/acconfig.h.in 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/branches/PHP_5_4/acconfig.h.in 2011-05-16 00:14:47 UTC (rev 311067) @@ -1 +0,0 @@ -/* Leave this file alone */ Modified: php/php-src/branches/PHP_5_4/build/build.mk =================================================================== --- php/php-src/branches/PHP_5_4/build/build.mk 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/branches/PHP_5_4/build/build.mk 2011-05-16 00:14:47 UTC (rev 311067) @@ -32,7 +32,6 @@ generated_lists: @echo makefile_am_files = Zend/Makefile.am TSRM/Makefile.am > $@ - @echo config_h_files = Zend/acconfig.h TSRM/acconfig.h >> $@ @echo config_m4_files = Zend/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 \ Zend/acinclude.m4 ext/*/config*.m4 sapi/*/config.m4 >> $@ Modified: php/php-src/branches/PHP_5_4/build/build2.mk =================================================================== --- php/php-src/branches/PHP_5_4/build/build2.mk 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/branches/PHP_5_4/build/build2.mk 2011-05-16 00:14:47 UTC (rev 311067) @@ -25,8 +25,6 @@ config_h_in = main/php_config.h.in -acconfig_h_SOURCES = acconfig.h.in $(config_h_files) - targets = $(TOUCH_FILES) configure $(config_h_in) PHP_AUTOCONF ?= 'autoconf' @@ -36,11 +34,7 @@ all: $(targets) -acconfig.h: $(acconfig_h_SOURCES) - @echo rebuilding $@ - cat $(acconfig_h_SOURCES) > $@ - -$(config_h_in): configure acconfig.h +$(config_h_in): configure # explicitly remove target since autoheader does not seem to work # correctly otherwise (timestamps are not updated) @echo rebuilding $@ Modified: php/php-src/branches/PHP_5_4/configure.in =================================================================== --- php/php-src/branches/PHP_5_4/configure.in 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/branches/PHP_5_4/configure.in 2011-05-16 00:14:47 UTC (rev 311067) @@ -17,7 +17,106 @@ PHP_CANONICAL_HOST_TARGET AC_CONFIG_HEADER(main/php_config.h) +AH_TOP([ +#if defined(__GNUC__) && __GNUC__ >= 4 +# define ZEND_API __attribute__ ((visibility("default"))) +# define ZEND_DLEXPORT __attribute__ ((visibility("default"))) +#else +# define ZEND_API +# define ZEND_DLEXPORT +#endif +#define ZEND_DLIMPORT + +#undef uint +#undef ulong + +/* Define if you want to enable memory limit support */ +#define MEMORY_LIMIT 0 +]) +AH_BOTTOM([ +#ifndef ZEND_ACCONFIG_H_NO_C_PROTOS + +#ifdef HAVE_STDLIB_H +# include <stdlib.h> +#endif + +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif + +#ifdef HAVE_SYS_SELECT_H +#include <sys/select.h> +#endif + +#ifdef HAVE_IEEEFP_H +# include <ieeefp.h> +#endif + +#ifdef HAVE_STRING_H +# include <string.h> +#else +# include <strings.h> +#endif + +#if ZEND_BROKEN_SPRINTF +int zend_sprintf(char *buffer, const char *format, ...); +#else +# define zend_sprintf sprintf +#endif + +#include <math.h> + +/* To enable the is_nan, is_infinite and is_finite PHP functions */ +#ifdef NETWARE + #define HAVE_ISNAN 1 + #define HAVE_ISINF 1 + #define HAVE_ISFINITE 1 +#endif + +#ifndef zend_isnan +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif +#endif + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +#ifdef HAVE_FINITE +#define zend_finite(a) finite(a) +#elif defined(HAVE_ISFINITE) || defined(isfinite) +#define zend_finite(a) isfinite(a) +#elif defined(fpclassify) +#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0) +#else +#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1) +#endif + +#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */ + +#ifdef NETWARE +#ifdef USE_WINSOCK +#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T +#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H +#endif +#endif + +#undef PTHREADS +]) + PHP_MAJOR_VERSION=5 PHP_MINOR_VERSION=4 PHP_RELEASE_VERSION=0 Deleted: php/php-src/trunk/TSRM/acconfig.h =================================================================== --- php/php-src/trunk/TSRM/acconfig.h 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/trunk/TSRM/acconfig.h 2011-05-16 00:14:47 UTC (rev 311067) @@ -1 +0,0 @@ -#undef PTHREADS Modified: php/php-src/trunk/TSRM/build.mk =================================================================== --- php/php-src/trunk/TSRM/build.mk 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/trunk/TSRM/build.mk 2011-05-16 00:14:47 UTC (rev 311067) @@ -33,7 +33,7 @@ aclocal.m4: configure.in acinclude.m4 aclocal -$(config_h_in): configure.in acconfig.h +$(config_h_in): configure.in # explicitly remove target since autoheader does not seem to work # correctly otherwise (timestamps are not updated) @rm -f $@ Modified: php/php-src/trunk/TSRM/configure.in =================================================================== --- php/php-src/trunk/TSRM/configure.in 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/trunk/TSRM/configure.in 2011-05-16 00:14:47 UTC (rev 311067) @@ -7,6 +7,10 @@ AM_INIT_AUTOMAKE(TSRM, 1.0, nodefine) AM_CONFIG_HEADER(tsrm_config.h) +AH_TOP([ +#undef PTHREADS +]) + sinclude(tsrm.m4) TSRM_BASIC_CHECKS Deleted: php/php-src/trunk/Zend/acconfig.h =================================================================== --- php/php-src/trunk/Zend/acconfig.h 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/trunk/Zend/acconfig.h 2011-05-16 00:14:47 UTC (rev 311067) @@ -1,127 +0,0 @@ -/* - +----------------------------------------------------------------------+ - | Zend Engine | - +----------------------------------------------------------------------+ - | Copyright (c) 1998-2011 Zend Technologies Ltd. (http://www.zend.com) | - +----------------------------------------------------------------------+ - | This source file is subject to version 2.00 of the Zend 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.zend.com/license/2_00.txt. | - | If you did not receive a copy of the Zend license and are unable to | - | obtain it through the world-wide-web, please send a note to | - | lice...@zend.com so we can mail you a copy immediately. | - +----------------------------------------------------------------------+ - | Authors: Andi Gutmans <a...@zend.com> | - | Zeev Suraski <z...@zend.com> | - +----------------------------------------------------------------------+ -*/ - -/* $Id$ */ - -#if defined(__GNUC__) && __GNUC__ >= 4 -# define ZEND_API __attribute__ ((visibility("default"))) -# define ZEND_DLEXPORT __attribute__ ((visibility("default"))) -#else -# define ZEND_API -# define ZEND_DLEXPORT -#endif - -#define ZEND_DLIMPORT - -@TOP@ - -#undef uint -#undef ulong - -/* Define if you want to enable memory limit support */ -#define MEMORY_LIMIT 0 - -@BOTTOM@ - -#ifndef ZEND_ACCONFIG_H_NO_C_PROTOS - -#ifdef HAVE_STDLIB_H -# include <stdlib.h> -#endif - -#ifdef HAVE_SYS_TYPES_H -# include <sys/types.h> -#endif - -#ifdef HAVE_SYS_SELECT_H -#include <sys/select.h> -#endif - -#ifdef HAVE_IEEEFP_H -# include <ieeefp.h> -#endif - -#ifdef HAVE_STRING_H -# include <string.h> -#else -# include <strings.h> -#endif - -#if ZEND_BROKEN_SPRINTF -int zend_sprintf(char *buffer, const char *format, ...); -#else -# define zend_sprintf sprintf -#endif - -#include <math.h> - -/* To enable the is_nan, is_infinite and is_finite PHP functions */ -#ifdef NETWARE - #define HAVE_ISNAN 1 - #define HAVE_ISINF 1 - #define HAVE_ISFINITE 1 -#endif - -#ifndef zend_isnan -#ifdef HAVE_ISNAN -#define zend_isnan(a) isnan(a) -#elif defined(HAVE_FPCLASS) -#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) -#else -#define zend_isnan(a) 0 -#endif -#endif - -#ifdef HAVE_ISINF -#define zend_isinf(a) isinf(a) -#elif defined(INFINITY) -/* Might not work, but is required by ISO C99 */ -#define zend_isinf(a) (((a)==INFINITY)?1:0) -#elif defined(HAVE_FPCLASS) -#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) -#else -#define zend_isinf(a) 0 -#endif - -#ifdef HAVE_FINITE -#define zend_finite(a) finite(a) -#elif defined(HAVE_ISFINITE) || defined(isfinite) -#define zend_finite(a) isfinite(a) -#elif defined(fpclassify) -#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0) -#else -#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1) -#endif - -#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */ - -#ifdef NETWARE -#ifdef USE_WINSOCK -#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T -#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H -#endif -#endif - -/* - * Local variables: - * tab-width: 4 - * c-basic-offset: 4 - * indent-tabs-mode: t - * End: - */ Modified: php/php-src/trunk/Zend/build.mk =================================================================== --- php/php-src/trunk/Zend/build.mk 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/trunk/Zend/build.mk 2011-05-16 00:14:47 UTC (rev 311067) @@ -33,7 +33,7 @@ aclocal.m4: configure.in acinclude.m4 aclocal -$(config_h_in): configure.in acconfig.h +$(config_h_in): configure.in # explicitly remove target since autoheader does not seem to work # correctly otherwise (timestamps are not updated) @rm -f $@ Modified: php/php-src/trunk/Zend/configure.in =================================================================== --- php/php-src/trunk/Zend/configure.in 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/trunk/Zend/configure.in 2011-05-16 00:14:47 UTC (rev 311067) @@ -11,6 +11,105 @@ ZEND_VERSION=$VERSION AC_ZEND_C_BIGENDIAN +AH_TOP([ +#if defined(__GNUC__) && __GNUC__ >= 4 +# define ZEND_API __attribute__ ((visibility("default"))) +# define ZEND_DLEXPORT __attribute__ ((visibility("default"))) +#else +# define ZEND_API +# define ZEND_DLEXPORT +#endif + +#define ZEND_DLIMPORT + +#undef uint +#undef ulong + +/* Define if you want to enable memory limit support */ +#define MEMORY_LIMIT 0 +]) + +AH_BOTTOM([ +#ifndef ZEND_ACCONFIG_H_NO_C_PROTOS + +#ifdef HAVE_STDLIB_H +# include <stdlib.h> +#endif + +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif + +#ifdef HAVE_SYS_SELECT_H +#include <sys/select.h> +#endif + +#ifdef HAVE_IEEEFP_H +# include <ieeefp.h> +#endif + +#ifdef HAVE_STRING_H +# include <string.h> +#else +# include <strings.h> +#endif + +#if ZEND_BROKEN_SPRINTF +int zend_sprintf(char *buffer, const char *format, ...); +#else +# define zend_sprintf sprintf +#endif + +#include <math.h> + +/* To enable the is_nan, is_infinite and is_finite PHP functions */ +#ifdef NETWARE + #define HAVE_ISNAN 1 + #define HAVE_ISINF 1 + #define HAVE_ISFINITE 1 +#endif + +#ifndef zend_isnan +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif +#endif + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +#ifdef HAVE_FINITE +#define zend_finite(a) finite(a) +#elif defined(HAVE_ISFINITE) || defined(isfinite) +#define zend_finite(a) isfinite(a) +#elif defined(fpclassify) +#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0) +#else +#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1) +#endif + +#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */ + +#ifdef NETWARE +#ifdef USE_WINSOCK +#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T +#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H +#endif +#endif +]) + dnl We want this one before the checks, so the checks can modify CFLAGS. test -z "$CFLAGS" && auto_cflags=1 Deleted: php/php-src/trunk/acconfig.h.in =================================================================== --- php/php-src/trunk/acconfig.h.in 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/trunk/acconfig.h.in 2011-05-16 00:14:47 UTC (rev 311067) @@ -1 +0,0 @@ -/* Leave this file alone */ Modified: php/php-src/trunk/build/build.mk =================================================================== --- php/php-src/trunk/build/build.mk 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/trunk/build/build.mk 2011-05-16 00:14:47 UTC (rev 311067) @@ -32,7 +32,6 @@ generated_lists: @echo makefile_am_files = Zend/Makefile.am TSRM/Makefile.am > $@ - @echo config_h_files = Zend/acconfig.h TSRM/acconfig.h >> $@ @echo config_m4_files = Zend/Zend.m4 TSRM/tsrm.m4 TSRM/threads.m4 \ Zend/acinclude.m4 ext/*/config*.m4 sapi/*/config.m4 >> $@ Modified: php/php-src/trunk/build/build2.mk =================================================================== --- php/php-src/trunk/build/build2.mk 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/trunk/build/build2.mk 2011-05-16 00:14:47 UTC (rev 311067) @@ -25,8 +25,6 @@ config_h_in = main/php_config.h.in -acconfig_h_SOURCES = acconfig.h.in $(config_h_files) - targets = $(TOUCH_FILES) configure $(config_h_in) PHP_AUTOCONF ?= 'autoconf' @@ -36,11 +34,7 @@ all: $(targets) -acconfig.h: $(acconfig_h_SOURCES) - @echo rebuilding $@ - cat $(acconfig_h_SOURCES) > $@ - -$(config_h_in): configure acconfig.h +$(config_h_in): configure # explicitly remove target since autoheader does not seem to work # correctly otherwise (timestamps are not updated) @echo rebuilding $@ Modified: php/php-src/trunk/configure.in =================================================================== --- php/php-src/trunk/configure.in 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/trunk/configure.in 2011-05-16 00:14:47 UTC (rev 311067) @@ -17,10 +17,109 @@ PHP_CANONICAL_HOST_TARGET AC_CONFIG_HEADER(main/php_config.h) +AH_TOP([ +#if defined(__GNUC__) && __GNUC__ >= 4 +# define ZEND_API __attribute__ ((visibility("default"))) +# define ZEND_DLEXPORT __attribute__ ((visibility("default"))) +#else +# define ZEND_API +# define ZEND_DLEXPORT +#endif +#define ZEND_DLIMPORT + +#undef uint +#undef ulong + +/* Define if you want to enable memory limit support */ +#define MEMORY_LIMIT 0 +]) +AH_BOTTOM([ +#ifndef ZEND_ACCONFIG_H_NO_C_PROTOS + +#ifdef HAVE_STDLIB_H +# include <stdlib.h> +#endif + +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif + +#ifdef HAVE_SYS_SELECT_H +#include <sys/select.h> +#endif + +#ifdef HAVE_IEEEFP_H +# include <ieeefp.h> +#endif + +#ifdef HAVE_STRING_H +# include <string.h> +#else +# include <strings.h> +#endif + +#if ZEND_BROKEN_SPRINTF +int zend_sprintf(char *buffer, const char *format, ...); +#else +# define zend_sprintf sprintf +#endif + +#include <math.h> + +/* To enable the is_nan, is_infinite and is_finite PHP functions */ +#ifdef NETWARE + #define HAVE_ISNAN 1 + #define HAVE_ISINF 1 + #define HAVE_ISFINITE 1 +#endif + +#ifndef zend_isnan +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(HAVE_FPCLASS) +#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) +#else +#define zend_isnan(a) 0 +#endif +#endif + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#elif defined(HAVE_FPCLASS) +#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) +#else +#define zend_isinf(a) 0 +#endif + +#ifdef HAVE_FINITE +#define zend_finite(a) finite(a) +#elif defined(HAVE_ISFINITE) || defined(isfinite) +#define zend_finite(a) isfinite(a) +#elif defined(fpclassify) +#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0) +#else +#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1) +#endif + +#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */ + +#ifdef NETWARE +#ifdef USE_WINSOCK +#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T +#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H +#endif +#endif + +#undef PTHREADS +]) + PHP_MAJOR_VERSION=5 -PHP_MINOR_VERSION=3 -PHP_RELEASE_VERSION=99 +PHP_MINOR_VERSION=5 +PHP_RELEASE_VERSION=0 PHP_EXTRA_VERSION="-dev" PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION" PHP_VERSION_ID=`expr [$]PHP_MAJOR_VERSION \* 10000 + [$]PHP_MINOR_VERSION \* 100 + [$]PHP_RELEASE_VERSION` Modified: php/php-src/trunk/main/php_version.h =================================================================== --- php/php-src/trunk/main/php_version.h 2011-05-15 23:52:15 UTC (rev 311066) +++ php/php-src/trunk/main/php_version.h 2011-05-16 00:14:47 UTC (rev 311067) @@ -1,8 +1,8 @@ /* automatically generated by configure */ /* edit configure.in to change version number */ #define PHP_MAJOR_VERSION 5 -#define PHP_MINOR_VERSION 3 -#define PHP_RELEASE_VERSION 99 +#define PHP_MINOR_VERSION 5 +#define PHP_RELEASE_VERSION 0 #define PHP_EXTRA_VERSION "-dev" -#define PHP_VERSION "5.3.99-dev" -#define PHP_VERSION_ID 50399 +#define PHP_VERSION "5.5.0-dev" +#define PHP_VERSION_ID 50500
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php