]> git.pld-linux.org Git - packages/php.git/blame - php-ac250.patch
- don't use pcre functions in standard/aggregation functions if building pcre extensi...
[packages/php.git] / php-ac250.patch
CommitLineData
01ab2783
AF
1--- php-4.0.6/ext/pdf/config.m4.wiget Thu Jun 14 06:35:44 2001
2+++ php-4.0.6/ext/pdf/config.m4 Fri Jul 6 08:37:53 2001
3@@ -18,7 +18,7 @@
4 AC_CHECK_LIB(pdf, PDF_show_boxed, [
5 AC_DEFINE(HAVE_PDFLIB,1,[ ])
6 ],[
7- AC_MSG_ERROR(pdflib extension requires at least pdflib 3.x. You may also need libtiff and libjpeg. If so, use the options --with-tiff-dir=<DIR> and --with-jpeg-dir=<DIR>)
8+ AC_MSG_ERROR([pdflib extension requires at least pdflib 3.x. You may also need libtiff and libjpeg. If so, use the options --with-tiff-dir=<DIR> and --with-jpeg-dir=<DIR>])
9 ],[
10 -ltiff -ljpeg -lpng -lz
11 ])
12@@ -34,7 +34,7 @@
13 if test -n "$PDFLIB_INCLUDE" ; then
14
15 if test "$PHP_ZLIB_DIR" = "no"; then
16- AC_MSG_ERROR(PDF extension requires ZLIB. Use --with-zlib-dir=<DIR>)
17+ AC_MSG_ERROR([PDF extension requires ZLIB. Use --with-zlib-dir=<DIR>])
18 fi
19
20 PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/lib, PDFLIB_SHARED_LIBADD)
21@@ -47,7 +47,7 @@
22 [
23 PHP_ADD_LIBRARY_WITH_PATH(jpeg, $PHP_JPEG_DIR/lib, PDFLIB_SHARED_LIBADD)
24 ],[
25- AC_MSG_ERROR(libjpeg not found!)
26+ AC_MSG_ERROR([libjpeg not found!])
27 ],[
28 -L$PHP_JPEG_DIR/lib
29 ])
30@@ -56,12 +56,12 @@
31 [
32 PHP_ADD_LIBRARY(jpeg,, PDFLIB_SHARED_LIBADD)
33 ],[
34- AC_MSG_RESULT(no, try --with-jpeg-dir=<DIR>)
35+ AC_MSG_RESULT([no, try --with-jpeg-dir=<DIR>])
36 ])
37 fi
38
39
40- PHP_ARG_WITH(png-dir, for the location of libpng,
41+ PHP_ARG_WITH(png-dir,[ for the location of libpng],
42 [ --with-png-dir[=DIR] PDFLIB: define libpng install directory])
43
44 if test "$PHP_PNG_DIR" != "no"; then
45@@ -69,7 +69,7 @@
46 [
47 PHP_ADD_LIBRARY_WITH_PATH(png, $PHP_PNG_DIR/lib, PDFLIB_SHARED_LIBADD)
48 ],[
49- AC_MSG_ERROR(libpng not found!)
50+ AC_MSG_ERROR([libpng not found!])
51 ],[
52 -L$PHP_PNG_DIR/lib
53 ])
54@@ -78,12 +78,12 @@
55 [
56 PHP_ADD_LIBRARY(png,, PDFLIB_SHARED_LIBADD)
57 ],[
58- AC_MSG_RESULT(no, try --with-png-dir=<DIR>)
59+ AC_MSG_RESULT([no, try --with-png-dir=<DIR>])
60 ])
61 fi
62
63
64- PHP_ARG_WITH(tiff-dir, for the location of libtiff,
65+ PHP_ARG_WITH(tiff-dir,[ for the location of libtiff],
66 [ --with-tiff-dir[=DIR] PDFLIB: define libtiff install directory])
67
68 if test "$PHP_TIFF_DIR" != "no"; then
69@@ -91,7 +91,7 @@
70 [
71 PHP_ADD_LIBRARY_WITH_PATH(tiff, $PHP_TIFF_DIR/lib, PDFLIB_SHARED_LIBADD)
72 ],[
73- AC_MSG_ERROR(libtiff not found!)
74+ AC_MSG_ERROR([libtiff not found!])
75 ],[
76 -L$PHP_TIFF_DIR/lib
77 ])
78@@ -100,7 +100,7 @@
79 [
80 PHP_ADD_LIBRARY(tiff,, PDFLIB_SHARED_LIBADD)
81 ],[
82- AC_MSG_RESULT(no, Try --with-tiff-dir=<DIR>)
83+ AC_MSG_RESULT([no, Try --with-tiff-dir=<DIR>])
84 ])
85 fi
86
87@@ -111,7 +111,7 @@
88 PHP_ADD_LIBRARY_WITH_PATH(pdf, $PHP_PDFLIB/lib, PDFLIB_SHARED_LIBADD)
89 PHP_ADD_INCLUDE($PDFLIB_INCLUDE)
90 ],[
91- AC_MSG_ERROR(pdflib extension requires at least pdflib 3.x.)
92+ AC_MSG_ERROR([pdflib extension requires at least pdflib 3.x.])
93 ],[
94 -L$PHP_PDFLIB/lib
95 ])
96--- php-4.0.6/ext/yp/config.m4.wiget Fri Jul 6 08:37:53 2001
97+++ php-4.0.6/ext/yp/config.m4 Fri Jul 6 08:37:53 2001
98@@ -2,13 +2,15 @@
99 dnl config.m4 for extension yp
100 dnl don't forget to call PHP_EXTENSION(yp)
101
102-PHP_ARG_ENABLE(yp,whether to include YP support,
103+PHP_ARG_ENABLE(yp,[whether to include YP support],
104 [ --enable-yp Include YP support])
105
106 if test "$PHP_YP" != "no"; then
107 PHP_SUBST(NSL_SHARED_LIBADD)
108- AC_ADD_LIBRARY_WITH_PATH(nsl, /usr/lib, NSL_SHARED_LIBADD)
109- AC_CHECK_LIB(nsl, yp_match, [AC_DEFINE(HAVE_YP,1,[ ])], [AC_MSG_ERROR(YP module requires libnsl)],)
110+ AC_CHECK_LIB(nsl, yp_match, [
111+ AC_DEFINE(HAVE_YP,1,[ ])
112+ PHP_ADD_LIBRARY(nsl,, NSL_SHARED_LIBADD)
113+ ], [AC_MSG_ERROR([YP module requires libnsl])])
114 PHP_EXTENSION(yp, $ext_shared)
115
116 case "$host_alias" in
68abf4df 117--- php-4.1.1/acinclude.m4.wiget Sun Jun 10 21:52:56 2001
118+++ php-4.1.1/acinclude.m4 Fri Jul 6 09:26:10 2001
01ab2783
AF
119@@ -351,7 +351,7 @@
120 AC_SUBST($1)
121 ])
122
123-AC_DEFUN(PHP_FAST_OUTPUT,[
124+AC_DEFUN([PHP_FAST_OUTPUT],[
125 PHP_FAST_OUTPUT_FILES="$PHP_FAST_OUTPUT_FILES $1"
126 ])
127
128@@ -377,7 +377,7 @@
129 done
130 ])
131
132-AC_DEFUN(PHP_GEN_MAKEFILES,[
133+AC_DEFUN([PHP_GEN_MAKEFILES],[
134 $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $1
135 ])
136
01ab2783
AF
137@@ -914,6 +908,7 @@
138 dnl ## This macro can be used several times.
139 AC_DEFUN(PHP_OUTPUT,[
140 PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES $1"
141+ AC_CONFIG_FILES($1)
142 ])
143
144 AC_DEFUN(PHP_DECLARED_TIMEZONE,[
01ab2783
AF
145--- php-4.0.6/configure.in.wiget Fri Jul 6 08:37:53 2001
146+++ php-4.0.6/configure.in Fri Jul 6 09:32:15 2001
147@@ -5,7 +5,7 @@
148
149 AC_INIT(README.CVS-RULES)
150
151-PHP_FAST_OUTPUT(sapi/Makefile ext/Makefile Makefile pear/Makefile main/Makefile)
152+PHP_FAST_OUTPUT([sapi/Makefile ext/Makefile Makefile pear/Makefile main/Makefile])
153
154 if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then
155 AC_MSG_ERROR(--with-shared-apache is not supported. Please refer to the documentation for using APXS)
156@@ -117,10 +117,7 @@
157 AC_PROG_CC_C_O
158 AC_PROG_LN_S
159
160-AM_PROG_LEX
161-if test -n "$LEX"; then
162- AC_DECL_YYTEXT
163-fi
164+AC_PROG_LEX()
165
166 dnl ## Make flex scanners use const if they can, even if __STDC__ is not
167 dnl ## true, for compilers like Sun's that only set __STDC__ true in
168@@ -225,12 +222,12 @@
169
170 unset ac_cv_func_yp_get_default_domain
171 AC_CHECK_FUNC(yp_get_default_domain,
172- [php_no_nsl_checks=yes],[ ])
173+ [php_no_nsl_checks=yes],[true ])
174 unset ac_cv_func_yp_get_default_domain
175
176 if test "$php_no_nsl_checks" != "yes"; then
177
178-AC_CHECK_FUNC(gethostname, [ ], [
179+AC_CHECK_FUNC(gethostname, [true ], [
180 AC_CHECK_LIB(nsl, gethostname, [
181 PHP_ADD_LIBRARY(nsl)
182 AC_DEFINE(HAVE_LIBNSL,1,[ ]) ],[
183@@ -250,8 +247,8 @@
184
185 dnl Only include libbind if inet_aton is not found in
186 dnl libresolv.
187-AC_CHECK_LIB(resolv, inet_aton, [], [
188- AC_CHECK_LIB(bind, inet_aton, [], [
189+AC_CHECK_LIB(resolv, inet_aton, [true], [
190+ AC_CHECK_LIB(bind, inet_aton, [true], [
191 AC_CHECK_LIB(bind, __inet_aton)
192 ])
193 ])
194@@ -870,6 +867,12 @@
195 PHP_SUBST(TSRM_LIB)
196 PHP_SUBST(WARNING_LEVEL)
197 PHP_SUBST_OLD(YACC)
198+PHP_SUBST(EXT_SUBDIRS)
199+PHP_SUBST(EXT_STATIC)
200+PHP_SUBST(EXT_SHARED)
201+PHP_SUBST(EXT_LIBS)
202+PHP_SUBST(EXT_LTLIBS)
203+
204
205 PHP_CONFIGURE_PART(Configuring libtool)
206
207@@ -936,14 +939,17 @@
208 pear/scripts/pear pear/scripts/phpize pear/scripts/php-config \
209 TSRM/Makefile $PHP_OUTPUT_FILES"
210
211-AC_OUTPUT($ALL_OUTPUT_FILES, [], [
212+AC_CONFIG_FILES([php4.spec Zend/Makefile main/build-defs.h
213+ pear/scripts/pear pear/scripts/phpize pear/scripts/php-config
214+ TSRM/Makefile])
215+AC_CONFIG_COMMANDS([default], [true], [
216
217-if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES"; then
218+dnl if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES"; then
219 REDO_ALL=yes
220-fi
221+dnl fi
222
223 if test -n "\$REDO_ALL"; then
224- PHP_GEN_MAKEFILES($PHP_FAST_OUTPUT_FILES)
225+ PHP_GEN_MAKEFILES([$PHP_FAST_OUTPUT_FILES])
226 fi
227
228 if test ! -f $srcdir/ext/bcmath/number.c; then
229@@ -1057,6 +1063,8 @@
230 fi
231 ])
232
233+AC_OUTPUT
234+
235 dnl ## Local Variables:
236 dnl ## tab-width: 4
237 dnl ## End:
68abf4df 238--- php-4.1.1/ext/imap/config.m4.orig Tue Aug 7 18:18:04 2001
239+++ php-4.1.1/ext/imap/config.m4 Sat Jan 19 13:50:24 2002
240@@ -133,7 +133,7 @@
241 #endif
242 ],[
243 AC_DEFINE(HAVE_IMAP2001, 1, [ ])
244- ],[ ])
245+ ],[:])
246 CPPFLAGS=$old_CPPFLAGS
247
248 AC_CHECK_LIB(pam, pam_start)
This page took 0.07763 seconds and 4 git commands to generate.