Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 150 lines (121 sloc) 3.152 kb
573b4602 »
1999-04-07 Zend Library
1 dnl $Id$
2 dnl Process this file with autoconf to produce a configure script.
3
4 AC_INIT(zend.c)
af97475e »
2000-12-02 Use the hardly-documented third parameter of AM_INIT_AUTOMAKE to supp…
5 AM_INIT_AUTOMAKE(zend, 0.80A, nodefine)
b227e385 »
1999-04-19 convert to automake
6 AM_CONFIG_HEADER(zend_config.h)
573b4602 »
1999-04-07 Zend Library
7 AM_SANITY_CHECK
b9fb0b8e »
1999-05-14 If a require() dies, we must bail out (since it corrupts an existing …
8 AM_MAINTAINER_MODE
91549cfa »
1999-12-17 Move config code into separate file
9 AC_PROG_CC
10 AM_PROG_CC_STDC
b227e385 »
1999-04-19 convert to automake
11 ZEND_VERSION=$VERSION
4589cef5 »
2005-01-10 - Added AC_ZEND_C_BIGENDIAN macro (as requested by Andi)
12 AC_ZEND_C_BIGENDIAN
573b4602 »
1999-04-07 Zend Library
13
353077d2 »
2011-05-16 Get rid of autoconf warnings
14 AH_TOP([
15 #if defined(__GNUC__) && __GNUC__ >= 4
16 # define ZEND_API __attribute__ ((visibility("default")))
17 # define ZEND_DLEXPORT __attribute__ ((visibility("default")))
18 #else
19 # define ZEND_API
20 # define ZEND_DLEXPORT
21 #endif
22
23 #define ZEND_DLIMPORT
24
25 #undef uint
26 #undef ulong
27
28 /* Define if you want to enable memory limit support */
29 #define MEMORY_LIMIT 0
30 ])
31
32 AH_BOTTOM([
33 #ifndef ZEND_ACCONFIG_H_NO_C_PROTOS
34
35 #ifdef HAVE_STDLIB_H
36 # include <stdlib.h>
37 #endif
38
39 #ifdef HAVE_SYS_TYPES_H
40 # include <sys/types.h>
41 #endif
42
43 #ifdef HAVE_SYS_SELECT_H
44 #include <sys/select.h>
45 #endif
46
47 #ifdef HAVE_IEEEFP_H
48 # include <ieeefp.h>
49 #endif
50
51 #ifdef HAVE_STRING_H
52 # include <string.h>
53 #else
54 # include <strings.h>
55 #endif
56
57 #if ZEND_BROKEN_SPRINTF
58 int zend_sprintf(char *buffer, const char *format, ...);
59 #else
60 # define zend_sprintf sprintf
61 #endif
62
63 #include <math.h>
64
65 /* To enable the is_nan, is_infinite and is_finite PHP functions */
66 #ifdef NETWARE
67 #define HAVE_ISNAN 1
68 #define HAVE_ISINF 1
69 #define HAVE_ISFINITE 1
70 #endif
71
72 #ifndef zend_isnan
73 #ifdef HAVE_ISNAN
74 #define zend_isnan(a) isnan(a)
75 #elif defined(HAVE_FPCLASS)
76 #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
77 #else
78 #define zend_isnan(a) 0
79 #endif
80 #endif
81
82 #ifdef HAVE_ISINF
83 #define zend_isinf(a) isinf(a)
84 #elif defined(INFINITY)
85 /* Might not work, but is required by ISO C99 */
86 #define zend_isinf(a) (((a)==INFINITY)?1:0)
87 #elif defined(HAVE_FPCLASS)
88 #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
89 #else
90 #define zend_isinf(a) 0
91 #endif
92
93 #ifdef HAVE_FINITE
94 #define zend_finite(a) finite(a)
95 #elif defined(HAVE_ISFINITE) || defined(isfinite)
96 #define zend_finite(a) isfinite(a)
97 #elif defined(fpclassify)
98 #define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0)
99 #else
100 #define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1)
101 #endif
102
103 #endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
104
105 #ifdef NETWARE
106 #ifdef USE_WINSOCK
107 #/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T
108 #/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H
109 #endif
110 #endif
111 ])
112
573b4602 »
1999-04-07 Zend Library
113 dnl We want this one before the checks, so the checks can modify CFLAGS.
114 test -z "$CFLAGS" && auto_cflags=1
115
af1f60e6 »
2005-01-22 - Compile fix for systems without uint32_t typedef
116 AC_CHECK_SIZEOF(long, 8)
117 AC_CHECK_SIZEOF(int, 4)
118
4d2b0715 »
1999-12-19 libzend -> Zend
119 sinclude(Zend.m4)
91549cfa »
1999-12-17 Move config code into separate file
120
121 LIBZEND_BASIC_CHECKS
5c12ee24 »
2002-11-15 - MFZE1
122 LIBZEND_LIBDL_CHECKS
123 LIBZEND_DLSYM_CHECK
573b4602 »
1999-04-07 Zend Library
124
8ae3f4b0 »
1999-10-04 Use libtool to build.
125 AM_PROG_LIBTOOL
126 if test "$enable_debug" != "yes"; then
127 AM_SET_LIBTOOL_VARIABLE([--silent])
128 fi
573b4602 »
1999-04-07 Zend Library
129
130 dnl
131 dnl Check for /usr/pkg/{lib,include} which is where NetBSD puts binary
132 dnl and source packages. This should be harmless on other OSs.
133 dnl
134 if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then
135 CFLAGS="$CFLAGS -I/usr/pkg/include"
136 LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
137 fi
138
91549cfa »
1999-12-17 Move config code into separate file
139 LIBZEND_ENABLE_DEBUG
140 LIBZEND_OTHER_CHECKS
0ac169b4 »
1999-09-26 Build communication channel and add checks for C++ library
141
49356365 »
2002-02-03 Zend config sets ZEND_EXTRA_LIBS. Bugs 14452, 14602, 14616, 14824
142 ZEND_EXTRA_LIBS="$LIBS"
8ae3f4b0 »
1999-10-04 Use libtool to build.
143 LIBS=""
49356365 »
2002-02-03 Zend config sets ZEND_EXTRA_LIBS. Bugs 14452, 14602, 14616, 14824
144 AC_SUBST(ZEND_EXTRA_LIBS)
8ae3f4b0 »
1999-10-04 Use libtool to build.
145 AC_OUTPUT(Makefile)
573b4602 »
1999-04-07 Zend Library
146
147 # Local Variables:
148 # tab-width: 4
149 # End:
Something went wrong with that request. Please try again.