diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2548 |
1 files changed, 2548 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 0000000..a1c4bba --- /dev/null +++ b/configure | |||
@@ -0,0 +1,2548 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | # Guess values for system-dependent variables and create Makefiles. | ||
4 | # Generated automatically using autoconf version 2.13 | ||
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | ||
6 | # | ||
7 | # This configure script is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy, distribute and modify it. | ||
9 | |||
10 | # Defaults: | ||
11 | ac_help= | ||
12 | ac_default_prefix=/usr/local | ||
13 | # Any additions from configure.in: | ||
14 | ac_help="$ac_help | ||
15 | --with-apache=DIR Where to look for Apache's installation" | ||
16 | ac_help="$ac_help | ||
17 | --with-apache-source=DIR Where to look for Apache sources [${APSRCDIR}]" | ||
18 | ac_help="$ac_help | ||
19 | --with-apache-headers=DIR Where to look for Apache's header files" | ||
20 | ac_help="$ac_help | ||
21 | --with-apxs=DIR Where to look for apxs" | ||
22 | ac_help="$ac_help | ||
23 | --with-mysql-headers=DIR Where to look for MySQL headers" | ||
24 | ac_help="$ac_help | ||
25 | --with-mysql-libs=DIR Where to look for MySQL libraries" | ||
26 | ac_help="$ac_help | ||
27 | --disable-ssl Do not attempt to compile in SSL support" | ||
28 | |||
29 | # Initialize some variables set by options. | ||
30 | # The variables have the same names as the options, with | ||
31 | # dashes changed to underlines. | ||
32 | build=NONE | ||
33 | cache_file=./config.cache | ||
34 | exec_prefix=NONE | ||
35 | host=NONE | ||
36 | no_create= | ||
37 | nonopt=NONE | ||
38 | no_recursion= | ||
39 | prefix=NONE | ||
40 | program_prefix=NONE | ||
41 | program_suffix=NONE | ||
42 | program_transform_name=s,x,x, | ||
43 | silent= | ||
44 | site= | ||
45 | srcdir= | ||
46 | target=NONE | ||
47 | verbose= | ||
48 | x_includes=NONE | ||
49 | x_libraries=NONE | ||
50 | bindir='${exec_prefix}/bin' | ||
51 | sbindir='${exec_prefix}/sbin' | ||
52 | libexecdir='${exec_prefix}/libexec' | ||
53 | datadir='${prefix}/share' | ||
54 | sysconfdir='${prefix}/etc' | ||
55 | sharedstatedir='${prefix}/com' | ||
56 | localstatedir='${prefix}/var' | ||
57 | libdir='${exec_prefix}/lib' | ||
58 | includedir='${prefix}/include' | ||
59 | oldincludedir='/usr/include' | ||
60 | infodir='${prefix}/info' | ||
61 | mandir='${prefix}/man' | ||
62 | |||
63 | # Initialize some other variables. | ||
64 | subdirs= | ||
65 | MFLAGS= MAKEFLAGS= | ||
66 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
67 | # Maximum number of lines to put in a shell here document. | ||
68 | ac_max_here_lines=12 | ||
69 | |||
70 | ac_prev= | ||
71 | for ac_option | ||
72 | do | ||
73 | |||
74 | # If the previous option needs an argument, assign it. | ||
75 | if test -n "$ac_prev"; then | ||
76 | eval "$ac_prev=\$ac_option" | ||
77 | ac_prev= | ||
78 | continue | ||
79 | fi | ||
80 | |||
81 | case "$ac_option" in | ||
82 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | ||
83 | *) ac_optarg= ;; | ||
84 | esac | ||
85 | |||
86 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
87 | |||
88 | case "$ac_option" in | ||
89 | |||
90 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
91 | ac_prev=bindir ;; | ||
92 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
93 | bindir="$ac_optarg" ;; | ||
94 | |||
95 | -build | --build | --buil | --bui | --bu) | ||
96 | ac_prev=build ;; | ||
97 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
98 | build="$ac_optarg" ;; | ||
99 | |||
100 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
101 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
102 | ac_prev=cache_file ;; | ||
103 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
104 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
105 | cache_file="$ac_optarg" ;; | ||
106 | |||
107 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
108 | ac_prev=datadir ;; | ||
109 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
110 | | --da=*) | ||
111 | datadir="$ac_optarg" ;; | ||
112 | |||
113 | -disable-* | --disable-*) | ||
114 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | ||
115 | # Reject names that are not valid shell variable names. | ||
116 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | ||
117 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | ||
118 | fi | ||
119 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | ||
120 | eval "enable_${ac_feature}=no" ;; | ||
121 | |||
122 | -enable-* | --enable-*) | ||
123 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | ||
124 | # Reject names that are not valid shell variable names. | ||
125 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | ||
126 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | ||
127 | fi | ||
128 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | ||
129 | case "$ac_option" in | ||
130 | *=*) ;; | ||
131 | *) ac_optarg=yes ;; | ||
132 | esac | ||
133 | eval "enable_${ac_feature}='$ac_optarg'" ;; | ||
134 | |||
135 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
136 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
137 | | --exec | --exe | --ex) | ||
138 | ac_prev=exec_prefix ;; | ||
139 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
140 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
141 | | --exec=* | --exe=* | --ex=*) | ||
142 | exec_prefix="$ac_optarg" ;; | ||
143 | |||
144 | -gas | --gas | --ga | --g) | ||
145 | # Obsolete; use --with-gas. | ||
146 | with_gas=yes ;; | ||
147 | |||
148 | -help | --help | --hel | --he) | ||
149 | # Omit some internal or obsolete options to make the list less imposing. | ||
150 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
151 | cat << EOF | ||
152 | Usage: configure [options] [host] | ||
153 | Options: [defaults in brackets after descriptions] | ||
154 | Configuration: | ||
155 | --cache-file=FILE cache test results in FILE | ||
156 | --help print this message | ||
157 | --no-create do not create output files | ||
158 | --quiet, --silent do not print \`checking...' messages | ||
159 | --version print the version of autoconf that created configure | ||
160 | Directory and file names: | ||
161 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
162 | [$ac_default_prefix] | ||
163 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
164 | [same as prefix] | ||
165 | --bindir=DIR user executables in DIR [EPREFIX/bin] | ||
166 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | ||
167 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | ||
168 | --datadir=DIR read-only architecture-independent data in DIR | ||
169 | [PREFIX/share] | ||
170 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | ||
171 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | ||
172 | [PREFIX/com] | ||
173 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | ||
174 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | ||
175 | --includedir=DIR C header files in DIR [PREFIX/include] | ||
176 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | ||
177 | --infodir=DIR info documentation in DIR [PREFIX/info] | ||
178 | --mandir=DIR man documentation in DIR [PREFIX/man] | ||
179 | --srcdir=DIR find the sources in DIR [configure dir or ..] | ||
180 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
181 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
182 | --program-transform-name=PROGRAM | ||
183 | run sed PROGRAM on installed program names | ||
184 | EOF | ||
185 | cat << EOF | ||
186 | Host type: | ||
187 | --build=BUILD configure for building on BUILD [BUILD=HOST] | ||
188 | --host=HOST configure for HOST [guessed] | ||
189 | --target=TARGET configure for TARGET [TARGET=HOST] | ||
190 | Features and packages: | ||
191 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
192 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
193 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
194 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
195 | --x-includes=DIR X include files are in DIR | ||
196 | --x-libraries=DIR X library files are in DIR | ||
197 | EOF | ||
198 | if test -n "$ac_help"; then | ||
199 | echo "--enable and --with options recognized:$ac_help" | ||
200 | fi | ||
201 | exit 0 ;; | ||
202 | |||
203 | -host | --host | --hos | --ho) | ||
204 | ac_prev=host ;; | ||
205 | -host=* | --host=* | --hos=* | --ho=*) | ||
206 | host="$ac_optarg" ;; | ||
207 | |||
208 | -includedir | --includedir | --includedi | --included | --include \ | ||
209 | | --includ | --inclu | --incl | --inc) | ||
210 | ac_prev=includedir ;; | ||
211 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
212 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
213 | includedir="$ac_optarg" ;; | ||
214 | |||
215 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
216 | ac_prev=infodir ;; | ||
217 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
218 | infodir="$ac_optarg" ;; | ||
219 | |||
220 | -libdir | --libdir | --libdi | --libd) | ||
221 | ac_prev=libdir ;; | ||
222 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
223 | libdir="$ac_optarg" ;; | ||
224 | |||
225 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
226 | | --libexe | --libex | --libe) | ||
227 | ac_prev=libexecdir ;; | ||
228 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
229 | | --libexe=* | --libex=* | --libe=*) | ||
230 | libexecdir="$ac_optarg" ;; | ||
231 | |||
232 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
233 | | --localstate | --localstat | --localsta | --localst \ | ||
234 | | --locals | --local | --loca | --loc | --lo) | ||
235 | ac_prev=localstatedir ;; | ||
236 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
237 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
238 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
239 | localstatedir="$ac_optarg" ;; | ||
240 | |||
241 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
242 | ac_prev=mandir ;; | ||
243 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
244 | mandir="$ac_optarg" ;; | ||
245 | |||
246 | -nfp | --nfp | --nf) | ||
247 | # Obsolete; use --without-fp. | ||
248 | with_fp=no ;; | ||
249 | |||
250 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
251 | | --no-cr | --no-c) | ||
252 | no_create=yes ;; | ||
253 | |||
254 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
255 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
256 | no_recursion=yes ;; | ||
257 | |||
258 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
259 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
260 | | --oldin | --oldi | --old | --ol | --o) | ||
261 | ac_prev=oldincludedir ;; | ||
262 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
263 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
264 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
265 | oldincludedir="$ac_optarg" ;; | ||
266 | |||
267 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
268 | ac_prev=prefix ;; | ||
269 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
270 | prefix="$ac_optarg" ;; | ||
271 | |||
272 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
273 | | --program-pre | --program-pr | --program-p) | ||
274 | ac_prev=program_prefix ;; | ||
275 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
276 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
277 | program_prefix="$ac_optarg" ;; | ||
278 | |||
279 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
280 | | --program-suf | --program-su | --program-s) | ||
281 | ac_prev=program_suffix ;; | ||
282 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
283 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
284 | program_suffix="$ac_optarg" ;; | ||
285 | |||
286 | -program-transform-name | --program-transform-name \ | ||
287 | | --program-transform-nam | --program-transform-na \ | ||
288 | | --program-transform-n | --program-transform- \ | ||
289 | | --program-transform | --program-transfor \ | ||
290 | | --program-transfo | --program-transf \ | ||
291 | | --program-trans | --program-tran \ | ||
292 | | --progr-tra | --program-tr | --program-t) | ||
293 | ac_prev=program_transform_name ;; | ||
294 | -program-transform-name=* | --program-transform-name=* \ | ||
295 | | --program-transform-nam=* | --program-transform-na=* \ | ||
296 | | --program-transform-n=* | --program-transform-=* \ | ||
297 | | --program-transform=* | --program-transfor=* \ | ||
298 | | --program-transfo=* | --program-transf=* \ | ||
299 | | --program-trans=* | --program-tran=* \ | ||
300 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
301 | program_transform_name="$ac_optarg" ;; | ||
302 | |||
303 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
304 | | -silent | --silent | --silen | --sile | --sil) | ||
305 | silent=yes ;; | ||
306 | |||
307 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
308 | ac_prev=sbindir ;; | ||
309 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
310 | | --sbi=* | --sb=*) | ||
311 | sbindir="$ac_optarg" ;; | ||
312 | |||
313 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
314 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
315 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
316 | | --sha | --sh) | ||
317 | ac_prev=sharedstatedir ;; | ||
318 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
319 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
320 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
321 | | --sha=* | --sh=*) | ||
322 | sharedstatedir="$ac_optarg" ;; | ||
323 | |||
324 | -site | --site | --sit) | ||
325 | ac_prev=site ;; | ||
326 | -site=* | --site=* | --sit=*) | ||
327 | site="$ac_optarg" ;; | ||
328 | |||
329 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
330 | ac_prev=srcdir ;; | ||
331 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
332 | srcdir="$ac_optarg" ;; | ||
333 | |||
334 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
335 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
336 | ac_prev=sysconfdir ;; | ||
337 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
338 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
339 | sysconfdir="$ac_optarg" ;; | ||
340 | |||
341 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
342 | ac_prev=target ;; | ||
343 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
344 | target="$ac_optarg" ;; | ||
345 | |||
346 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
347 | verbose=yes ;; | ||
348 | |||
349 | -version | --version | --versio | --versi | --vers) | ||
350 | echo "configure generated by autoconf version 2.13" | ||
351 | exit 0 ;; | ||
352 | |||
353 | -with-* | --with-*) | ||
354 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | ||
355 | # Reject names that are not valid shell variable names. | ||
356 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | ||
357 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | ||
358 | fi | ||
359 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
360 | case "$ac_option" in | ||
361 | *=*) ;; | ||
362 | *) ac_optarg=yes ;; | ||
363 | esac | ||
364 | eval "with_${ac_package}='$ac_optarg'" ;; | ||
365 | |||
366 | -without-* | --without-*) | ||
367 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | ||
368 | # Reject names that are not valid shell variable names. | ||
369 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | ||
370 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | ||
371 | fi | ||
372 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
373 | eval "with_${ac_package}=no" ;; | ||
374 | |||
375 | --x) | ||
376 | # Obsolete; use --with-x. | ||
377 | with_x=yes ;; | ||
378 | |||
379 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
380 | | --x-incl | --x-inc | --x-in | --x-i) | ||
381 | ac_prev=x_includes ;; | ||
382 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
383 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
384 | x_includes="$ac_optarg" ;; | ||
385 | |||
386 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
387 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
388 | ac_prev=x_libraries ;; | ||
389 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
390 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
391 | x_libraries="$ac_optarg" ;; | ||
392 | |||
393 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | ||
394 | ;; | ||
395 | |||
396 | *) | ||
397 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | ||
398 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | ||
399 | fi | ||
400 | if test "x$nonopt" != xNONE; then | ||
401 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | ||
402 | fi | ||
403 | nonopt="$ac_option" | ||
404 | ;; | ||
405 | |||
406 | esac | ||
407 | done | ||
408 | |||
409 | if test -n "$ac_prev"; then | ||
410 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | ||
411 | fi | ||
412 | |||
413 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | ||
414 | |||
415 | # File descriptor usage: | ||
416 | # 0 standard input | ||
417 | # 1 file creation | ||
418 | # 2 errors and warnings | ||
419 | # 3 some systems may open it to /dev/tty | ||
420 | # 4 used on the Kubota Titan | ||
421 | # 6 checking for... messages and results | ||
422 | # 5 compiler messages saved in config.log | ||
423 | if test "$silent" = yes; then | ||
424 | exec 6>/dev/null | ||
425 | else | ||
426 | exec 6>&1 | ||
427 | fi | ||
428 | exec 5>./config.log | ||
429 | |||
430 | echo "\ | ||
431 | This file contains any messages produced by compilers while | ||
432 | running configure, to aid debugging if configure makes a mistake. | ||
433 | " 1>&5 | ||
434 | |||
435 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
436 | # Also quote any args containing shell metacharacters. | ||
437 | ac_configure_args= | ||
438 | for ac_arg | ||
439 | do | ||
440 | case "$ac_arg" in | ||
441 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
442 | | --no-cr | --no-c) ;; | ||
443 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
444 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | ||
445 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | ||
446 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
447 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | ||
448 | esac | ||
449 | done | ||
450 | |||
451 | # NLS nuisances. | ||
452 | # Only set these to C if already set. These must not be set unconditionally | ||
453 | # because not all systems understand e.g. LANG=C (notably SCO). | ||
454 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | ||
455 | # Non-C LC_CTYPE values break the ctype check. | ||
456 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | ||
457 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | ||
458 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | ||
459 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | ||
460 | |||
461 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
462 | rm -rf conftest* confdefs.h | ||
463 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
464 | echo > confdefs.h | ||
465 | |||
466 | # A filename unique to this package, relative to the directory that | ||
467 | # configure is in, which we can look for to find out if srcdir is correct. | ||
468 | ac_unique_file=mod_log_sql.c | ||
469 | |||
470 | # Find the source files, if location was not specified. | ||
471 | if test -z "$srcdir"; then | ||
472 | ac_srcdir_defaulted=yes | ||
473 | # Try the directory containing this script, then its parent. | ||
474 | ac_prog=$0 | ||
475 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | ||
476 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | ||
477 | srcdir=$ac_confdir | ||
478 | if test ! -r $srcdir/$ac_unique_file; then | ||
479 | srcdir=.. | ||
480 | fi | ||
481 | else | ||
482 | ac_srcdir_defaulted=no | ||
483 | fi | ||
484 | if test ! -r $srcdir/$ac_unique_file; then | ||
485 | if test "$ac_srcdir_defaulted" = yes; then | ||
486 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | ||
487 | else | ||
488 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | ||
489 | fi | ||
490 | fi | ||
491 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | ||
492 | |||
493 | # Prefer explicitly selected file to automatically selected ones. | ||
494 | if test -z "$CONFIG_SITE"; then | ||
495 | if test "x$prefix" != xNONE; then | ||
496 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
497 | else | ||
498 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
499 | fi | ||
500 | fi | ||
501 | for ac_site_file in $CONFIG_SITE; do | ||
502 | if test -r "$ac_site_file"; then | ||
503 | echo "loading site script $ac_site_file" | ||
504 | . "$ac_site_file" | ||
505 | fi | ||
506 | done | ||
507 | |||
508 | if test -r "$cache_file"; then | ||
509 | echo "loading cache $cache_file" | ||
510 | . $cache_file | ||
511 | else | ||
512 | echo "creating cache $cache_file" | ||
513 | > $cache_file | ||
514 | fi | ||
515 | |||
516 | ac_ext=c | ||
517 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
518 | ac_cpp='$CPP $CPPFLAGS' | ||
519 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
520 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
521 | cross_compiling=$ac_cv_prog_cc_cross | ||
522 | |||
523 | ac_exeext= | ||
524 | ac_objext=o | ||
525 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | ||
526 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | ||
527 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | ||
528 | ac_n= ac_c=' | ||
529 | ' ac_t=' ' | ||
530 | else | ||
531 | ac_n=-n ac_c= ac_t= | ||
532 | fi | ||
533 | else | ||
534 | ac_n= ac_c='\c' ac_t= | ||
535 | fi | ||
536 | |||
537 | |||
538 | |||
539 | |||
540 | |||
541 | APDSTDIR="/usr/local/apache" | ||
542 | APSRCDIR="/usr/local/src/apache-1.3.27" | ||
543 | MYSQLHDRDIR="/usr/include/mysql" | ||
544 | MYSQLLIBDIR="/usr/lib" | ||
545 | |||
546 | # Check whether --with-apache or --without-apache was given. | ||
547 | if test "${with_apache+set}" = set; then | ||
548 | withval="$with_apache" | ||
549 | APDSTDIR=${withval} | ||
550 | fi | ||
551 | |||
552 | |||
553 | APXSDIR="$APDSTDIR/bin" | ||
554 | APHDRDIR="$APDSTDIR/include" | ||
555 | |||
556 | # Check whether --with-apache-source or --without-apache-source was given. | ||
557 | if test "${with_apache_source+set}" = set; then | ||
558 | withval="$with_apache_source" | ||
559 | APSRCDIR=${withval} | ||
560 | fi | ||
561 | |||
562 | |||
563 | # Check whether --with-apache-headers or --without-apache-headers was given. | ||
564 | if test "${with_apache_headers+set}" = set; then | ||
565 | withval="$with_apache_headers" | ||
566 | APHDRDIR=${withval} | ||
567 | fi | ||
568 | |||
569 | |||
570 | # Check whether --with-apxs or --without-apxs was given. | ||
571 | if test "${with_apxs+set}" = set; then | ||
572 | withval="$with_apxs" | ||
573 | APXSDIR=${withval} | ||
574 | fi | ||
575 | |||
576 | |||
577 | # Check whether --with-mysql-headers or --without-mysql-headers was given. | ||
578 | if test "${with_mysql_headers+set}" = set; then | ||
579 | withval="$with_mysql_headers" | ||
580 | MYSQLHDRDIR=${withval} | ||
581 | fi | ||
582 | |||
583 | |||
584 | # Check whether --with-mysql-libs or --without-mysql-libs was given. | ||
585 | if test "${with_mysql_libs+set}" = set; then | ||
586 | withval="$with_mysql_libs" | ||
587 | MYSQLLIBDIR=${withval} | ||
588 | fi | ||
589 | |||
590 | |||
591 | # Check whether --enable-ssl or --disable-ssl was given. | ||
592 | if test "${enable_ssl+set}" = set; then | ||
593 | enableval="$enable_ssl" | ||
594 | WITHSSL=0 | ||
595 | else | ||
596 | WITHSSL=1 | ||
597 | fi | ||
598 | |||
599 | |||
600 | |||
601 | |||
602 | |||
603 | |||
604 | |||
605 | |||
606 | |||
607 | |||
608 | echo "Using the following locations:" | ||
609 | echo " Apache installed in $APDSTDIR" | ||
610 | echo " Apache source in $APSRCDIR" | ||
611 | echo " Apache headers in $APHDRDIR" | ||
612 | echo " apxs in $APXSDIR" | ||
613 | echo " MySQL headers in $MYSQLHDRDIR" | ||
614 | echo " MySQL libraries in $MYSQLLIBDIR" | ||
615 | |||
616 | |||
617 | ac_aux_dir= | ||
618 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
619 | if test -f $ac_dir/install-sh; then | ||
620 | ac_aux_dir=$ac_dir | ||
621 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
622 | break | ||
623 | elif test -f $ac_dir/install.sh; then | ||
624 | ac_aux_dir=$ac_dir | ||
625 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
626 | break | ||
627 | fi | ||
628 | done | ||
629 | if test -z "$ac_aux_dir"; then | ||
630 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | ||
631 | fi | ||
632 | ac_config_guess=$ac_aux_dir/config.guess | ||
633 | ac_config_sub=$ac_aux_dir/config.sub | ||
634 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | ||
635 | |||
636 | |||
637 | # Make sure we can run config.sub. | ||
638 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | ||
639 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | ||
640 | fi | ||
641 | |||
642 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | ||
643 | echo "configure:644: checking host system type" >&5 | ||
644 | |||
645 | host_alias=$host | ||
646 | case "$host_alias" in | ||
647 | NONE) | ||
648 | case $nonopt in | ||
649 | NONE) | ||
650 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | ||
651 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | ||
652 | fi ;; | ||
653 | *) host_alias=$nonopt ;; | ||
654 | esac ;; | ||
655 | esac | ||
656 | |||
657 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | ||
658 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
659 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
660 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
661 | echo "$ac_t""$host" 1>&6 | ||
662 | |||
663 | case "$host" in | ||
664 | *-linux*) | ||
665 | cat >> confdefs.h <<\EOF | ||
666 | #define __LINUX 1 | ||
667 | EOF | ||
668 | |||
669 | ;; | ||
670 | *-netbsd*) | ||
671 | cat >> confdefs.h <<\EOF | ||
672 | #define __NETBSD 1 | ||
673 | EOF | ||
674 | |||
675 | ;; | ||
676 | *-openbsd*) | ||
677 | cat >> confdefs.h <<\EOF | ||
678 | #define __OPENBSD 1 | ||
679 | EOF | ||
680 | |||
681 | ;; | ||
682 | *-solaris*) | ||
683 | cat >> confdefs.h <<\EOF | ||
684 | #define __SOLARIS 1 | ||
685 | EOF | ||
686 | |||
687 | ;; | ||
688 | *-sunos4*) | ||
689 | cat >> confdefs.h <<\EOF | ||
690 | #define __SUNOS 1 | ||
691 | EOF | ||
692 | |||
693 | ;; | ||
694 | *-freebsd*) | ||
695 | cat >> confdefs.h <<\EOF | ||
696 | #define __FREEBSD 1 | ||
697 | EOF | ||
698 | |||
699 | ;; | ||
700 | *-bsdi*) | ||
701 | cat >> confdefs.h <<\EOF | ||
702 | #define __BSDI 1 | ||
703 | EOF | ||
704 | |||
705 | ;; | ||
706 | *-apple-darwin*) | ||
707 | cat >> confdefs.h <<\EOF | ||
708 | #define __MACOSX 1 | ||
709 | EOF | ||
710 | |||
711 | ;; | ||
712 | esac | ||
713 | |||
714 | |||
715 | |||
716 | # Extract the first word of "gcc", so it can be a program name with args. | ||
717 | set dummy gcc; ac_word=$2 | ||
718 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
719 | echo "configure:720: checking for $ac_word" >&5 | ||
720 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
721 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
722 | else | ||
723 | if test -n "$CC"; then | ||
724 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
725 | else | ||
726 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
727 | ac_dummy="$PATH" | ||
728 | for ac_dir in $ac_dummy; do | ||
729 | test -z "$ac_dir" && ac_dir=. | ||
730 | if test -f $ac_dir/$ac_word; then | ||
731 | ac_cv_prog_CC="gcc" | ||
732 | break | ||
733 | fi | ||
734 | done | ||
735 | IFS="$ac_save_ifs" | ||
736 | fi | ||
737 | fi | ||
738 | CC="$ac_cv_prog_CC" | ||
739 | if test -n "$CC"; then | ||
740 | echo "$ac_t""$CC" 1>&6 | ||
741 | else | ||
742 | echo "$ac_t""no" 1>&6 | ||
743 | fi | ||
744 | |||
745 | if test -z "$CC"; then | ||
746 | # Extract the first word of "cc", so it can be a program name with args. | ||
747 | set dummy cc; ac_word=$2 | ||
748 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
749 | echo "configure:750: checking for $ac_word" >&5 | ||
750 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
751 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
752 | else | ||
753 | if test -n "$CC"; then | ||
754 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
755 | else | ||
756 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
757 | ac_prog_rejected=no | ||
758 | ac_dummy="$PATH" | ||
759 | for ac_dir in $ac_dummy; do | ||
760 | test -z "$ac_dir" && ac_dir=. | ||
761 | if test -f $ac_dir/$ac_word; then | ||
762 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | ||
763 | ac_prog_rejected=yes | ||
764 | continue | ||
765 | fi | ||
766 | ac_cv_prog_CC="cc" | ||
767 | break | ||
768 | fi | ||
769 | done | ||
770 | IFS="$ac_save_ifs" | ||
771 | if test $ac_prog_rejected = yes; then | ||
772 | # We found a bogon in the path, so make sure we never use it. | ||
773 | set dummy $ac_cv_prog_CC | ||
774 | shift | ||
775 | if test $# -gt 0; then | ||
776 | # We chose a different compiler from the bogus one. | ||
777 | # However, it has the same basename, so the bogon will be chosen | ||
778 | # first if we set CC to just the basename; use the full file name. | ||
779 | shift | ||
780 | set dummy "$ac_dir/$ac_word" "$@" | ||
781 | shift | ||
782 | ac_cv_prog_CC="$@" | ||
783 | fi | ||
784 | fi | ||
785 | fi | ||
786 | fi | ||
787 | CC="$ac_cv_prog_CC" | ||
788 | if test -n "$CC"; then | ||
789 | echo "$ac_t""$CC" 1>&6 | ||
790 | else | ||
791 | echo "$ac_t""no" 1>&6 | ||
792 | fi | ||
793 | |||
794 | if test -z "$CC"; then | ||
795 | case "`uname -s`" in | ||
796 | *win32* | *WIN32*) | ||
797 | # Extract the first word of "cl", so it can be a program name with args. | ||
798 | set dummy cl; ac_word=$2 | ||
799 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
800 | echo "configure:801: checking for $ac_word" >&5 | ||
801 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
802 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
803 | else | ||
804 | if test -n "$CC"; then | ||
805 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
806 | else | ||
807 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
808 | ac_dummy="$PATH" | ||
809 | for ac_dir in $ac_dummy; do | ||
810 | test -z "$ac_dir" && ac_dir=. | ||
811 | if test -f $ac_dir/$ac_word; then | ||
812 | ac_cv_prog_CC="cl" | ||
813 | break | ||
814 | fi | ||
815 | done | ||
816 | IFS="$ac_save_ifs" | ||
817 | fi | ||
818 | fi | ||
819 | CC="$ac_cv_prog_CC" | ||
820 | if test -n "$CC"; then | ||
821 | echo "$ac_t""$CC" 1>&6 | ||
822 | else | ||
823 | echo "$ac_t""no" 1>&6 | ||
824 | fi | ||
825 | ;; | ||
826 | esac | ||
827 | fi | ||
828 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | ||
829 | fi | ||
830 | |||
831 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | ||
832 | echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | ||
833 | |||
834 | ac_ext=c | ||
835 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
836 | ac_cpp='$CPP $CPPFLAGS' | ||
837 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
838 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
839 | cross_compiling=$ac_cv_prog_cc_cross | ||
840 | |||
841 | cat > conftest.$ac_ext << EOF | ||
842 | |||
843 | #line 844 "configure" | ||
844 | #include "confdefs.h" | ||
845 | |||
846 | main(){return(0);} | ||
847 | EOF | ||
848 | if { (eval echo configure:849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
849 | ac_cv_prog_cc_works=yes | ||
850 | # If we can't run a trivial program, we are probably using a cross compiler. | ||
851 | if (./conftest; exit) 2>/dev/null; then | ||
852 | ac_cv_prog_cc_cross=no | ||
853 | else | ||
854 | ac_cv_prog_cc_cross=yes | ||
855 | fi | ||
856 | else | ||
857 | echo "configure: failed program was:" >&5 | ||
858 | cat conftest.$ac_ext >&5 | ||
859 | ac_cv_prog_cc_works=no | ||
860 | fi | ||
861 | rm -fr conftest* | ||
862 | ac_ext=c | ||
863 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
864 | ac_cpp='$CPP $CPPFLAGS' | ||
865 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
866 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
867 | cross_compiling=$ac_cv_prog_cc_cross | ||
868 | |||
869 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | ||
870 | if test $ac_cv_prog_cc_works = no; then | ||
871 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | ||
872 | fi | ||
873 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | ||
874 | echo "configure:875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | ||
875 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | ||
876 | cross_compiling=$ac_cv_prog_cc_cross | ||
877 | |||
878 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | ||
879 | echo "configure:880: checking whether we are using GNU C" >&5 | ||
880 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | ||
881 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
882 | else | ||
883 | cat > conftest.c <<EOF | ||
884 | #ifdef __GNUC__ | ||
885 | yes; | ||
886 | #endif | ||
887 | EOF | ||
888 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | ||
889 | ac_cv_prog_gcc=yes | ||
890 | else | ||
891 | ac_cv_prog_gcc=no | ||
892 | fi | ||
893 | fi | ||
894 | |||
895 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | ||
896 | |||
897 | if test $ac_cv_prog_gcc = yes; then | ||
898 | GCC=yes | ||
899 | else | ||
900 | GCC= | ||
901 | fi | ||
902 | |||
903 | ac_test_CFLAGS="${CFLAGS+set}" | ||
904 | ac_save_CFLAGS="$CFLAGS" | ||
905 | CFLAGS= | ||
906 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | ||
907 | echo "configure:908: checking whether ${CC-cc} accepts -g" >&5 | ||
908 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | ||
909 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
910 | else | ||
911 | echo 'void f(){}' > conftest.c | ||
912 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | ||
913 | ac_cv_prog_cc_g=yes | ||
914 | else | ||
915 | ac_cv_prog_cc_g=no | ||
916 | fi | ||
917 | rm -f conftest* | ||
918 | |||
919 | fi | ||
920 | |||
921 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | ||
922 | if test "$ac_test_CFLAGS" = set; then | ||
923 | CFLAGS="$ac_save_CFLAGS" | ||
924 | elif test $ac_cv_prog_cc_g = yes; then | ||
925 | if test "$GCC" = yes; then | ||
926 | CFLAGS="-g -O2" | ||
927 | else | ||
928 | CFLAGS="-g" | ||
929 | fi | ||
930 | else | ||
931 | if test "$GCC" = yes; then | ||
932 | CFLAGS="-O2" | ||
933 | else | ||
934 | CFLAGS= | ||
935 | fi | ||
936 | fi | ||
937 | |||
938 | # Find a good install program. We prefer a C program (faster), | ||
939 | # so one script is as good as another. But avoid the broken or | ||
940 | # incompatible versions: | ||
941 | # SysV /etc/install, /usr/sbin/install | ||
942 | # SunOS /usr/etc/install | ||
943 | # IRIX /sbin/install | ||
944 | # AIX /bin/install | ||
945 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
946 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
947 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
948 | # ./install, which can be erroneously created by make from ./install.sh. | ||
949 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | ||
950 | echo "configure:951: checking for a BSD compatible install" >&5 | ||
951 | if test -z "$INSTALL"; then | ||
952 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | ||
953 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
954 | else | ||
955 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | ||
956 | for ac_dir in $PATH; do | ||
957 | # Account for people who put trailing slashes in PATH elements. | ||
958 | case "$ac_dir/" in | ||
959 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | ||
960 | *) | ||
961 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
962 | # Don't use installbsd from OSF since it installs stuff as root | ||
963 | # by default. | ||
964 | for ac_prog in ginstall scoinst install; do | ||
965 | if test -f $ac_dir/$ac_prog; then | ||
966 | if test $ac_prog = install && | ||
967 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | ||
968 | # AIX install. It has an incompatible calling convention. | ||
969 | : | ||
970 | else | ||
971 | ac_cv_path_install="$ac_dir/$ac_prog -c" | ||
972 | break 2 | ||
973 | fi | ||
974 | fi | ||
975 | done | ||
976 | ;; | ||
977 | esac | ||
978 | done | ||
979 | IFS="$ac_save_IFS" | ||
980 | |||
981 | fi | ||
982 | if test "${ac_cv_path_install+set}" = set; then | ||
983 | INSTALL="$ac_cv_path_install" | ||
984 | else | ||
985 | # As a last resort, use the slow shell script. We don't cache a | ||
986 | # path for INSTALL within a source directory, because that will | ||
987 | # break other packages using the cache if that directory is | ||
988 | # removed, or if the path is relative. | ||
989 | INSTALL="$ac_install_sh" | ||
990 | fi | ||
991 | fi | ||
992 | echo "$ac_t""$INSTALL" 1>&6 | ||
993 | |||
994 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
995 | # It thinks the first close brace ends the variable substitution. | ||
996 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
997 | |||
998 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | ||
999 | |||
1000 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
1001 | |||
1002 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | ||
1003 | echo "configure:1004: checking whether ln -s works" >&5 | ||
1004 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | ||
1005 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1006 | else | ||
1007 | rm -f conftestdata | ||
1008 | if ln -s X conftestdata 2>/dev/null | ||
1009 | then | ||
1010 | rm -f conftestdata | ||
1011 | ac_cv_prog_LN_S="ln -s" | ||
1012 | else | ||
1013 | ac_cv_prog_LN_S=ln | ||
1014 | fi | ||
1015 | fi | ||
1016 | LN_S="$ac_cv_prog_LN_S" | ||
1017 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | ||
1018 | echo "$ac_t""yes" 1>&6 | ||
1019 | else | ||
1020 | echo "$ac_t""no" 1>&6 | ||
1021 | fi | ||
1022 | |||
1023 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | ||
1024 | echo "configure:1025: checking whether ${MAKE-make} sets \${MAKE}" >&5 | ||
1025 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | ||
1026 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | ||
1027 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1028 | else | ||
1029 | cat > conftestmake <<\EOF | ||
1030 | all: | ||
1031 | @echo 'ac_maketemp="${MAKE}"' | ||
1032 | EOF | ||
1033 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
1034 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | ||
1035 | if test -n "$ac_maketemp"; then | ||
1036 | eval ac_cv_prog_make_${ac_make}_set=yes | ||
1037 | else | ||
1038 | eval ac_cv_prog_make_${ac_make}_set=no | ||
1039 | fi | ||
1040 | rm -f conftestmake | ||
1041 | fi | ||
1042 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | ||
1043 | echo "$ac_t""yes" 1>&6 | ||
1044 | SET_MAKE= | ||
1045 | else | ||
1046 | echo "$ac_t""no" 1>&6 | ||
1047 | SET_MAKE="MAKE=${MAKE-make}" | ||
1048 | fi | ||
1049 | |||
1050 | # Extract the first word of "rm", so it can be a program name with args. | ||
1051 | set dummy rm; ac_word=$2 | ||
1052 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1053 | echo "configure:1054: checking for $ac_word" >&5 | ||
1054 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then | ||
1055 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1056 | else | ||
1057 | case "$RM" in | ||
1058 | /*) | ||
1059 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | ||
1060 | ;; | ||
1061 | ?:/*) | ||
1062 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. | ||
1063 | ;; | ||
1064 | *) | ||
1065 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1066 | ac_dummy="$PATH:/usr/bin:/usr/local/bin" | ||
1067 | for ac_dir in $ac_dummy; do | ||
1068 | test -z "$ac_dir" && ac_dir=. | ||
1069 | if test -f $ac_dir/$ac_word; then | ||
1070 | ac_cv_path_RM="$ac_dir/$ac_word" | ||
1071 | break | ||
1072 | fi | ||
1073 | done | ||
1074 | IFS="$ac_save_ifs" | ||
1075 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="no" | ||
1076 | ;; | ||
1077 | esac | ||
1078 | fi | ||
1079 | RM="$ac_cv_path_RM" | ||
1080 | if test -n "$RM"; then | ||
1081 | echo "$ac_t""$RM" 1>&6 | ||
1082 | else | ||
1083 | echo "$ac_t""no" 1>&6 | ||
1084 | fi | ||
1085 | |||
1086 | if test $RM = no; then | ||
1087 | { echo "configure: error: "rm not found in the PATH"" 1>&2; exit 1; } | ||
1088 | fi | ||
1089 | # Extract the first word of "apxs", so it can be a program name with args. | ||
1090 | set dummy apxs; ac_word=$2 | ||
1091 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1092 | echo "configure:1093: checking for $ac_word" >&5 | ||
1093 | if eval "test \"`echo '$''{'ac_cv_path_APXS'+set}'`\" = set"; then | ||
1094 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1095 | else | ||
1096 | case "$APXS" in | ||
1097 | /*) | ||
1098 | ac_cv_path_APXS="$APXS" # Let the user override the test with a path. | ||
1099 | ;; | ||
1100 | ?:/*) | ||
1101 | ac_cv_path_APXS="$APXS" # Let the user override the test with a dos path. | ||
1102 | ;; | ||
1103 | *) | ||
1104 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1105 | ac_dummy="$APXSDIR" | ||
1106 | for ac_dir in $ac_dummy; do | ||
1107 | test -z "$ac_dir" && ac_dir=. | ||
1108 | if test -f $ac_dir/$ac_word; then | ||
1109 | ac_cv_path_APXS="$ac_dir/$ac_word" | ||
1110 | break | ||
1111 | fi | ||
1112 | done | ||
1113 | IFS="$ac_save_ifs" | ||
1114 | test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no" | ||
1115 | ;; | ||
1116 | esac | ||
1117 | fi | ||
1118 | APXS="$ac_cv_path_APXS" | ||
1119 | if test -n "$APXS"; then | ||
1120 | echo "$ac_t""$APXS" 1>&6 | ||
1121 | else | ||
1122 | echo "$ac_t""no" 1>&6 | ||
1123 | fi | ||
1124 | |||
1125 | if test $APXS = no; then | ||
1126 | { echo "configure: error: "apxs not found. Please specify its location using --with-apxs"" 1>&2; exit 1; } | ||
1127 | fi | ||
1128 | |||
1129 | # Extract the first word of "lyx", so it can be a program name with args. | ||
1130 | set dummy lyx; ac_word=$2 | ||
1131 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1132 | echo "configure:1133: checking for $ac_word" >&5 | ||
1133 | if eval "test \"`echo '$''{'ac_cv_path_LYX'+set}'`\" = set"; then | ||
1134 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1135 | else | ||
1136 | case "$LYX" in | ||
1137 | /*) | ||
1138 | ac_cv_path_LYX="$LYX" # Let the user override the test with a path. | ||
1139 | ;; | ||
1140 | ?:/*) | ||
1141 | ac_cv_path_LYX="$LYX" # Let the user override the test with a dos path. | ||
1142 | ;; | ||
1143 | *) | ||
1144 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1145 | ac_dummy="$PATH:/usr/local/bin" | ||
1146 | for ac_dir in $ac_dummy; do | ||
1147 | test -z "$ac_dir" && ac_dir=. | ||
1148 | if test -f $ac_dir/$ac_word; then | ||
1149 | ac_cv_path_LYX="$ac_dir/$ac_word" | ||
1150 | break | ||
1151 | fi | ||
1152 | done | ||
1153 | IFS="$ac_save_ifs" | ||
1154 | ;; | ||
1155 | esac | ||
1156 | fi | ||
1157 | LYX="$ac_cv_path_LYX" | ||
1158 | if test -n "$LYX"; then | ||
1159 | echo "$ac_t""$LYX" 1>&6 | ||
1160 | else | ||
1161 | echo "$ac_t""no" 1>&6 | ||
1162 | fi | ||
1163 | |||
1164 | # Extract the first word of "latex", so it can be a program name with args. | ||
1165 | set dummy latex; ac_word=$2 | ||
1166 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1167 | echo "configure:1168: checking for $ac_word" >&5 | ||
1168 | if eval "test \"`echo '$''{'ac_cv_path_LATEX'+set}'`\" = set"; then | ||
1169 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1170 | else | ||
1171 | case "$LATEX" in | ||
1172 | /*) | ||
1173 | ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path. | ||
1174 | ;; | ||
1175 | ?:/*) | ||
1176 | ac_cv_path_LATEX="$LATEX" # Let the user override the test with a dos path. | ||
1177 | ;; | ||
1178 | *) | ||
1179 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1180 | ac_dummy="$PATH:/usr/local/bin" | ||
1181 | for ac_dir in $ac_dummy; do | ||
1182 | test -z "$ac_dir" && ac_dir=. | ||
1183 | if test -f $ac_dir/$ac_word; then | ||
1184 | ac_cv_path_LATEX="$ac_dir/$ac_word" | ||
1185 | break | ||
1186 | fi | ||
1187 | done | ||
1188 | IFS="$ac_save_ifs" | ||
1189 | ;; | ||
1190 | esac | ||
1191 | fi | ||
1192 | LATEX="$ac_cv_path_LATEX" | ||
1193 | if test -n "$LATEX"; then | ||
1194 | echo "$ac_t""$LATEX" 1>&6 | ||
1195 | else | ||
1196 | echo "$ac_t""no" 1>&6 | ||
1197 | fi | ||
1198 | |||
1199 | # Extract the first word of "dvips", so it can be a program name with args. | ||
1200 | set dummy dvips; ac_word=$2 | ||
1201 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1202 | echo "configure:1203: checking for $ac_word" >&5 | ||
1203 | if eval "test \"`echo '$''{'ac_cv_path_DVIPS'+set}'`\" = set"; then | ||
1204 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1205 | else | ||
1206 | case "$DVIPS" in | ||
1207 | /*) | ||
1208 | ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path. | ||
1209 | ;; | ||
1210 | ?:/*) | ||
1211 | ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a dos path. | ||
1212 | ;; | ||
1213 | *) | ||
1214 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1215 | ac_dummy="$PATH:/usr/local/bin" | ||
1216 | for ac_dir in $ac_dummy; do | ||
1217 | test -z "$ac_dir" && ac_dir=. | ||
1218 | if test -f $ac_dir/$ac_word; then | ||
1219 | ac_cv_path_DVIPS="$ac_dir/$ac_word" | ||
1220 | break | ||
1221 | fi | ||
1222 | done | ||
1223 | IFS="$ac_save_ifs" | ||
1224 | ;; | ||
1225 | esac | ||
1226 | fi | ||
1227 | DVIPS="$ac_cv_path_DVIPS" | ||
1228 | if test -n "$DVIPS"; then | ||
1229 | echo "$ac_t""$DVIPS" 1>&6 | ||
1230 | else | ||
1231 | echo "$ac_t""no" 1>&6 | ||
1232 | fi | ||
1233 | |||
1234 | # Extract the first word of "lynx", so it can be a program name with args. | ||
1235 | set dummy lynx; ac_word=$2 | ||
1236 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1237 | echo "configure:1238: checking for $ac_word" >&5 | ||
1238 | if eval "test \"`echo '$''{'ac_cv_path_LINKS'+set}'`\" = set"; then | ||
1239 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1240 | else | ||
1241 | case "$LINKS" in | ||
1242 | /*) | ||
1243 | ac_cv_path_LINKS="$LINKS" # Let the user override the test with a path. | ||
1244 | ;; | ||
1245 | ?:/*) | ||
1246 | ac_cv_path_LINKS="$LINKS" # Let the user override the test with a dos path. | ||
1247 | ;; | ||
1248 | *) | ||
1249 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1250 | ac_dummy="$PATH:/usr/local/bin" | ||
1251 | for ac_dir in $ac_dummy; do | ||
1252 | test -z "$ac_dir" && ac_dir=. | ||
1253 | if test -f $ac_dir/$ac_word; then | ||
1254 | ac_cv_path_LINKS="$ac_dir/$ac_word" | ||
1255 | break | ||
1256 | fi | ||
1257 | done | ||
1258 | IFS="$ac_save_ifs" | ||
1259 | ;; | ||
1260 | esac | ||
1261 | fi | ||
1262 | LINKS="$ac_cv_path_LINKS" | ||
1263 | if test -n "$LINKS"; then | ||
1264 | echo "$ac_t""$LINKS" 1>&6 | ||
1265 | else | ||
1266 | echo "$ac_t""no" 1>&6 | ||
1267 | fi | ||
1268 | |||
1269 | # Extract the first word of "latex2html", so it can be a program name with args. | ||
1270 | set dummy latex2html; ac_word=$2 | ||
1271 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1272 | echo "configure:1273: checking for $ac_word" >&5 | ||
1273 | if eval "test \"`echo '$''{'ac_cv_path_L2H'+set}'`\" = set"; then | ||
1274 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1275 | else | ||
1276 | case "$L2H" in | ||
1277 | /*) | ||
1278 | ac_cv_path_L2H="$L2H" # Let the user override the test with a path. | ||
1279 | ;; | ||
1280 | ?:/*) | ||
1281 | ac_cv_path_L2H="$L2H" # Let the user override the test with a dos path. | ||
1282 | ;; | ||
1283 | *) | ||
1284 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1285 | ac_dummy="$PATH:/usr/local/bin" | ||
1286 | for ac_dir in $ac_dummy; do | ||
1287 | test -z "$ac_dir" && ac_dir=. | ||
1288 | if test -f $ac_dir/$ac_word; then | ||
1289 | ac_cv_path_L2H="$ac_dir/$ac_word" | ||
1290 | break | ||
1291 | fi | ||
1292 | done | ||
1293 | IFS="$ac_save_ifs" | ||
1294 | ;; | ||
1295 | esac | ||
1296 | fi | ||
1297 | L2H="$ac_cv_path_L2H" | ||
1298 | if test -n "$L2H"; then | ||
1299 | echo "$ac_t""$L2H" 1>&6 | ||
1300 | else | ||
1301 | echo "$ac_t""no" 1>&6 | ||
1302 | fi | ||
1303 | |||
1304 | |||
1305 | |||
1306 | |||
1307 | |||
1308 | |||
1309 | |||
1310 | |||
1311 | |||
1312 | echo $ac_n "checking for main in -lz""... $ac_c" 1>&6 | ||
1313 | echo "configure:1314: checking for main in -lz" >&5 | ||
1314 | ac_lib_var=`echo z'_'main | sed 'y%./+-%__p_%'` | ||
1315 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
1316 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1317 | else | ||
1318 | ac_save_LIBS="$LIBS" | ||
1319 | LIBS="-lz $LIBS" | ||
1320 | cat > conftest.$ac_ext <<EOF | ||
1321 | #line 1322 "configure" | ||
1322 | #include "confdefs.h" | ||
1323 | |||
1324 | int main() { | ||
1325 | main() | ||
1326 | ; return 0; } | ||
1327 | EOF | ||
1328 | if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
1329 | rm -rf conftest* | ||
1330 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
1331 | else | ||
1332 | echo "configure: failed program was:" >&5 | ||
1333 | cat conftest.$ac_ext >&5 | ||
1334 | rm -rf conftest* | ||
1335 | eval "ac_cv_lib_$ac_lib_var=no" | ||
1336 | fi | ||
1337 | rm -f conftest* | ||
1338 | LIBS="$ac_save_LIBS" | ||
1339 | |||
1340 | fi | ||
1341 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
1342 | echo "$ac_t""yes" 1>&6 | ||
1343 | LIBS="$LIBS -lz" | ||
1344 | else | ||
1345 | echo "$ac_t""no" 1>&6 | ||
1346 | { echo "configure: error: "libz not found. Compilation cannot continue without this library."" 1>&2; exit 1; } | ||
1347 | fi | ||
1348 | |||
1349 | echo $ac_n "checking for nanosleep""... $ac_c" 1>&6 | ||
1350 | echo "configure:1351: checking for nanosleep" >&5 | ||
1351 | if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then | ||
1352 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1353 | else | ||
1354 | cat > conftest.$ac_ext <<EOF | ||
1355 | #line 1356 "configure" | ||
1356 | #include "confdefs.h" | ||
1357 | /* System header to define __stub macros and hopefully few prototypes, | ||
1358 | which can conflict with char nanosleep(); below. */ | ||
1359 | #include <assert.h> | ||
1360 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
1361 | /* We use char because int might match the return type of a gcc2 | ||
1362 | builtin and then its argument prototype would still apply. */ | ||
1363 | char nanosleep(); | ||
1364 | |||
1365 | int main() { | ||
1366 | |||
1367 | /* The GNU C library defines this for functions which it implements | ||
1368 | to always fail with ENOSYS. Some functions are actually named | ||
1369 | something starting with __ and the normal name is an alias. */ | ||
1370 | #if defined (__stub_nanosleep) || defined (__stub___nanosleep) | ||
1371 | choke me | ||
1372 | #else | ||
1373 | nanosleep(); | ||
1374 | #endif | ||
1375 | |||
1376 | ; return 0; } | ||
1377 | EOF | ||
1378 | if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
1379 | rm -rf conftest* | ||
1380 | eval "ac_cv_func_nanosleep=yes" | ||
1381 | else | ||
1382 | echo "configure: failed program was:" >&5 | ||
1383 | cat conftest.$ac_ext >&5 | ||
1384 | rm -rf conftest* | ||
1385 | eval "ac_cv_func_nanosleep=no" | ||
1386 | fi | ||
1387 | rm -f conftest* | ||
1388 | fi | ||
1389 | |||
1390 | if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then | ||
1391 | echo "$ac_t""yes" 1>&6 | ||
1392 | : | ||
1393 | else | ||
1394 | echo "$ac_t""no" 1>&6 | ||
1395 | echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6 | ||
1396 | echo "configure:1397: checking for nanosleep in -lrt" >&5 | ||
1397 | ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'` | ||
1398 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
1399 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1400 | else | ||
1401 | ac_save_LIBS="$LIBS" | ||
1402 | LIBS="-lrt $LIBS" | ||
1403 | cat > conftest.$ac_ext <<EOF | ||
1404 | #line 1405 "configure" | ||
1405 | #include "confdefs.h" | ||
1406 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
1407 | /* We use char because int might match the return type of a gcc2 | ||
1408 | builtin and then its argument prototype would still apply. */ | ||
1409 | char nanosleep(); | ||
1410 | |||
1411 | int main() { | ||
1412 | nanosleep() | ||
1413 | ; return 0; } | ||
1414 | EOF | ||
1415 | if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
1416 | rm -rf conftest* | ||
1417 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
1418 | else | ||
1419 | echo "configure: failed program was:" >&5 | ||
1420 | cat conftest.$ac_ext >&5 | ||
1421 | rm -rf conftest* | ||
1422 | eval "ac_cv_lib_$ac_lib_var=no" | ||
1423 | fi | ||
1424 | rm -f conftest* | ||
1425 | LIBS="$ac_save_LIBS" | ||
1426 | |||
1427 | fi | ||
1428 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
1429 | echo "$ac_t""yes" 1>&6 | ||
1430 | LIBS="$LIBS -lrt" | ||
1431 | else | ||
1432 | echo "$ac_t""no" 1>&6 | ||
1433 | { echo "configure: error: "nanosleep function not available in librt."" 1>&2; exit 1; } | ||
1434 | fi | ||
1435 | |||
1436 | fi | ||
1437 | |||
1438 | echo $ac_n "checking for mysql_init in -lmysqlclient""... $ac_c" 1>&6 | ||
1439 | echo "configure:1440: checking for mysql_init in -lmysqlclient" >&5 | ||
1440 | ac_lib_var=`echo mysqlclient'_'mysql_init | sed 'y%./+-%__p_%'` | ||
1441 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
1442 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1443 | else | ||
1444 | ac_save_LIBS="$LIBS" | ||
1445 | LIBS="-lmysqlclient $LIBS" | ||
1446 | cat > conftest.$ac_ext <<EOF | ||
1447 | #line 1448 "configure" | ||
1448 | #include "confdefs.h" | ||
1449 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
1450 | /* We use char because int might match the return type of a gcc2 | ||
1451 | builtin and then its argument prototype would still apply. */ | ||
1452 | char mysql_init(); | ||
1453 | |||
1454 | int main() { | ||
1455 | mysql_init() | ||
1456 | ; return 0; } | ||
1457 | EOF | ||
1458 | if { (eval echo configure:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
1459 | rm -rf conftest* | ||
1460 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
1461 | else | ||
1462 | echo "configure: failed program was:" >&5 | ||
1463 | cat conftest.$ac_ext >&5 | ||
1464 | rm -rf conftest* | ||
1465 | eval "ac_cv_lib_$ac_lib_var=no" | ||
1466 | fi | ||
1467 | rm -f conftest* | ||
1468 | LIBS="$ac_save_LIBS" | ||
1469 | |||
1470 | fi | ||
1471 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
1472 | echo "$ac_t""yes" 1>&6 | ||
1473 | LIBS="$LIBS -lmysqlclient" | ||
1474 | else | ||
1475 | echo "$ac_t""no" 1>&6 | ||
1476 | { echo "configure: error: "libmysqlclient not found. Please specify its location using --with-mysql-libs."" 1>&2; exit 1; } | ||
1477 | fi | ||
1478 | |||
1479 | |||
1480 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | ||
1481 | echo "configure:1482: checking how to run the C preprocessor" >&5 | ||
1482 | # On Suns, sometimes $CPP names a directory. | ||
1483 | if test -n "$CPP" && test -d "$CPP"; then | ||
1484 | CPP= | ||
1485 | fi | ||
1486 | if test -z "$CPP"; then | ||
1487 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | ||
1488 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1489 | else | ||
1490 | # This must be in double quotes, not single quotes, because CPP may get | ||
1491 | # substituted into the Makefile and "${CC-cc}" will confuse make. | ||
1492 | CPP="${CC-cc} -E" | ||
1493 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
1494 | # not just through cpp. | ||
1495 | cat > conftest.$ac_ext <<EOF | ||
1496 | #line 1497 "configure" | ||
1497 | #include "confdefs.h" | ||
1498 | #include <assert.h> | ||
1499 | Syntax Error | ||
1500 | EOF | ||
1501 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
1502 | { (eval echo configure:1503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
1503 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
1504 | if test -z "$ac_err"; then | ||
1505 | : | ||
1506 | else | ||
1507 | echo "$ac_err" >&5 | ||
1508 | echo "configure: failed program was:" >&5 | ||
1509 | cat conftest.$ac_ext >&5 | ||
1510 | rm -rf conftest* | ||
1511 | CPP="${CC-cc} -E -traditional-cpp" | ||
1512 | cat > conftest.$ac_ext <<EOF | ||
1513 | #line 1514 "configure" | ||
1514 | #include "confdefs.h" | ||
1515 | #include <assert.h> | ||
1516 | Syntax Error | ||
1517 | EOF | ||
1518 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
1519 | { (eval echo configure:1520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
1520 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
1521 | if test -z "$ac_err"; then | ||
1522 | : | ||
1523 | else | ||
1524 | echo "$ac_err" >&5 | ||
1525 | echo "configure: failed program was:" >&5 | ||
1526 | cat conftest.$ac_ext >&5 | ||
1527 | rm -rf conftest* | ||
1528 | CPP="${CC-cc} -nologo -E" | ||
1529 | cat > conftest.$ac_ext <<EOF | ||
1530 | #line 1531 "configure" | ||
1531 | #include "confdefs.h" | ||
1532 | #include <assert.h> | ||
1533 | Syntax Error | ||
1534 | EOF | ||
1535 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
1536 | { (eval echo configure:1537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
1537 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
1538 | if test -z "$ac_err"; then | ||
1539 | : | ||
1540 | else | ||
1541 | echo "$ac_err" >&5 | ||
1542 | echo "configure: failed program was:" >&5 | ||
1543 | cat conftest.$ac_ext >&5 | ||
1544 | rm -rf conftest* | ||
1545 | CPP=/lib/cpp | ||
1546 | fi | ||
1547 | rm -f conftest* | ||
1548 | fi | ||
1549 | rm -f conftest* | ||
1550 | fi | ||
1551 | rm -f conftest* | ||
1552 | ac_cv_prog_CPP="$CPP" | ||
1553 | fi | ||
1554 | CPP="$ac_cv_prog_CPP" | ||
1555 | else | ||
1556 | ac_cv_prog_CPP="$CPP" | ||
1557 | fi | ||
1558 | echo "$ac_t""$CPP" 1>&6 | ||
1559 | |||
1560 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | ||
1561 | echo "configure:1562: checking for ANSI C header files" >&5 | ||
1562 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | ||
1563 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1564 | else | ||
1565 | cat > conftest.$ac_ext <<EOF | ||
1566 | #line 1567 "configure" | ||
1567 | #include "confdefs.h" | ||
1568 | #include <stdlib.h> | ||
1569 | #include <stdarg.h> | ||
1570 | #include <string.h> | ||
1571 | #include <float.h> | ||
1572 | EOF | ||
1573 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
1574 | { (eval echo configure:1575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
1575 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
1576 | if test -z "$ac_err"; then | ||
1577 | rm -rf conftest* | ||
1578 | ac_cv_header_stdc=yes | ||
1579 | else | ||
1580 | echo "$ac_err" >&5 | ||
1581 | echo "configure: failed program was:" >&5 | ||
1582 | cat conftest.$ac_ext >&5 | ||
1583 | rm -rf conftest* | ||
1584 | ac_cv_header_stdc=no | ||
1585 | fi | ||
1586 | rm -f conftest* | ||
1587 | |||
1588 | if test $ac_cv_header_stdc = yes; then | ||
1589 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
1590 | cat > conftest.$ac_ext <<EOF | ||
1591 | #line 1592 "configure" | ||
1592 | #include "confdefs.h" | ||
1593 | #include <string.h> | ||
1594 | EOF | ||
1595 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
1596 | egrep "memchr" >/dev/null 2>&1; then | ||
1597 | : | ||
1598 | else | ||
1599 | rm -rf conftest* | ||
1600 | ac_cv_header_stdc=no | ||
1601 | fi | ||
1602 | rm -f conftest* | ||
1603 | |||
1604 | fi | ||
1605 | |||
1606 | if test $ac_cv_header_stdc = yes; then | ||
1607 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
1608 | cat > conftest.$ac_ext <<EOF | ||
1609 | #line 1610 "configure" | ||
1610 | #include "confdefs.h" | ||
1611 | #include <stdlib.h> | ||
1612 | EOF | ||
1613 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
1614 | egrep "free" >/dev/null 2>&1; then | ||
1615 | : | ||
1616 | else | ||
1617 | rm -rf conftest* | ||
1618 | ac_cv_header_stdc=no | ||
1619 | fi | ||
1620 | rm -f conftest* | ||
1621 | |||
1622 | fi | ||
1623 | |||
1624 | if test $ac_cv_header_stdc = yes; then | ||
1625 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
1626 | if test "$cross_compiling" = yes; then | ||
1627 | : | ||
1628 | else | ||
1629 | cat > conftest.$ac_ext <<EOF | ||
1630 | #line 1631 "configure" | ||
1631 | #include "confdefs.h" | ||
1632 | #include <ctype.h> | ||
1633 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
1634 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
1635 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
1636 | int main () { int i; for (i = 0; i < 256; i++) | ||
1637 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | ||
1638 | exit (0); } | ||
1639 | |||
1640 | EOF | ||
1641 | if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
1642 | then | ||
1643 | : | ||
1644 | else | ||
1645 | echo "configure: failed program was:" >&5 | ||
1646 | cat conftest.$ac_ext >&5 | ||
1647 | rm -fr conftest* | ||
1648 | ac_cv_header_stdc=no | ||
1649 | fi | ||
1650 | rm -fr conftest* | ||
1651 | fi | ||
1652 | |||
1653 | fi | ||
1654 | fi | ||
1655 | |||
1656 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | ||
1657 | if test $ac_cv_header_stdc = yes; then | ||
1658 | cat >> confdefs.h <<\EOF | ||
1659 | #define STDC_HEADERS 1 | ||
1660 | EOF | ||
1661 | |||
1662 | fi | ||
1663 | |||
1664 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | ||
1665 | echo "configure:1666: checking whether time.h and sys/time.h may both be included" >&5 | ||
1666 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | ||
1667 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1668 | else | ||
1669 | cat > conftest.$ac_ext <<EOF | ||
1670 | #line 1671 "configure" | ||
1671 | #include "confdefs.h" | ||
1672 | #include <sys/types.h> | ||
1673 | #include <sys/time.h> | ||
1674 | #include <time.h> | ||
1675 | int main() { | ||
1676 | struct tm *tp; | ||
1677 | ; return 0; } | ||
1678 | EOF | ||
1679 | if { (eval echo configure:1680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
1680 | rm -rf conftest* | ||
1681 | ac_cv_header_time=yes | ||
1682 | else | ||
1683 | echo "configure: failed program was:" >&5 | ||
1684 | cat conftest.$ac_ext >&5 | ||
1685 | rm -rf conftest* | ||
1686 | ac_cv_header_time=no | ||
1687 | fi | ||
1688 | rm -f conftest* | ||
1689 | fi | ||
1690 | |||
1691 | echo "$ac_t""$ac_cv_header_time" 1>&6 | ||
1692 | if test $ac_cv_header_time = yes; then | ||
1693 | cat >> confdefs.h <<\EOF | ||
1694 | #define TIME_WITH_SYS_TIME 1 | ||
1695 | EOF | ||
1696 | |||
1697 | fi | ||
1698 | |||
1699 | for ac_hdr in $APDSTDIR/include/httpd.h $APDSTDIR/include/http_config.h $APDSTDIR/include/http_log.h $APDSTDIR/include/http_core.h | ||
1700 | do | ||
1701 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | ||
1702 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | ||
1703 | echo "configure:1704: checking for $ac_hdr" >&5 | ||
1704 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | ||
1705 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1706 | else | ||
1707 | cat > conftest.$ac_ext <<EOF | ||
1708 | #line 1709 "configure" | ||
1709 | #include "confdefs.h" | ||
1710 | #include <$ac_hdr> | ||
1711 | EOF | ||
1712 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
1713 | { (eval echo configure:1714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
1714 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
1715 | if test -z "$ac_err"; then | ||
1716 | rm -rf conftest* | ||
1717 | eval "ac_cv_header_$ac_safe=yes" | ||
1718 | else | ||
1719 | echo "$ac_err" >&5 | ||
1720 | echo "configure: failed program was:" >&5 | ||
1721 | cat conftest.$ac_ext >&5 | ||
1722 | rm -rf conftest* | ||
1723 | eval "ac_cv_header_$ac_safe=no" | ||
1724 | fi | ||
1725 | rm -f conftest* | ||
1726 | fi | ||
1727 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | ||
1728 | echo "$ac_t""yes" 1>&6 | ||
1729 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | ||
1730 | cat >> confdefs.h <<EOF | ||
1731 | #define $ac_tr_hdr 1 | ||
1732 | EOF | ||
1733 | |||
1734 | else | ||
1735 | echo "$ac_t""no" 1>&6 | ||
1736 | echo "** A required header cannot be located." | ||
1737 | echo " Please use the --with-apache option."; echo; exit 1 | ||
1738 | fi | ||
1739 | done | ||
1740 | |||
1741 | for ac_hdr in $MYSQLHDRDIR/mysql.h $MYSQLHDRDIR/mysqld_error.h | ||
1742 | do | ||
1743 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | ||
1744 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | ||
1745 | echo "configure:1746: checking for $ac_hdr" >&5 | ||
1746 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | ||
1747 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1748 | else | ||
1749 | cat > conftest.$ac_ext <<EOF | ||
1750 | #line 1751 "configure" | ||
1751 | #include "confdefs.h" | ||
1752 | #include <$ac_hdr> | ||
1753 | EOF | ||
1754 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
1755 | { (eval echo configure:1756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
1756 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
1757 | if test -z "$ac_err"; then | ||
1758 | rm -rf conftest* | ||
1759 | eval "ac_cv_header_$ac_safe=yes" | ||
1760 | else | ||
1761 | echo "$ac_err" >&5 | ||
1762 | echo "configure: failed program was:" >&5 | ||
1763 | cat conftest.$ac_ext >&5 | ||
1764 | rm -rf conftest* | ||
1765 | eval "ac_cv_header_$ac_safe=no" | ||
1766 | fi | ||
1767 | rm -f conftest* | ||
1768 | fi | ||
1769 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | ||
1770 | echo "$ac_t""yes" 1>&6 | ||
1771 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | ||
1772 | cat >> confdefs.h <<EOF | ||
1773 | #define $ac_tr_hdr 1 | ||
1774 | EOF | ||
1775 | |||
1776 | else | ||
1777 | echo "$ac_t""no" 1>&6 | ||
1778 | echo "** A required header cannot be located." | ||
1779 | echo " Please use the --with-mysql-headers option."; echo; exit 1 | ||
1780 | fi | ||
1781 | done | ||
1782 | |||
1783 | if test $WITHSSL = 1; then | ||
1784 | for ac_file in $APSRCDIR/src/modules/ssl/mod_ssl.h | ||
1785 | do | ||
1786 | |||
1787 | ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'` | ||
1788 | echo $ac_n "checking for $ac_file""... $ac_c" 1>&6 | ||
1789 | echo "configure:1790: checking for $ac_file" >&5 | ||
1790 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then | ||
1791 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1792 | else | ||
1793 | if test "$cross_compiling" = yes; then | ||
1794 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } | ||
1795 | else | ||
1796 | if test -r $ac_file; then | ||
1797 | eval "ac_cv_file_$ac_safe=yes" | ||
1798 | else | ||
1799 | eval "ac_cv_file_$ac_safe=no" | ||
1800 | fi | ||
1801 | fi | ||
1802 | fi | ||
1803 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then | ||
1804 | echo "$ac_t""yes" 1>&6 | ||
1805 | ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | ||
1806 | cat >> confdefs.h <<EOF | ||
1807 | #define $ac_tr_file 1 | ||
1808 | EOF | ||
1809 | ac_safe=`echo "db1/ndbm.h" | sed 'y%./+-%__p_%'` | ||
1810 | echo $ac_n "checking for db1/ndbm.h""... $ac_c" 1>&6 | ||
1811 | echo "configure:1812: checking for db1/ndbm.h" >&5 | ||
1812 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | ||
1813 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1814 | else | ||
1815 | cat > conftest.$ac_ext <<EOF | ||
1816 | #line 1817 "configure" | ||
1817 | #include "confdefs.h" | ||
1818 | #include <db1/ndbm.h> | ||
1819 | EOF | ||
1820 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
1821 | { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
1822 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
1823 | if test -z "$ac_err"; then | ||
1824 | rm -rf conftest* | ||
1825 | eval "ac_cv_header_$ac_safe=yes" | ||
1826 | else | ||
1827 | echo "$ac_err" >&5 | ||
1828 | echo "configure: failed program was:" >&5 | ||
1829 | cat conftest.$ac_ext >&5 | ||
1830 | rm -rf conftest* | ||
1831 | eval "ac_cv_header_$ac_safe=no" | ||
1832 | fi | ||
1833 | rm -f conftest* | ||
1834 | fi | ||
1835 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | ||
1836 | echo "$ac_t""yes" 1>&6 | ||
1837 | HAVE_MODSSL=1 | ||
1838 | else | ||
1839 | echo "$ac_t""no" 1>&6 | ||
1840 | HAVE_MODSSL=0 | ||
1841 | fi | ||
1842 | |||
1843 | else | ||
1844 | echo "$ac_t""no" 1>&6 | ||
1845 | HAVE_MODSSL=0 | ||
1846 | fi | ||
1847 | done | ||
1848 | |||
1849 | if test $HAVE_MODSSL = 0; then | ||
1850 | echo "configure: warning: "SSL not enabled. Please use the --with-apache-source option if you want it enabled."" 1>&2 | ||
1851 | fi | ||
1852 | else | ||
1853 | echo "configure: warning: "SSL checking/capability disabled by commandline option."" 1>&2 | ||
1854 | HAVE_MODSSL=0 | ||
1855 | fi | ||
1856 | |||
1857 | |||
1858 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | ||
1859 | echo "configure:1860: checking for working const" >&5 | ||
1860 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | ||
1861 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1862 | else | ||
1863 | cat > conftest.$ac_ext <<EOF | ||
1864 | #line 1865 "configure" | ||
1865 | #include "confdefs.h" | ||
1866 | |||
1867 | int main() { | ||
1868 | |||
1869 | /* Ultrix mips cc rejects this. */ | ||
1870 | typedef int charset[2]; const charset x; | ||
1871 | /* SunOS 4.1.1 cc rejects this. */ | ||
1872 | char const *const *ccp; | ||
1873 | char **p; | ||
1874 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
1875 | struct point {int x, y;}; | ||
1876 | static struct point const zero = {0,0}; | ||
1877 | /* AIX XL C 1.02.0.0 rejects this. | ||
1878 | It does not let you subtract one const X* pointer from another in an arm | ||
1879 | of an if-expression whose if-part is not a constant expression */ | ||
1880 | const char *g = "string"; | ||
1881 | ccp = &g + (g ? g-g : 0); | ||
1882 | /* HPUX 7.0 cc rejects these. */ | ||
1883 | ++ccp; | ||
1884 | p = (char**) ccp; | ||
1885 | ccp = (char const *const *) p; | ||
1886 | { /* SCO 3.2v4 cc rejects this. */ | ||
1887 | char *t; | ||
1888 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
1889 | |||
1890 | *t++ = 0; | ||
1891 | } | ||
1892 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
1893 | int x[] = {25, 17}; | ||
1894 | const int *foo = &x[0]; | ||
1895 | ++foo; | ||
1896 | } | ||
1897 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
1898 | typedef const int *iptr; | ||
1899 | iptr p = 0; | ||
1900 | ++p; | ||
1901 | } | ||
1902 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
1903 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
1904 | struct s { int j; const int *ap[3]; }; | ||
1905 | struct s *b; b->j = 5; | ||
1906 | } | ||
1907 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
1908 | const int foo = 10; | ||
1909 | } | ||
1910 | |||
1911 | ; return 0; } | ||
1912 | EOF | ||
1913 | if { (eval echo configure:1914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
1914 | rm -rf conftest* | ||
1915 | ac_cv_c_const=yes | ||
1916 | else | ||
1917 | echo "configure: failed program was:" >&5 | ||
1918 | cat conftest.$ac_ext >&5 | ||
1919 | rm -rf conftest* | ||
1920 | ac_cv_c_const=no | ||
1921 | fi | ||
1922 | rm -f conftest* | ||
1923 | fi | ||
1924 | |||
1925 | echo "$ac_t""$ac_cv_c_const" 1>&6 | ||
1926 | if test $ac_cv_c_const = no; then | ||
1927 | cat >> confdefs.h <<\EOF | ||
1928 | #define const | ||
1929 | EOF | ||
1930 | |||
1931 | fi | ||
1932 | |||
1933 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | ||
1934 | echo "configure:1935: checking whether struct tm is in sys/time.h or time.h" >&5 | ||
1935 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | ||
1936 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1937 | else | ||
1938 | cat > conftest.$ac_ext <<EOF | ||
1939 | #line 1940 "configure" | ||
1940 | #include "confdefs.h" | ||
1941 | #include <sys/types.h> | ||
1942 | #include <time.h> | ||
1943 | int main() { | ||
1944 | struct tm *tp; tp->tm_sec; | ||
1945 | ; return 0; } | ||
1946 | EOF | ||
1947 | if { (eval echo configure:1948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
1948 | rm -rf conftest* | ||
1949 | ac_cv_struct_tm=time.h | ||
1950 | else | ||
1951 | echo "configure: failed program was:" >&5 | ||
1952 | cat conftest.$ac_ext >&5 | ||
1953 | rm -rf conftest* | ||
1954 | ac_cv_struct_tm=sys/time.h | ||
1955 | fi | ||
1956 | rm -f conftest* | ||
1957 | fi | ||
1958 | |||
1959 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | ||
1960 | if test $ac_cv_struct_tm = sys/time.h; then | ||
1961 | cat >> confdefs.h <<\EOF | ||
1962 | #define TM_IN_SYS_TIME 1 | ||
1963 | EOF | ||
1964 | |||
1965 | fi | ||
1966 | |||
1967 | |||
1968 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | ||
1969 | echo "configure:1970: checking return type of signal handlers" >&5 | ||
1970 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | ||
1971 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1972 | else | ||
1973 | cat > conftest.$ac_ext <<EOF | ||
1974 | #line 1975 "configure" | ||
1975 | #include "confdefs.h" | ||
1976 | #include <sys/types.h> | ||
1977 | #include <signal.h> | ||
1978 | #ifdef signal | ||
1979 | #undef signal | ||
1980 | #endif | ||
1981 | #ifdef __cplusplus | ||
1982 | extern "C" void (*signal (int, void (*)(int)))(int); | ||
1983 | #else | ||
1984 | void (*signal ()) (); | ||
1985 | #endif | ||
1986 | |||
1987 | int main() { | ||
1988 | int i; | ||
1989 | ; return 0; } | ||
1990 | EOF | ||
1991 | if { (eval echo configure:1992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
1992 | rm -rf conftest* | ||
1993 | ac_cv_type_signal=void | ||
1994 | else | ||
1995 | echo "configure: failed program was:" >&5 | ||
1996 | cat conftest.$ac_ext >&5 | ||
1997 | rm -rf conftest* | ||
1998 | ac_cv_type_signal=int | ||
1999 | fi | ||
2000 | rm -f conftest* | ||
2001 | fi | ||
2002 | |||
2003 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | ||
2004 | cat >> confdefs.h <<EOF | ||
2005 | #define RETSIGTYPE $ac_cv_type_signal | ||
2006 | EOF | ||
2007 | |||
2008 | |||
2009 | echo $ac_n "checking for strftime""... $ac_c" 1>&6 | ||
2010 | echo "configure:2011: checking for strftime" >&5 | ||
2011 | if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then | ||
2012 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
2013 | else | ||
2014 | cat > conftest.$ac_ext <<EOF | ||
2015 | #line 2016 "configure" | ||
2016 | #include "confdefs.h" | ||
2017 | /* System header to define __stub macros and hopefully few prototypes, | ||
2018 | which can conflict with char strftime(); below. */ | ||
2019 | #include <assert.h> | ||
2020 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
2021 | /* We use char because int might match the return type of a gcc2 | ||
2022 | builtin and then its argument prototype would still apply. */ | ||
2023 | char strftime(); | ||
2024 | |||
2025 | int main() { | ||
2026 | |||
2027 | /* The GNU C library defines this for functions which it implements | ||
2028 | to always fail with ENOSYS. Some functions are actually named | ||
2029 | something starting with __ and the normal name is an alias. */ | ||
2030 | #if defined (__stub_strftime) || defined (__stub___strftime) | ||
2031 | choke me | ||
2032 | #else | ||
2033 | strftime(); | ||
2034 | #endif | ||
2035 | |||
2036 | ; return 0; } | ||
2037 | EOF | ||
2038 | if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
2039 | rm -rf conftest* | ||
2040 | eval "ac_cv_func_strftime=yes" | ||
2041 | else | ||
2042 | echo "configure: failed program was:" >&5 | ||
2043 | cat conftest.$ac_ext >&5 | ||
2044 | rm -rf conftest* | ||
2045 | eval "ac_cv_func_strftime=no" | ||
2046 | fi | ||
2047 | rm -f conftest* | ||
2048 | fi | ||
2049 | |||
2050 | if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then | ||
2051 | echo "$ac_t""yes" 1>&6 | ||
2052 | cat >> confdefs.h <<\EOF | ||
2053 | #define HAVE_STRFTIME 1 | ||
2054 | EOF | ||
2055 | |||
2056 | else | ||
2057 | echo "$ac_t""no" 1>&6 | ||
2058 | # strftime is in -lintl on SCO UNIX. | ||
2059 | echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 | ||
2060 | echo "configure:2061: checking for strftime in -lintl" >&5 | ||
2061 | ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` | ||
2062 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
2063 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
2064 | else | ||
2065 | ac_save_LIBS="$LIBS" | ||
2066 | LIBS="-lintl $LIBS" | ||
2067 | cat > conftest.$ac_ext <<EOF | ||
2068 | #line 2069 "configure" | ||
2069 | #include "confdefs.h" | ||
2070 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
2071 | /* We use char because int might match the return type of a gcc2 | ||
2072 | builtin and then its argument prototype would still apply. */ | ||
2073 | char strftime(); | ||
2074 | |||
2075 | int main() { | ||
2076 | strftime() | ||
2077 | ; return 0; } | ||
2078 | EOF | ||
2079 | if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
2080 | rm -rf conftest* | ||
2081 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
2082 | else | ||
2083 | echo "configure: failed program was:" >&5 | ||
2084 | cat conftest.$ac_ext >&5 | ||
2085 | rm -rf conftest* | ||
2086 | eval "ac_cv_lib_$ac_lib_var=no" | ||
2087 | fi | ||
2088 | rm -f conftest* | ||
2089 | LIBS="$ac_save_LIBS" | ||
2090 | |||
2091 | fi | ||
2092 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
2093 | echo "$ac_t""yes" 1>&6 | ||
2094 | cat >> confdefs.h <<\EOF | ||
2095 | #define HAVE_STRFTIME 1 | ||
2096 | EOF | ||
2097 | |||
2098 | LIBS="-lintl $LIBS" | ||
2099 | else | ||
2100 | echo "$ac_t""no" 1>&6 | ||
2101 | fi | ||
2102 | |||
2103 | fi | ||
2104 | |||
2105 | for ac_func in strstr atoi mysql_real_connect mysql_escape_string mysql_real_escape_string | ||
2106 | do | ||
2107 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
2108 | echo "configure:2109: checking for $ac_func" >&5 | ||
2109 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
2110 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
2111 | else | ||
2112 | cat > conftest.$ac_ext <<EOF | ||
2113 | #line 2114 "configure" | ||
2114 | #include "confdefs.h" | ||
2115 | /* System header to define __stub macros and hopefully few prototypes, | ||
2116 | which can conflict with char $ac_func(); below. */ | ||
2117 | #include <assert.h> | ||
2118 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
2119 | /* We use char because int might match the return type of a gcc2 | ||
2120 | builtin and then its argument prototype would still apply. */ | ||
2121 | char $ac_func(); | ||
2122 | |||
2123 | int main() { | ||
2124 | |||
2125 | /* The GNU C library defines this for functions which it implements | ||
2126 | to always fail with ENOSYS. Some functions are actually named | ||
2127 | something starting with __ and the normal name is an alias. */ | ||
2128 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
2129 | choke me | ||
2130 | #else | ||
2131 | $ac_func(); | ||
2132 | #endif | ||
2133 | |||
2134 | ; return 0; } | ||
2135 | EOF | ||
2136 | if { (eval echo configure:2137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
2137 | rm -rf conftest* | ||
2138 | eval "ac_cv_func_$ac_func=yes" | ||
2139 | else | ||
2140 | echo "configure: failed program was:" >&5 | ||
2141 | cat conftest.$ac_ext >&5 | ||
2142 | rm -rf conftest* | ||
2143 | eval "ac_cv_func_$ac_func=no" | ||
2144 | fi | ||
2145 | rm -f conftest* | ||
2146 | fi | ||
2147 | |||
2148 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
2149 | echo "$ac_t""yes" 1>&6 | ||
2150 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
2151 | cat >> confdefs.h <<EOF | ||
2152 | #define $ac_tr_func 1 | ||
2153 | EOF | ||
2154 | |||
2155 | else | ||
2156 | echo "$ac_t""no" 1>&6 | ||
2157 | { echo "configure: error: "a necessary function is not available."" 1>&2; exit 1; } | ||
2158 | fi | ||
2159 | done | ||
2160 | |||
2161 | |||
2162 | trap '' 1 2 15 | ||
2163 | cat > confcache <<\EOF | ||
2164 | # This file is a shell script that caches the results of configure | ||
2165 | # tests run on this system so they can be shared between configure | ||
2166 | # scripts and configure runs. It is not useful on other systems. | ||
2167 | # If it contains results you don't want to keep, you may remove or edit it. | ||
2168 | # | ||
2169 | # By default, configure uses ./config.cache as the cache file, | ||
2170 | # creating it if it does not exist already. You can give configure | ||
2171 | # the --cache-file=FILE option to use a different cache file; that is | ||
2172 | # what configure does when it calls configure scripts in | ||
2173 | # subdirectories, so they share the cache. | ||
2174 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | ||
2175 | # config.status only pays attention to the cache file if you give it the | ||
2176 | # --recheck option to rerun configure. | ||
2177 | # | ||
2178 | EOF | ||
2179 | # The following way of writing the cache mishandles newlines in values, | ||
2180 | # but we know of no workaround that is simple, portable, and efficient. | ||
2181 | # So, don't put newlines in cache variables' values. | ||
2182 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
2183 | # and sets the high bit in the cache file unless we assign to the vars. | ||
2184 | (set) 2>&1 | | ||
2185 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
2186 | *ac_space=\ *) | ||
2187 | # `set' does not quote correctly, so add quotes (double-quote substitution | ||
2188 | # turns \\\\ into \\, and sed turns \\ into \). | ||
2189 | sed -n \ | ||
2190 | -e "s/'/'\\\\''/g" \ | ||
2191 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | ||
2192 | ;; | ||
2193 | *) | ||
2194 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
2195 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | ||
2196 | ;; | ||
2197 | esac >> confcache | ||
2198 | if cmp -s $cache_file confcache; then | ||
2199 | : | ||
2200 | else | ||
2201 | if test -w $cache_file; then | ||
2202 | echo "updating cache $cache_file" | ||
2203 | cat confcache > $cache_file | ||
2204 | else | ||
2205 | echo "not updating unwritable cache $cache_file" | ||
2206 | fi | ||
2207 | fi | ||
2208 | rm -f confcache | ||
2209 | |||
2210 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | ||
2211 | |||
2212 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
2213 | # Let make expand exec_prefix. | ||
2214 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
2215 | |||
2216 | # Any assignment to VPATH causes Sun make to only execute | ||
2217 | # the first set of double-colon rules, so remove it if not needed. | ||
2218 | # If there is a colon in the path, we need to keep it. | ||
2219 | if test "x$srcdir" = x.; then | ||
2220 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | ||
2221 | fi | ||
2222 | |||
2223 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | ||
2224 | |||
2225 | DEFS=-DHAVE_CONFIG_H | ||
2226 | |||
2227 | # Without the "./", some shells look in PATH for config.status. | ||
2228 | : ${CONFIG_STATUS=./config.status} | ||
2229 | |||
2230 | echo creating $CONFIG_STATUS | ||
2231 | rm -f $CONFIG_STATUS | ||
2232 | cat > $CONFIG_STATUS <<EOF | ||
2233 | #! /bin/sh | ||
2234 | # Generated automatically by configure. | ||
2235 | # Run this file to recreate the current configuration. | ||
2236 | # This directory was configured as follows, | ||
2237 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
2238 | # | ||
2239 | # $0 $ac_configure_args | ||
2240 | # | ||
2241 | # Compiler output produced by configure, useful for debugging | ||
2242 | # configure, is in ./config.log if it exists. | ||
2243 | |||
2244 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | ||
2245 | for ac_option | ||
2246 | do | ||
2247 | case "\$ac_option" in | ||
2248 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
2249 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | ||
2250 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | ||
2251 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | ||
2252 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | ||
2253 | exit 0 ;; | ||
2254 | -help | --help | --hel | --he | --h) | ||
2255 | echo "\$ac_cs_usage"; exit 0 ;; | ||
2256 | *) echo "\$ac_cs_usage"; exit 1 ;; | ||
2257 | esac | ||
2258 | done | ||
2259 | |||
2260 | ac_given_srcdir=$srcdir | ||
2261 | ac_given_INSTALL="$INSTALL" | ||
2262 | |||
2263 | trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | ||
2264 | EOF | ||
2265 | cat >> $CONFIG_STATUS <<EOF | ||
2266 | |||
2267 | # Protect against being on the right side of a sed subst in config.status. | ||
2268 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | ||
2269 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | ||
2270 | $ac_vpsub | ||
2271 | $extrasub | ||
2272 | s%@SHELL@%$SHELL%g | ||
2273 | s%@CFLAGS@%$CFLAGS%g | ||
2274 | s%@CPPFLAGS@%$CPPFLAGS%g | ||
2275 | s%@CXXFLAGS@%$CXXFLAGS%g | ||
2276 | s%@FFLAGS@%$FFLAGS%g | ||
2277 | s%@DEFS@%$DEFS%g | ||
2278 | s%@LDFLAGS@%$LDFLAGS%g | ||
2279 | s%@LIBS@%$LIBS%g | ||
2280 | s%@exec_prefix@%$exec_prefix%g | ||
2281 | s%@prefix@%$prefix%g | ||
2282 | s%@program_transform_name@%$program_transform_name%g | ||
2283 | s%@bindir@%$bindir%g | ||
2284 | s%@sbindir@%$sbindir%g | ||
2285 | s%@libexecdir@%$libexecdir%g | ||
2286 | s%@datadir@%$datadir%g | ||
2287 | s%@sysconfdir@%$sysconfdir%g | ||
2288 | s%@sharedstatedir@%$sharedstatedir%g | ||
2289 | s%@localstatedir@%$localstatedir%g | ||
2290 | s%@libdir@%$libdir%g | ||
2291 | s%@includedir@%$includedir%g | ||
2292 | s%@oldincludedir@%$oldincludedir%g | ||
2293 | s%@infodir@%$infodir%g | ||
2294 | s%@mandir@%$mandir%g | ||
2295 | s%@APDSTDIR@%$APDSTDIR%g | ||
2296 | s%@APSRCDIR@%$APSRCDIR%g | ||
2297 | s%@MYSQLHDRDIR@%$MYSQLHDRDIR%g | ||
2298 | s%@MYSQLLIBDIR@%$MYSQLLIBDIR%g | ||
2299 | s%@APXSDIR@%$APXSDIR%g | ||
2300 | s%@APHDRDIR@%$APHDRDIR%g | ||
2301 | s%@host@%$host%g | ||
2302 | s%@host_alias@%$host_alias%g | ||
2303 | s%@host_cpu@%$host_cpu%g | ||
2304 | s%@host_vendor@%$host_vendor%g | ||
2305 | s%@host_os@%$host_os%g | ||
2306 | s%@CC@%$CC%g | ||
2307 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | ||
2308 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | ||
2309 | s%@INSTALL_DATA@%$INSTALL_DATA%g | ||
2310 | s%@LN_S@%$LN_S%g | ||
2311 | s%@SET_MAKE@%$SET_MAKE%g | ||
2312 | s%@RM@%$RM%g | ||
2313 | s%@APXS@%$APXS%g | ||
2314 | s%@LYX@%$LYX%g | ||
2315 | s%@LATEX@%$LATEX%g | ||
2316 | s%@DVIPS@%$DVIPS%g | ||
2317 | s%@LINKS@%$LINKS%g | ||
2318 | s%@L2H@%$L2H%g | ||
2319 | s%@CPP@%$CPP%g | ||
2320 | s%@HAVE_MODSSL@%$HAVE_MODSSL%g | ||
2321 | |||
2322 | CEOF | ||
2323 | EOF | ||
2324 | |||
2325 | cat >> $CONFIG_STATUS <<\EOF | ||
2326 | |||
2327 | # Split the substitutions into bite-sized pieces for seds with | ||
2328 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
2329 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | ||
2330 | ac_file=1 # Number of current file. | ||
2331 | ac_beg=1 # First line for current file. | ||
2332 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | ||
2333 | ac_more_lines=: | ||
2334 | ac_sed_cmds="" | ||
2335 | while $ac_more_lines; do | ||
2336 | if test $ac_beg -gt 1; then | ||
2337 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | ||
2338 | else | ||
2339 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | ||
2340 | fi | ||
2341 | if test ! -s conftest.s$ac_file; then | ||
2342 | ac_more_lines=false | ||
2343 | rm -f conftest.s$ac_file | ||
2344 | else | ||
2345 | if test -z "$ac_sed_cmds"; then | ||
2346 | ac_sed_cmds="sed -f conftest.s$ac_file" | ||
2347 | else | ||
2348 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | ||
2349 | fi | ||
2350 | ac_file=`expr $ac_file + 1` | ||
2351 | ac_beg=$ac_end | ||
2352 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | ||
2353 | fi | ||
2354 | done | ||
2355 | if test -z "$ac_sed_cmds"; then | ||
2356 | ac_sed_cmds=cat | ||
2357 | fi | ||
2358 | EOF | ||
2359 | |||
2360 | cat >> $CONFIG_STATUS <<EOF | ||
2361 | |||
2362 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} | ||
2363 | EOF | ||
2364 | cat >> $CONFIG_STATUS <<\EOF | ||
2365 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | ||
2366 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
2367 | case "$ac_file" in | ||
2368 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | ||
2369 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
2370 | *) ac_file_in="${ac_file}.in" ;; | ||
2371 | esac | ||
2372 | |||
2373 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | ||
2374 | |||
2375 | # Remove last slash and all that follows it. Not all systems have dirname. | ||
2376 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | ||
2377 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
2378 | # The file is in a subdirectory. | ||
2379 | test ! -d "$ac_dir" && mkdir "$ac_dir" | ||
2380 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | ||
2381 | # A "../" for each directory in $ac_dir_suffix. | ||
2382 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | ||
2383 | else | ||
2384 | ac_dir_suffix= ac_dots= | ||
2385 | fi | ||
2386 | |||
2387 | case "$ac_given_srcdir" in | ||
2388 | .) srcdir=. | ||
2389 | if test -z "$ac_dots"; then top_srcdir=. | ||
2390 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | ||
2391 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | ||
2392 | *) # Relative path. | ||
2393 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | ||
2394 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | ||
2395 | esac | ||
2396 | |||
2397 | case "$ac_given_INSTALL" in | ||
2398 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | ||
2399 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | ||
2400 | esac | ||
2401 | |||
2402 | echo creating "$ac_file" | ||
2403 | rm -f "$ac_file" | ||
2404 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | ||
2405 | case "$ac_file" in | ||
2406 | *Makefile*) ac_comsub="1i\\ | ||
2407 | # $configure_input" ;; | ||
2408 | *) ac_comsub= ;; | ||
2409 | esac | ||
2410 | |||
2411 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | ||
2412 | sed -e "$ac_comsub | ||
2413 | s%@configure_input@%$configure_input%g | ||
2414 | s%@srcdir@%$srcdir%g | ||
2415 | s%@top_srcdir@%$top_srcdir%g | ||
2416 | s%@INSTALL@%$INSTALL%g | ||
2417 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | ||
2418 | fi; done | ||
2419 | rm -f conftest.s* | ||
2420 | |||
2421 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
2422 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
2423 | # | ||
2424 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
2425 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
2426 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | ||
2427 | ac_dC='\3' | ||
2428 | ac_dD='%g' | ||
2429 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | ||
2430 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
2431 | ac_uB='\([ ]\)%\1#\2define\3' | ||
2432 | ac_uC=' ' | ||
2433 | ac_uD='\4%g' | ||
2434 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
2435 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
2436 | ac_eB='$%\1#\2define\3' | ||
2437 | ac_eC=' ' | ||
2438 | ac_eD='%g' | ||
2439 | |||
2440 | if test "${CONFIG_HEADERS+set}" != set; then | ||
2441 | EOF | ||
2442 | cat >> $CONFIG_STATUS <<EOF | ||
2443 | CONFIG_HEADERS="config.h:config.in" | ||
2444 | EOF | ||
2445 | cat >> $CONFIG_STATUS <<\EOF | ||
2446 | fi | ||
2447 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | ||
2448 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
2449 | case "$ac_file" in | ||
2450 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | ||
2451 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
2452 | *) ac_file_in="${ac_file}.in" ;; | ||
2453 | esac | ||
2454 | |||
2455 | echo creating $ac_file | ||
2456 | |||
2457 | rm -f conftest.frag conftest.in conftest.out | ||
2458 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | ||
2459 | cat $ac_file_inputs > conftest.in | ||
2460 | |||
2461 | EOF | ||
2462 | |||
2463 | # Transform confdefs.h into a sed script conftest.vals that substitutes | ||
2464 | # the proper values into config.h.in to produce config.h. And first: | ||
2465 | # Protect against being on the right side of a sed subst in config.status. | ||
2466 | # Protect against being in an unquoted here document in config.status. | ||
2467 | rm -f conftest.vals | ||
2468 | cat > conftest.hdr <<\EOF | ||
2469 | s/[\\&%]/\\&/g | ||
2470 | s%[\\$`]%\\&%g | ||
2471 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | ||
2472 | s%ac_d%ac_u%gp | ||
2473 | s%ac_u%ac_e%gp | ||
2474 | EOF | ||
2475 | sed -n -f conftest.hdr confdefs.h > conftest.vals | ||
2476 | rm -f conftest.hdr | ||
2477 | |||
2478 | # This sed command replaces #undef with comments. This is necessary, for | ||
2479 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
2480 | # on some systems where configure will not decide to define it. | ||
2481 | cat >> conftest.vals <<\EOF | ||
2482 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | ||
2483 | EOF | ||
2484 | |||
2485 | # Break up conftest.vals because some shells have a limit on | ||
2486 | # the size of here documents, and old seds have small limits too. | ||
2487 | |||
2488 | rm -f conftest.tail | ||
2489 | while : | ||
2490 | do | ||
2491 | ac_lines=`grep -c . conftest.vals` | ||
2492 | # grep -c gives empty output for an empty file on some AIX systems. | ||
2493 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | ||
2494 | # Write a limited-size here document to conftest.frag. | ||
2495 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | ||
2496 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | ||
2497 | echo 'CEOF | ||
2498 | sed -f conftest.frag conftest.in > conftest.out | ||
2499 | rm -f conftest.in | ||
2500 | mv conftest.out conftest.in | ||
2501 | ' >> $CONFIG_STATUS | ||
2502 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | ||
2503 | rm -f conftest.vals | ||
2504 | mv conftest.tail conftest.vals | ||
2505 | done | ||
2506 | rm -f conftest.vals | ||
2507 | |||
2508 | cat >> $CONFIG_STATUS <<\EOF | ||
2509 | rm -f conftest.frag conftest.h | ||
2510 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | ||
2511 | cat conftest.in >> conftest.h | ||
2512 | rm -f conftest.in | ||
2513 | if cmp -s $ac_file conftest.h 2>/dev/null; then | ||
2514 | echo "$ac_file is unchanged" | ||
2515 | rm -f conftest.h | ||
2516 | else | ||
2517 | # Remove last slash and all that follows it. Not all systems have dirname. | ||
2518 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | ||
2519 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
2520 | # The file is in a subdirectory. | ||
2521 | test ! -d "$ac_dir" && mkdir "$ac_dir" | ||
2522 | fi | ||
2523 | rm -f $ac_file | ||
2524 | mv conftest.h $ac_file | ||
2525 | fi | ||
2526 | fi; done | ||
2527 | |||
2528 | EOF | ||
2529 | cat >> $CONFIG_STATUS <<EOF | ||
2530 | |||
2531 | EOF | ||
2532 | cat >> $CONFIG_STATUS <<\EOF | ||
2533 | |||
2534 | exit 0 | ||
2535 | EOF | ||
2536 | chmod +x $CONFIG_STATUS | ||
2537 | rm -fr confdefs* $ac_clean_files | ||
2538 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | ||
2539 | |||
2540 | |||
2541 | echo | ||
2542 | if test $HAVE_MODSSL = 1; then | ||
2543 | echo "mod_ssl support has been compiled into this module" | ||
2544 | else | ||
2545 | echo "no mod_ssl support" | ||
2546 | fi | ||
2547 | |||
2548 | echo | ||