]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by Autoconf 2.49d. | |
4 | # | |
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
6 | # Free Software Foundation, Inc. | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Be Bourne compatible | |
11 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
12 | emulate sh | |
13 | NULLCMD=: | |
14 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
15 | set -o posix | |
16 | fi | |
17 | ||
18 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
19 | as_expr=expr | |
20 | else | |
21 | as_expr=false | |
22 | fi | |
23 | ||
24 | rm -f conf$$ conf$$.exe conf$$.file | |
25 | echo >conf$$.file | |
26 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
27 | # We could just check for DJGPP; but this test a) works b) is more generic | |
28 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
29 | if test -f conf$$.exe; then | |
30 | # Don't use ln at all; we don't have any links | |
31 | as_ln_s='cp -p' | |
32 | else | |
33 | as_ln_s='ln -s' | |
34 | fi | |
35 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
36 | as_ln_s=ln | |
37 | else | |
38 | as_ln_s='cp -p' | |
39 | fi | |
40 | rm -f conf$$ conf$$.exe conf$$.file | |
41 | ||
42 | as_executable_p="test -f" | |
43 | ||
44 | # Support unset when possible. | |
45 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
46 | as_unset=unset | |
47 | else | |
48 | as_unset=false | |
49 | fi | |
50 | ||
51 | # NLS nuisances. | |
52 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
53 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
54 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
55 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
56 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
57 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
58 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
59 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
60 | ||
61 | # IFS | |
62 | # We need space, tab and new line, in precisely that order. | |
63 | as_nl=' | |
64 | ' | |
65 | IFS=" $as_nl" | |
66 | ||
67 | # CDPATH. | |
68 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
69 | ||
70 | # Name of the host. | |
71 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
72 | # so uname gets run too. | |
73 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
74 | ||
75 | # Name of the executable. | |
76 | as_me=`echo "$0" | sed 's,.*/,,'` | |
77 | ||
78 | cat >config.log <<EOF | |
79 | This file contains any messages produced by compilers while | |
80 | running configure, to aid debugging if configure makes a mistake. | |
81 | ||
82 | It was created by $as_me 2.49d, executed with | |
83 | > $0 $@ | |
84 | ||
85 | EOF | |
86 | { | |
87 | cat <<_ASUNAME | |
88 | ## ---------- ## | |
89 | ## Platform. ## | |
90 | ## ---------- ## | |
91 | ||
92 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
93 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
94 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
95 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
96 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
97 | ||
98 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
99 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
100 | ||
101 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
102 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
103 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
104 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
105 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
106 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
107 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
108 | ||
109 | PATH = $PATH | |
110 | ||
111 | _ASUNAME | |
112 | } >>config.log | |
113 | ||
114 | cat >>config.log <<EOF | |
115 | ## ------------ ## | |
116 | ## Core tests. ## | |
117 | ## ------------ ## | |
118 | ||
119 | EOF | |
120 | ||
121 | # File descriptor usage: | |
122 | # 0 standard input | |
123 | # 1 file creation | |
124 | # 2 errors and warnings | |
125 | # 5 compiler messages saved in config.log | |
126 | # 6 checking for... messages and results | |
127 | exec 5>>config.log | |
128 | exec 6>&1 | |
129 | ||
130 | # | |
131 | # Initializations. | |
132 | # | |
133 | ac_default_prefix=/usr/local | |
134 | cross_compiling=no | |
135 | subdirs= | |
136 | MFLAGS= MAKEFLAGS= | |
137 | SHELL=${CONFIG_SHELL-/bin/sh} | |
138 | ||
139 | # Maximum number of lines to put in a shell here document. | |
140 | # This variable seems obsolete. It should probably be removed, and | |
141 | # only ac_max_sed_lines should be used. | |
142 | : ${ac_max_here_lines=38} | |
143 | ||
144 | # Avoid depending upon Character Ranges. | |
145 | ac_cr_az='abcdefghijklmnopqrstuvwxyz' | |
146 | ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
147 | ac_cr_09='0123456789' | |
148 | ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 | |
149 | ||
150 | # Sed expression to map a string onto a valid sh and CPP variable names. | |
151 | ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" | |
152 | ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" | |
153 | ||
154 | ac_unique_file="src/reduce.c" | |
155 | # Factoring default headers for most tests. | |
156 | ac_includes_default="\ | |
157 | #include <stdio.h> | |
158 | #include <sys/types.h> | |
159 | #include <sys/stat.h> | |
160 | #if STDC_HEADERS | |
161 | # include <stdlib.h> | |
162 | # include <stddef.h> | |
163 | #else | |
164 | # if HAVE_STDLIB_H | |
165 | # include <stdlib.h> | |
166 | # endif | |
167 | #endif | |
168 | #if HAVE_STRING_H | |
169 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
170 | # include <memory.h> | |
171 | # endif | |
172 | # include <string.h> | |
173 | #else | |
174 | # if HAVE_STRINGS_H | |
175 | # include <strings.h> | |
176 | # endif | |
177 | #endif | |
178 | #if HAVE_INTTYPES_H | |
179 | # include <inttypes.h> | |
180 | #endif | |
181 | #if HAVE_UNISTD_H | |
182 | # include <unistd.h> | |
183 | #endif" | |
184 | ||
185 | # Initialize some variables set by options. | |
186 | ac_init_help= | |
187 | ac_init_version=false | |
188 | # The variables have the same names as the options, with | |
189 | # dashes changed to underlines. | |
190 | cache_file=/dev/null | |
191 | exec_prefix=NONE | |
192 | no_create= | |
193 | no_recursion= | |
194 | prefix=NONE | |
195 | program_prefix=NONE | |
196 | program_suffix=NONE | |
197 | program_transform_name=s,x,x, | |
198 | silent= | |
199 | site= | |
200 | srcdir= | |
201 | verbose= | |
202 | x_includes=NONE | |
203 | x_libraries=NONE | |
204 | ||
205 | # Installation directory options. | |
206 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
207 | # and all the variables that are supposed to be based on exec_prefix | |
208 | # by default will actually change. | |
209 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
210 | bindir='${exec_prefix}/bin' | |
211 | sbindir='${exec_prefix}/sbin' | |
212 | libexecdir='${exec_prefix}/libexec' | |
213 | datadir='${prefix}/share' | |
214 | sysconfdir='${prefix}/etc' | |
215 | sharedstatedir='${prefix}/com' | |
216 | localstatedir='${prefix}/var' | |
217 | libdir='${exec_prefix}/lib' | |
218 | includedir='${prefix}/include' | |
219 | oldincludedir='/usr/include' | |
220 | infodir='${prefix}/info' | |
221 | mandir='${prefix}/man' | |
222 | ||
223 | # Identity of this package. | |
224 | PACKAGE_NAME= | |
225 | PACKAGE_TARNAME= | |
226 | PACKAGE_VERSION= | |
227 | PACKAGE_STRING= | |
228 | PACKAGE_BUGREPORT= | |
229 | ||
230 | ac_prev= | |
231 | for ac_option | |
232 | do | |
233 | # If the previous option needs an argument, assign it. | |
234 | if test -n "$ac_prev"; then | |
235 | eval "$ac_prev=\$ac_option" | |
236 | ac_prev= | |
237 | continue | |
238 | fi | |
239 | ||
240 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
241 | ||
242 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
243 | ||
244 | case $ac_option in | |
245 | ||
246 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
247 | ac_prev=bindir ;; | |
248 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
249 | bindir=$ac_optarg ;; | |
250 | ||
251 | -build | --build | --buil | --bui | --bu) | |
252 | ac_prev=build_alias ;; | |
253 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
254 | build_alias=$ac_optarg ;; | |
255 | ||
256 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
257 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
258 | ac_prev=cache_file ;; | |
259 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
260 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
261 | cache_file=$ac_optarg ;; | |
262 | ||
263 | --config-cache | -C) | |
264 | cache_file=config.cache ;; | |
265 | ||
266 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
267 | ac_prev=datadir ;; | |
268 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
269 | | --da=*) | |
270 | datadir=$ac_optarg ;; | |
271 | ||
272 | -disable-* | --disable-*) | |
273 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
274 | # Reject names that are not valid shell variable names. | |
275 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && | |
276 | { { echo "$as_me:276: error: invalid feature name: $ac_feature" >&5 | |
277 | echo "$as_me: error: invalid feature name: $ac_feature" >&2;} | |
278 | { (exit 1); exit 1; }; } | |
279 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
280 | eval "enable_$ac_feature=no" ;; | |
281 | ||
282 | -enable-* | --enable-*) | |
283 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
284 | # Reject names that are not valid shell variable names. | |
285 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && | |
286 | { { echo "$as_me:286: error: invalid feature name: $ac_feature" >&5 | |
287 | echo "$as_me: error: invalid feature name: $ac_feature" >&2;} | |
288 | { (exit 1); exit 1; }; } | |
289 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
290 | case $ac_option in | |
291 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
292 | *) ac_optarg=yes ;; | |
293 | esac | |
294 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
295 | ||
296 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
297 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
298 | | --exec | --exe | --ex) | |
299 | ac_prev=exec_prefix ;; | |
300 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
301 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
302 | | --exec=* | --exe=* | --ex=*) | |
303 | exec_prefix=$ac_optarg ;; | |
304 | ||
305 | -gas | --gas | --ga | --g) | |
306 | # Obsolete; use --with-gas. | |
307 | with_gas=yes ;; | |
308 | ||
309 | -help | --help | --hel | --he | -h) | |
310 | ac_init_help=long ;; | |
311 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
312 | ac_init_help=recursive ;; | |
313 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
314 | ac_init_help=short ;; | |
315 | ||
316 | -host | --host | --hos | --ho) | |
317 | ac_prev=host_alias ;; | |
318 | -host=* | --host=* | --hos=* | --ho=*) | |
319 | host_alias=$ac_optarg ;; | |
320 | ||
321 | -includedir | --includedir | --includedi | --included | --include \ | |
322 | | --includ | --inclu | --incl | --inc) | |
323 | ac_prev=includedir ;; | |
324 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
325 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
326 | includedir=$ac_optarg ;; | |
327 | ||
328 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
329 | ac_prev=infodir ;; | |
330 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
331 | infodir=$ac_optarg ;; | |
332 | ||
333 | -libdir | --libdir | --libdi | --libd) | |
334 | ac_prev=libdir ;; | |
335 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
336 | libdir=$ac_optarg ;; | |
337 | ||
338 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
339 | | --libexe | --libex | --libe) | |
340 | ac_prev=libexecdir ;; | |
341 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
342 | | --libexe=* | --libex=* | --libe=*) | |
343 | libexecdir=$ac_optarg ;; | |
344 | ||
345 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
346 | | --localstate | --localstat | --localsta | --localst \ | |
347 | | --locals | --local | --loca | --loc | --lo) | |
348 | ac_prev=localstatedir ;; | |
349 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
350 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
351 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
352 | localstatedir=$ac_optarg ;; | |
353 | ||
354 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
355 | ac_prev=mandir ;; | |
356 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
357 | mandir=$ac_optarg ;; | |
358 | ||
359 | -nfp | --nfp | --nf) | |
360 | # Obsolete; use --without-fp. | |
361 | with_fp=no ;; | |
362 | ||
363 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
364 | | --no-cr | --no-c) | |
365 | no_create=yes ;; | |
366 | ||
367 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
368 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
369 | no_recursion=yes ;; | |
370 | ||
371 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
372 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
373 | | --oldin | --oldi | --old | --ol | --o) | |
374 | ac_prev=oldincludedir ;; | |
375 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
376 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
377 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
378 | oldincludedir=$ac_optarg ;; | |
379 | ||
380 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
381 | ac_prev=prefix ;; | |
382 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
383 | prefix=$ac_optarg ;; | |
384 | ||
385 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
386 | | --program-pre | --program-pr | --program-p) | |
387 | ac_prev=program_prefix ;; | |
388 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
389 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
390 | program_prefix=$ac_optarg ;; | |
391 | ||
392 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
393 | | --program-suf | --program-su | --program-s) | |
394 | ac_prev=program_suffix ;; | |
395 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
396 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
397 | program_suffix=$ac_optarg ;; | |
398 | ||
399 | -program-transform-name | --program-transform-name \ | |
400 | | --program-transform-nam | --program-transform-na \ | |
401 | | --program-transform-n | --program-transform- \ | |
402 | | --program-transform | --program-transfor \ | |
403 | | --program-transfo | --program-transf \ | |
404 | | --program-trans | --program-tran \ | |
405 | | --progr-tra | --program-tr | --program-t) | |
406 | ac_prev=program_transform_name ;; | |
407 | -program-transform-name=* | --program-transform-name=* \ | |
408 | | --program-transform-nam=* | --program-transform-na=* \ | |
409 | | --program-transform-n=* | --program-transform-=* \ | |
410 | | --program-transform=* | --program-transfor=* \ | |
411 | | --program-transfo=* | --program-transf=* \ | |
412 | | --program-trans=* | --program-tran=* \ | |
413 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
414 | program_transform_name=$ac_optarg ;; | |
415 | ||
416 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
417 | | -silent | --silent | --silen | --sile | --sil) | |
418 | silent=yes ;; | |
419 | ||
420 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
421 | ac_prev=sbindir ;; | |
422 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
423 | | --sbi=* | --sb=*) | |
424 | sbindir=$ac_optarg ;; | |
425 | ||
426 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
427 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
428 | | --sharedst | --shareds | --shared | --share | --shar \ | |
429 | | --sha | --sh) | |
430 | ac_prev=sharedstatedir ;; | |
431 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
432 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
433 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
434 | | --sha=* | --sh=*) | |
435 | sharedstatedir=$ac_optarg ;; | |
436 | ||
437 | -site | --site | --sit) | |
438 | ac_prev=site ;; | |
439 | -site=* | --site=* | --sit=*) | |
440 | site=$ac_optarg ;; | |
441 | ||
442 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
443 | ac_prev=srcdir ;; | |
444 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
445 | srcdir=$ac_optarg ;; | |
446 | ||
447 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
448 | | --syscon | --sysco | --sysc | --sys | --sy) | |
449 | ac_prev=sysconfdir ;; | |
450 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
451 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
452 | sysconfdir=$ac_optarg ;; | |
453 | ||
454 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
455 | ac_prev=target_alias ;; | |
456 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
457 | target_alias=$ac_optarg ;; | |
458 | ||
459 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
460 | verbose=yes ;; | |
461 | ||
462 | -version | --version | --versio | --versi | --vers | -V) | |
463 | ac_init_version=: ;; | |
464 | ||
465 | -with-* | --with-*) | |
466 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
467 | # Reject names that are not valid shell variable names. | |
468 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && | |
469 | { { echo "$as_me:469: error: invalid package name: $ac_package" >&5 | |
470 | echo "$as_me: error: invalid package name: $ac_package" >&2;} | |
471 | { (exit 1); exit 1; }; } | |
472 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
473 | case $ac_option in | |
474 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
475 | *) ac_optarg=yes ;; | |
476 | esac | |
477 | eval "with_$ac_package='$ac_optarg'" ;; | |
478 | ||
479 | -without-* | --without-*) | |
480 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
481 | # Reject names that are not valid shell variable names. | |
482 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && | |
483 | { { echo "$as_me:483: error: invalid package name: $ac_package" >&5 | |
484 | echo "$as_me: error: invalid package name: $ac_package" >&2;} | |
485 | { (exit 1); exit 1; }; } | |
486 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
487 | eval "with_$ac_package=no" ;; | |
488 | ||
489 | --x) | |
490 | # Obsolete; use --with-x. | |
491 | with_x=yes ;; | |
492 | ||
493 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
494 | | --x-incl | --x-inc | --x-in | --x-i) | |
495 | ac_prev=x_includes ;; | |
496 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
497 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
498 | x_includes=$ac_optarg ;; | |
499 | ||
500 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
501 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
502 | ac_prev=x_libraries ;; | |
503 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
504 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
505 | x_libraries=$ac_optarg ;; | |
506 | ||
507 | -*) { { echo "$as_me:507: error: unrecognized option: $ac_option | |
508 | Try \`$0 --help' for more information." >&5 | |
509 | echo "$as_me: error: unrecognized option: $ac_option | |
510 | Try \`$0 --help' for more information." >&2;} | |
511 | { (exit 1); exit 1; }; } | |
512 | ;; | |
513 | ||
514 | *=*) | |
515 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
516 | # Reject names that are not valid shell variable names. | |
517 | expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && | |
518 | { { echo "$as_me:518: error: invalid variable name: $ac_envvar" >&5 | |
519 | echo "$as_me: error: invalid variable name: $ac_envvar" >&2;} | |
520 | { (exit 1); exit 1; }; } | |
521 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
522 | eval "$ac_envvar='$ac_optarg'" | |
523 | export $ac_envvar ;; | |
524 | ||
525 | *) | |
526 | # FIXME: should be removed in autoconf 3.0. | |
527 | { echo "$as_me:527: WARNING: you should use --build, --host, --target" >&5 | |
528 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2;} | |
529 | expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && | |
530 | { echo "$as_me:530: WARNING: invalid host type: $ac_option" >&5 | |
531 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2;} | |
532 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
533 | ;; | |
534 | ||
535 | esac | |
536 | done | |
537 | ||
538 | if test -n "$ac_prev"; then | |
539 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
540 | { { echo "$as_me:540: error: missing argument to $ac_option" >&5 | |
541 | echo "$as_me: error: missing argument to $ac_option" >&2;} | |
542 | { (exit 1); exit 1; }; } | |
543 | fi | |
544 | ||
545 | # Be sure to have absolute paths. | |
546 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
547 | localstatedir libdir includedir oldincludedir infodir mandir \ | |
548 | exec_prefix prefix | |
549 | do | |
550 | eval ac_val=$`echo $ac_var` | |
551 | case $ac_val in | |
552 | [\\/$]* | ?:[\\/]* ) ;; | |
553 | NONE ) ;; | |
554 | *) { { echo "$as_me:554: error: expected an absolute path for --$ac_var: $ac_val" >&5 | |
555 | echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;} | |
556 | { (exit 1); exit 1; }; };; | |
557 | esac | |
558 | done | |
559 | ||
560 | # There might be people who depend on the old broken behavior: `$host' | |
561 | # used to hold the argument of --host etc. | |
562 | build=$build_alias | |
563 | host=$host_alias | |
564 | target=$target_alias | |
565 | ||
566 | # FIXME: should be removed in autoconf 3.0. | |
567 | if test "x$host_alias" != x; then | |
568 | if test "x$build_alias" = x; then | |
569 | cross_compiling=maybe | |
570 | { echo "$as_me:570: WARNING: If you wanted to set the --build type, don't use --host. | |
571 | If a cross compiler is detected then cross compile mode will be used." >&5 | |
572 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
573 | If a cross compiler is detected then cross compile mode will be used." >&2;} | |
574 | elif test "x$build_alias" != "x$host_alias"; then | |
575 | cross_compiling=yes | |
576 | fi | |
577 | fi | |
578 | ||
579 | ac_tool_prefix= | |
580 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
581 | ||
582 | test "$silent" = yes && exec 6>/dev/null | |
583 | ||
584 | # Find the source files, if location was not specified. | |
585 | if test -z "$srcdir"; then | |
586 | ac_srcdir_defaulted=yes | |
587 | # Try the directory containing this script, then its parent. | |
588 | ac_prog=$0 | |
589 | ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'` | |
590 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
591 | srcdir=$ac_confdir | |
592 | if test ! -r $srcdir/$ac_unique_file; then | |
593 | srcdir=.. | |
594 | fi | |
595 | else | |
596 | ac_srcdir_defaulted=no | |
597 | fi | |
598 | if test ! -r $srcdir/$ac_unique_file; then | |
599 | if test "$ac_srcdir_defaulted" = yes; then | |
600 | { { echo "$as_me:600: error: cannot find sources in $ac_confdir or .." >&5 | |
601 | echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;} | |
602 | { (exit 1); exit 1; }; } | |
603 | else | |
604 | { { echo "$as_me:604: error: cannot find sources in $srcdir" >&5 | |
605 | echo "$as_me: error: cannot find sources in $srcdir" >&2;} | |
606 | { (exit 1); exit 1; }; } | |
607 | fi | |
608 | fi | |
609 | srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'` | |
610 | ac_env_build_alias_set=${build_alias+set} | |
611 | ac_env_build_alias_value=$build_alias | |
612 | ac_cv_env_build_alias_set=${build_alias+set} | |
613 | ac_cv_env_build_alias_value=$build_alias | |
614 | ac_env_host_alias_set=${host_alias+set} | |
615 | ac_env_host_alias_value=$host_alias | |
616 | ac_cv_env_host_alias_set=${host_alias+set} | |
617 | ac_cv_env_host_alias_value=$host_alias | |
618 | ac_env_target_alias_set=${target_alias+set} | |
619 | ac_env_target_alias_value=$target_alias | |
620 | ac_cv_env_target_alias_set=${target_alias+set} | |
621 | ac_cv_env_target_alias_value=$target_alias | |
622 | ac_env_CC_set=${CC+set} | |
623 | ac_env_CC_value=$CC | |
624 | ac_cv_env_CC_set=${CC+set} | |
625 | ac_cv_env_CC_value=$CC | |
626 | ac_env_CFLAGS_set=${CFLAGS+set} | |
627 | ac_env_CFLAGS_value=$CFLAGS | |
628 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
629 | ac_cv_env_CFLAGS_value=$CFLAGS | |
630 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
631 | ac_env_LDFLAGS_value=$LDFLAGS | |
632 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
633 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
634 | ac_env_CPP_set=${CPP+set} | |
635 | ac_env_CPP_value=$CPP | |
636 | ac_cv_env_CPP_set=${CPP+set} | |
637 | ac_cv_env_CPP_value=$CPP | |
638 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
639 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
640 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
641 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
642 | ||
643 | # | |
644 | # Report the --help message. | |
645 | # | |
646 | if test "$ac_init_help" = "long"; then | |
647 | # Omit some internal or obsolete options to make the list less imposing. | |
648 | # This message is too long to be a string in the A/UX 3.1 sh. | |
649 | cat <<EOF | |
650 | \`configure' configures this package to adapt to many kinds of systems. | |
651 | ||
652 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
653 | ||
654 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
655 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
656 | ||
657 | Defaults for the options are specified in brackets. | |
658 | ||
659 | Configuration: | |
660 | -h, --help display this help and exit | |
661 | --help=short display options specific to this package | |
662 | --help=recursive display the short help of all the included packages | |
663 | -V, --version display version information and exit | |
664 | -q, --quiet, --silent do not print \`checking...' messages | |
665 | --cache-file=FILE cache test results in FILE [disabled] | |
666 | -C, --config-cache alias for \`--cache-file=config.cache' | |
667 | -n, --no-create do not create output files | |
668 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
669 | ||
670 | EOF | |
671 | ||
672 | cat <<EOF | |
673 | Installation directories: | |
674 | --prefix=PREFIX install architecture-independent files in PREFIX | |
675 | [$ac_default_prefix] | |
676 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
677 | [PREFIX] | |
678 | ||
679 | By default, \`make install' will install all the files in | |
680 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
681 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
682 | for instance \`--prefix=\$HOME'. | |
683 | ||
684 | For better control, use the options below. | |
685 | ||
686 | Fine tuning of the installation directories: | |
687 | --bindir=DIR user executables [EPREFIX/bin] | |
688 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
689 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
690 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
691 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
692 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
693 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
694 | --libdir=DIR object code libraries [EPREFIX/lib] | |
695 | --includedir=DIR C header files [PREFIX/include] | |
696 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
697 | --infodir=DIR info documentation [PREFIX/info] | |
698 | --mandir=DIR man documentation [PREFIX/man] | |
699 | EOF | |
700 | ||
701 | cat <<\EOF | |
702 | ||
703 | Program names: | |
704 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
705 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
706 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
707 | EOF | |
708 | fi | |
709 | ||
710 | if test -n "$ac_init_help"; then | |
711 | ||
712 | cat <<\EOF | |
713 | ||
714 | Optional Features: | |
715 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
716 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
717 | --enable-gcc-warnings turn on lots of GCC warnings (not recommended) | |
718 | --disable-nls do not use Native Language Support | |
719 | ||
720 | Optional Packages: | |
721 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
722 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
723 | --with-included-gettext use the GNU gettext library included here | |
724 | --with-catgets use catgets functions if available | |
725 | ||
726 | Some influential environment variables: | |
727 | CC C compiler command | |
728 | CFLAGS C compiler flags | |
729 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
730 | nonstandard directory <lib dir> | |
731 | CPP C preprocessor | |
732 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
733 | headers in a nonstandard directory <include dir> | |
734 | ||
735 | Use these variables to override the choices made by `configure' or to help | |
736 | it to find libraries and programs with nonstandard names/locations. | |
737 | ||
738 | EOF | |
739 | fi | |
740 | ||
741 | if test "$ac_init_help" = "recursive"; then | |
742 | # If there are subdirs, report their specific --help. | |
743 | ac_popdir=`pwd` | |
744 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
745 | cd $ac_subdir | |
746 | # A "../" for each directory in /$ac_subdir. | |
747 | ac_dots=`echo $ac_subdir | | |
748 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
749 | ||
750 | case $srcdir in | |
751 | .) # No --srcdir option. We are building in place. | |
752 | ac_sub_srcdir=$srcdir ;; | |
753 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
754 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
755 | *) # Relative path. | |
756 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
757 | esac | |
758 | ||
759 | # Check for guested configure; otherwise get Cygnus style configure. | |
760 | if test -f $ac_sub_srcdir/configure.gnu; then | |
761 | echo | |
762 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
763 | elif test -f $ac_sub_srcdir/configure; then | |
764 | echo | |
765 | $SHELL $ac_sub_srcdir/configure --help=recursive | |
766 | elif test -f $ac_sub_srcdir/configure.ac || | |
767 | test -f $ac_sub_srcdir/configure.in; then | |
768 | echo | |
769 | $ac_configure --help | |
770 | else | |
771 | { echo "$as_me:771: WARNING: no configuration information is in $ac_subdir" >&5 | |
772 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;} | |
773 | fi | |
774 | cd $ac_popdir | |
775 | done | |
776 | fi | |
777 | ||
778 | test -n "$ac_init_help" && exit 0 | |
779 | if $ac_init_version; then | |
780 | cat <<\EOF | |
781 | ||
782 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
783 | Free Software Foundation, Inc. | |
784 | This configure script is free software; the Free Software Foundation | |
785 | gives unlimited permission to copy, distribute and modify it. | |
786 | EOF | |
787 | exit 0 | |
788 | fi | |
789 | ||
790 | # Keep a trace of the command line. | |
791 | # Strip out --no-create and --no-recursion so they do not pile up. | |
792 | # Also quote any args containing shell meta-characters. | |
793 | ac_configure_args= | |
794 | ac_sep= | |
795 | for ac_arg | |
796 | do | |
797 | case $ac_arg in | |
798 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
799 | | --no-cr | --no-c) ;; | |
800 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
801 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
802 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
803 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
804 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
805 | ac_sep=" " ;; | |
806 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
807 | ac_sep=" " ;; | |
808 | esac | |
809 | # Get rid of the leading space. | |
810 | done | |
811 | ||
812 | # When interrupted or exit'd, cleanup temporary files, and complete | |
813 | # config.log. We remove comments because anyway the quotes in there | |
814 | # would cause problems or look ugly. | |
815 | trap 'exit_status=$? | |
816 | # Save into config.log some information that might help in debugging. | |
817 | echo >&5 | |
818 | echo "## ----------------- ##" >&5 | |
819 | echo "## Cache variables. ##" >&5 | |
820 | echo "## ----------------- ##" >&5 | |
821 | echo >&5 | |
822 | # The following way of writing the cache mishandles newlines in values, | |
823 | { | |
824 | (set) 2>&1 | | |
825 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
826 | *ac_space=\ *) | |
827 | sed -n \ | |
828 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
829 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
830 | ;; | |
831 | *) | |
832 | sed -n \ | |
833 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
834 | ;; | |
835 | esac; | |
836 | } >&5 | |
837 | sed "/^$/d" confdefs.h >conftest.log | |
838 | if test -s conftest.log; then | |
839 | echo >&5 | |
840 | echo "## ------------ ##" >&5 | |
841 | echo "## confdefs.h. ##" >&5 | |
842 | echo "## ------------ ##" >&5 | |
843 | echo >&5 | |
844 | cat conftest.log >&5 | |
845 | fi | |
846 | (echo; echo) >&5 | |
847 | test "$ac_signal" != 0 && | |
848 | echo "$as_me: caught signal $ac_signal" >&5 | |
849 | echo "$as_me: exit $exit_status" >&5 | |
850 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
851 | exit $exit_status | |
852 | ' 0 | |
853 | for ac_signal in 1 2 13 15; do | |
854 | trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal | |
855 | done | |
856 | ac_signal=0 | |
857 | ||
858 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
859 | rm -rf conftest* confdefs.h | |
860 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
861 | echo >confdefs.h | |
862 | ||
863 | # Let the site file select an alternate cache file if it wants to. | |
864 | # Prefer explicitly selected file to automatically selected ones. | |
865 | if test -z "$CONFIG_SITE"; then | |
866 | if test "x$prefix" != xNONE; then | |
867 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
868 | else | |
869 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
870 | fi | |
871 | fi | |
872 | for ac_site_file in $CONFIG_SITE; do | |
873 | if test -r "$ac_site_file"; then | |
874 | { echo "$as_me:874: loading site script $ac_site_file" >&5 | |
875 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
876 | cat "$ac_site_file" >&5 | |
877 | . "$ac_site_file" | |
878 | fi | |
879 | done | |
880 | ||
881 | if test -r "$cache_file"; then | |
882 | # Some versions of bash will fail to source /dev/null (special | |
883 | # files actually), so we avoid doing that. | |
884 | if test -f "$cache_file"; then | |
885 | { echo "$as_me:885: loading cache $cache_file" >&5 | |
886 | echo "$as_me: loading cache $cache_file" >&6;} | |
887 | case $cache_file in | |
888 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
889 | *) . ./$cache_file;; | |
890 | esac | |
891 | fi | |
892 | else | |
893 | { echo "$as_me:893: creating cache $cache_file" >&5 | |
894 | echo "$as_me: creating cache $cache_file" >&6;} | |
895 | >$cache_file | |
896 | fi | |
897 | ||
898 | # Check that the precious variables saved in the cache have kept the same | |
899 | # value. | |
900 | ac_suggest_removing_cache=false | |
901 | for ac_var in `(set) 2>&1 | | |
902 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
903 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
904 | eval ac_new_set=\$ac_env_${ac_var}_set | |
905 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
906 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
907 | case $ac_old_set,$ac_new_set in | |
908 | set,) | |
909 | { echo "$as_me:909: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
910 | echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
911 | ac_suggest_removing_cache=: ;; | |
912 | ,set) | |
913 | { echo "$as_me:913: WARNING: \`$ac_var' was not set in the previous run" >&5 | |
914 | echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} | |
915 | ac_suggest_removing_cache=: ;; | |
916 | ,);; | |
917 | *) | |
918 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
919 | { echo "$as_me:919: WARNING: \`$ac_var' has changed since the previous run:" >&5 | |
920 | echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} | |
921 | { echo "$as_me:921: WARNING: former value: $ac_old_val" >&5 | |
922 | echo "$as_me: WARNING: former value: $ac_old_val" >&2;} | |
923 | { echo "$as_me:923: WARNING: current value: $ac_new_val" >&5 | |
924 | echo "$as_me: WARNING: current value: $ac_new_val" >&2;} | |
925 | ac_suggest_removing_cache=: | |
926 | fi;; | |
927 | esac | |
928 | done | |
929 | if $ac_suggest_removing_cache; then | |
930 | { echo "$as_me:930: WARNING: changes in the environment can compromise the build" >&5 | |
931 | echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} | |
932 | { echo "$as_me:932: WARNING: consider removing $cache_file and starting over" >&5 | |
933 | echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} | |
934 | fi | |
935 | ||
936 | ac_ext=c | |
937 | ac_cpp='$CPP $CPPFLAGS' | |
938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
941 | ||
942 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
943 | *c*,-n*) ECHO_N= ECHO_C=' | |
944 | ' ECHO_T=' ' ;; | |
945 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
946 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
947 | esac | |
948 | echo "#! $SHELL" >conftest.sh | |
949 | echo "exit 0" >>conftest.sh | |
950 | chmod +x conftest.sh | |
951 | if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5 | |
952 | (PATH=".;."; conftest.sh) 2>&5 | |
953 | ac_status=$? | |
954 | echo "$as_me:954: \$? = $ac_status" >&5 | |
955 | (exit $ac_status); }; then | |
956 | ac_path_separator=';' | |
957 | else | |
958 | ac_path_separator=: | |
959 | fi | |
960 | PATH_SEPARATOR="$ac_path_separator" | |
961 | rm -f conftest.sh | |
962 | ||
963 | ac_aux_dir= | |
964 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
965 | if test -f $ac_dir/install-sh; then | |
966 | ac_aux_dir=$ac_dir | |
967 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
968 | break | |
969 | elif test -f $ac_dir/install.sh; then | |
970 | ac_aux_dir=$ac_dir | |
971 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
972 | break | |
973 | elif test -f $ac_dir/shtool; then | |
974 | ac_aux_dir=$ac_dir | |
975 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
976 | break | |
977 | fi | |
978 | done | |
979 | if test -z "$ac_aux_dir"; then | |
980 | { { echo "$as_me:980: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
981 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
982 | { (exit 1); exit 1; }; } | |
983 | fi | |
984 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
985 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
986 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
987 | ||
988 | # Find a good install program. We prefer a C program (faster), | |
989 | # so one script is as good as another. But avoid the broken or | |
990 | # incompatible versions: | |
991 | # SysV /etc/install, /usr/sbin/install | |
992 | # SunOS /usr/etc/install | |
993 | # IRIX /sbin/install | |
994 | # AIX /bin/install | |
995 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
996 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
997 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
998 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
999 | # ./install, which can be erroneously created by make from ./install.sh. | |
1000 | echo "$as_me:1000: checking for a BSD compatible install" >&5 | |
1001 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | |
1002 | if test -z "$INSTALL"; then | |
1003 | if test "${ac_cv_path_install+set}" = set; then | |
1004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1005 | else | |
1006 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1007 | for ac_dir in $PATH; do | |
1008 | IFS=$ac_save_IFS | |
1009 | # Account for people who put trailing slashes in PATH elements. | |
1010 | case $ac_dir/ in | |
1011 | / | ./ | .// | /cC/* \ | |
1012 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
1013 | | /usr/ucb/* ) ;; | |
1014 | *) | |
1015 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1016 | # Don't use installbsd from OSF since it installs stuff as root | |
1017 | # by default. | |
1018 | for ac_prog in ginstall scoinst install; do | |
1019 | if $as_executable_p "$ac_dir/$ac_prog"; then | |
1020 | if test $ac_prog = install && | |
1021 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1022 | # AIX install. It has an incompatible calling convention. | |
1023 | : | |
1024 | elif test $ac_prog = install && | |
1025 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1026 | # program-specific install script used by HP pwplus--don't use. | |
1027 | : | |
1028 | else | |
1029 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1030 | break 2 | |
1031 | fi | |
1032 | fi | |
1033 | done | |
1034 | ;; | |
1035 | esac | |
1036 | done | |
1037 | ||
1038 | fi | |
1039 | if test "${ac_cv_path_install+set}" = set; then | |
1040 | INSTALL=$ac_cv_path_install | |
1041 | else | |
1042 | # As a last resort, use the slow shell script. We don't cache a | |
1043 | # path for INSTALL within a source directory, because that will | |
1044 | # break other packages using the cache if that directory is | |
1045 | # removed, or if the path is relative. | |
1046 | INSTALL=$ac_install_sh | |
1047 | fi | |
1048 | fi | |
1049 | echo "$as_me:1049: result: $INSTALL" >&5 | |
1050 | echo "${ECHO_T}$INSTALL" >&6 | |
1051 | ||
1052 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1053 | # It thinks the first close brace ends the variable substitution. | |
1054 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1055 | ||
1056 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1057 | ||
1058 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1059 | ||
1060 | echo "$as_me:1060: checking whether build environment is sane" >&5 | |
1061 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1062 | # Just in case | |
1063 | sleep 1 | |
1064 | echo timestamp > conftestfile | |
1065 | # Do `set' in a subshell so we don't clobber the current shell's | |
1066 | # arguments. Must try -L first in case configure is actually a | |
1067 | # symlink; some systems play weird games with the mod time of symlinks | |
1068 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1069 | # directory). | |
1070 | if ( | |
1071 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
1072 | if test "$*" = "X"; then | |
1073 | # -L didn't work. | |
1074 | set X `ls -t $srcdir/configure conftestfile` | |
1075 | fi | |
1076 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
1077 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
1078 | ||
1079 | # If neither matched, then we have a broken ls. This can happen | |
1080 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1081 | # broken ls alias from the environment. This has actually | |
1082 | # happened. Such a system could not be considered "sane". | |
1083 | { { echo "$as_me:1083: error: ls -t appears to fail. Make sure there is not a broken | |
1084 | alias in your environment" >&5 | |
1085 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1086 | alias in your environment" >&2;} | |
1087 | { (exit 1); exit 1; }; } | |
1088 | fi | |
1089 | ||
1090 | test "$2" = conftestfile | |
1091 | ) | |
1092 | then | |
1093 | # Ok. | |
1094 | : | |
1095 | else | |
1096 | { { echo "$as_me:1096: error: newly created file is older than distributed files! | |
1097 | Check your system clock" >&5 | |
1098 | echo "$as_me: error: newly created file is older than distributed files! | |
1099 | Check your system clock" >&2;} | |
1100 | { (exit 1); exit 1; }; } | |
1101 | fi | |
1102 | rm -f conftest* | |
1103 | echo "$as_me:1103: result: yes" >&5 | |
1104 | echo "${ECHO_T}yes" >&6 | |
1105 | if test "$program_transform_name" = s,x,x,; then | |
1106 | program_transform_name= | |
1107 | else | |
1108 | # Double any \ or $. echo might interpret backslashes. | |
1109 | cat <<\EOF >conftest.sed | |
1110 | s,\\,\\\\,g; s,\$,$$,g | |
1111 | EOF | |
1112 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1113 | rm -f conftest.sed | |
1114 | fi | |
1115 | test "$program_prefix" != NONE && | |
1116 | program_transform_name="s,^,${program_prefix},;$program_transform_name" | |
1117 | # Use a double $ so make ignores it. | |
1118 | test "$program_suffix" != NONE && | |
1119 | program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" | |
1120 | ||
1121 | # sed with no file args requires a program. | |
1122 | test -z "$program_transform_name" && program_transform_name="s,x,x," | |
1123 | ||
1124 | echo "$as_me:1124: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
1125 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
1126 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1127 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1129 | else | |
1130 | cat >conftest.make <<\EOF | |
1131 | all: | |
1132 | @echo 'ac_maketemp="${MAKE}"' | |
1133 | EOF | |
1134 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1135 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1136 | if test -n "$ac_maketemp"; then | |
1137 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1138 | else | |
1139 | eval ac_cv_prog_make_${ac_make}_set=no | |
1140 | fi | |
1141 | rm -f conftest.make | |
1142 | fi | |
1143 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1144 | echo "$as_me:1144: result: yes" >&5 | |
1145 | echo "${ECHO_T}yes" >&6 | |
1146 | SET_MAKE= | |
1147 | else | |
1148 | echo "$as_me:1148: result: no" >&5 | |
1149 | echo "${ECHO_T}no" >&6 | |
1150 | SET_MAKE="MAKE=${MAKE-make}" | |
1151 | fi | |
1152 | ||
1153 | PACKAGE=bison | |
1154 | ||
1155 | VERSION=1.28a | |
1156 | ||
1157 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
1158 | { { echo "$as_me:1158: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1159 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1160 | { (exit 1); exit 1; }; } | |
1161 | fi | |
1162 | ||
1163 | cat >>confdefs.h <<EOF | |
1164 | #define PACKAGE "$PACKAGE" | |
1165 | EOF | |
1166 | ||
1167 | cat >>confdefs.h <<EOF | |
1168 | #define VERSION "$VERSION" | |
1169 | EOF | |
1170 | ||
1171 | missing_dir=`cd $ac_aux_dir && pwd` | |
1172 | echo "$as_me:1172: checking for working aclocal" >&5 | |
1173 | echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 | |
1174 | # Run test in a subshell; some versions of sh will print an error if | |
1175 | # an executable is not found, even if stderr is redirected. | |
1176 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1177 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1178 | ACLOCAL=aclocal | |
1179 | echo "$as_me:1179: result: found" >&5 | |
1180 | echo "${ECHO_T}found" >&6 | |
1181 | else | |
1182 | ACLOCAL="$missing_dir/missing aclocal" | |
1183 | echo "$as_me:1183: result: missing" >&5 | |
1184 | echo "${ECHO_T}missing" >&6 | |
1185 | fi | |
1186 | ||
1187 | echo "$as_me:1187: checking for working autoconf" >&5 | |
1188 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 | |
1189 | # Run test in a subshell; some versions of sh will print an error if | |
1190 | # an executable is not found, even if stderr is redirected. | |
1191 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1192 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1193 | AUTOCONF=autoconf | |
1194 | echo "$as_me:1194: result: found" >&5 | |
1195 | echo "${ECHO_T}found" >&6 | |
1196 | else | |
1197 | AUTOCONF="$missing_dir/missing autoconf" | |
1198 | echo "$as_me:1198: result: missing" >&5 | |
1199 | echo "${ECHO_T}missing" >&6 | |
1200 | fi | |
1201 | ||
1202 | echo "$as_me:1202: checking for working automake" >&5 | |
1203 | echo $ECHO_N "checking for working automake... $ECHO_C" >&6 | |
1204 | # Run test in a subshell; some versions of sh will print an error if | |
1205 | # an executable is not found, even if stderr is redirected. | |
1206 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1207 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1208 | AUTOMAKE=automake | |
1209 | echo "$as_me:1209: result: found" >&5 | |
1210 | echo "${ECHO_T}found" >&6 | |
1211 | else | |
1212 | AUTOMAKE="$missing_dir/missing automake" | |
1213 | echo "$as_me:1213: result: missing" >&5 | |
1214 | echo "${ECHO_T}missing" >&6 | |
1215 | fi | |
1216 | ||
1217 | echo "$as_me:1217: checking for working autoheader" >&5 | |
1218 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 | |
1219 | # Run test in a subshell; some versions of sh will print an error if | |
1220 | # an executable is not found, even if stderr is redirected. | |
1221 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1222 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1223 | AUTOHEADER=autoheader | |
1224 | echo "$as_me:1224: result: found" >&5 | |
1225 | echo "${ECHO_T}found" >&6 | |
1226 | else | |
1227 | AUTOHEADER="$missing_dir/missing autoheader" | |
1228 | echo "$as_me:1228: result: missing" >&5 | |
1229 | echo "${ECHO_T}missing" >&6 | |
1230 | fi | |
1231 | ||
1232 | echo "$as_me:1232: checking for working makeinfo" >&5 | |
1233 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 | |
1234 | # Run test in a subshell; some versions of sh will print an error if | |
1235 | # an executable is not found, even if stderr is redirected. | |
1236 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1237 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1238 | MAKEINFO=makeinfo | |
1239 | echo "$as_me:1239: result: found" >&5 | |
1240 | echo "${ECHO_T}found" >&6 | |
1241 | else | |
1242 | MAKEINFO="$missing_dir/missing makeinfo" | |
1243 | echo "$as_me:1243: result: missing" >&5 | |
1244 | echo "${ECHO_T}missing" >&6 | |
1245 | fi | |
1246 | ||
1247 | ac_config_headers="$ac_config_headers config.h:config.hin" | |
1248 | ||
1249 | ac_config_commands="$ac_config_commands default-1" | |
1250 | ||
1251 | # Initialize the test suite. | |
1252 | AT_TESTPATH=../src | |
1253 | ||
1254 | # Try to be compatible with both Autoconf 2.13 and 2.50. | |
1255 | if test -z "$ECHO_C$ECHO_N$ECHO_T"; then | |
1256 | ECHO_C="$ac_c" | |
1257 | ECHO_N="$ac_n" | |
1258 | ECHO_T="$ac_t" | |
1259 | ||
1260 | fi | |
1261 | ||
1262 | # Checks for programs. | |
1263 | ac_ext=c | |
1264 | ac_cpp='$CPP $CPPFLAGS' | |
1265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1268 | if test -n "$ac_tool_prefix"; then | |
1269 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1270 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1271 | echo "$as_me:1271: checking for $ac_word" >&5 | |
1272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1273 | if test "${ac_cv_prog_CC+set}" = set; then | |
1274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1275 | else | |
1276 | if test -n "$CC"; then | |
1277 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1278 | else | |
1279 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1280 | ac_dummy="$PATH" | |
1281 | for ac_dir in $ac_dummy; do | |
1282 | IFS=$ac_save_IFS | |
1283 | test -z "$ac_dir" && ac_dir=. | |
1284 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1285 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1286 | break | |
1287 | done | |
1288 | ||
1289 | fi | |
1290 | fi | |
1291 | CC=$ac_cv_prog_CC | |
1292 | if test -n "$CC"; then | |
1293 | echo "$as_me:1293: result: $CC" >&5 | |
1294 | echo "${ECHO_T}$CC" >&6 | |
1295 | else | |
1296 | echo "$as_me:1296: result: no" >&5 | |
1297 | echo "${ECHO_T}no" >&6 | |
1298 | fi | |
1299 | ||
1300 | fi | |
1301 | if test -z "$ac_cv_prog_CC"; then | |
1302 | ac_ct_CC=$CC | |
1303 | # Extract the first word of "gcc", so it can be a program name with args. | |
1304 | set dummy gcc; ac_word=$2 | |
1305 | echo "$as_me:1305: checking for $ac_word" >&5 | |
1306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1307 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1309 | else | |
1310 | if test -n "$ac_ct_CC"; then | |
1311 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1312 | else | |
1313 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1314 | ac_dummy="$PATH" | |
1315 | for ac_dir in $ac_dummy; do | |
1316 | IFS=$ac_save_IFS | |
1317 | test -z "$ac_dir" && ac_dir=. | |
1318 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1319 | ac_cv_prog_ac_ct_CC="gcc" | |
1320 | break | |
1321 | done | |
1322 | ||
1323 | fi | |
1324 | fi | |
1325 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1326 | if test -n "$ac_ct_CC"; then | |
1327 | echo "$as_me:1327: result: $ac_ct_CC" >&5 | |
1328 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1329 | else | |
1330 | echo "$as_me:1330: result: no" >&5 | |
1331 | echo "${ECHO_T}no" >&6 | |
1332 | fi | |
1333 | ||
1334 | CC=$ac_ct_CC | |
1335 | else | |
1336 | CC="$ac_cv_prog_CC" | |
1337 | fi | |
1338 | ||
1339 | if test -z "$CC"; then | |
1340 | if test -n "$ac_tool_prefix"; then | |
1341 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1342 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1343 | echo "$as_me:1343: checking for $ac_word" >&5 | |
1344 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1345 | if test "${ac_cv_prog_CC+set}" = set; then | |
1346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1347 | else | |
1348 | if test -n "$CC"; then | |
1349 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1350 | else | |
1351 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1352 | ac_dummy="$PATH" | |
1353 | for ac_dir in $ac_dummy; do | |
1354 | IFS=$ac_save_IFS | |
1355 | test -z "$ac_dir" && ac_dir=. | |
1356 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1357 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1358 | break | |
1359 | done | |
1360 | ||
1361 | fi | |
1362 | fi | |
1363 | CC=$ac_cv_prog_CC | |
1364 | if test -n "$CC"; then | |
1365 | echo "$as_me:1365: result: $CC" >&5 | |
1366 | echo "${ECHO_T}$CC" >&6 | |
1367 | else | |
1368 | echo "$as_me:1368: result: no" >&5 | |
1369 | echo "${ECHO_T}no" >&6 | |
1370 | fi | |
1371 | ||
1372 | fi | |
1373 | if test -z "$ac_cv_prog_CC"; then | |
1374 | ac_ct_CC=$CC | |
1375 | # Extract the first word of "cc", so it can be a program name with args. | |
1376 | set dummy cc; ac_word=$2 | |
1377 | echo "$as_me:1377: checking for $ac_word" >&5 | |
1378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1379 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1381 | else | |
1382 | if test -n "$ac_ct_CC"; then | |
1383 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1384 | else | |
1385 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1386 | ac_dummy="$PATH" | |
1387 | for ac_dir in $ac_dummy; do | |
1388 | IFS=$ac_save_IFS | |
1389 | test -z "$ac_dir" && ac_dir=. | |
1390 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1391 | ac_cv_prog_ac_ct_CC="cc" | |
1392 | break | |
1393 | done | |
1394 | ||
1395 | fi | |
1396 | fi | |
1397 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1398 | if test -n "$ac_ct_CC"; then | |
1399 | echo "$as_me:1399: result: $ac_ct_CC" >&5 | |
1400 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1401 | else | |
1402 | echo "$as_me:1402: result: no" >&5 | |
1403 | echo "${ECHO_T}no" >&6 | |
1404 | fi | |
1405 | ||
1406 | CC=$ac_ct_CC | |
1407 | else | |
1408 | CC="$ac_cv_prog_CC" | |
1409 | fi | |
1410 | ||
1411 | fi | |
1412 | if test -z "$CC"; then | |
1413 | # Extract the first word of "cc", so it can be a program name with args. | |
1414 | set dummy cc; ac_word=$2 | |
1415 | echo "$as_me:1415: checking for $ac_word" >&5 | |
1416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1417 | if test "${ac_cv_prog_CC+set}" = set; then | |
1418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1419 | else | |
1420 | if test -n "$CC"; then | |
1421 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1422 | else | |
1423 | ac_prog_rejected=no | |
1424 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1425 | ac_dummy="$PATH" | |
1426 | for ac_dir in $ac_dummy; do | |
1427 | IFS=$ac_save_IFS | |
1428 | test -z "$ac_dir" && ac_dir=. | |
1429 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1430 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1431 | ac_prog_rejected=yes | |
1432 | continue | |
1433 | fi | |
1434 | ac_cv_prog_CC="cc" | |
1435 | break | |
1436 | done | |
1437 | ||
1438 | if test $ac_prog_rejected = yes; then | |
1439 | # We found a bogon in the path, so make sure we never use it. | |
1440 | set dummy $ac_cv_prog_CC | |
1441 | shift | |
1442 | if test $# != 0; then | |
1443 | # We chose a different compiler from the bogus one. | |
1444 | # However, it has the same basename, so the bogon will be chosen | |
1445 | # first if we set CC to just the basename; use the full file name. | |
1446 | shift | |
1447 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
1448 | shift | |
1449 | ac_cv_prog_CC="$@" | |
1450 | fi | |
1451 | fi | |
1452 | fi | |
1453 | fi | |
1454 | CC=$ac_cv_prog_CC | |
1455 | if test -n "$CC"; then | |
1456 | echo "$as_me:1456: result: $CC" >&5 | |
1457 | echo "${ECHO_T}$CC" >&6 | |
1458 | else | |
1459 | echo "$as_me:1459: result: no" >&5 | |
1460 | echo "${ECHO_T}no" >&6 | |
1461 | fi | |
1462 | ||
1463 | fi | |
1464 | if test -z "$CC"; then | |
1465 | if test -n "$ac_tool_prefix"; then | |
1466 | for ac_prog in cl | |
1467 | do | |
1468 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1469 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1470 | echo "$as_me:1470: checking for $ac_word" >&5 | |
1471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1472 | if test "${ac_cv_prog_CC+set}" = set; then | |
1473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1474 | else | |
1475 | if test -n "$CC"; then | |
1476 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1477 | else | |
1478 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1479 | ac_dummy="$PATH" | |
1480 | for ac_dir in $ac_dummy; do | |
1481 | IFS=$ac_save_IFS | |
1482 | test -z "$ac_dir" && ac_dir=. | |
1483 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1484 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1485 | break | |
1486 | done | |
1487 | ||
1488 | fi | |
1489 | fi | |
1490 | CC=$ac_cv_prog_CC | |
1491 | if test -n "$CC"; then | |
1492 | echo "$as_me:1492: result: $CC" >&5 | |
1493 | echo "${ECHO_T}$CC" >&6 | |
1494 | else | |
1495 | echo "$as_me:1495: result: no" >&5 | |
1496 | echo "${ECHO_T}no" >&6 | |
1497 | fi | |
1498 | ||
1499 | test -n "$CC" && break | |
1500 | done | |
1501 | fi | |
1502 | if test -z "$CC"; then | |
1503 | ac_ct_CC=$CC | |
1504 | for ac_prog in cl | |
1505 | do | |
1506 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1507 | set dummy $ac_prog; ac_word=$2 | |
1508 | echo "$as_me:1508: checking for $ac_word" >&5 | |
1509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1510 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1512 | else | |
1513 | if test -n "$ac_ct_CC"; then | |
1514 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1515 | else | |
1516 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1517 | ac_dummy="$PATH" | |
1518 | for ac_dir in $ac_dummy; do | |
1519 | IFS=$ac_save_IFS | |
1520 | test -z "$ac_dir" && ac_dir=. | |
1521 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1522 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1523 | break | |
1524 | done | |
1525 | ||
1526 | fi | |
1527 | fi | |
1528 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1529 | if test -n "$ac_ct_CC"; then | |
1530 | echo "$as_me:1530: result: $ac_ct_CC" >&5 | |
1531 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1532 | else | |
1533 | echo "$as_me:1533: result: no" >&5 | |
1534 | echo "${ECHO_T}no" >&6 | |
1535 | fi | |
1536 | ||
1537 | test -n "$ac_ct_CC" && break | |
1538 | done | |
1539 | ||
1540 | CC=$ac_ct_CC | |
1541 | fi | |
1542 | ||
1543 | fi | |
1544 | ||
1545 | test -z "$CC" && { { echo "$as_me:1545: error: no acceptable cc found in \$PATH" >&5 | |
1546 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | |
1547 | { (exit 1); exit 1; }; } | |
1548 | ||
1549 | cat >conftest.$ac_ext <<_ACEOF | |
1550 | #line 1550 "configure" | |
1551 | #include "confdefs.h" | |
1552 | ||
1553 | int | |
1554 | main () | |
1555 | { | |
1556 | ||
1557 | ; | |
1558 | return 0; | |
1559 | } | |
1560 | _ACEOF | |
1561 | ac_clean_files_save=$ac_clean_files | |
1562 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1563 | # Try to create an executable without -o first, disregard a.out. | |
1564 | # It will help us diagnose broken compiler, and finding out an intuition | |
1565 | # of exeext. | |
1566 | echo "$as_me:1566: checking for C compiler default output" >&5 | |
1567 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
1568 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1569 | if { (eval echo "$as_me:1569: \"$ac_link_default\"") >&5 | |
1570 | (eval $ac_link_default) 2>&5 | |
1571 | ac_status=$? | |
1572 | echo "$as_me:1572: \$? = $ac_status" >&5 | |
1573 | (exit $ac_status); }; then | |
1574 | for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do | |
1575 | case $ac_file in | |
1576 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1577 | a.out ) # We found the default executable, but exeext='' is most | |
1578 | # certainly right. | |
1579 | break;; | |
1580 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1581 | export ac_cv_exeext | |
1582 | break;; | |
1583 | * ) break;; | |
1584 | esac | |
1585 | done | |
1586 | else | |
1587 | echo "$as_me: failed program was:" >&5 | |
1588 | cat conftest.$ac_ext >&5 | |
1589 | { { echo "$as_me:1589: error: C compiler cannot create executables" >&5 | |
1590 | echo "$as_me: error: C compiler cannot create executables" >&2;} | |
1591 | { (exit 77); exit 77; }; } | |
1592 | fi | |
1593 | ||
1594 | ac_exeext=$ac_cv_exeext | |
1595 | echo "$as_me:1595: result: $ac_file" >&5 | |
1596 | echo "${ECHO_T}$ac_file" >&6 | |
1597 | ||
1598 | # Check the compiler produces executables we can run. If not, either | |
1599 | # the compiler is broken, or we cross compile. | |
1600 | echo "$as_me:1600: checking whether the C compiler works" >&5 | |
1601 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1602 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1603 | # If not cross compiling, check that we can run a simple program. | |
1604 | if test "$cross_compiling" != yes; then | |
1605 | if { ac_try='./$ac_file' | |
1606 | { (eval echo "$as_me:1606: \"$ac_try\"") >&5 | |
1607 | (eval $ac_try) 2>&5 | |
1608 | ac_status=$? | |
1609 | echo "$as_me:1609: \$? = $ac_status" >&5 | |
1610 | (exit $ac_status); }; }; then | |
1611 | cross_compiling=no | |
1612 | else | |
1613 | if test "$cross_compiling" = maybe; then | |
1614 | cross_compiling=yes | |
1615 | else | |
1616 | { { echo "$as_me:1616: error: cannot run C compiled programs. | |
1617 | If you meant to cross compile, use \`--host'." >&5 | |
1618 | echo "$as_me: error: cannot run C compiled programs. | |
1619 | If you meant to cross compile, use \`--host'." >&2;} | |
1620 | { (exit 1); exit 1; }; } | |
1621 | fi | |
1622 | fi | |
1623 | fi | |
1624 | echo "$as_me:1624: result: yes" >&5 | |
1625 | echo "${ECHO_T}yes" >&6 | |
1626 | ||
1627 | rm -f a.out a.exe conftest$ac_cv_exeext | |
1628 | ac_clean_files=$ac_clean_files_save | |
1629 | # Check the compiler produces executables we can run. If not, either | |
1630 | # the compiler is broken, or we cross compile. | |
1631 | echo "$as_me:1631: checking whether we are cross compiling" >&5 | |
1632 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1633 | echo "$as_me:1633: result: $cross_compiling" >&5 | |
1634 | echo "${ECHO_T}$cross_compiling" >&6 | |
1635 | ||
1636 | echo "$as_me:1636: checking for executable suffix" >&5 | |
1637 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | |
1638 | if { (eval echo "$as_me:1638: \"$ac_link\"") >&5 | |
1639 | (eval $ac_link) 2>&5 | |
1640 | ac_status=$? | |
1641 | echo "$as_me:1641: \$? = $ac_status" >&5 | |
1642 | (exit $ac_status); }; then | |
1643 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1644 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1645 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1646 | # `rm'. | |
1647 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1648 | case $ac_file in | |
1649 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1650 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1651 | export ac_cv_exeext | |
1652 | break;; | |
1653 | * ) break;; | |
1654 | esac | |
1655 | done | |
1656 | else | |
1657 | { { echo "$as_me:1657: error: cannot compute EXEEXT: cannot compile and link" >&5 | |
1658 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} | |
1659 | { (exit 1); exit 1; }; } | |
1660 | fi | |
1661 | ||
1662 | rm -f conftest$ac_cv_exeext | |
1663 | echo "$as_me:1663: result: $ac_cv_exeext" >&5 | |
1664 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1665 | ||
1666 | rm -f conftest.$ac_ext | |
1667 | EXEEXT=$ac_cv_exeext | |
1668 | ac_exeext=$EXEEXT | |
1669 | echo "$as_me:1669: checking for object suffix" >&5 | |
1670 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 | |
1671 | if test "${ac_cv_objext+set}" = set; then | |
1672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1673 | else | |
1674 | cat >conftest.$ac_ext <<_ACEOF | |
1675 | #line 1675 "configure" | |
1676 | #include "confdefs.h" | |
1677 | ||
1678 | int | |
1679 | main () | |
1680 | { | |
1681 | ||
1682 | ; | |
1683 | return 0; | |
1684 | } | |
1685 | _ACEOF | |
1686 | rm -f conftest.o conftest.obj | |
1687 | if { (eval echo "$as_me:1687: \"$ac_compile\"") >&5 | |
1688 | (eval $ac_compile) 2>&5 | |
1689 | ac_status=$? | |
1690 | echo "$as_me:1690: \$? = $ac_status" >&5 | |
1691 | (exit $ac_status); }; then | |
1692 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1693 | case $ac_file in | |
1694 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1695 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1696 | break;; | |
1697 | esac | |
1698 | done | |
1699 | else | |
1700 | echo "$as_me: failed program was:" >&5 | |
1701 | cat conftest.$ac_ext >&5 | |
1702 | { { echo "$as_me:1702: error: cannot compute OBJEXT: cannot compile" >&5 | |
1703 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | |
1704 | { (exit 1); exit 1; }; } | |
1705 | fi | |
1706 | ||
1707 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1708 | fi | |
1709 | echo "$as_me:1709: result: $ac_cv_objext" >&5 | |
1710 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1711 | OBJEXT=$ac_cv_objext | |
1712 | ac_objext=$OBJEXT | |
1713 | echo "$as_me:1713: checking whether we are using the GNU C compiler" >&5 | |
1714 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1715 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1717 | else | |
1718 | cat >conftest.$ac_ext <<_ACEOF | |
1719 | #line 1719 "configure" | |
1720 | #include "confdefs.h" | |
1721 | ||
1722 | int | |
1723 | main () | |
1724 | { | |
1725 | #ifndef __GNUC__ | |
1726 | choke me | |
1727 | #endif | |
1728 | ||
1729 | ; | |
1730 | return 0; | |
1731 | } | |
1732 | _ACEOF | |
1733 | rm -f conftest.$ac_objext | |
1734 | if { (eval echo "$as_me:1734: \"$ac_compile\"") >&5 | |
1735 | (eval $ac_compile) 2>&5 | |
1736 | ac_status=$? | |
1737 | echo "$as_me:1737: \$? = $ac_status" >&5 | |
1738 | (exit $ac_status); } && | |
1739 | { ac_try='test -s conftest.$ac_objext' | |
1740 | { (eval echo "$as_me:1740: \"$ac_try\"") >&5 | |
1741 | (eval $ac_try) 2>&5 | |
1742 | ac_status=$? | |
1743 | echo "$as_me:1743: \$? = $ac_status" >&5 | |
1744 | (exit $ac_status); }; }; then | |
1745 | ac_compiler_gnu=yes | |
1746 | else | |
1747 | echo "$as_me: failed program was:" >&5 | |
1748 | cat conftest.$ac_ext >&5 | |
1749 | ac_compiler_gnu=no | |
1750 | fi | |
1751 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1752 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1753 | ||
1754 | fi | |
1755 | echo "$as_me:1755: result: $ac_cv_c_compiler_gnu" >&5 | |
1756 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1757 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1758 | ac_test_CFLAGS=${CFLAGS+set} | |
1759 | ac_save_CFLAGS=$CFLAGS | |
1760 | CFLAGS="-g" | |
1761 | echo "$as_me:1761: checking whether $CC accepts -g" >&5 | |
1762 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1763 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1765 | else | |
1766 | cat >conftest.$ac_ext <<_ACEOF | |
1767 | #line 1767 "configure" | |
1768 | #include "confdefs.h" | |
1769 | ||
1770 | int | |
1771 | main () | |
1772 | { | |
1773 | ||
1774 | ; | |
1775 | return 0; | |
1776 | } | |
1777 | _ACEOF | |
1778 | rm -f conftest.$ac_objext | |
1779 | if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5 | |
1780 | (eval $ac_compile) 2>&5 | |
1781 | ac_status=$? | |
1782 | echo "$as_me:1782: \$? = $ac_status" >&5 | |
1783 | (exit $ac_status); } && | |
1784 | { ac_try='test -s conftest.$ac_objext' | |
1785 | { (eval echo "$as_me:1785: \"$ac_try\"") >&5 | |
1786 | (eval $ac_try) 2>&5 | |
1787 | ac_status=$? | |
1788 | echo "$as_me:1788: \$? = $ac_status" >&5 | |
1789 | (exit $ac_status); }; }; then | |
1790 | ac_cv_prog_cc_g=yes | |
1791 | else | |
1792 | echo "$as_me: failed program was:" >&5 | |
1793 | cat conftest.$ac_ext >&5 | |
1794 | ac_cv_prog_cc_g=no | |
1795 | fi | |
1796 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1797 | fi | |
1798 | echo "$as_me:1798: result: $ac_cv_prog_cc_g" >&5 | |
1799 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
1800 | if test "$ac_test_CFLAGS" = set; then | |
1801 | CFLAGS=$ac_save_CFLAGS | |
1802 | elif test $ac_cv_prog_cc_g = yes; then | |
1803 | if test "$GCC" = yes; then | |
1804 | CFLAGS="-g -O2" | |
1805 | else | |
1806 | CFLAGS="-g" | |
1807 | fi | |
1808 | else | |
1809 | if test "$GCC" = yes; then | |
1810 | CFLAGS="-O2" | |
1811 | else | |
1812 | CFLAGS= | |
1813 | fi | |
1814 | fi | |
1815 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
1816 | # in C++ we need to declare it. In case someone uses the same compiler | |
1817 | # for both compiling C and C++ we need to have the C++ compiler decide | |
1818 | # the declaration of exit, since it's the most demanding environment. | |
1819 | cat >conftest.$ac_ext <<_ACEOF | |
1820 | #ifndef __cplusplus | |
1821 | choke me | |
1822 | #endif | |
1823 | _ACEOF | |
1824 | rm -f conftest.$ac_objext | |
1825 | if { (eval echo "$as_me:1825: \"$ac_compile\"") >&5 | |
1826 | (eval $ac_compile) 2>&5 | |
1827 | ac_status=$? | |
1828 | echo "$as_me:1828: \$? = $ac_status" >&5 | |
1829 | (exit $ac_status); } && | |
1830 | { ac_try='test -s conftest.$ac_objext' | |
1831 | { (eval echo "$as_me:1831: \"$ac_try\"") >&5 | |
1832 | (eval $ac_try) 2>&5 | |
1833 | ac_status=$? | |
1834 | echo "$as_me:1834: \$? = $ac_status" >&5 | |
1835 | (exit $ac_status); }; }; then | |
1836 | for ac_declaration in \ | |
1837 | ''\ | |
1838 | '#include <stdlib.h>' \ | |
1839 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
1840 | 'extern "C" void std::exit (int); using std::exit;' \ | |
1841 | 'extern "C" void exit (int) throw ();' \ | |
1842 | 'extern "C" void exit (int);' \ | |
1843 | 'void exit (int);' | |
1844 | do | |
1845 | cat >conftest.$ac_ext <<_ACEOF | |
1846 | #line 1846 "configure" | |
1847 | #include "confdefs.h" | |
1848 | #include <stdlib.h> | |
1849 | $ac_declaration | |
1850 | int | |
1851 | main () | |
1852 | { | |
1853 | exit (42); | |
1854 | ; | |
1855 | return 0; | |
1856 | } | |
1857 | _ACEOF | |
1858 | rm -f conftest.$ac_objext | |
1859 | if { (eval echo "$as_me:1859: \"$ac_compile\"") >&5 | |
1860 | (eval $ac_compile) 2>&5 | |
1861 | ac_status=$? | |
1862 | echo "$as_me:1862: \$? = $ac_status" >&5 | |
1863 | (exit $ac_status); } && | |
1864 | { ac_try='test -s conftest.$ac_objext' | |
1865 | { (eval echo "$as_me:1865: \"$ac_try\"") >&5 | |
1866 | (eval $ac_try) 2>&5 | |
1867 | ac_status=$? | |
1868 | echo "$as_me:1868: \$? = $ac_status" >&5 | |
1869 | (exit $ac_status); }; }; then | |
1870 | : | |
1871 | else | |
1872 | echo "$as_me: failed program was:" >&5 | |
1873 | cat conftest.$ac_ext >&5 | |
1874 | continue | |
1875 | fi | |
1876 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1877 | cat >conftest.$ac_ext <<_ACEOF | |
1878 | #line 1878 "configure" | |
1879 | #include "confdefs.h" | |
1880 | $ac_declaration | |
1881 | int | |
1882 | main () | |
1883 | { | |
1884 | exit (42); | |
1885 | ; | |
1886 | return 0; | |
1887 | } | |
1888 | _ACEOF | |
1889 | rm -f conftest.$ac_objext | |
1890 | if { (eval echo "$as_me:1890: \"$ac_compile\"") >&5 | |
1891 | (eval $ac_compile) 2>&5 | |
1892 | ac_status=$? | |
1893 | echo "$as_me:1893: \$? = $ac_status" >&5 | |
1894 | (exit $ac_status); } && | |
1895 | { ac_try='test -s conftest.$ac_objext' | |
1896 | { (eval echo "$as_me:1896: \"$ac_try\"") >&5 | |
1897 | (eval $ac_try) 2>&5 | |
1898 | ac_status=$? | |
1899 | echo "$as_me:1899: \$? = $ac_status" >&5 | |
1900 | (exit $ac_status); }; }; then | |
1901 | break | |
1902 | else | |
1903 | echo "$as_me: failed program was:" >&5 | |
1904 | cat conftest.$ac_ext >&5 | |
1905 | fi | |
1906 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1907 | done | |
1908 | echo '#ifdef __cplusplus' >>confdefs.h | |
1909 | echo $ac_declaration >>confdefs.h | |
1910 | echo '#endif' >>confdefs.h | |
1911 | ||
1912 | else | |
1913 | echo "$as_me: failed program was:" >&5 | |
1914 | cat conftest.$ac_ext >&5 | |
1915 | fi | |
1916 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1917 | ac_ext=c | |
1918 | ac_cpp='$CPP $CPPFLAGS' | |
1919 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1920 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1921 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1922 | ||
1923 | ac_ext=c | |
1924 | ac_cpp='$CPP $CPPFLAGS' | |
1925 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1926 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1927 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1928 | echo "$as_me:1928: checking how to run the C preprocessor" >&5 | |
1929 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
1930 | # On Suns, sometimes $CPP names a directory. | |
1931 | if test -n "$CPP" && test -d "$CPP"; then | |
1932 | CPP= | |
1933 | fi | |
1934 | if test -z "$CPP"; then | |
1935 | if test "${ac_cv_prog_CPP+set}" = set; then | |
1936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1937 | else | |
1938 | # Double quotes because CPP needs to be expanded | |
1939 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
1940 | do | |
1941 | # Use a header file that comes with gcc, so configuring glibc | |
1942 | # with a fresh cross-compiler works. | |
1943 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1944 | # not just through cpp. "Syntax error" is here to catch this case. | |
1945 | ac_c_preproc_warn_flag=maybe | |
1946 | cat >conftest.$ac_ext <<_ACEOF | |
1947 | #line 1947 "configure" | |
1948 | #include "confdefs.h" | |
1949 | #include <assert.h> | |
1950 | Syntax error | |
1951 | _ACEOF | |
1952 | if { (eval echo "$as_me:1952: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
1953 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
1954 | ac_status=$? | |
1955 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
1956 | rm -f conftest.er1 | |
1957 | cat conftest.err >&5 | |
1958 | echo "$as_me:1958: \$? = $ac_status" >&5 | |
1959 | (exit $ac_status); }; then | |
1960 | if test -s conftest.err; then | |
1961 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1962 | else | |
1963 | ac_cpp_err= | |
1964 | fi | |
1965 | else | |
1966 | ac_cpp_err=yes | |
1967 | fi | |
1968 | if test -z "$ac_cpp_err"; then | |
1969 | # Now check whether non-existent headers can be detected and how | |
1970 | # Skip if ac_cpp_err is not empty - ac_cpp is broken | |
1971 | if test -z "$ac_cpp_err"; then | |
1972 | cat >conftest.$ac_ext <<_ACEOF | |
1973 | #line 1973 "configure" | |
1974 | #include "confdefs.h" | |
1975 | #include <ac_nonexistent.h> | |
1976 | _ACEOF | |
1977 | if { (eval echo "$as_me:1977: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
1978 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
1979 | ac_status=$? | |
1980 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
1981 | rm -f conftest.er1 | |
1982 | cat conftest.err >&5 | |
1983 | echo "$as_me:1983: \$? = $ac_status" >&5 | |
1984 | (exit $ac_status); }; then | |
1985 | if test -s conftest.err; then | |
1986 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1987 | else | |
1988 | ac_cpp_err= | |
1989 | fi | |
1990 | else | |
1991 | ac_cpp_err=yes | |
1992 | fi | |
1993 | if test -z "$ac_cpp_err"; then | |
1994 | # cannot detect missing includes at all | |
1995 | ac_cpp_err=yes | |
1996 | else | |
1997 | echo "$as_me: failed program was:" >&5 | |
1998 | cat conftest.$ac_ext >&5 | |
1999 | if test "x$ac_cpp_err" = xmaybe; then | |
2000 | ac_c_preproc_warn_flag=yes | |
2001 | else | |
2002 | ac_c_preproc_warn_flag= | |
2003 | fi | |
2004 | ac_cpp_err= | |
2005 | fi | |
2006 | rm -f conftest.err conftest.$ac_ext | |
2007 | fi | |
2008 | else | |
2009 | echo "$as_me: failed program was:" >&5 | |
2010 | cat conftest.$ac_ext >&5 | |
2011 | ||
2012 | fi | |
2013 | rm -f conftest.err conftest.$ac_ext | |
2014 | if test -z "$ac_cpp_err"; then | |
2015 | break | |
2016 | fi | |
2017 | done | |
2018 | ac_cv_prog_CPP=$CPP | |
2019 | ||
2020 | fi | |
2021 | CPP=$ac_cv_prog_CPP | |
2022 | else | |
2023 | # Use a header file that comes with gcc, so configuring glibc | |
2024 | # with a fresh cross-compiler works. | |
2025 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2026 | # not just through cpp. "Syntax error" is here to catch this case. | |
2027 | ac_c_preproc_warn_flag=maybe | |
2028 | cat >conftest.$ac_ext <<_ACEOF | |
2029 | #line 2029 "configure" | |
2030 | #include "confdefs.h" | |
2031 | #include <assert.h> | |
2032 | Syntax error | |
2033 | _ACEOF | |
2034 | if { (eval echo "$as_me:2034: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
2035 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
2036 | ac_status=$? | |
2037 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2038 | rm -f conftest.er1 | |
2039 | cat conftest.err >&5 | |
2040 | echo "$as_me:2040: \$? = $ac_status" >&5 | |
2041 | (exit $ac_status); }; then | |
2042 | if test -s conftest.err; then | |
2043 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2044 | else | |
2045 | ac_cpp_err= | |
2046 | fi | |
2047 | else | |
2048 | ac_cpp_err=yes | |
2049 | fi | |
2050 | if test -z "$ac_cpp_err"; then | |
2051 | # Now check whether non-existent headers can be detected and how | |
2052 | # Skip if ac_cpp_err is not empty - ac_cpp is broken | |
2053 | if test -z "$ac_cpp_err"; then | |
2054 | cat >conftest.$ac_ext <<_ACEOF | |
2055 | #line 2055 "configure" | |
2056 | #include "confdefs.h" | |
2057 | #include <ac_nonexistent.h> | |
2058 | _ACEOF | |
2059 | if { (eval echo "$as_me:2059: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
2060 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
2061 | ac_status=$? | |
2062 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2063 | rm -f conftest.er1 | |
2064 | cat conftest.err >&5 | |
2065 | echo "$as_me:2065: \$? = $ac_status" >&5 | |
2066 | (exit $ac_status); }; then | |
2067 | if test -s conftest.err; then | |
2068 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2069 | else | |
2070 | ac_cpp_err= | |
2071 | fi | |
2072 | else | |
2073 | ac_cpp_err=yes | |
2074 | fi | |
2075 | if test -z "$ac_cpp_err"; then | |
2076 | # cannot detect missing includes at all | |
2077 | ac_cpp_err=yes | |
2078 | else | |
2079 | echo "$as_me: failed program was:" >&5 | |
2080 | cat conftest.$ac_ext >&5 | |
2081 | if test "x$ac_cpp_err" = xmaybe; then | |
2082 | ac_c_preproc_warn_flag=yes | |
2083 | else | |
2084 | ac_c_preproc_warn_flag= | |
2085 | fi | |
2086 | ac_cpp_err= | |
2087 | fi | |
2088 | rm -f conftest.err conftest.$ac_ext | |
2089 | fi | |
2090 | else | |
2091 | echo "$as_me: failed program was:" >&5 | |
2092 | cat conftest.$ac_ext >&5 | |
2093 | ||
2094 | fi | |
2095 | rm -f conftest.err conftest.$ac_ext | |
2096 | ac_cv_prog_CPP=$CPP | |
2097 | fi | |
2098 | echo "$as_me:2098: result: $CPP" >&5 | |
2099 | echo "${ECHO_T}$CPP" >&6 | |
2100 | if test -n "$ac_cpp_err"; then | |
2101 | { { echo "$as_me:2101: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
2102 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
2103 | { (exit 1); exit 1; }; } | |
2104 | fi | |
2105 | ac_ext=c | |
2106 | ac_cpp='$CPP $CPPFLAGS' | |
2107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2110 | ||
2111 | echo "$as_me:2111: checking for minix/config.h" >&5 | |
2112 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
2113 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
2114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2115 | else | |
2116 | cat >conftest.$ac_ext <<_ACEOF | |
2117 | #line 2117 "configure" | |
2118 | #include "confdefs.h" | |
2119 | #include <minix/config.h> | |
2120 | _ACEOF | |
2121 | if { (eval echo "$as_me:2121: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
2122 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
2123 | ac_status=$? | |
2124 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2125 | rm -f conftest.er1 | |
2126 | cat conftest.err >&5 | |
2127 | echo "$as_me:2127: \$? = $ac_status" >&5 | |
2128 | (exit $ac_status); }; then | |
2129 | if test -s conftest.err; then | |
2130 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2131 | else | |
2132 | ac_cpp_err= | |
2133 | fi | |
2134 | else | |
2135 | ac_cpp_err=yes | |
2136 | fi | |
2137 | if test -z "$ac_cpp_err"; then | |
2138 | ac_cv_header_minix_config_h=yes | |
2139 | else | |
2140 | echo "$as_me: failed program was:" >&5 | |
2141 | cat conftest.$ac_ext >&5 | |
2142 | ac_cv_header_minix_config_h=no | |
2143 | fi | |
2144 | rm -f conftest.err conftest.$ac_ext | |
2145 | fi | |
2146 | echo "$as_me:2146: result: $ac_cv_header_minix_config_h" >&5 | |
2147 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
2148 | if test $ac_cv_header_minix_config_h = yes; then | |
2149 | MINIX=yes | |
2150 | else | |
2151 | MINIX= | |
2152 | fi | |
2153 | ||
2154 | if test "$MINIX" = yes; then | |
2155 | ||
2156 | cat >>confdefs.h <<\EOF | |
2157 | #define _POSIX_SOURCE 1 | |
2158 | EOF | |
2159 | ||
2160 | cat >>confdefs.h <<\EOF | |
2161 | #define _POSIX_1_SOURCE 2 | |
2162 | EOF | |
2163 | ||
2164 | cat >>confdefs.h <<\EOF | |
2165 | #define _MINIX 1 | |
2166 | EOF | |
2167 | ||
2168 | fi | |
2169 | ||
2170 | echo "$as_me:2170: checking for POSIXized ISC" >&5 | |
2171 | echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 | |
2172 | if test -d /etc/conf/kconfig.d && | |
2173 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | |
2174 | then | |
2175 | echo "$as_me:2175: result: yes" >&5 | |
2176 | echo "${ECHO_T}yes" >&6 | |
2177 | ISC=yes # If later tests want to check for ISC. | |
2178 | ||
2179 | cat >>confdefs.h <<\EOF | |
2180 | #define _POSIX_SOURCE 1 | |
2181 | EOF | |
2182 | ||
2183 | if test "$GCC" = yes; then | |
2184 | CC="$CC -posix" | |
2185 | else | |
2186 | CC="$CC -Xp" | |
2187 | fi | |
2188 | else | |
2189 | echo "$as_me:2189: result: no" >&5 | |
2190 | echo "${ECHO_T}no" >&6 | |
2191 | ISC= | |
2192 | fi | |
2193 | ||
2194 | echo "$as_me:2194: checking for ${CC-cc} option to accept ANSI C" >&5 | |
2195 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
2196 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
2197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2198 | else | |
2199 | am_cv_prog_cc_stdc=no | |
2200 | ac_save_CC="$CC" | |
2201 | # Don't try gcc -ansi; that turns off useful extensions and | |
2202 | # breaks some systems' header files. | |
2203 | # AIX -qlanglvl=ansi | |
2204 | # Ultrix and OSF/1 -std1 | |
2205 | # HP-UX -Aa -D_HPUX_SOURCE | |
2206 | # SVR4 -Xc -D__EXTENSIONS__ | |
2207 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2208 | do | |
2209 | CC="$ac_save_CC $ac_arg" | |
2210 | cat >conftest.$ac_ext <<_ACEOF | |
2211 | #line 2211 "configure" | |
2212 | #include "confdefs.h" | |
2213 | #include <stdarg.h> | |
2214 | #include <stdio.h> | |
2215 | #include <sys/types.h> | |
2216 | #include <sys/stat.h> | |
2217 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2218 | struct buf { int x; }; | |
2219 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2220 | static char *e (p, i) | |
2221 | char **p; | |
2222 | int i; | |
2223 | { | |
2224 | return p[i]; | |
2225 | } | |
2226 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2227 | { | |
2228 | char *s; | |
2229 | va_list v; | |
2230 | va_start (v,p); | |
2231 | s = g (p, va_arg (v,int)); | |
2232 | va_end (v); | |
2233 | return s; | |
2234 | } | |
2235 | int test (int i, double x); | |
2236 | struct s1 {int (*f) (int a);}; | |
2237 | struct s2 {int (*f) (double a);}; | |
2238 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2239 | int argc; | |
2240 | char **argv; | |
2241 | ||
2242 | int | |
2243 | main () | |
2244 | { | |
2245 | ||
2246 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2247 | ||
2248 | ; | |
2249 | return 0; | |
2250 | } | |
2251 | _ACEOF | |
2252 | rm -f conftest.$ac_objext | |
2253 | if { (eval echo "$as_me:2253: \"$ac_compile\"") >&5 | |
2254 | (eval $ac_compile) 2>&5 | |
2255 | ac_status=$? | |
2256 | echo "$as_me:2256: \$? = $ac_status" >&5 | |
2257 | (exit $ac_status); } && | |
2258 | { ac_try='test -s conftest.$ac_objext' | |
2259 | { (eval echo "$as_me:2259: \"$ac_try\"") >&5 | |
2260 | (eval $ac_try) 2>&5 | |
2261 | ac_status=$? | |
2262 | echo "$as_me:2262: \$? = $ac_status" >&5 | |
2263 | (exit $ac_status); }; }; then | |
2264 | am_cv_prog_cc_stdc="$ac_arg"; break | |
2265 | else | |
2266 | echo "$as_me: failed program was:" >&5 | |
2267 | cat conftest.$ac_ext >&5 | |
2268 | fi | |
2269 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2270 | done | |
2271 | CC="$ac_save_CC" | |
2272 | ||
2273 | fi | |
2274 | ||
2275 | if test -z "$am_cv_prog_cc_stdc"; then | |
2276 | echo "$as_me:2276: result: none needed" >&5 | |
2277 | echo "${ECHO_T}none needed" >&6 | |
2278 | else | |
2279 | echo "$as_me:2279: result: $am_cv_prog_cc_stdc" >&5 | |
2280 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
2281 | fi | |
2282 | case "x$am_cv_prog_cc_stdc" in | |
2283 | x|xno) ;; | |
2284 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2285 | esac | |
2286 | ||
2287 | # Find a good install program. We prefer a C program (faster), | |
2288 | # so one script is as good as another. But avoid the broken or | |
2289 | # incompatible versions: | |
2290 | # SysV /etc/install, /usr/sbin/install | |
2291 | # SunOS /usr/etc/install | |
2292 | # IRIX /sbin/install | |
2293 | # AIX /bin/install | |
2294 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2295 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2296 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2297 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2298 | # ./install, which can be erroneously created by make from ./install.sh. | |
2299 | echo "$as_me:2299: checking for a BSD compatible install" >&5 | |
2300 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | |
2301 | if test -z "$INSTALL"; then | |
2302 | if test "${ac_cv_path_install+set}" = set; then | |
2303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2304 | else | |
2305 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2306 | for ac_dir in $PATH; do | |
2307 | IFS=$ac_save_IFS | |
2308 | # Account for people who put trailing slashes in PATH elements. | |
2309 | case $ac_dir/ in | |
2310 | / | ./ | .// | /cC/* \ | |
2311 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
2312 | | /usr/ucb/* ) ;; | |
2313 | *) | |
2314 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2315 | # Don't use installbsd from OSF since it installs stuff as root | |
2316 | # by default. | |
2317 | for ac_prog in ginstall scoinst install; do | |
2318 | if $as_executable_p "$ac_dir/$ac_prog"; then | |
2319 | if test $ac_prog = install && | |
2320 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
2321 | # AIX install. It has an incompatible calling convention. | |
2322 | : | |
2323 | elif test $ac_prog = install && | |
2324 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
2325 | # program-specific install script used by HP pwplus--don't use. | |
2326 | : | |
2327 | else | |
2328 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2329 | break 2 | |
2330 | fi | |
2331 | fi | |
2332 | done | |
2333 | ;; | |
2334 | esac | |
2335 | done | |
2336 | ||
2337 | fi | |
2338 | if test "${ac_cv_path_install+set}" = set; then | |
2339 | INSTALL=$ac_cv_path_install | |
2340 | else | |
2341 | # As a last resort, use the slow shell script. We don't cache a | |
2342 | # path for INSTALL within a source directory, because that will | |
2343 | # break other packages using the cache if that directory is | |
2344 | # removed, or if the path is relative. | |
2345 | INSTALL=$ac_install_sh | |
2346 | fi | |
2347 | fi | |
2348 | echo "$as_me:2348: result: $INSTALL" >&5 | |
2349 | echo "${ECHO_T}$INSTALL" >&6 | |
2350 | ||
2351 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2352 | # It thinks the first close brace ends the variable substitution. | |
2353 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2354 | ||
2355 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2356 | ||
2357 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2358 | ||
2359 | if test -n "$ac_tool_prefix"; then | |
2360 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2361 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2362 | echo "$as_me:2362: checking for $ac_word" >&5 | |
2363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2364 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2366 | else | |
2367 | if test -n "$RANLIB"; then | |
2368 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2369 | else | |
2370 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2371 | ac_dummy="$PATH" | |
2372 | for ac_dir in $ac_dummy; do | |
2373 | IFS=$ac_save_IFS | |
2374 | test -z "$ac_dir" && ac_dir=. | |
2375 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2376 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2377 | break | |
2378 | done | |
2379 | ||
2380 | fi | |
2381 | fi | |
2382 | RANLIB=$ac_cv_prog_RANLIB | |
2383 | if test -n "$RANLIB"; then | |
2384 | echo "$as_me:2384: result: $RANLIB" >&5 | |
2385 | echo "${ECHO_T}$RANLIB" >&6 | |
2386 | else | |
2387 | echo "$as_me:2387: result: no" >&5 | |
2388 | echo "${ECHO_T}no" >&6 | |
2389 | fi | |
2390 | ||
2391 | fi | |
2392 | if test -z "$ac_cv_prog_RANLIB"; then | |
2393 | ac_ct_RANLIB=$RANLIB | |
2394 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2395 | set dummy ranlib; ac_word=$2 | |
2396 | echo "$as_me:2396: checking for $ac_word" >&5 | |
2397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2398 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2400 | else | |
2401 | if test -n "$ac_ct_RANLIB"; then | |
2402 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2403 | else | |
2404 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2405 | ac_dummy="$PATH" | |
2406 | for ac_dir in $ac_dummy; do | |
2407 | IFS=$ac_save_IFS | |
2408 | test -z "$ac_dir" && ac_dir=. | |
2409 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2410 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2411 | break | |
2412 | done | |
2413 | ||
2414 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2415 | fi | |
2416 | fi | |
2417 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2418 | if test -n "$ac_ct_RANLIB"; then | |
2419 | echo "$as_me:2419: result: $ac_ct_RANLIB" >&5 | |
2420 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2421 | else | |
2422 | echo "$as_me:2422: result: no" >&5 | |
2423 | echo "${ECHO_T}no" >&6 | |
2424 | fi | |
2425 | ||
2426 | RANLIB=$ac_ct_RANLIB | |
2427 | else | |
2428 | RANLIB="$ac_cv_prog_RANLIB" | |
2429 | fi | |
2430 | ||
2431 | # GNU M4 is needed to build the testsuite. | |
2432 | for ac_prog in gm4 gnum4 m4 | |
2433 | do | |
2434 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2435 | set dummy $ac_prog; ac_word=$2 | |
2436 | echo "$as_me:2436: checking for $ac_word" >&5 | |
2437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2438 | if test "${ac_cv_path_M4+set}" = set; then | |
2439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2440 | else | |
2441 | case $M4 in | |
2442 | [\\/]* | ?:[\\/]*) | |
2443 | ac_cv_path_M4="$M4" # Let the user override the test with a path. | |
2444 | ;; | |
2445 | *) | |
2446 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2447 | ac_dummy="$PATH" | |
2448 | for ac_dir in $ac_dummy; do | |
2449 | IFS=$ac_save_IFS | |
2450 | test -z "$ac_dir" && ac_dir=. | |
2451 | if $as_executable_p "$ac_dir/$ac_word"; then | |
2452 | ac_cv_path_M4="$ac_dir/$ac_word" | |
2453 | break | |
2454 | fi | |
2455 | done | |
2456 | ||
2457 | ;; | |
2458 | esac | |
2459 | fi | |
2460 | M4=$ac_cv_path_M4 | |
2461 | ||
2462 | if test -n "$M4"; then | |
2463 | echo "$as_me:2463: result: $M4" >&5 | |
2464 | echo "${ECHO_T}$M4" >&6 | |
2465 | else | |
2466 | echo "$as_me:2466: result: no" >&5 | |
2467 | echo "${ECHO_T}no" >&6 | |
2468 | fi | |
2469 | ||
2470 | test -n "$M4" && break | |
2471 | done | |
2472 | test -n "$M4" || M4="m4" | |
2473 | ||
2474 | echo "$as_me:2474: checking whether m4 supports frozen files" >&5 | |
2475 | echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6 | |
2476 | if test "${ac_cv_prog_gnu_m4+set}" = set; then | |
2477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2478 | else | |
2479 | ac_cv_prog_gnu_m4=no | |
2480 | if test x"$M4" != x; then | |
2481 | case `$M4 --help < /dev/null 2>&1` in | |
2482 | *reload-state*) ac_cv_prog_gnu_m4=yes ;; | |
2483 | esac | |
2484 | fi | |
2485 | fi | |
2486 | echo "$as_me:2486: result: $ac_cv_prog_gnu_m4" >&5 | |
2487 | echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6 | |
2488 | if test "$ac_cv_prog_gnu_m4" != yes; then | |
2489 | missing_dir=`cd $ac_aux_dir && pwd` | |
2490 | M4="$missing_dir/missing m4" | |
2491 | fi | |
2492 | ||
2493 | # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given. | |
2494 | if test "${enable_gcc_warnings+set}" = set; then | |
2495 | enableval="$enable_gcc_warnings" | |
2496 | case "${enableval}" in | |
2497 | yes|no) ;; | |
2498 | *) { { echo "$as_me:2498: error: bad value ${enableval} for gcc-warnings option" >&5 | |
2499 | echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;} | |
2500 | { (exit 1); exit 1; }; } ;; | |
2501 | esac | |
2502 | ||
2503 | else | |
2504 | enableval=no | |
2505 | ||
2506 | fi; | |
2507 | if test "${enableval}" = yes; then | |
2508 | echo "$as_me:2508: checking whether compiler accepts -Wall" >&5 | |
2509 | echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6 | |
2510 | ||
2511 | ac_save_CFLAGS="$CFLAGS" | |
2512 | CFLAGS="$CFLAGS -Wall" | |
2513 | cat >conftest.$ac_ext <<_ACEOF | |
2514 | #line 2514 "configure" | |
2515 | #include "confdefs.h" | |
2516 | ||
2517 | int | |
2518 | main () | |
2519 | { | |
2520 | int x; | |
2521 | ; | |
2522 | return 0; | |
2523 | } | |
2524 | _ACEOF | |
2525 | rm -f conftest.$ac_objext | |
2526 | if { (eval echo "$as_me:2526: \"$ac_compile\"") >&5 | |
2527 | (eval $ac_compile) 2>&5 | |
2528 | ac_status=$? | |
2529 | echo "$as_me:2529: \$? = $ac_status" >&5 | |
2530 | (exit $ac_status); } && | |
2531 | { ac_try='test -s conftest.$ac_objext' | |
2532 | { (eval echo "$as_me:2532: \"$ac_try\"") >&5 | |
2533 | (eval $ac_try) 2>&5 | |
2534 | ac_status=$? | |
2535 | echo "$as_me:2535: \$? = $ac_status" >&5 | |
2536 | (exit $ac_status); }; }; then | |
2537 | WARNING_CFLAGS="$WARNING_CFLAGS -Wall" | |
2538 | echo "$as_me:2538: result: yes" >&5 | |
2539 | echo "${ECHO_T}yes" >&6 | |
2540 | else | |
2541 | echo "$as_me: failed program was:" >&5 | |
2542 | cat conftest.$ac_ext >&5 | |
2543 | echo "$as_me:2543: result: no" >&5 | |
2544 | echo "${ECHO_T}no" >&6 | |
2545 | fi | |
2546 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2547 | CFLAGS="$ac_save_CFLAGS" | |
2548 | echo "$as_me:2548: checking whether compiler accepts -W" >&5 | |
2549 | echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6 | |
2550 | ||
2551 | ac_save_CFLAGS="$CFLAGS" | |
2552 | CFLAGS="$CFLAGS -W" | |
2553 | cat >conftest.$ac_ext <<_ACEOF | |
2554 | #line 2554 "configure" | |
2555 | #include "confdefs.h" | |
2556 | ||
2557 | int | |
2558 | main () | |
2559 | { | |
2560 | int x; | |
2561 | ; | |
2562 | return 0; | |
2563 | } | |
2564 | _ACEOF | |
2565 | rm -f conftest.$ac_objext | |
2566 | if { (eval echo "$as_me:2566: \"$ac_compile\"") >&5 | |
2567 | (eval $ac_compile) 2>&5 | |
2568 | ac_status=$? | |
2569 | echo "$as_me:2569: \$? = $ac_status" >&5 | |
2570 | (exit $ac_status); } && | |
2571 | { ac_try='test -s conftest.$ac_objext' | |
2572 | { (eval echo "$as_me:2572: \"$ac_try\"") >&5 | |
2573 | (eval $ac_try) 2>&5 | |
2574 | ac_status=$? | |
2575 | echo "$as_me:2575: \$? = $ac_status" >&5 | |
2576 | (exit $ac_status); }; }; then | |
2577 | WARNING_CFLAGS="$WARNING_CFLAGS -W" | |
2578 | echo "$as_me:2578: result: yes" >&5 | |
2579 | echo "${ECHO_T}yes" >&6 | |
2580 | else | |
2581 | echo "$as_me: failed program was:" >&5 | |
2582 | cat conftest.$ac_ext >&5 | |
2583 | echo "$as_me:2583: result: no" >&5 | |
2584 | echo "${ECHO_T}no" >&6 | |
2585 | fi | |
2586 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2587 | CFLAGS="$ac_save_CFLAGS" | |
2588 | echo "$as_me:2588: checking whether compiler accepts -Wbad-function-cast" >&5 | |
2589 | echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6 | |
2590 | ||
2591 | ac_save_CFLAGS="$CFLAGS" | |
2592 | CFLAGS="$CFLAGS -Wbad-function-cast" | |
2593 | cat >conftest.$ac_ext <<_ACEOF | |
2594 | #line 2594 "configure" | |
2595 | #include "confdefs.h" | |
2596 | ||
2597 | int | |
2598 | main () | |
2599 | { | |
2600 | int x; | |
2601 | ; | |
2602 | return 0; | |
2603 | } | |
2604 | _ACEOF | |
2605 | rm -f conftest.$ac_objext | |
2606 | if { (eval echo "$as_me:2606: \"$ac_compile\"") >&5 | |
2607 | (eval $ac_compile) 2>&5 | |
2608 | ac_status=$? | |
2609 | echo "$as_me:2609: \$? = $ac_status" >&5 | |
2610 | (exit $ac_status); } && | |
2611 | { ac_try='test -s conftest.$ac_objext' | |
2612 | { (eval echo "$as_me:2612: \"$ac_try\"") >&5 | |
2613 | (eval $ac_try) 2>&5 | |
2614 | ac_status=$? | |
2615 | echo "$as_me:2615: \$? = $ac_status" >&5 | |
2616 | (exit $ac_status); }; }; then | |
2617 | WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast" | |
2618 | echo "$as_me:2618: result: yes" >&5 | |
2619 | echo "${ECHO_T}yes" >&6 | |
2620 | else | |
2621 | echo "$as_me: failed program was:" >&5 | |
2622 | cat conftest.$ac_ext >&5 | |
2623 | echo "$as_me:2623: result: no" >&5 | |
2624 | echo "${ECHO_T}no" >&6 | |
2625 | fi | |
2626 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2627 | CFLAGS="$ac_save_CFLAGS" | |
2628 | echo "$as_me:2628: checking whether compiler accepts -Wcast-align" >&5 | |
2629 | echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6 | |
2630 | ||
2631 | ac_save_CFLAGS="$CFLAGS" | |
2632 | CFLAGS="$CFLAGS -Wcast-align" | |
2633 | cat >conftest.$ac_ext <<_ACEOF | |
2634 | #line 2634 "configure" | |
2635 | #include "confdefs.h" | |
2636 | ||
2637 | int | |
2638 | main () | |
2639 | { | |
2640 | int x; | |
2641 | ; | |
2642 | return 0; | |
2643 | } | |
2644 | _ACEOF | |
2645 | rm -f conftest.$ac_objext | |
2646 | if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5 | |
2647 | (eval $ac_compile) 2>&5 | |
2648 | ac_status=$? | |
2649 | echo "$as_me:2649: \$? = $ac_status" >&5 | |
2650 | (exit $ac_status); } && | |
2651 | { ac_try='test -s conftest.$ac_objext' | |
2652 | { (eval echo "$as_me:2652: \"$ac_try\"") >&5 | |
2653 | (eval $ac_try) 2>&5 | |
2654 | ac_status=$? | |
2655 | echo "$as_me:2655: \$? = $ac_status" >&5 | |
2656 | (exit $ac_status); }; }; then | |
2657 | WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align" | |
2658 | echo "$as_me:2658: result: yes" >&5 | |
2659 | echo "${ECHO_T}yes" >&6 | |
2660 | else | |
2661 | echo "$as_me: failed program was:" >&5 | |
2662 | cat conftest.$ac_ext >&5 | |
2663 | echo "$as_me:2663: result: no" >&5 | |
2664 | echo "${ECHO_T}no" >&6 | |
2665 | fi | |
2666 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2667 | CFLAGS="$ac_save_CFLAGS" | |
2668 | echo "$as_me:2668: checking whether compiler accepts -Wcast-qual" >&5 | |
2669 | echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6 | |
2670 | ||
2671 | ac_save_CFLAGS="$CFLAGS" | |
2672 | CFLAGS="$CFLAGS -Wcast-qual" | |
2673 | cat >conftest.$ac_ext <<_ACEOF | |
2674 | #line 2674 "configure" | |
2675 | #include "confdefs.h" | |
2676 | ||
2677 | int | |
2678 | main () | |
2679 | { | |
2680 | int x; | |
2681 | ; | |
2682 | return 0; | |
2683 | } | |
2684 | _ACEOF | |
2685 | rm -f conftest.$ac_objext | |
2686 | if { (eval echo "$as_me:2686: \"$ac_compile\"") >&5 | |
2687 | (eval $ac_compile) 2>&5 | |
2688 | ac_status=$? | |
2689 | echo "$as_me:2689: \$? = $ac_status" >&5 | |
2690 | (exit $ac_status); } && | |
2691 | { ac_try='test -s conftest.$ac_objext' | |
2692 | { (eval echo "$as_me:2692: \"$ac_try\"") >&5 | |
2693 | (eval $ac_try) 2>&5 | |
2694 | ac_status=$? | |
2695 | echo "$as_me:2695: \$? = $ac_status" >&5 | |
2696 | (exit $ac_status); }; }; then | |
2697 | WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual" | |
2698 | echo "$as_me:2698: result: yes" >&5 | |
2699 | echo "${ECHO_T}yes" >&6 | |
2700 | else | |
2701 | echo "$as_me: failed program was:" >&5 | |
2702 | cat conftest.$ac_ext >&5 | |
2703 | echo "$as_me:2703: result: no" >&5 | |
2704 | echo "${ECHO_T}no" >&6 | |
2705 | fi | |
2706 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2707 | CFLAGS="$ac_save_CFLAGS" | |
2708 | echo "$as_me:2708: checking whether compiler accepts -Wmissing-declarations" >&5 | |
2709 | echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6 | |
2710 | ||
2711 | ac_save_CFLAGS="$CFLAGS" | |
2712 | CFLAGS="$CFLAGS -Wmissing-declarations" | |
2713 | cat >conftest.$ac_ext <<_ACEOF | |
2714 | #line 2714 "configure" | |
2715 | #include "confdefs.h" | |
2716 | ||
2717 | int | |
2718 | main () | |
2719 | { | |
2720 | int x; | |
2721 | ; | |
2722 | return 0; | |
2723 | } | |
2724 | _ACEOF | |
2725 | rm -f conftest.$ac_objext | |
2726 | if { (eval echo "$as_me:2726: \"$ac_compile\"") >&5 | |
2727 | (eval $ac_compile) 2>&5 | |
2728 | ac_status=$? | |
2729 | echo "$as_me:2729: \$? = $ac_status" >&5 | |
2730 | (exit $ac_status); } && | |
2731 | { ac_try='test -s conftest.$ac_objext' | |
2732 | { (eval echo "$as_me:2732: \"$ac_try\"") >&5 | |
2733 | (eval $ac_try) 2>&5 | |
2734 | ac_status=$? | |
2735 | echo "$as_me:2735: \$? = $ac_status" >&5 | |
2736 | (exit $ac_status); }; }; then | |
2737 | WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations" | |
2738 | echo "$as_me:2738: result: yes" >&5 | |
2739 | echo "${ECHO_T}yes" >&6 | |
2740 | else | |
2741 | echo "$as_me: failed program was:" >&5 | |
2742 | cat conftest.$ac_ext >&5 | |
2743 | echo "$as_me:2743: result: no" >&5 | |
2744 | echo "${ECHO_T}no" >&6 | |
2745 | fi | |
2746 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2747 | CFLAGS="$ac_save_CFLAGS" | |
2748 | echo "$as_me:2748: checking whether compiler accepts -Wmissing-prototypes" >&5 | |
2749 | echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6 | |
2750 | ||
2751 | ac_save_CFLAGS="$CFLAGS" | |
2752 | CFLAGS="$CFLAGS -Wmissing-prototypes" | |
2753 | cat >conftest.$ac_ext <<_ACEOF | |
2754 | #line 2754 "configure" | |
2755 | #include "confdefs.h" | |
2756 | ||
2757 | int | |
2758 | main () | |
2759 | { | |
2760 | int x; | |
2761 | ; | |
2762 | return 0; | |
2763 | } | |
2764 | _ACEOF | |
2765 | rm -f conftest.$ac_objext | |
2766 | if { (eval echo "$as_me:2766: \"$ac_compile\"") >&5 | |
2767 | (eval $ac_compile) 2>&5 | |
2768 | ac_status=$? | |
2769 | echo "$as_me:2769: \$? = $ac_status" >&5 | |
2770 | (exit $ac_status); } && | |
2771 | { ac_try='test -s conftest.$ac_objext' | |
2772 | { (eval echo "$as_me:2772: \"$ac_try\"") >&5 | |
2773 | (eval $ac_try) 2>&5 | |
2774 | ac_status=$? | |
2775 | echo "$as_me:2775: \$? = $ac_status" >&5 | |
2776 | (exit $ac_status); }; }; then | |
2777 | WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes" | |
2778 | echo "$as_me:2778: result: yes" >&5 | |
2779 | echo "${ECHO_T}yes" >&6 | |
2780 | else | |
2781 | echo "$as_me: failed program was:" >&5 | |
2782 | cat conftest.$ac_ext >&5 | |
2783 | echo "$as_me:2783: result: no" >&5 | |
2784 | echo "${ECHO_T}no" >&6 | |
2785 | fi | |
2786 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2787 | CFLAGS="$ac_save_CFLAGS" | |
2788 | echo "$as_me:2788: checking whether compiler accepts -Wnested-externs" >&5 | |
2789 | echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6 | |
2790 | ||
2791 | ac_save_CFLAGS="$CFLAGS" | |
2792 | CFLAGS="$CFLAGS -Wnested-externs" | |
2793 | cat >conftest.$ac_ext <<_ACEOF | |
2794 | #line 2794 "configure" | |
2795 | #include "confdefs.h" | |
2796 | ||
2797 | int | |
2798 | main () | |
2799 | { | |
2800 | int x; | |
2801 | ; | |
2802 | return 0; | |
2803 | } | |
2804 | _ACEOF | |
2805 | rm -f conftest.$ac_objext | |
2806 | if { (eval echo "$as_me:2806: \"$ac_compile\"") >&5 | |
2807 | (eval $ac_compile) 2>&5 | |
2808 | ac_status=$? | |
2809 | echo "$as_me:2809: \$? = $ac_status" >&5 | |
2810 | (exit $ac_status); } && | |
2811 | { ac_try='test -s conftest.$ac_objext' | |
2812 | { (eval echo "$as_me:2812: \"$ac_try\"") >&5 | |
2813 | (eval $ac_try) 2>&5 | |
2814 | ac_status=$? | |
2815 | echo "$as_me:2815: \$? = $ac_status" >&5 | |
2816 | (exit $ac_status); }; }; then | |
2817 | WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs" | |
2818 | echo "$as_me:2818: result: yes" >&5 | |
2819 | echo "${ECHO_T}yes" >&6 | |
2820 | else | |
2821 | echo "$as_me: failed program was:" >&5 | |
2822 | cat conftest.$ac_ext >&5 | |
2823 | echo "$as_me:2823: result: no" >&5 | |
2824 | echo "${ECHO_T}no" >&6 | |
2825 | fi | |
2826 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2827 | CFLAGS="$ac_save_CFLAGS" | |
2828 | echo "$as_me:2828: checking whether compiler accepts -Wshadow" >&5 | |
2829 | echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6 | |
2830 | ||
2831 | ac_save_CFLAGS="$CFLAGS" | |
2832 | CFLAGS="$CFLAGS -Wshadow" | |
2833 | cat >conftest.$ac_ext <<_ACEOF | |
2834 | #line 2834 "configure" | |
2835 | #include "confdefs.h" | |
2836 | ||
2837 | int | |
2838 | main () | |
2839 | { | |
2840 | int x; | |
2841 | ; | |
2842 | return 0; | |
2843 | } | |
2844 | _ACEOF | |
2845 | rm -f conftest.$ac_objext | |
2846 | if { (eval echo "$as_me:2846: \"$ac_compile\"") >&5 | |
2847 | (eval $ac_compile) 2>&5 | |
2848 | ac_status=$? | |
2849 | echo "$as_me:2849: \$? = $ac_status" >&5 | |
2850 | (exit $ac_status); } && | |
2851 | { ac_try='test -s conftest.$ac_objext' | |
2852 | { (eval echo "$as_me:2852: \"$ac_try\"") >&5 | |
2853 | (eval $ac_try) 2>&5 | |
2854 | ac_status=$? | |
2855 | echo "$as_me:2855: \$? = $ac_status" >&5 | |
2856 | (exit $ac_status); }; }; then | |
2857 | WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow" | |
2858 | echo "$as_me:2858: result: yes" >&5 | |
2859 | echo "${ECHO_T}yes" >&6 | |
2860 | else | |
2861 | echo "$as_me: failed program was:" >&5 | |
2862 | cat conftest.$ac_ext >&5 | |
2863 | echo "$as_me:2863: result: no" >&5 | |
2864 | echo "${ECHO_T}no" >&6 | |
2865 | fi | |
2866 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2867 | CFLAGS="$ac_save_CFLAGS" | |
2868 | echo "$as_me:2868: checking whether compiler accepts -Wstrict-prototypes" >&5 | |
2869 | echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6 | |
2870 | ||
2871 | ac_save_CFLAGS="$CFLAGS" | |
2872 | CFLAGS="$CFLAGS -Wstrict-prototypes" | |
2873 | cat >conftest.$ac_ext <<_ACEOF | |
2874 | #line 2874 "configure" | |
2875 | #include "confdefs.h" | |
2876 | ||
2877 | int | |
2878 | main () | |
2879 | { | |
2880 | int x; | |
2881 | ; | |
2882 | return 0; | |
2883 | } | |
2884 | _ACEOF | |
2885 | rm -f conftest.$ac_objext | |
2886 | if { (eval echo "$as_me:2886: \"$ac_compile\"") >&5 | |
2887 | (eval $ac_compile) 2>&5 | |
2888 | ac_status=$? | |
2889 | echo "$as_me:2889: \$? = $ac_status" >&5 | |
2890 | (exit $ac_status); } && | |
2891 | { ac_try='test -s conftest.$ac_objext' | |
2892 | { (eval echo "$as_me:2892: \"$ac_try\"") >&5 | |
2893 | (eval $ac_try) 2>&5 | |
2894 | ac_status=$? | |
2895 | echo "$as_me:2895: \$? = $ac_status" >&5 | |
2896 | (exit $ac_status); }; }; then | |
2897 | WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes" | |
2898 | echo "$as_me:2898: result: yes" >&5 | |
2899 | echo "${ECHO_T}yes" >&6 | |
2900 | else | |
2901 | echo "$as_me: failed program was:" >&5 | |
2902 | cat conftest.$ac_ext >&5 | |
2903 | echo "$as_me:2903: result: no" >&5 | |
2904 | echo "${ECHO_T}no" >&6 | |
2905 | fi | |
2906 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2907 | CFLAGS="$ac_save_CFLAGS" | |
2908 | echo "$as_me:2908: checking whether compiler accepts -Wwrite-strings" >&5 | |
2909 | echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6 | |
2910 | ||
2911 | ac_save_CFLAGS="$CFLAGS" | |
2912 | CFLAGS="$CFLAGS -Wwrite-strings" | |
2913 | cat >conftest.$ac_ext <<_ACEOF | |
2914 | #line 2914 "configure" | |
2915 | #include "confdefs.h" | |
2916 | ||
2917 | int | |
2918 | main () | |
2919 | { | |
2920 | int x; | |
2921 | ; | |
2922 | return 0; | |
2923 | } | |
2924 | _ACEOF | |
2925 | rm -f conftest.$ac_objext | |
2926 | if { (eval echo "$as_me:2926: \"$ac_compile\"") >&5 | |
2927 | (eval $ac_compile) 2>&5 | |
2928 | ac_status=$? | |
2929 | echo "$as_me:2929: \$? = $ac_status" >&5 | |
2930 | (exit $ac_status); } && | |
2931 | { ac_try='test -s conftest.$ac_objext' | |
2932 | { (eval echo "$as_me:2932: \"$ac_try\"") >&5 | |
2933 | (eval $ac_try) 2>&5 | |
2934 | ac_status=$? | |
2935 | echo "$as_me:2935: \$? = $ac_status" >&5 | |
2936 | (exit $ac_status); }; }; then | |
2937 | WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings" | |
2938 | echo "$as_me:2938: result: yes" >&5 | |
2939 | echo "${ECHO_T}yes" >&6 | |
2940 | else | |
2941 | echo "$as_me: failed program was:" >&5 | |
2942 | cat conftest.$ac_ext >&5 | |
2943 | echo "$as_me:2943: result: no" >&5 | |
2944 | echo "${ECHO_T}no" >&6 | |
2945 | fi | |
2946 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2947 | CFLAGS="$ac_save_CFLAGS" | |
2948 | CFLAGS="$CFLAGS $WARNING_CFLAGS" | |
2949 | fi | |
2950 | ||
2951 | # Checks for libraries. | |
2952 | ||
2953 | cat >>confdefs.h <<\EOF | |
2954 | #define _GNU_SOURCE 1 | |
2955 | EOF | |
2956 | ||
2957 | # Checks for header files. | |
2958 | echo "$as_me:2958: checking for ANSI C header files" >&5 | |
2959 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2960 | if test "${ac_cv_header_stdc+set}" = set; then | |
2961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2962 | else | |
2963 | cat >conftest.$ac_ext <<_ACEOF | |
2964 | #line 2964 "configure" | |
2965 | #include "confdefs.h" | |
2966 | #include <stdlib.h> | |
2967 | #include <stdarg.h> | |
2968 | #include <string.h> | |
2969 | #include <float.h> | |
2970 | ||
2971 | _ACEOF | |
2972 | if { (eval echo "$as_me:2972: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
2973 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
2974 | ac_status=$? | |
2975 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2976 | rm -f conftest.er1 | |
2977 | cat conftest.err >&5 | |
2978 | echo "$as_me:2978: \$? = $ac_status" >&5 | |
2979 | (exit $ac_status); }; then | |
2980 | if test -s conftest.err; then | |
2981 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2982 | else | |
2983 | ac_cpp_err= | |
2984 | fi | |
2985 | else | |
2986 | ac_cpp_err=yes | |
2987 | fi | |
2988 | if test -z "$ac_cpp_err"; then | |
2989 | ac_cv_header_stdc=yes | |
2990 | else | |
2991 | echo "$as_me: failed program was:" >&5 | |
2992 | cat conftest.$ac_ext >&5 | |
2993 | ac_cv_header_stdc=no | |
2994 | fi | |
2995 | rm -f conftest.err conftest.$ac_ext | |
2996 | ||
2997 | if test $ac_cv_header_stdc = yes; then | |
2998 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2999 | cat >conftest.$ac_ext <<_ACEOF | |
3000 | #line 3000 "configure" | |
3001 | #include "confdefs.h" | |
3002 | #include <string.h> | |
3003 | ||
3004 | _ACEOF | |
3005 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3006 | egrep "memchr" >/dev/null 2>&1; then | |
3007 | : | |
3008 | else | |
3009 | ac_cv_header_stdc=no | |
3010 | fi | |
3011 | rm -f conftest* | |
3012 | ||
3013 | fi | |
3014 | ||
3015 | if test $ac_cv_header_stdc = yes; then | |
3016 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3017 | cat >conftest.$ac_ext <<_ACEOF | |
3018 | #line 3018 "configure" | |
3019 | #include "confdefs.h" | |
3020 | #include <stdlib.h> | |
3021 | ||
3022 | _ACEOF | |
3023 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3024 | egrep "free" >/dev/null 2>&1; then | |
3025 | : | |
3026 | else | |
3027 | ac_cv_header_stdc=no | |
3028 | fi | |
3029 | rm -f conftest* | |
3030 | ||
3031 | fi | |
3032 | ||
3033 | if test $ac_cv_header_stdc = yes; then | |
3034 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3035 | if test "$cross_compiling" = yes; then | |
3036 | : | |
3037 | else | |
3038 | cat >conftest.$ac_ext <<_ACEOF | |
3039 | #line 3039 "configure" | |
3040 | #include "confdefs.h" | |
3041 | #include <ctype.h> | |
3042 | #if ((' ' & 0x0FF) == 0x020) | |
3043 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3044 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3045 | #else | |
3046 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
3047 | || ('j' <= (c) && (c) <= 'r') \ | |
3048 | || ('s' <= (c) && (c) <= 'z')) | |
3049 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3050 | #endif | |
3051 | ||
3052 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3053 | int | |
3054 | main () | |
3055 | { | |
3056 | int i; | |
3057 | for (i = 0; i < 256; i++) | |
3058 | if (XOR (islower (i), ISLOWER (i)) | |
3059 | || toupper (i) != TOUPPER (i)) | |
3060 | exit(2); | |
3061 | exit (0); | |
3062 | } | |
3063 | _ACEOF | |
3064 | rm -f conftest$ac_exeext | |
3065 | if { (eval echo "$as_me:3065: \"$ac_link\"") >&5 | |
3066 | (eval $ac_link) 2>&5 | |
3067 | ac_status=$? | |
3068 | echo "$as_me:3068: \$? = $ac_status" >&5 | |
3069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3070 | { (eval echo "$as_me:3070: \"$ac_try\"") >&5 | |
3071 | (eval $ac_try) 2>&5 | |
3072 | ac_status=$? | |
3073 | echo "$as_me:3073: \$? = $ac_status" >&5 | |
3074 | (exit $ac_status); }; }; then | |
3075 | : | |
3076 | else | |
3077 | echo "$as_me: program exited with status $ac_status" >&5 | |
3078 | echo "$as_me: failed program was:" >&5 | |
3079 | cat conftest.$ac_ext >&5 | |
3080 | ac_cv_header_stdc=no | |
3081 | fi | |
3082 | rm -f conftest$ac_exeext conftest.$ac_ext | |
3083 | fi | |
3084 | fi | |
3085 | fi | |
3086 | echo "$as_me:3086: result: $ac_cv_header_stdc" >&5 | |
3087 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3088 | if test $ac_cv_header_stdc = yes; then | |
3089 | ||
3090 | cat >>confdefs.h <<\EOF | |
3091 | #define STDC_HEADERS 1 | |
3092 | EOF | |
3093 | ||
3094 | fi | |
3095 | ||
3096 | for ac_header in ctype.h locale.h memory.h stdlib.h string.h unistd.h | |
3097 | do | |
3098 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
3099 | echo "$as_me:3099: checking for $ac_header" >&5 | |
3100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3101 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
3102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3103 | else | |
3104 | cat >conftest.$ac_ext <<_ACEOF | |
3105 | #line 3105 "configure" | |
3106 | #include "confdefs.h" | |
3107 | #include <$ac_header> | |
3108 | _ACEOF | |
3109 | if { (eval echo "$as_me:3109: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
3110 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
3111 | ac_status=$? | |
3112 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3113 | rm -f conftest.er1 | |
3114 | cat conftest.err >&5 | |
3115 | echo "$as_me:3115: \$? = $ac_status" >&5 | |
3116 | (exit $ac_status); }; then | |
3117 | if test -s conftest.err; then | |
3118 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3119 | else | |
3120 | ac_cpp_err= | |
3121 | fi | |
3122 | else | |
3123 | ac_cpp_err=yes | |
3124 | fi | |
3125 | if test -z "$ac_cpp_err"; then | |
3126 | eval "$ac_ac_Header=yes" | |
3127 | else | |
3128 | echo "$as_me: failed program was:" >&5 | |
3129 | cat conftest.$ac_ext >&5 | |
3130 | eval "$ac_ac_Header=no" | |
3131 | fi | |
3132 | rm -f conftest.err conftest.$ac_ext | |
3133 | fi | |
3134 | echo "$as_me:3134: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
3135 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
3136 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
3137 | cat >>confdefs.h <<EOF | |
3138 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
3139 | EOF | |
3140 | ||
3141 | fi | |
3142 | done | |
3143 | ||
3144 | # Checks for typedefs. | |
3145 | ||
3146 | # Checks for structures. | |
3147 | ||
3148 | # Checks for compiler characteristics. | |
3149 | echo "$as_me:3149: checking for $CC option to accept ANSI C" >&5 | |
3150 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3151 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3153 | else | |
3154 | ac_cv_prog_cc_stdc=no | |
3155 | ac_save_CC=$CC | |
3156 | cat >conftest.$ac_ext <<_ACEOF | |
3157 | #line 3157 "configure" | |
3158 | #include "confdefs.h" | |
3159 | #include <stdarg.h> | |
3160 | #include <stdio.h> | |
3161 | #include <sys/types.h> | |
3162 | #include <sys/stat.h> | |
3163 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3164 | struct buf { int x; }; | |
3165 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3166 | static char *e (p, i) | |
3167 | char **p; | |
3168 | int i; | |
3169 | { | |
3170 | return p[i]; | |
3171 | } | |
3172 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3173 | { | |
3174 | char *s; | |
3175 | va_list v; | |
3176 | va_start (v,p); | |
3177 | s = g (p, va_arg (v,int)); | |
3178 | va_end (v); | |
3179 | return s; | |
3180 | } | |
3181 | int test (int i, double x); | |
3182 | struct s1 {int (*f) (int a);}; | |
3183 | struct s2 {int (*f) (double a);}; | |
3184 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3185 | int argc; | |
3186 | char **argv; | |
3187 | int | |
3188 | main () | |
3189 | { | |
3190 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3191 | ; | |
3192 | return 0; | |
3193 | } | |
3194 | _ACEOF | |
3195 | # Don't try gcc -ansi; that turns off useful extensions and | |
3196 | # breaks some systems' header files. | |
3197 | # AIX -qlanglvl=ansi | |
3198 | # Ultrix and OSF/1 -std1 | |
3199 | # HP-UX 10.20 and later -Ae | |
3200 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3201 | # SVR4 -Xc -D__EXTENSIONS__ | |
3202 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3203 | do | |
3204 | CC="$ac_save_CC $ac_arg" | |
3205 | rm -f conftest.$ac_objext | |
3206 | if { (eval echo "$as_me:3206: \"$ac_compile\"") >&5 | |
3207 | (eval $ac_compile) 2>&5 | |
3208 | ac_status=$? | |
3209 | echo "$as_me:3209: \$? = $ac_status" >&5 | |
3210 | (exit $ac_status); } && | |
3211 | { ac_try='test -s conftest.$ac_objext' | |
3212 | { (eval echo "$as_me:3212: \"$ac_try\"") >&5 | |
3213 | (eval $ac_try) 2>&5 | |
3214 | ac_status=$? | |
3215 | echo "$as_me:3215: \$? = $ac_status" >&5 | |
3216 | (exit $ac_status); }; }; then | |
3217 | ac_cv_prog_cc_stdc=$ac_arg | |
3218 | break | |
3219 | else | |
3220 | echo "$as_me: failed program was:" >&5 | |
3221 | cat conftest.$ac_ext >&5 | |
3222 | fi | |
3223 | rm -f conftest.$ac_objext | |
3224 | done | |
3225 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3226 | CC=$ac_save_CC | |
3227 | ||
3228 | fi | |
3229 | ||
3230 | case "x$ac_cv_prog_cc_stdc" in | |
3231 | x|xno) | |
3232 | echo "$as_me:3232: result: none needed" >&5 | |
3233 | echo "${ECHO_T}none needed" >&6 ;; | |
3234 | *) | |
3235 | echo "$as_me:3235: result: $ac_cv_prog_cc_stdc" >&5 | |
3236 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3237 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3238 | esac | |
3239 | ||
3240 | echo "$as_me:3240: checking for an ANSI C-conforming const" >&5 | |
3241 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
3242 | if test "${ac_cv_c_const+set}" = set; then | |
3243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3244 | else | |
3245 | cat >conftest.$ac_ext <<_ACEOF | |
3246 | #line 3246 "configure" | |
3247 | #include "confdefs.h" | |
3248 | ||
3249 | int | |
3250 | main () | |
3251 | { | |
3252 | /* FIXME: Include the comments suggested by Paul. */ | |
3253 | #ifndef __cplusplus | |
3254 | /* Ultrix mips cc rejects this. */ | |
3255 | typedef int charset[2]; | |
3256 | const charset x; | |
3257 | /* SunOS 4.1.1 cc rejects this. */ | |
3258 | char const *const *ccp; | |
3259 | char **p; | |
3260 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3261 | struct point {int x, y;}; | |
3262 | static struct point const zero = {0,0}; | |
3263 | /* AIX XL C 1.02.0.0 rejects this. | |
3264 | It does not let you subtract one const X* pointer from another in | |
3265 | an arm of an if-expression whose if-part is not a constant | |
3266 | expression */ | |
3267 | const char *g = "string"; | |
3268 | ccp = &g + (g ? g-g : 0); | |
3269 | /* HPUX 7.0 cc rejects these. */ | |
3270 | ++ccp; | |
3271 | p = (char**) ccp; | |
3272 | ccp = (char const *const *) p; | |
3273 | { /* SCO 3.2v4 cc rejects this. */ | |
3274 | char *t; | |
3275 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3276 | ||
3277 | *t++ = 0; | |
3278 | } | |
3279 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3280 | int x[] = {25, 17}; | |
3281 | const int *foo = &x[0]; | |
3282 | ++foo; | |
3283 | } | |
3284 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3285 | typedef const int *iptr; | |
3286 | iptr p = 0; | |
3287 | ++p; | |
3288 | } | |
3289 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3290 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3291 | struct s { int j; const int *ap[3]; }; | |
3292 | struct s *b; b->j = 5; | |
3293 | } | |
3294 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3295 | const int foo = 10; | |
3296 | } | |
3297 | #endif | |
3298 | ||
3299 | ; | |
3300 | return 0; | |
3301 | } | |
3302 | _ACEOF | |
3303 | rm -f conftest.$ac_objext | |
3304 | if { (eval echo "$as_me:3304: \"$ac_compile\"") >&5 | |
3305 | (eval $ac_compile) 2>&5 | |
3306 | ac_status=$? | |
3307 | echo "$as_me:3307: \$? = $ac_status" >&5 | |
3308 | (exit $ac_status); } && | |
3309 | { ac_try='test -s conftest.$ac_objext' | |
3310 | { (eval echo "$as_me:3310: \"$ac_try\"") >&5 | |
3311 | (eval $ac_try) 2>&5 | |
3312 | ac_status=$? | |
3313 | echo "$as_me:3313: \$? = $ac_status" >&5 | |
3314 | (exit $ac_status); }; }; then | |
3315 | ac_cv_c_const=yes | |
3316 | else | |
3317 | echo "$as_me: failed program was:" >&5 | |
3318 | cat conftest.$ac_ext >&5 | |
3319 | ac_cv_c_const=no | |
3320 | fi | |
3321 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3322 | fi | |
3323 | echo "$as_me:3323: result: $ac_cv_c_const" >&5 | |
3324 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
3325 | if test $ac_cv_c_const = no; then | |
3326 | ||
3327 | cat >>confdefs.h <<\EOF | |
3328 | #define const | |
3329 | EOF | |
3330 | ||
3331 | fi | |
3332 | ||
3333 | echo "$as_me:3333: checking for inline" >&5 | |
3334 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3335 | if test "${ac_cv_c_inline+set}" = set; then | |
3336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3337 | else | |
3338 | ac_cv_c_inline=no | |
3339 | for ac_kw in inline __inline__ __inline; do | |
3340 | cat >conftest.$ac_ext <<_ACEOF | |
3341 | #line 3341 "configure" | |
3342 | #include "confdefs.h" | |
3343 | #ifndef __cplusplus | |
3344 | static $ac_kw int static_foo () {return 0; } | |
3345 | $ac_kw int foo () {return 0; } | |
3346 | #endif | |
3347 | ||
3348 | _ACEOF | |
3349 | rm -f conftest.$ac_objext | |
3350 | if { (eval echo "$as_me:3350: \"$ac_compile\"") >&5 | |
3351 | (eval $ac_compile) 2>&5 | |
3352 | ac_status=$? | |
3353 | echo "$as_me:3353: \$? = $ac_status" >&5 | |
3354 | (exit $ac_status); } && | |
3355 | { ac_try='test -s conftest.$ac_objext' | |
3356 | { (eval echo "$as_me:3356: \"$ac_try\"") >&5 | |
3357 | (eval $ac_try) 2>&5 | |
3358 | ac_status=$? | |
3359 | echo "$as_me:3359: \$? = $ac_status" >&5 | |
3360 | (exit $ac_status); }; }; then | |
3361 | ac_cv_c_inline=$ac_kw; break | |
3362 | else | |
3363 | echo "$as_me: failed program was:" >&5 | |
3364 | cat conftest.$ac_ext >&5 | |
3365 | fi | |
3366 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3367 | done | |
3368 | ||
3369 | fi | |
3370 | echo "$as_me:3370: result: $ac_cv_c_inline" >&5 | |
3371 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
3372 | case $ac_cv_c_inline in | |
3373 | inline | yes) ;; | |
3374 | no) | |
3375 | cat >>confdefs.h <<\EOF | |
3376 | #define inline | |
3377 | EOF | |
3378 | ;; | |
3379 | *) cat >>confdefs.h <<EOF | |
3380 | #define inline $ac_cv_c_inline | |
3381 | EOF | |
3382 | ;; | |
3383 | esac | |
3384 | ||
3385 | echo "$as_me:3385: checking for function prototypes" >&5 | |
3386 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 | |
3387 | if test "$am_cv_prog_cc_stdc" != no; then | |
3388 | echo "$as_me:3388: result: yes" >&5 | |
3389 | echo "${ECHO_T}yes" >&6 | |
3390 | ||
3391 | cat >>confdefs.h <<\EOF | |
3392 | #define PROTOTYPES 1 | |
3393 | EOF | |
3394 | ||
3395 | U= ANSI2KNR= | |
3396 | else | |
3397 | echo "$as_me:3397: result: no" >&5 | |
3398 | echo "${ECHO_T}no" >&6 | |
3399 | U=_ ANSI2KNR=./ansi2knr | |
3400 | # Ensure some checks needed by ansi2knr itself. | |
3401 | echo "$as_me:3401: checking for ANSI C header files" >&5 | |
3402 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3403 | if test "${ac_cv_header_stdc+set}" = set; then | |
3404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3405 | else | |
3406 | cat >conftest.$ac_ext <<_ACEOF | |
3407 | #line 3407 "configure" | |
3408 | #include "confdefs.h" | |
3409 | #include <stdlib.h> | |
3410 | #include <stdarg.h> | |
3411 | #include <string.h> | |
3412 | #include <float.h> | |
3413 | ||
3414 | _ACEOF | |
3415 | if { (eval echo "$as_me:3415: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
3416 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
3417 | ac_status=$? | |
3418 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3419 | rm -f conftest.er1 | |
3420 | cat conftest.err >&5 | |
3421 | echo "$as_me:3421: \$? = $ac_status" >&5 | |
3422 | (exit $ac_status); }; then | |
3423 | if test -s conftest.err; then | |
3424 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3425 | else | |
3426 | ac_cpp_err= | |
3427 | fi | |
3428 | else | |
3429 | ac_cpp_err=yes | |
3430 | fi | |
3431 | if test -z "$ac_cpp_err"; then | |
3432 | ac_cv_header_stdc=yes | |
3433 | else | |
3434 | echo "$as_me: failed program was:" >&5 | |
3435 | cat conftest.$ac_ext >&5 | |
3436 | ac_cv_header_stdc=no | |
3437 | fi | |
3438 | rm -f conftest.err conftest.$ac_ext | |
3439 | ||
3440 | if test $ac_cv_header_stdc = yes; then | |
3441 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3442 | cat >conftest.$ac_ext <<_ACEOF | |
3443 | #line 3443 "configure" | |
3444 | #include "confdefs.h" | |
3445 | #include <string.h> | |
3446 | ||
3447 | _ACEOF | |
3448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3449 | egrep "memchr" >/dev/null 2>&1; then | |
3450 | : | |
3451 | else | |
3452 | ac_cv_header_stdc=no | |
3453 | fi | |
3454 | rm -f conftest* | |
3455 | ||
3456 | fi | |
3457 | ||
3458 | if test $ac_cv_header_stdc = yes; then | |
3459 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3460 | cat >conftest.$ac_ext <<_ACEOF | |
3461 | #line 3461 "configure" | |
3462 | #include "confdefs.h" | |
3463 | #include <stdlib.h> | |
3464 | ||
3465 | _ACEOF | |
3466 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3467 | egrep "free" >/dev/null 2>&1; then | |
3468 | : | |
3469 | else | |
3470 | ac_cv_header_stdc=no | |
3471 | fi | |
3472 | rm -f conftest* | |
3473 | ||
3474 | fi | |
3475 | ||
3476 | if test $ac_cv_header_stdc = yes; then | |
3477 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3478 | if test "$cross_compiling" = yes; then | |
3479 | : | |
3480 | else | |
3481 | cat >conftest.$ac_ext <<_ACEOF | |
3482 | #line 3482 "configure" | |
3483 | #include "confdefs.h" | |
3484 | #include <ctype.h> | |
3485 | #if ((' ' & 0x0FF) == 0x020) | |
3486 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3487 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3488 | #else | |
3489 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
3490 | || ('j' <= (c) && (c) <= 'r') \ | |
3491 | || ('s' <= (c) && (c) <= 'z')) | |
3492 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3493 | #endif | |
3494 | ||
3495 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3496 | int | |
3497 | main () | |
3498 | { | |
3499 | int i; | |
3500 | for (i = 0; i < 256; i++) | |
3501 | if (XOR (islower (i), ISLOWER (i)) | |
3502 | || toupper (i) != TOUPPER (i)) | |
3503 | exit(2); | |
3504 | exit (0); | |
3505 | } | |
3506 | _ACEOF | |
3507 | rm -f conftest$ac_exeext | |
3508 | if { (eval echo "$as_me:3508: \"$ac_link\"") >&5 | |
3509 | (eval $ac_link) 2>&5 | |
3510 | ac_status=$? | |
3511 | echo "$as_me:3511: \$? = $ac_status" >&5 | |
3512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3513 | { (eval echo "$as_me:3513: \"$ac_try\"") >&5 | |
3514 | (eval $ac_try) 2>&5 | |
3515 | ac_status=$? | |
3516 | echo "$as_me:3516: \$? = $ac_status" >&5 | |
3517 | (exit $ac_status); }; }; then | |
3518 | : | |
3519 | else | |
3520 | echo "$as_me: program exited with status $ac_status" >&5 | |
3521 | echo "$as_me: failed program was:" >&5 | |
3522 | cat conftest.$ac_ext >&5 | |
3523 | ac_cv_header_stdc=no | |
3524 | fi | |
3525 | rm -f conftest$ac_exeext conftest.$ac_ext | |
3526 | fi | |
3527 | fi | |
3528 | fi | |
3529 | echo "$as_me:3529: result: $ac_cv_header_stdc" >&5 | |
3530 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3531 | if test $ac_cv_header_stdc = yes; then | |
3532 | ||
3533 | cat >>confdefs.h <<\EOF | |
3534 | #define STDC_HEADERS 1 | |
3535 | EOF | |
3536 | ||
3537 | fi | |
3538 | ||
3539 | for ac_header in string.h | |
3540 | do | |
3541 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
3542 | echo "$as_me:3542: checking for $ac_header" >&5 | |
3543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3544 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3546 | else | |
3547 | cat >conftest.$ac_ext <<_ACEOF | |
3548 | #line 3548 "configure" | |
3549 | #include "confdefs.h" | |
3550 | #include <$ac_header> | |
3551 | _ACEOF | |
3552 | if { (eval echo "$as_me:3552: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
3553 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
3554 | ac_status=$? | |
3555 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3556 | rm -f conftest.er1 | |
3557 | cat conftest.err >&5 | |
3558 | echo "$as_me:3558: \$? = $ac_status" >&5 | |
3559 | (exit $ac_status); }; then | |
3560 | if test -s conftest.err; then | |
3561 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3562 | else | |
3563 | ac_cpp_err= | |
3564 | fi | |
3565 | else | |
3566 | ac_cpp_err=yes | |
3567 | fi | |
3568 | if test -z "$ac_cpp_err"; then | |
3569 | eval "$ac_ac_Header=yes" | |
3570 | else | |
3571 | echo "$as_me: failed program was:" >&5 | |
3572 | cat conftest.$ac_ext >&5 | |
3573 | eval "$ac_ac_Header=no" | |
3574 | fi | |
3575 | rm -f conftest.err conftest.$ac_ext | |
3576 | fi | |
3577 | echo "$as_me:3577: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
3578 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
3579 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
3580 | cat >>confdefs.h <<EOF | |
3581 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
3582 | EOF | |
3583 | ||
3584 | fi | |
3585 | done | |
3586 | ||
3587 | fi | |
3588 | ||
3589 | # Checks for library functions. | |
3590 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
3591 | # for constant arguments. Useless! | |
3592 | echo "$as_me:3592: checking for working alloca.h" >&5 | |
3593 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
3594 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
3595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3596 | else | |
3597 | cat >conftest.$ac_ext <<_ACEOF | |
3598 | #line 3598 "configure" | |
3599 | #include "confdefs.h" | |
3600 | #include <alloca.h> | |
3601 | int | |
3602 | main () | |
3603 | { | |
3604 | char *p = (char *) alloca (2 * sizeof (int)); | |
3605 | ; | |
3606 | return 0; | |
3607 | } | |
3608 | _ACEOF | |
3609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3610 | if { (eval echo "$as_me:3610: \"$ac_link\"") >&5 | |
3611 | (eval $ac_link) 2>&5 | |
3612 | ac_status=$? | |
3613 | echo "$as_me:3613: \$? = $ac_status" >&5 | |
3614 | (exit $ac_status); } && | |
3615 | { ac_try='test -s conftest$ac_exeext' | |
3616 | { (eval echo "$as_me:3616: \"$ac_try\"") >&5 | |
3617 | (eval $ac_try) 2>&5 | |
3618 | ac_status=$? | |
3619 | echo "$as_me:3619: \$? = $ac_status" >&5 | |
3620 | (exit $ac_status); }; }; then | |
3621 | ac_cv_working_alloca_h=yes | |
3622 | else | |
3623 | echo "$as_me: failed program was:" >&5 | |
3624 | cat conftest.$ac_ext >&5 | |
3625 | ac_cv_working_alloca_h=no | |
3626 | fi | |
3627 | rm -f conftest$ac_exeext conftest.$ac_ext | |
3628 | fi | |
3629 | echo "$as_me:3629: result: $ac_cv_working_alloca_h" >&5 | |
3630 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
3631 | if test $ac_cv_working_alloca_h = yes; then | |
3632 | ||
3633 | cat >>confdefs.h <<\EOF | |
3634 | #define HAVE_ALLOCA_H 1 | |
3635 | EOF | |
3636 | ||
3637 | fi | |
3638 | ||
3639 | echo "$as_me:3639: checking for alloca" >&5 | |
3640 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
3641 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
3642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3643 | else | |
3644 | cat >conftest.$ac_ext <<_ACEOF | |
3645 | #line 3645 "configure" | |
3646 | #include "confdefs.h" | |
3647 | #ifdef __GNUC__ | |
3648 | # define alloca __builtin_alloca | |
3649 | #else | |
3650 | # ifdef _MSC_VER | |
3651 | # include <malloc.h> | |
3652 | # define alloca _alloca | |
3653 | # else | |
3654 | # if HAVE_ALLOCA_H | |
3655 | # include <alloca.h> | |
3656 | # else | |
3657 | # ifdef _AIX | |
3658 | #pragma alloca | |
3659 | # else | |
3660 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3661 | char *alloca (); | |
3662 | # endif | |
3663 | # endif | |
3664 | # endif | |
3665 | # endif | |
3666 | #endif | |
3667 | ||
3668 | int | |
3669 | main () | |
3670 | { | |
3671 | char *p = (char *) alloca (1); | |
3672 | ; | |
3673 | return 0; | |
3674 | } | |
3675 | _ACEOF | |
3676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3677 | if { (eval echo "$as_me:3677: \"$ac_link\"") >&5 | |
3678 | (eval $ac_link) 2>&5 | |
3679 | ac_status=$? | |
3680 | echo "$as_me:3680: \$? = $ac_status" >&5 | |
3681 | (exit $ac_status); } && | |
3682 | { ac_try='test -s conftest$ac_exeext' | |
3683 | { (eval echo "$as_me:3683: \"$ac_try\"") >&5 | |
3684 | (eval $ac_try) 2>&5 | |
3685 | ac_status=$? | |
3686 | echo "$as_me:3686: \$? = $ac_status" >&5 | |
3687 | (exit $ac_status); }; }; then | |
3688 | ac_cv_func_alloca_works=yes | |
3689 | else | |
3690 | echo "$as_me: failed program was:" >&5 | |
3691 | cat conftest.$ac_ext >&5 | |
3692 | ac_cv_func_alloca_works=no | |
3693 | fi | |
3694 | rm -f conftest$ac_exeext conftest.$ac_ext | |
3695 | fi | |
3696 | echo "$as_me:3696: result: $ac_cv_func_alloca_works" >&5 | |
3697 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
3698 | ||
3699 | if test $ac_cv_func_alloca_works = yes; then | |
3700 | ||
3701 | cat >>confdefs.h <<\EOF | |
3702 | #define HAVE_ALLOCA 1 | |
3703 | EOF | |
3704 | ||
3705 | else | |
3706 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3707 | # that cause trouble. Some versions do not even contain alloca or | |
3708 | # contain a buggy version. If you still want to use their alloca, | |
3709 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3710 | ||
3711 | ALLOCA=alloca.$ac_objext | |
3712 | ||
3713 | cat >>confdefs.h <<\EOF | |
3714 | #define C_ALLOCA 1 | |
3715 | EOF | |
3716 | ||
3717 | echo "$as_me:3717: checking whether \`alloca.c' needs Cray hooks" >&5 | |
3718 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
3719 | if test "${ac_cv_os_cray+set}" = set; then | |
3720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3721 | else | |
3722 | cat >conftest.$ac_ext <<_ACEOF | |
3723 | #line 3723 "configure" | |
3724 | #include "confdefs.h" | |
3725 | #if defined(CRAY) && ! defined(CRAY2) | |
3726 | webecray | |
3727 | #else | |
3728 | wenotbecray | |
3729 | #endif | |
3730 | ||
3731 | _ACEOF | |
3732 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3733 | egrep "webecray" >/dev/null 2>&1; then | |
3734 | ac_cv_os_cray=yes | |
3735 | else | |
3736 | ac_cv_os_cray=no | |
3737 | fi | |
3738 | rm -f conftest* | |
3739 | ||
3740 | fi | |
3741 | echo "$as_me:3741: result: $ac_cv_os_cray" >&5 | |
3742 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
3743 | if test $ac_cv_os_cray = yes; then | |
3744 | for ac_func in _getb67 GETB67 getb67; do | |
3745 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
3746 | echo "$as_me:3746: checking for $ac_func" >&5 | |
3747 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3748 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
3749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3750 | else | |
3751 | cat >conftest.$ac_ext <<_ACEOF | |
3752 | #line 3752 "configure" | |
3753 | #include "confdefs.h" | |
3754 | /* System header to define __stub macros and hopefully few prototypes, | |
3755 | which can conflict with char $ac_func (); below. */ | |
3756 | #include <assert.h> | |
3757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3758 | #ifdef __cplusplus | |
3759 | extern "C" | |
3760 | #endif | |
3761 | /* We use char because int might match the return type of a gcc2 | |
3762 | builtin and then its argument prototype would still apply. */ | |
3763 | char $ac_func (); | |
3764 | char (*f) (); | |
3765 | ||
3766 | int | |
3767 | main () | |
3768 | { | |
3769 | /* The GNU C library defines this for functions which it implements | |
3770 | to always fail with ENOSYS. Some functions are actually named | |
3771 | something starting with __ and the normal name is an alias. */ | |
3772 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3773 | choke me | |
3774 | #else | |
3775 | f = $ac_func; | |
3776 | #endif | |
3777 | ||
3778 | ; | |
3779 | return 0; | |
3780 | } | |
3781 | _ACEOF | |
3782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3783 | if { (eval echo "$as_me:3783: \"$ac_link\"") >&5 | |
3784 | (eval $ac_link) 2>&5 | |
3785 | ac_status=$? | |
3786 | echo "$as_me:3786: \$? = $ac_status" >&5 | |
3787 | (exit $ac_status); } && | |
3788 | { ac_try='test -s conftest$ac_exeext' | |
3789 | { (eval echo "$as_me:3789: \"$ac_try\"") >&5 | |
3790 | (eval $ac_try) 2>&5 | |
3791 | ac_status=$? | |
3792 | echo "$as_me:3792: \$? = $ac_status" >&5 | |
3793 | (exit $ac_status); }; }; then | |
3794 | eval "$ac_ac_var=yes" | |
3795 | else | |
3796 | echo "$as_me: failed program was:" >&5 | |
3797 | cat conftest.$ac_ext >&5 | |
3798 | eval "$ac_ac_var=no" | |
3799 | fi | |
3800 | rm -f conftest$ac_exeext conftest.$ac_ext | |
3801 | fi | |
3802 | echo "$as_me:3802: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
3803 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
3804 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
3805 | ||
3806 | cat >>confdefs.h <<EOF | |
3807 | #define CRAY_STACKSEG_END $ac_func | |
3808 | EOF | |
3809 | ||
3810 | break | |
3811 | fi | |
3812 | ||
3813 | done | |
3814 | fi | |
3815 | ||
3816 | echo "$as_me:3816: checking stack direction for C alloca" >&5 | |
3817 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
3818 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
3819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3820 | else | |
3821 | if test "$cross_compiling" = yes; then | |
3822 | ac_cv_c_stack_direction=0 | |
3823 | else | |
3824 | cat >conftest.$ac_ext <<_ACEOF | |
3825 | #line 3825 "configure" | |
3826 | #include "confdefs.h" | |
3827 | int | |
3828 | find_stack_direction () | |
3829 | { | |
3830 | static char *addr = 0; | |
3831 | auto char dummy; | |
3832 | if (addr == 0) | |
3833 | { | |
3834 | addr = &dummy; | |
3835 | return find_stack_direction (); | |
3836 | } | |
3837 | else | |
3838 | return (&dummy > addr) ? 1 : -1; | |
3839 | } | |
3840 | ||
3841 | int | |
3842 | main () | |
3843 | { | |
3844 | exit (find_stack_direction () < 0); | |
3845 | } | |
3846 | _ACEOF | |
3847 | rm -f conftest$ac_exeext | |
3848 | if { (eval echo "$as_me:3848: \"$ac_link\"") >&5 | |
3849 | (eval $ac_link) 2>&5 | |
3850 | ac_status=$? | |
3851 | echo "$as_me:3851: \$? = $ac_status" >&5 | |
3852 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3853 | { (eval echo "$as_me:3853: \"$ac_try\"") >&5 | |
3854 | (eval $ac_try) 2>&5 | |
3855 | ac_status=$? | |
3856 | echo "$as_me:3856: \$? = $ac_status" >&5 | |
3857 | (exit $ac_status); }; }; then | |
3858 | ac_cv_c_stack_direction=1 | |
3859 | else | |
3860 | echo "$as_me: program exited with status $ac_status" >&5 | |
3861 | echo "$as_me: failed program was:" >&5 | |
3862 | cat conftest.$ac_ext >&5 | |
3863 | ac_cv_c_stack_direction=-1 | |
3864 | fi | |
3865 | rm -f conftest$ac_exeext conftest.$ac_ext | |
3866 | fi | |
3867 | fi | |
3868 | echo "$as_me:3868: result: $ac_cv_c_stack_direction" >&5 | |
3869 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
3870 | ||
3871 | cat >>confdefs.h <<EOF | |
3872 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
3873 | EOF | |
3874 | ||
3875 | fi | |
3876 | ||
3877 | for ac_func in mkstemp setlocale | |
3878 | do | |
3879 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
3880 | echo "$as_me:3880: checking for $ac_func" >&5 | |
3881 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3882 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
3883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3884 | else | |
3885 | cat >conftest.$ac_ext <<_ACEOF | |
3886 | #line 3886 "configure" | |
3887 | #include "confdefs.h" | |
3888 | /* System header to define __stub macros and hopefully few prototypes, | |
3889 | which can conflict with char $ac_func (); below. */ | |
3890 | #include <assert.h> | |
3891 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3892 | #ifdef __cplusplus | |
3893 | extern "C" | |
3894 | #endif | |
3895 | /* We use char because int might match the return type of a gcc2 | |
3896 | builtin and then its argument prototype would still apply. */ | |
3897 | char $ac_func (); | |
3898 | char (*f) (); | |
3899 | ||
3900 | int | |
3901 | main () | |
3902 | { | |
3903 | /* The GNU C library defines this for functions which it implements | |
3904 | to always fail with ENOSYS. Some functions are actually named | |
3905 | something starting with __ and the normal name is an alias. */ | |
3906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3907 | choke me | |
3908 | #else | |
3909 | f = $ac_func; | |
3910 | #endif | |
3911 | ||
3912 | ; | |
3913 | return 0; | |
3914 | } | |
3915 | _ACEOF | |
3916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3917 | if { (eval echo "$as_me:3917: \"$ac_link\"") >&5 | |
3918 | (eval $ac_link) 2>&5 | |
3919 | ac_status=$? | |
3920 | echo "$as_me:3920: \$? = $ac_status" >&5 | |
3921 | (exit $ac_status); } && | |
3922 | { ac_try='test -s conftest$ac_exeext' | |
3923 | { (eval echo "$as_me:3923: \"$ac_try\"") >&5 | |
3924 | (eval $ac_try) 2>&5 | |
3925 | ac_status=$? | |
3926 | echo "$as_me:3926: \$? = $ac_status" >&5 | |
3927 | (exit $ac_status); }; }; then | |
3928 | eval "$ac_ac_var=yes" | |
3929 | else | |
3930 | echo "$as_me: failed program was:" >&5 | |
3931 | cat conftest.$ac_ext >&5 | |
3932 | eval "$ac_ac_var=no" | |
3933 | fi | |
3934 | rm -f conftest$ac_exeext conftest.$ac_ext | |
3935 | fi | |
3936 | echo "$as_me:3936: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
3937 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
3938 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
3939 | cat >>confdefs.h <<EOF | |
3940 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
3941 | EOF | |
3942 | ||
3943 | fi | |
3944 | done | |
3945 | ||
3946 | for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h | |
3947 | do | |
3948 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
3949 | echo "$as_me:3949: checking for $ac_header" >&5 | |
3950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3951 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
3952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3953 | else | |
3954 | cat >conftest.$ac_ext <<_ACEOF | |
3955 | #line 3955 "configure" | |
3956 | #include "confdefs.h" | |
3957 | #include <$ac_header> | |
3958 | _ACEOF | |
3959 | if { (eval echo "$as_me:3959: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
3960 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
3961 | ac_status=$? | |
3962 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3963 | rm -f conftest.er1 | |
3964 | cat conftest.err >&5 | |
3965 | echo "$as_me:3965: \$? = $ac_status" >&5 | |
3966 | (exit $ac_status); }; then | |
3967 | if test -s conftest.err; then | |
3968 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3969 | else | |
3970 | ac_cpp_err= | |
3971 | fi | |
3972 | else | |
3973 | ac_cpp_err=yes | |
3974 | fi | |
3975 | if test -z "$ac_cpp_err"; then | |
3976 | eval "$ac_ac_Header=yes" | |
3977 | else | |
3978 | echo "$as_me: failed program was:" >&5 | |
3979 | cat conftest.$ac_ext >&5 | |
3980 | eval "$ac_ac_Header=no" | |
3981 | fi | |
3982 | rm -f conftest.err conftest.$ac_ext | |
3983 | fi | |
3984 | echo "$as_me:3984: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
3985 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
3986 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
3987 | cat >>confdefs.h <<EOF | |
3988 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
3989 | EOF | |
3990 | ||
3991 | fi | |
3992 | done | |
3993 | ||
3994 | echo "$as_me:3994: checking whether stpcpy is declared" >&5 | |
3995 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 | |
3996 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
3997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3998 | else | |
3999 | cat >conftest.$ac_ext <<_ACEOF | |
4000 | #line 4000 "configure" | |
4001 | #include "confdefs.h" | |
4002 | $ac_includes_default | |
4003 | int | |
4004 | main () | |
4005 | { | |
4006 | #ifndef stpcpy | |
4007 | char *p = (char *) stpcpy; | |
4008 | #endif | |
4009 | ||
4010 | ; | |
4011 | return 0; | |
4012 | } | |
4013 | _ACEOF | |
4014 | rm -f conftest.$ac_objext | |
4015 | if { (eval echo "$as_me:4015: \"$ac_compile\"") >&5 | |
4016 | (eval $ac_compile) 2>&5 | |
4017 | ac_status=$? | |
4018 | echo "$as_me:4018: \$? = $ac_status" >&5 | |
4019 | (exit $ac_status); } && | |
4020 | { ac_try='test -s conftest.$ac_objext' | |
4021 | { (eval echo "$as_me:4021: \"$ac_try\"") >&5 | |
4022 | (eval $ac_try) 2>&5 | |
4023 | ac_status=$? | |
4024 | echo "$as_me:4024: \$? = $ac_status" >&5 | |
4025 | (exit $ac_status); }; }; then | |
4026 | ac_cv_have_decl_stpcpy=yes | |
4027 | else | |
4028 | echo "$as_me: failed program was:" >&5 | |
4029 | cat conftest.$ac_ext >&5 | |
4030 | ac_cv_have_decl_stpcpy=no | |
4031 | fi | |
4032 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4033 | fi | |
4034 | echo "$as_me:4034: result: $ac_cv_have_decl_stpcpy" >&5 | |
4035 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 | |
4036 | if test $ac_cv_have_decl_stpcpy = yes; then | |
4037 | ||
4038 | cat >>confdefs.h <<EOF | |
4039 | #define HAVE_DECL_STPCPY 1 | |
4040 | EOF | |
4041 | ||
4042 | else | |
4043 | cat >>confdefs.h <<EOF | |
4044 | #define HAVE_DECL_STPCPY 0 | |
4045 | EOF | |
4046 | ||
4047 | fi | |
4048 | echo "$as_me:4048: checking whether strndup is declared" >&5 | |
4049 | echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6 | |
4050 | if test "${ac_cv_have_decl_strndup+set}" = set; then | |
4051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4052 | else | |
4053 | cat >conftest.$ac_ext <<_ACEOF | |
4054 | #line 4054 "configure" | |
4055 | #include "confdefs.h" | |
4056 | $ac_includes_default | |
4057 | int | |
4058 | main () | |
4059 | { | |
4060 | #ifndef strndup | |
4061 | char *p = (char *) strndup; | |
4062 | #endif | |
4063 | ||
4064 | ; | |
4065 | return 0; | |
4066 | } | |
4067 | _ACEOF | |
4068 | rm -f conftest.$ac_objext | |
4069 | if { (eval echo "$as_me:4069: \"$ac_compile\"") >&5 | |
4070 | (eval $ac_compile) 2>&5 | |
4071 | ac_status=$? | |
4072 | echo "$as_me:4072: \$? = $ac_status" >&5 | |
4073 | (exit $ac_status); } && | |
4074 | { ac_try='test -s conftest.$ac_objext' | |
4075 | { (eval echo "$as_me:4075: \"$ac_try\"") >&5 | |
4076 | (eval $ac_try) 2>&5 | |
4077 | ac_status=$? | |
4078 | echo "$as_me:4078: \$? = $ac_status" >&5 | |
4079 | (exit $ac_status); }; }; then | |
4080 | ac_cv_have_decl_strndup=yes | |
4081 | else | |
4082 | echo "$as_me: failed program was:" >&5 | |
4083 | cat conftest.$ac_ext >&5 | |
4084 | ac_cv_have_decl_strndup=no | |
4085 | fi | |
4086 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4087 | fi | |
4088 | echo "$as_me:4088: result: $ac_cv_have_decl_strndup" >&5 | |
4089 | echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6 | |
4090 | if test $ac_cv_have_decl_strndup = yes; then | |
4091 | ||
4092 | cat >>confdefs.h <<EOF | |
4093 | #define HAVE_DECL_STRNDUP 1 | |
4094 | EOF | |
4095 | ||
4096 | else | |
4097 | cat >>confdefs.h <<EOF | |
4098 | #define HAVE_DECL_STRNDUP 0 | |
4099 | EOF | |
4100 | ||
4101 | fi | |
4102 | echo "$as_me:4102: checking whether strnlen is declared" >&5 | |
4103 | echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6 | |
4104 | if test "${ac_cv_have_decl_strnlen+set}" = set; then | |
4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4106 | else | |
4107 | cat >conftest.$ac_ext <<_ACEOF | |
4108 | #line 4108 "configure" | |
4109 | #include "confdefs.h" | |
4110 | $ac_includes_default | |
4111 | int | |
4112 | main () | |
4113 | { | |
4114 | #ifndef strnlen | |
4115 | char *p = (char *) strnlen; | |
4116 | #endif | |
4117 | ||
4118 | ; | |
4119 | return 0; | |
4120 | } | |
4121 | _ACEOF | |
4122 | rm -f conftest.$ac_objext | |
4123 | if { (eval echo "$as_me:4123: \"$ac_compile\"") >&5 | |
4124 | (eval $ac_compile) 2>&5 | |
4125 | ac_status=$? | |
4126 | echo "$as_me:4126: \$? = $ac_status" >&5 | |
4127 | (exit $ac_status); } && | |
4128 | { ac_try='test -s conftest.$ac_objext' | |
4129 | { (eval echo "$as_me:4129: \"$ac_try\"") >&5 | |
4130 | (eval $ac_try) 2>&5 | |
4131 | ac_status=$? | |
4132 | echo "$as_me:4132: \$? = $ac_status" >&5 | |
4133 | (exit $ac_status); }; }; then | |
4134 | ac_cv_have_decl_strnlen=yes | |
4135 | else | |
4136 | echo "$as_me: failed program was:" >&5 | |
4137 | cat conftest.$ac_ext >&5 | |
4138 | ac_cv_have_decl_strnlen=no | |
4139 | fi | |
4140 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4141 | fi | |
4142 | echo "$as_me:4142: result: $ac_cv_have_decl_strnlen" >&5 | |
4143 | echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6 | |
4144 | if test $ac_cv_have_decl_strnlen = yes; then | |
4145 | ||
4146 | cat >>confdefs.h <<EOF | |
4147 | #define HAVE_DECL_STRNLEN 1 | |
4148 | EOF | |
4149 | ||
4150 | else | |
4151 | cat >>confdefs.h <<EOF | |
4152 | #define HAVE_DECL_STRNLEN 0 | |
4153 | EOF | |
4154 | ||
4155 | fi | |
4156 | echo "$as_me:4156: checking whether memchr is declared" >&5 | |
4157 | echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6 | |
4158 | if test "${ac_cv_have_decl_memchr+set}" = set; then | |
4159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4160 | else | |
4161 | cat >conftest.$ac_ext <<_ACEOF | |
4162 | #line 4162 "configure" | |
4163 | #include "confdefs.h" | |
4164 | $ac_includes_default | |
4165 | int | |
4166 | main () | |
4167 | { | |
4168 | #ifndef memchr | |
4169 | char *p = (char *) memchr; | |
4170 | #endif | |
4171 | ||
4172 | ; | |
4173 | return 0; | |
4174 | } | |
4175 | _ACEOF | |
4176 | rm -f conftest.$ac_objext | |
4177 | if { (eval echo "$as_me:4177: \"$ac_compile\"") >&5 | |
4178 | (eval $ac_compile) 2>&5 | |
4179 | ac_status=$? | |
4180 | echo "$as_me:4180: \$? = $ac_status" >&5 | |
4181 | (exit $ac_status); } && | |
4182 | { ac_try='test -s conftest.$ac_objext' | |
4183 | { (eval echo "$as_me:4183: \"$ac_try\"") >&5 | |
4184 | (eval $ac_try) 2>&5 | |
4185 | ac_status=$? | |
4186 | echo "$as_me:4186: \$? = $ac_status" >&5 | |
4187 | (exit $ac_status); }; }; then | |
4188 | ac_cv_have_decl_memchr=yes | |
4189 | else | |
4190 | echo "$as_me: failed program was:" >&5 | |
4191 | cat conftest.$ac_ext >&5 | |
4192 | ac_cv_have_decl_memchr=no | |
4193 | fi | |
4194 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4195 | fi | |
4196 | echo "$as_me:4196: result: $ac_cv_have_decl_memchr" >&5 | |
4197 | echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6 | |
4198 | if test $ac_cv_have_decl_memchr = yes; then | |
4199 | ||
4200 | cat >>confdefs.h <<EOF | |
4201 | #define HAVE_DECL_MEMCHR 1 | |
4202 | EOF | |
4203 | ||
4204 | else | |
4205 | cat >>confdefs.h <<EOF | |
4206 | #define HAVE_DECL_MEMCHR 0 | |
4207 | EOF | |
4208 | ||
4209 | fi | |
4210 | ||
4211 | for ac_func in stpcpy strndup strnlen memchr | |
4212 | do | |
4213 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
4214 | echo "$as_me:4214: checking for $ac_func" >&5 | |
4215 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4216 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
4217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4218 | else | |
4219 | cat >conftest.$ac_ext <<_ACEOF | |
4220 | #line 4220 "configure" | |
4221 | #include "confdefs.h" | |
4222 | /* System header to define __stub macros and hopefully few prototypes, | |
4223 | which can conflict with char $ac_func (); below. */ | |
4224 | #include <assert.h> | |
4225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4226 | #ifdef __cplusplus | |
4227 | extern "C" | |
4228 | #endif | |
4229 | /* We use char because int might match the return type of a gcc2 | |
4230 | builtin and then its argument prototype would still apply. */ | |
4231 | char $ac_func (); | |
4232 | char (*f) (); | |
4233 | ||
4234 | int | |
4235 | main () | |
4236 | { | |
4237 | /* The GNU C library defines this for functions which it implements | |
4238 | to always fail with ENOSYS. Some functions are actually named | |
4239 | something starting with __ and the normal name is an alias. */ | |
4240 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4241 | choke me | |
4242 | #else | |
4243 | f = $ac_func; | |
4244 | #endif | |
4245 | ||
4246 | ; | |
4247 | return 0; | |
4248 | } | |
4249 | _ACEOF | |
4250 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4251 | if { (eval echo "$as_me:4251: \"$ac_link\"") >&5 | |
4252 | (eval $ac_link) 2>&5 | |
4253 | ac_status=$? | |
4254 | echo "$as_me:4254: \$? = $ac_status" >&5 | |
4255 | (exit $ac_status); } && | |
4256 | { ac_try='test -s conftest$ac_exeext' | |
4257 | { (eval echo "$as_me:4257: \"$ac_try\"") >&5 | |
4258 | (eval $ac_try) 2>&5 | |
4259 | ac_status=$? | |
4260 | echo "$as_me:4260: \$? = $ac_status" >&5 | |
4261 | (exit $ac_status); }; }; then | |
4262 | eval "$ac_ac_var=yes" | |
4263 | else | |
4264 | echo "$as_me: failed program was:" >&5 | |
4265 | cat conftest.$ac_ext >&5 | |
4266 | eval "$ac_ac_var=no" | |
4267 | fi | |
4268 | rm -f conftest$ac_exeext conftest.$ac_ext | |
4269 | fi | |
4270 | echo "$as_me:4270: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
4271 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
4272 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
4273 | cat >>confdefs.h <<EOF | |
4274 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
4275 | EOF | |
4276 | ||
4277 | else | |
4278 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
4279 | fi | |
4280 | done | |
4281 | ||
4282 | cat >>confdefs.h <<EOF | |
4283 | #define HAVE_DONE_WORKING_MALLOC_CHECK 1 | |
4284 | EOF | |
4285 | ||
4286 | echo "$as_me:4286: checking for working malloc" >&5 | |
4287 | echo $ECHO_N "checking for working malloc... $ECHO_C" >&6 | |
4288 | if test "${jm_cv_func_working_malloc+set}" = set; then | |
4289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4290 | else | |
4291 | if test "$cross_compiling" = yes; then | |
4292 | jm_cv_func_working_malloc=no | |
4293 | else | |
4294 | cat >conftest.$ac_ext <<_ACEOF | |
4295 | #line 4295 "configure" | |
4296 | #include "confdefs.h" | |
4297 | ||
4298 | char *malloc (); | |
4299 | int | |
4300 | main () | |
4301 | { | |
4302 | exit (malloc (0) ? 0 : 1); | |
4303 | } | |
4304 | ||
4305 | _ACEOF | |
4306 | rm -f conftest$ac_exeext | |
4307 | if { (eval echo "$as_me:4307: \"$ac_link\"") >&5 | |
4308 | (eval $ac_link) 2>&5 | |
4309 | ac_status=$? | |
4310 | echo "$as_me:4310: \$? = $ac_status" >&5 | |
4311 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4312 | { (eval echo "$as_me:4312: \"$ac_try\"") >&5 | |
4313 | (eval $ac_try) 2>&5 | |
4314 | ac_status=$? | |
4315 | echo "$as_me:4315: \$? = $ac_status" >&5 | |
4316 | (exit $ac_status); }; }; then | |
4317 | jm_cv_func_working_malloc=yes | |
4318 | else | |
4319 | echo "$as_me: program exited with status $ac_status" >&5 | |
4320 | echo "$as_me: failed program was:" >&5 | |
4321 | cat conftest.$ac_ext >&5 | |
4322 | jm_cv_func_working_malloc=no | |
4323 | fi | |
4324 | rm -f conftest$ac_exeext conftest.$ac_ext | |
4325 | fi | |
4326 | ||
4327 | fi | |
4328 | echo "$as_me:4328: result: $jm_cv_func_working_malloc" >&5 | |
4329 | echo "${ECHO_T}$jm_cv_func_working_malloc" >&6 | |
4330 | if test $jm_cv_func_working_malloc = no; then | |
4331 | ||
4332 | LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
4333 | ||
4334 | cat >>confdefs.h <<EOF | |
4335 | #define malloc rpl_malloc | |
4336 | EOF | |
4337 | ||
4338 | fi | |
4339 | ||
4340 | cat >>confdefs.h <<EOF | |
4341 | #define HAVE_DONE_WORKING_REALLOC_CHECK 1 | |
4342 | EOF | |
4343 | ||
4344 | echo "$as_me:4344: checking for working realloc" >&5 | |
4345 | echo $ECHO_N "checking for working realloc... $ECHO_C" >&6 | |
4346 | if test "${jm_cv_func_working_realloc+set}" = set; then | |
4347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4348 | else | |
4349 | if test "$cross_compiling" = yes; then | |
4350 | jm_cv_func_working_realloc=no | |
4351 | else | |
4352 | cat >conftest.$ac_ext <<_ACEOF | |
4353 | #line 4353 "configure" | |
4354 | #include "confdefs.h" | |
4355 | ||
4356 | char *realloc (); | |
4357 | int | |
4358 | main () | |
4359 | { | |
4360 | exit (realloc (0, 0) ? 0 : 1); | |
4361 | } | |
4362 | ||
4363 | _ACEOF | |
4364 | rm -f conftest$ac_exeext | |
4365 | if { (eval echo "$as_me:4365: \"$ac_link\"") >&5 | |
4366 | (eval $ac_link) 2>&5 | |
4367 | ac_status=$? | |
4368 | echo "$as_me:4368: \$? = $ac_status" >&5 | |
4369 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4370 | { (eval echo "$as_me:4370: \"$ac_try\"") >&5 | |
4371 | (eval $ac_try) 2>&5 | |
4372 | ac_status=$? | |
4373 | echo "$as_me:4373: \$? = $ac_status" >&5 | |
4374 | (exit $ac_status); }; }; then | |
4375 | jm_cv_func_working_realloc=yes | |
4376 | else | |
4377 | echo "$as_me: program exited with status $ac_status" >&5 | |
4378 | echo "$as_me: failed program was:" >&5 | |
4379 | cat conftest.$ac_ext >&5 | |
4380 | jm_cv_func_working_realloc=no | |
4381 | fi | |
4382 | rm -f conftest$ac_exeext conftest.$ac_ext | |
4383 | fi | |
4384 | ||
4385 | fi | |
4386 | echo "$as_me:4386: result: $jm_cv_func_working_realloc" >&5 | |
4387 | echo "${ECHO_T}$jm_cv_func_working_realloc" >&6 | |
4388 | if test $jm_cv_func_working_realloc = no; then | |
4389 | ||
4390 | LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
4391 | ||
4392 | cat >>confdefs.h <<EOF | |
4393 | #define realloc rpl_realloc | |
4394 | EOF | |
4395 | ||
4396 | fi | |
4397 | ||
4398 | for ac_func in isascii iswprint mbrtowc | |
4399 | do | |
4400 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
4401 | echo "$as_me:4401: checking for $ac_func" >&5 | |
4402 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4403 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
4404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4405 | else | |
4406 | cat >conftest.$ac_ext <<_ACEOF | |
4407 | #line 4407 "configure" | |
4408 | #include "confdefs.h" | |
4409 | /* System header to define __stub macros and hopefully few prototypes, | |
4410 | which can conflict with char $ac_func (); below. */ | |
4411 | #include <assert.h> | |
4412 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4413 | #ifdef __cplusplus | |
4414 | extern "C" | |
4415 | #endif | |
4416 | /* We use char because int might match the return type of a gcc2 | |
4417 | builtin and then its argument prototype would still apply. */ | |
4418 | char $ac_func (); | |
4419 | char (*f) (); | |
4420 | ||
4421 | int | |
4422 | main () | |
4423 | { | |
4424 | /* The GNU C library defines this for functions which it implements | |
4425 | to always fail with ENOSYS. Some functions are actually named | |
4426 | something starting with __ and the normal name is an alias. */ | |
4427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4428 | choke me | |
4429 | #else | |
4430 | f = $ac_func; | |
4431 | #endif | |
4432 | ||
4433 | ; | |
4434 | return 0; | |
4435 | } | |
4436 | _ACEOF | |
4437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4438 | if { (eval echo "$as_me:4438: \"$ac_link\"") >&5 | |
4439 | (eval $ac_link) 2>&5 | |
4440 | ac_status=$? | |
4441 | echo "$as_me:4441: \$? = $ac_status" >&5 | |
4442 | (exit $ac_status); } && | |
4443 | { ac_try='test -s conftest$ac_exeext' | |
4444 | { (eval echo "$as_me:4444: \"$ac_try\"") >&5 | |
4445 | (eval $ac_try) 2>&5 | |
4446 | ac_status=$? | |
4447 | echo "$as_me:4447: \$? = $ac_status" >&5 | |
4448 | (exit $ac_status); }; }; then | |
4449 | eval "$ac_ac_var=yes" | |
4450 | else | |
4451 | echo "$as_me: failed program was:" >&5 | |
4452 | cat conftest.$ac_ext >&5 | |
4453 | eval "$ac_ac_var=no" | |
4454 | fi | |
4455 | rm -f conftest$ac_exeext conftest.$ac_ext | |
4456 | fi | |
4457 | echo "$as_me:4457: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
4458 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
4459 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
4460 | cat >>confdefs.h <<EOF | |
4461 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
4462 | EOF | |
4463 | ||
4464 | fi | |
4465 | done | |
4466 | ||
4467 | for ac_header in limits.h stdlib.h string.h wchar.h wctype.h | |
4468 | do | |
4469 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
4470 | echo "$as_me:4470: checking for $ac_header" >&5 | |
4471 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4472 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
4473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4474 | else | |
4475 | cat >conftest.$ac_ext <<_ACEOF | |
4476 | #line 4476 "configure" | |
4477 | #include "confdefs.h" | |
4478 | #include <$ac_header> | |
4479 | _ACEOF | |
4480 | if { (eval echo "$as_me:4480: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
4481 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
4482 | ac_status=$? | |
4483 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4484 | rm -f conftest.er1 | |
4485 | cat conftest.err >&5 | |
4486 | echo "$as_me:4486: \$? = $ac_status" >&5 | |
4487 | (exit $ac_status); }; then | |
4488 | if test -s conftest.err; then | |
4489 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4490 | else | |
4491 | ac_cpp_err= | |
4492 | fi | |
4493 | else | |
4494 | ac_cpp_err=yes | |
4495 | fi | |
4496 | if test -z "$ac_cpp_err"; then | |
4497 | eval "$ac_ac_Header=yes" | |
4498 | else | |
4499 | echo "$as_me: failed program was:" >&5 | |
4500 | cat conftest.$ac_ext >&5 | |
4501 | eval "$ac_ac_Header=no" | |
4502 | fi | |
4503 | rm -f conftest.err conftest.$ac_ext | |
4504 | fi | |
4505 | echo "$as_me:4505: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
4506 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
4507 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
4508 | cat >>confdefs.h <<EOF | |
4509 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
4510 | EOF | |
4511 | ||
4512 | fi | |
4513 | done | |
4514 | ||
4515 | echo "$as_me:4515: checking for ANSI C header files" >&5 | |
4516 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4517 | if test "${ac_cv_header_stdc+set}" = set; then | |
4518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4519 | else | |
4520 | cat >conftest.$ac_ext <<_ACEOF | |
4521 | #line 4521 "configure" | |
4522 | #include "confdefs.h" | |
4523 | #include <stdlib.h> | |
4524 | #include <stdarg.h> | |
4525 | #include <string.h> | |
4526 | #include <float.h> | |
4527 | ||
4528 | _ACEOF | |
4529 | if { (eval echo "$as_me:4529: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
4530 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
4531 | ac_status=$? | |
4532 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4533 | rm -f conftest.er1 | |
4534 | cat conftest.err >&5 | |
4535 | echo "$as_me:4535: \$? = $ac_status" >&5 | |
4536 | (exit $ac_status); }; then | |
4537 | if test -s conftest.err; then | |
4538 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4539 | else | |
4540 | ac_cpp_err= | |
4541 | fi | |
4542 | else | |
4543 | ac_cpp_err=yes | |
4544 | fi | |
4545 | if test -z "$ac_cpp_err"; then | |
4546 | ac_cv_header_stdc=yes | |
4547 | else | |
4548 | echo "$as_me: failed program was:" >&5 | |
4549 | cat conftest.$ac_ext >&5 | |
4550 | ac_cv_header_stdc=no | |
4551 | fi | |
4552 | rm -f conftest.err conftest.$ac_ext | |
4553 | ||
4554 | if test $ac_cv_header_stdc = yes; then | |
4555 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4556 | cat >conftest.$ac_ext <<_ACEOF | |
4557 | #line 4557 "configure" | |
4558 | #include "confdefs.h" | |
4559 | #include <string.h> | |
4560 | ||
4561 | _ACEOF | |
4562 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4563 | egrep "memchr" >/dev/null 2>&1; then | |
4564 | : | |
4565 | else | |
4566 | ac_cv_header_stdc=no | |
4567 | fi | |
4568 | rm -f conftest* | |
4569 | ||
4570 | fi | |
4571 | ||
4572 | if test $ac_cv_header_stdc = yes; then | |
4573 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4574 | cat >conftest.$ac_ext <<_ACEOF | |
4575 | #line 4575 "configure" | |
4576 | #include "confdefs.h" | |
4577 | #include <stdlib.h> | |
4578 | ||
4579 | _ACEOF | |
4580 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4581 | egrep "free" >/dev/null 2>&1; then | |
4582 | : | |
4583 | else | |
4584 | ac_cv_header_stdc=no | |
4585 | fi | |
4586 | rm -f conftest* | |
4587 | ||
4588 | fi | |
4589 | ||
4590 | if test $ac_cv_header_stdc = yes; then | |
4591 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4592 | if test "$cross_compiling" = yes; then | |
4593 | : | |
4594 | else | |
4595 | cat >conftest.$ac_ext <<_ACEOF | |
4596 | #line 4596 "configure" | |
4597 | #include "confdefs.h" | |
4598 | #include <ctype.h> | |
4599 | #if ((' ' & 0x0FF) == 0x020) | |
4600 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4601 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4602 | #else | |
4603 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4604 | || ('j' <= (c) && (c) <= 'r') \ | |
4605 | || ('s' <= (c) && (c) <= 'z')) | |
4606 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4607 | #endif | |
4608 | ||
4609 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4610 | int | |
4611 | main () | |
4612 | { | |
4613 | int i; | |
4614 | for (i = 0; i < 256; i++) | |
4615 | if (XOR (islower (i), ISLOWER (i)) | |
4616 | || toupper (i) != TOUPPER (i)) | |
4617 | exit(2); | |
4618 | exit (0); | |
4619 | } | |
4620 | _ACEOF | |
4621 | rm -f conftest$ac_exeext | |
4622 | if { (eval echo "$as_me:4622: \"$ac_link\"") >&5 | |
4623 | (eval $ac_link) 2>&5 | |
4624 | ac_status=$? | |
4625 | echo "$as_me:4625: \$? = $ac_status" >&5 | |
4626 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4627 | { (eval echo "$as_me:4627: \"$ac_try\"") >&5 | |
4628 | (eval $ac_try) 2>&5 | |
4629 | ac_status=$? | |
4630 | echo "$as_me:4630: \$? = $ac_status" >&5 | |
4631 | (exit $ac_status); }; }; then | |
4632 | : | |
4633 | else | |
4634 | echo "$as_me: program exited with status $ac_status" >&5 | |
4635 | echo "$as_me: failed program was:" >&5 | |
4636 | cat conftest.$ac_ext >&5 | |
4637 | ac_cv_header_stdc=no | |
4638 | fi | |
4639 | rm -f conftest$ac_exeext conftest.$ac_ext | |
4640 | fi | |
4641 | fi | |
4642 | fi | |
4643 | echo "$as_me:4643: result: $ac_cv_header_stdc" >&5 | |
4644 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4645 | if test $ac_cv_header_stdc = yes; then | |
4646 | ||
4647 | cat >>confdefs.h <<\EOF | |
4648 | #define STDC_HEADERS 1 | |
4649 | EOF | |
4650 | ||
4651 | fi | |
4652 | ||
4653 | echo "$as_me:4653: checking whether backslash-a works in strings" >&5 | |
4654 | echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6 | |
4655 | if test "${ac_cv_c_backslash_a+set}" = set; then | |
4656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4657 | else | |
4658 | cat >conftest.$ac_ext <<_ACEOF | |
4659 | #line 4659 "configure" | |
4660 | #include "confdefs.h" | |
4661 | ||
4662 | int | |
4663 | main () | |
4664 | { | |
4665 | ||
4666 | #if '\a' == 'a' | |
4667 | syntax error; | |
4668 | #endif | |
4669 | char buf['\a' == 'a' ? -1 : 1]; | |
4670 | buf[0] = '\a'; | |
4671 | return buf[0] != "\a"[0]; | |
4672 | ||
4673 | ; | |
4674 | return 0; | |
4675 | } | |
4676 | _ACEOF | |
4677 | rm -f conftest.$ac_objext | |
4678 | if { (eval echo "$as_me:4678: \"$ac_compile\"") >&5 | |
4679 | (eval $ac_compile) 2>&5 | |
4680 | ac_status=$? | |
4681 | echo "$as_me:4681: \$? = $ac_status" >&5 | |
4682 | (exit $ac_status); } && | |
4683 | { ac_try='test -s conftest.$ac_objext' | |
4684 | { (eval echo "$as_me:4684: \"$ac_try\"") >&5 | |
4685 | (eval $ac_try) 2>&5 | |
4686 | ac_status=$? | |
4687 | echo "$as_me:4687: \$? = $ac_status" >&5 | |
4688 | (exit $ac_status); }; }; then | |
4689 | ac_cv_c_backslash_a=yes | |
4690 | else | |
4691 | echo "$as_me: failed program was:" >&5 | |
4692 | cat conftest.$ac_ext >&5 | |
4693 | ac_cv_c_backslash_a=no | |
4694 | fi | |
4695 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4696 | fi | |
4697 | echo "$as_me:4697: result: $ac_cv_c_backslash_a" >&5 | |
4698 | echo "${ECHO_T}$ac_cv_c_backslash_a" >&6 | |
4699 | if test $ac_cv_c_backslash_a = yes; then | |
4700 | ||
4701 | cat >>confdefs.h <<\EOF | |
4702 | #define HAVE_C_BACKSLASH_A 1 | |
4703 | EOF | |
4704 | ||
4705 | fi | |
4706 | ||
4707 | for ac_header in stdlib.h | |
4708 | do | |
4709 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
4710 | echo "$as_me:4710: checking for $ac_header" >&5 | |
4711 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4712 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
4713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4714 | else | |
4715 | cat >conftest.$ac_ext <<_ACEOF | |
4716 | #line 4716 "configure" | |
4717 | #include "confdefs.h" | |
4718 | #include <$ac_header> | |
4719 | _ACEOF | |
4720 | if { (eval echo "$as_me:4720: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
4721 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
4722 | ac_status=$? | |
4723 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4724 | rm -f conftest.er1 | |
4725 | cat conftest.err >&5 | |
4726 | echo "$as_me:4726: \$? = $ac_status" >&5 | |
4727 | (exit $ac_status); }; then | |
4728 | if test -s conftest.err; then | |
4729 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4730 | else | |
4731 | ac_cpp_err= | |
4732 | fi | |
4733 | else | |
4734 | ac_cpp_err=yes | |
4735 | fi | |
4736 | if test -z "$ac_cpp_err"; then | |
4737 | eval "$ac_ac_Header=yes" | |
4738 | else | |
4739 | echo "$as_me: failed program was:" >&5 | |
4740 | cat conftest.$ac_ext >&5 | |
4741 | eval "$ac_ac_Header=no" | |
4742 | fi | |
4743 | rm -f conftest.err conftest.$ac_ext | |
4744 | fi | |
4745 | echo "$as_me:4745: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
4746 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
4747 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
4748 | cat >>confdefs.h <<EOF | |
4749 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
4750 | EOF | |
4751 | ||
4752 | fi | |
4753 | done | |
4754 | ||
4755 | echo "$as_me:4755: checking for mbstate_t" >&5 | |
4756 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
4757 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
4758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4759 | else | |
4760 | cat >conftest.$ac_ext <<_ACEOF | |
4761 | #line 4761 "configure" | |
4762 | #include "confdefs.h" | |
4763 | ||
4764 | #if HAVE_STDLIB_H | |
4765 | # include <stdlib.h> | |
4766 | #endif | |
4767 | #include <wchar.h> | |
4768 | int | |
4769 | main () | |
4770 | { | |
4771 | mbstate_t x; return sizeof x; | |
4772 | ; | |
4773 | return 0; | |
4774 | } | |
4775 | _ACEOF | |
4776 | rm -f conftest.$ac_objext | |
4777 | if { (eval echo "$as_me:4777: \"$ac_compile\"") >&5 | |
4778 | (eval $ac_compile) 2>&5 | |
4779 | ac_status=$? | |
4780 | echo "$as_me:4780: \$? = $ac_status" >&5 | |
4781 | (exit $ac_status); } && | |
4782 | { ac_try='test -s conftest.$ac_objext' | |
4783 | { (eval echo "$as_me:4783: \"$ac_try\"") >&5 | |
4784 | (eval $ac_try) 2>&5 | |
4785 | ac_status=$? | |
4786 | echo "$as_me:4786: \$? = $ac_status" >&5 | |
4787 | (exit $ac_status); }; }; then | |
4788 | ac_cv_type_mbstate_t=yes | |
4789 | else | |
4790 | echo "$as_me: failed program was:" >&5 | |
4791 | cat conftest.$ac_ext >&5 | |
4792 | ac_cv_type_mbstate_t=no | |
4793 | fi | |
4794 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4795 | fi | |
4796 | echo "$as_me:4796: result: $ac_cv_type_mbstate_t" >&5 | |
4797 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
4798 | if test $ac_cv_type_mbstate_t = no; then | |
4799 | ||
4800 | cat >>confdefs.h <<\EOF | |
4801 | #define mbstate_t int | |
4802 | EOF | |
4803 | ||
4804 | fi | |
4805 | ||
4806 | echo "$as_me:4806: checking for function prototypes" >&5 | |
4807 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 | |
4808 | if test "$am_cv_prog_cc_stdc" != no; then | |
4809 | echo "$as_me:4809: result: yes" >&5 | |
4810 | echo "${ECHO_T}yes" >&6 | |
4811 | ||
4812 | cat >>confdefs.h <<\EOF | |
4813 | #define PROTOTYPES 1 | |
4814 | EOF | |
4815 | ||
4816 | U= ANSI2KNR= | |
4817 | else | |
4818 | echo "$as_me:4818: result: no" >&5 | |
4819 | echo "${ECHO_T}no" >&6 | |
4820 | U=_ ANSI2KNR=./ansi2knr | |
4821 | # Ensure some checks needed by ansi2knr itself. | |
4822 | echo "$as_me:4822: checking for ANSI C header files" >&5 | |
4823 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4824 | if test "${ac_cv_header_stdc+set}" = set; then | |
4825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4826 | else | |
4827 | cat >conftest.$ac_ext <<_ACEOF | |
4828 | #line 4828 "configure" | |
4829 | #include "confdefs.h" | |
4830 | #include <stdlib.h> | |
4831 | #include <stdarg.h> | |
4832 | #include <string.h> | |
4833 | #include <float.h> | |
4834 | ||
4835 | _ACEOF | |
4836 | if { (eval echo "$as_me:4836: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
4837 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
4838 | ac_status=$? | |
4839 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4840 | rm -f conftest.er1 | |
4841 | cat conftest.err >&5 | |
4842 | echo "$as_me:4842: \$? = $ac_status" >&5 | |
4843 | (exit $ac_status); }; then | |
4844 | if test -s conftest.err; then | |
4845 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4846 | else | |
4847 | ac_cpp_err= | |
4848 | fi | |
4849 | else | |
4850 | ac_cpp_err=yes | |
4851 | fi | |
4852 | if test -z "$ac_cpp_err"; then | |
4853 | ac_cv_header_stdc=yes | |
4854 | else | |
4855 | echo "$as_me: failed program was:" >&5 | |
4856 | cat conftest.$ac_ext >&5 | |
4857 | ac_cv_header_stdc=no | |
4858 | fi | |
4859 | rm -f conftest.err conftest.$ac_ext | |
4860 | ||
4861 | if test $ac_cv_header_stdc = yes; then | |
4862 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4863 | cat >conftest.$ac_ext <<_ACEOF | |
4864 | #line 4864 "configure" | |
4865 | #include "confdefs.h" | |
4866 | #include <string.h> | |
4867 | ||
4868 | _ACEOF | |
4869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4870 | egrep "memchr" >/dev/null 2>&1; then | |
4871 | : | |
4872 | else | |
4873 | ac_cv_header_stdc=no | |
4874 | fi | |
4875 | rm -f conftest* | |
4876 | ||
4877 | fi | |
4878 | ||
4879 | if test $ac_cv_header_stdc = yes; then | |
4880 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4881 | cat >conftest.$ac_ext <<_ACEOF | |
4882 | #line 4882 "configure" | |
4883 | #include "confdefs.h" | |
4884 | #include <stdlib.h> | |
4885 | ||
4886 | _ACEOF | |
4887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4888 | egrep "free" >/dev/null 2>&1; then | |
4889 | : | |
4890 | else | |
4891 | ac_cv_header_stdc=no | |
4892 | fi | |
4893 | rm -f conftest* | |
4894 | ||
4895 | fi | |
4896 | ||
4897 | if test $ac_cv_header_stdc = yes; then | |
4898 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4899 | if test "$cross_compiling" = yes; then | |
4900 | : | |
4901 | else | |
4902 | cat >conftest.$ac_ext <<_ACEOF | |
4903 | #line 4903 "configure" | |
4904 | #include "confdefs.h" | |
4905 | #include <ctype.h> | |
4906 | #if ((' ' & 0x0FF) == 0x020) | |
4907 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4908 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4909 | #else | |
4910 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4911 | || ('j' <= (c) && (c) <= 'r') \ | |
4912 | || ('s' <= (c) && (c) <= 'z')) | |
4913 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4914 | #endif | |
4915 | ||
4916 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4917 | int | |
4918 | main () | |
4919 | { | |
4920 | int i; | |
4921 | for (i = 0; i < 256; i++) | |
4922 | if (XOR (islower (i), ISLOWER (i)) | |
4923 | || toupper (i) != TOUPPER (i)) | |
4924 | exit(2); | |
4925 | exit (0); | |
4926 | } | |
4927 | _ACEOF | |
4928 | rm -f conftest$ac_exeext | |
4929 | if { (eval echo "$as_me:4929: \"$ac_link\"") >&5 | |
4930 | (eval $ac_link) 2>&5 | |
4931 | ac_status=$? | |
4932 | echo "$as_me:4932: \$? = $ac_status" >&5 | |
4933 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4934 | { (eval echo "$as_me:4934: \"$ac_try\"") >&5 | |
4935 | (eval $ac_try) 2>&5 | |
4936 | ac_status=$? | |
4937 | echo "$as_me:4937: \$? = $ac_status" >&5 | |
4938 | (exit $ac_status); }; }; then | |
4939 | : | |
4940 | else | |
4941 | echo "$as_me: program exited with status $ac_status" >&5 | |
4942 | echo "$as_me: failed program was:" >&5 | |
4943 | cat conftest.$ac_ext >&5 | |
4944 | ac_cv_header_stdc=no | |
4945 | fi | |
4946 | rm -f conftest$ac_exeext conftest.$ac_ext | |
4947 | fi | |
4948 | fi | |
4949 | fi | |
4950 | echo "$as_me:4950: result: $ac_cv_header_stdc" >&5 | |
4951 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4952 | if test $ac_cv_header_stdc = yes; then | |
4953 | ||
4954 | cat >>confdefs.h <<\EOF | |
4955 | #define STDC_HEADERS 1 | |
4956 | EOF | |
4957 | ||
4958 | fi | |
4959 | ||
4960 | for ac_header in string.h | |
4961 | do | |
4962 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
4963 | echo "$as_me:4963: checking for $ac_header" >&5 | |
4964 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4965 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4967 | else | |
4968 | cat >conftest.$ac_ext <<_ACEOF | |
4969 | #line 4969 "configure" | |
4970 | #include "confdefs.h" | |
4971 | #include <$ac_header> | |
4972 | _ACEOF | |
4973 | if { (eval echo "$as_me:4973: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
4974 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
4975 | ac_status=$? | |
4976 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4977 | rm -f conftest.er1 | |
4978 | cat conftest.err >&5 | |
4979 | echo "$as_me:4979: \$? = $ac_status" >&5 | |
4980 | (exit $ac_status); }; then | |
4981 | if test -s conftest.err; then | |
4982 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4983 | else | |
4984 | ac_cpp_err= | |
4985 | fi | |
4986 | else | |
4987 | ac_cpp_err=yes | |
4988 | fi | |
4989 | if test -z "$ac_cpp_err"; then | |
4990 | eval "$ac_ac_Header=yes" | |
4991 | else | |
4992 | echo "$as_me: failed program was:" >&5 | |
4993 | cat conftest.$ac_ext >&5 | |
4994 | eval "$ac_ac_Header=no" | |
4995 | fi | |
4996 | rm -f conftest.err conftest.$ac_ext | |
4997 | fi | |
4998 | echo "$as_me:4998: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
4999 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
5000 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5001 | cat >>confdefs.h <<EOF | |
5002 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
5003 | EOF | |
5004 | ||
5005 | fi | |
5006 | done | |
5007 | ||
5008 | fi | |
5009 | ||
5010 | for ac_func in strerror strerror_r vprintf doprnt | |
5011 | do | |
5012 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
5013 | echo "$as_me:5013: checking for $ac_func" >&5 | |
5014 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5015 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5017 | else | |
5018 | cat >conftest.$ac_ext <<_ACEOF | |
5019 | #line 5019 "configure" | |
5020 | #include "confdefs.h" | |
5021 | /* System header to define __stub macros and hopefully few prototypes, | |
5022 | which can conflict with char $ac_func (); below. */ | |
5023 | #include <assert.h> | |
5024 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5025 | #ifdef __cplusplus | |
5026 | extern "C" | |
5027 | #endif | |
5028 | /* We use char because int might match the return type of a gcc2 | |
5029 | builtin and then its argument prototype would still apply. */ | |
5030 | char $ac_func (); | |
5031 | char (*f) (); | |
5032 | ||
5033 | int | |
5034 | main () | |
5035 | { | |
5036 | /* The GNU C library defines this for functions which it implements | |
5037 | to always fail with ENOSYS. Some functions are actually named | |
5038 | something starting with __ and the normal name is an alias. */ | |
5039 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5040 | choke me | |
5041 | #else | |
5042 | f = $ac_func; | |
5043 | #endif | |
5044 | ||
5045 | ; | |
5046 | return 0; | |
5047 | } | |
5048 | _ACEOF | |
5049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5050 | if { (eval echo "$as_me:5050: \"$ac_link\"") >&5 | |
5051 | (eval $ac_link) 2>&5 | |
5052 | ac_status=$? | |
5053 | echo "$as_me:5053: \$? = $ac_status" >&5 | |
5054 | (exit $ac_status); } && | |
5055 | { ac_try='test -s conftest$ac_exeext' | |
5056 | { (eval echo "$as_me:5056: \"$ac_try\"") >&5 | |
5057 | (eval $ac_try) 2>&5 | |
5058 | ac_status=$? | |
5059 | echo "$as_me:5059: \$? = $ac_status" >&5 | |
5060 | (exit $ac_status); }; }; then | |
5061 | eval "$ac_ac_var=yes" | |
5062 | else | |
5063 | echo "$as_me: failed program was:" >&5 | |
5064 | cat conftest.$ac_ext >&5 | |
5065 | eval "$ac_ac_var=no" | |
5066 | fi | |
5067 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5068 | fi | |
5069 | echo "$as_me:5069: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
5070 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
5071 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5072 | cat >>confdefs.h <<EOF | |
5073 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
5074 | EOF | |
5075 | ||
5076 | fi | |
5077 | done | |
5078 | ||
5079 | echo "$as_me:5079: checking for ANSI C header files" >&5 | |
5080 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5081 | if test "${ac_cv_header_stdc+set}" = set; then | |
5082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5083 | else | |
5084 | cat >conftest.$ac_ext <<_ACEOF | |
5085 | #line 5085 "configure" | |
5086 | #include "confdefs.h" | |
5087 | #include <stdlib.h> | |
5088 | #include <stdarg.h> | |
5089 | #include <string.h> | |
5090 | #include <float.h> | |
5091 | ||
5092 | _ACEOF | |
5093 | if { (eval echo "$as_me:5093: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
5094 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
5095 | ac_status=$? | |
5096 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5097 | rm -f conftest.er1 | |
5098 | cat conftest.err >&5 | |
5099 | echo "$as_me:5099: \$? = $ac_status" >&5 | |
5100 | (exit $ac_status); }; then | |
5101 | if test -s conftest.err; then | |
5102 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5103 | else | |
5104 | ac_cpp_err= | |
5105 | fi | |
5106 | else | |
5107 | ac_cpp_err=yes | |
5108 | fi | |
5109 | if test -z "$ac_cpp_err"; then | |
5110 | ac_cv_header_stdc=yes | |
5111 | else | |
5112 | echo "$as_me: failed program was:" >&5 | |
5113 | cat conftest.$ac_ext >&5 | |
5114 | ac_cv_header_stdc=no | |
5115 | fi | |
5116 | rm -f conftest.err conftest.$ac_ext | |
5117 | ||
5118 | if test $ac_cv_header_stdc = yes; then | |
5119 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5120 | cat >conftest.$ac_ext <<_ACEOF | |
5121 | #line 5121 "configure" | |
5122 | #include "confdefs.h" | |
5123 | #include <string.h> | |
5124 | ||
5125 | _ACEOF | |
5126 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5127 | egrep "memchr" >/dev/null 2>&1; then | |
5128 | : | |
5129 | else | |
5130 | ac_cv_header_stdc=no | |
5131 | fi | |
5132 | rm -f conftest* | |
5133 | ||
5134 | fi | |
5135 | ||
5136 | if test $ac_cv_header_stdc = yes; then | |
5137 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5138 | cat >conftest.$ac_ext <<_ACEOF | |
5139 | #line 5139 "configure" | |
5140 | #include "confdefs.h" | |
5141 | #include <stdlib.h> | |
5142 | ||
5143 | _ACEOF | |
5144 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5145 | egrep "free" >/dev/null 2>&1; then | |
5146 | : | |
5147 | else | |
5148 | ac_cv_header_stdc=no | |
5149 | fi | |
5150 | rm -f conftest* | |
5151 | ||
5152 | fi | |
5153 | ||
5154 | if test $ac_cv_header_stdc = yes; then | |
5155 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5156 | if test "$cross_compiling" = yes; then | |
5157 | : | |
5158 | else | |
5159 | cat >conftest.$ac_ext <<_ACEOF | |
5160 | #line 5160 "configure" | |
5161 | #include "confdefs.h" | |
5162 | #include <ctype.h> | |
5163 | #if ((' ' & 0x0FF) == 0x020) | |
5164 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5165 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5166 | #else | |
5167 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
5168 | || ('j' <= (c) && (c) <= 'r') \ | |
5169 | || ('s' <= (c) && (c) <= 'z')) | |
5170 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5171 | #endif | |
5172 | ||
5173 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5174 | int | |
5175 | main () | |
5176 | { | |
5177 | int i; | |
5178 | for (i = 0; i < 256; i++) | |
5179 | if (XOR (islower (i), ISLOWER (i)) | |
5180 | || toupper (i) != TOUPPER (i)) | |
5181 | exit(2); | |
5182 | exit (0); | |
5183 | } | |
5184 | _ACEOF | |
5185 | rm -f conftest$ac_exeext | |
5186 | if { (eval echo "$as_me:5186: \"$ac_link\"") >&5 | |
5187 | (eval $ac_link) 2>&5 | |
5188 | ac_status=$? | |
5189 | echo "$as_me:5189: \$? = $ac_status" >&5 | |
5190 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5191 | { (eval echo "$as_me:5191: \"$ac_try\"") >&5 | |
5192 | (eval $ac_try) 2>&5 | |
5193 | ac_status=$? | |
5194 | echo "$as_me:5194: \$? = $ac_status" >&5 | |
5195 | (exit $ac_status); }; }; then | |
5196 | : | |
5197 | else | |
5198 | echo "$as_me: program exited with status $ac_status" >&5 | |
5199 | echo "$as_me: failed program was:" >&5 | |
5200 | cat conftest.$ac_ext >&5 | |
5201 | ac_cv_header_stdc=no | |
5202 | fi | |
5203 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5204 | fi | |
5205 | fi | |
5206 | fi | |
5207 | echo "$as_me:5207: result: $ac_cv_header_stdc" >&5 | |
5208 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5209 | if test $ac_cv_header_stdc = yes; then | |
5210 | ||
5211 | cat >>confdefs.h <<\EOF | |
5212 | #define STDC_HEADERS 1 | |
5213 | EOF | |
5214 | ||
5215 | fi | |
5216 | ||
5217 | echo "$as_me:5217: checking whether strerror_r is declared" >&5 | |
5218 | echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6 | |
5219 | if test "${ac_cv_have_decl_strerror_r+set}" = set; then | |
5220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5221 | else | |
5222 | cat >conftest.$ac_ext <<_ACEOF | |
5223 | #line 5223 "configure" | |
5224 | #include "confdefs.h" | |
5225 | $ac_includes_default | |
5226 | int | |
5227 | main () | |
5228 | { | |
5229 | #ifndef strerror_r | |
5230 | char *p = (char *) strerror_r; | |
5231 | #endif | |
5232 | ||
5233 | ; | |
5234 | return 0; | |
5235 | } | |
5236 | _ACEOF | |
5237 | rm -f conftest.$ac_objext | |
5238 | if { (eval echo "$as_me:5238: \"$ac_compile\"") >&5 | |
5239 | (eval $ac_compile) 2>&5 | |
5240 | ac_status=$? | |
5241 | echo "$as_me:5241: \$? = $ac_status" >&5 | |
5242 | (exit $ac_status); } && | |
5243 | { ac_try='test -s conftest.$ac_objext' | |
5244 | { (eval echo "$as_me:5244: \"$ac_try\"") >&5 | |
5245 | (eval $ac_try) 2>&5 | |
5246 | ac_status=$? | |
5247 | echo "$as_me:5247: \$? = $ac_status" >&5 | |
5248 | (exit $ac_status); }; }; then | |
5249 | ac_cv_have_decl_strerror_r=yes | |
5250 | else | |
5251 | echo "$as_me: failed program was:" >&5 | |
5252 | cat conftest.$ac_ext >&5 | |
5253 | ac_cv_have_decl_strerror_r=no | |
5254 | fi | |
5255 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5256 | fi | |
5257 | echo "$as_me:5257: result: $ac_cv_have_decl_strerror_r" >&5 | |
5258 | echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6 | |
5259 | if test $ac_cv_have_decl_strerror_r = yes; then | |
5260 | ||
5261 | cat >>confdefs.h <<EOF | |
5262 | #define HAVE_DECL_STRERROR_R 1 | |
5263 | EOF | |
5264 | ||
5265 | else | |
5266 | cat >>confdefs.h <<EOF | |
5267 | #define HAVE_DECL_STRERROR_R 0 | |
5268 | EOF | |
5269 | ||
5270 | fi | |
5271 | ||
5272 | for ac_func in strerror_r | |
5273 | do | |
5274 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
5275 | echo "$as_me:5275: checking for $ac_func" >&5 | |
5276 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5277 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5279 | else | |
5280 | cat >conftest.$ac_ext <<_ACEOF | |
5281 | #line 5281 "configure" | |
5282 | #include "confdefs.h" | |
5283 | /* System header to define __stub macros and hopefully few prototypes, | |
5284 | which can conflict with char $ac_func (); below. */ | |
5285 | #include <assert.h> | |
5286 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5287 | #ifdef __cplusplus | |
5288 | extern "C" | |
5289 | #endif | |
5290 | /* We use char because int might match the return type of a gcc2 | |
5291 | builtin and then its argument prototype would still apply. */ | |
5292 | char $ac_func (); | |
5293 | char (*f) (); | |
5294 | ||
5295 | int | |
5296 | main () | |
5297 | { | |
5298 | /* The GNU C library defines this for functions which it implements | |
5299 | to always fail with ENOSYS. Some functions are actually named | |
5300 | something starting with __ and the normal name is an alias. */ | |
5301 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5302 | choke me | |
5303 | #else | |
5304 | f = $ac_func; | |
5305 | #endif | |
5306 | ||
5307 | ; | |
5308 | return 0; | |
5309 | } | |
5310 | _ACEOF | |
5311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5312 | if { (eval echo "$as_me:5312: \"$ac_link\"") >&5 | |
5313 | (eval $ac_link) 2>&5 | |
5314 | ac_status=$? | |
5315 | echo "$as_me:5315: \$? = $ac_status" >&5 | |
5316 | (exit $ac_status); } && | |
5317 | { ac_try='test -s conftest$ac_exeext' | |
5318 | { (eval echo "$as_me:5318: \"$ac_try\"") >&5 | |
5319 | (eval $ac_try) 2>&5 | |
5320 | ac_status=$? | |
5321 | echo "$as_me:5321: \$? = $ac_status" >&5 | |
5322 | (exit $ac_status); }; }; then | |
5323 | eval "$ac_ac_var=yes" | |
5324 | else | |
5325 | echo "$as_me: failed program was:" >&5 | |
5326 | cat conftest.$ac_ext >&5 | |
5327 | eval "$ac_ac_var=no" | |
5328 | fi | |
5329 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5330 | fi | |
5331 | echo "$as_me:5331: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
5332 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
5333 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5334 | cat >>confdefs.h <<EOF | |
5335 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
5336 | EOF | |
5337 | ||
5338 | fi | |
5339 | done | |
5340 | ||
5341 | if test $ac_cv_func_strerror_r = yes; then | |
5342 | ||
5343 | for ac_header in string.h | |
5344 | do | |
5345 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
5346 | echo "$as_me:5346: checking for $ac_header" >&5 | |
5347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5348 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
5349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5350 | else | |
5351 | cat >conftest.$ac_ext <<_ACEOF | |
5352 | #line 5352 "configure" | |
5353 | #include "confdefs.h" | |
5354 | #include <$ac_header> | |
5355 | _ACEOF | |
5356 | if { (eval echo "$as_me:5356: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
5357 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
5358 | ac_status=$? | |
5359 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5360 | rm -f conftest.er1 | |
5361 | cat conftest.err >&5 | |
5362 | echo "$as_me:5362: \$? = $ac_status" >&5 | |
5363 | (exit $ac_status); }; then | |
5364 | if test -s conftest.err; then | |
5365 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5366 | else | |
5367 | ac_cpp_err= | |
5368 | fi | |
5369 | else | |
5370 | ac_cpp_err=yes | |
5371 | fi | |
5372 | if test -z "$ac_cpp_err"; then | |
5373 | eval "$ac_ac_Header=yes" | |
5374 | else | |
5375 | echo "$as_me: failed program was:" >&5 | |
5376 | cat conftest.$ac_ext >&5 | |
5377 | eval "$ac_ac_Header=no" | |
5378 | fi | |
5379 | rm -f conftest.err conftest.$ac_ext | |
5380 | fi | |
5381 | echo "$as_me:5381: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
5382 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
5383 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5384 | cat >>confdefs.h <<EOF | |
5385 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
5386 | EOF | |
5387 | ||
5388 | fi | |
5389 | done | |
5390 | ||
5391 | echo "$as_me:5391: checking for working strerror_r" >&5 | |
5392 | echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6 | |
5393 | if test "${ac_cv_func_strerror_r_works+set}" = set; then | |
5394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5395 | else | |
5396 | ||
5397 | cat >conftest.$ac_ext <<_ACEOF | |
5398 | #line 5398 "configure" | |
5399 | #include "confdefs.h" | |
5400 | ||
5401 | # include <stdio.h> | |
5402 | # if HAVE_STRING_H | |
5403 | # include <string.h> | |
5404 | # endif | |
5405 | ||
5406 | int | |
5407 | main () | |
5408 | { | |
5409 | ||
5410 | char buf[100]; | |
5411 | char x = *strerror_r (0, buf, sizeof buf); | |
5412 | ||
5413 | ; | |
5414 | return 0; | |
5415 | } | |
5416 | _ACEOF | |
5417 | rm -f conftest.$ac_objext | |
5418 | if { (eval echo "$as_me:5418: \"$ac_compile\"") >&5 | |
5419 | (eval $ac_compile) 2>&5 | |
5420 | ac_status=$? | |
5421 | echo "$as_me:5421: \$? = $ac_status" >&5 | |
5422 | (exit $ac_status); } && | |
5423 | { ac_try='test -s conftest.$ac_objext' | |
5424 | { (eval echo "$as_me:5424: \"$ac_try\"") >&5 | |
5425 | (eval $ac_try) 2>&5 | |
5426 | ac_status=$? | |
5427 | echo "$as_me:5427: \$? = $ac_status" >&5 | |
5428 | (exit $ac_status); }; }; then | |
5429 | ac_cv_func_strerror_r_works=yes | |
5430 | else | |
5431 | echo "$as_me: failed program was:" >&5 | |
5432 | cat conftest.$ac_ext >&5 | |
5433 | ac_cv_func_strerror_r_works=no | |
5434 | ||
5435 | fi | |
5436 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5437 | if test $ac_cv_func_strerror_r_works = no; then | |
5438 | # strerror_r seems not to work, but now we have to choose between | |
5439 | # systems that have relatively inaccessible declarations for the | |
5440 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the | |
5441 | # former has a strerror_r that returns char*, while the latter | |
5442 | # has a strerror_r that returns `int'. | |
5443 | # This test should segfault on the DEC system. | |
5444 | if test "$cross_compiling" = yes; then | |
5445 | ac_cv_func_strerror_r_works=no | |
5446 | else | |
5447 | cat >conftest.$ac_ext <<_ACEOF | |
5448 | #line 5448 "configure" | |
5449 | #include "confdefs.h" | |
5450 | ||
5451 | # include <stdio.h> | |
5452 | # include <string.h> | |
5453 | # include <ctype.h> | |
5454 | ||
5455 | extern char *strerror_r (); | |
5456 | ||
5457 | int | |
5458 | main () | |
5459 | { | |
5460 | char buf[100]; | |
5461 | char x = *strerror_r (0, buf, sizeof buf); | |
5462 | exit (!isalpha (x)); | |
5463 | } | |
5464 | ||
5465 | _ACEOF | |
5466 | rm -f conftest$ac_exeext | |
5467 | if { (eval echo "$as_me:5467: \"$ac_link\"") >&5 | |
5468 | (eval $ac_link) 2>&5 | |
5469 | ac_status=$? | |
5470 | echo "$as_me:5470: \$? = $ac_status" >&5 | |
5471 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5472 | { (eval echo "$as_me:5472: \"$ac_try\"") >&5 | |
5473 | (eval $ac_try) 2>&5 | |
5474 | ac_status=$? | |
5475 | echo "$as_me:5475: \$? = $ac_status" >&5 | |
5476 | (exit $ac_status); }; }; then | |
5477 | ac_cv_func_strerror_r_works=yes | |
5478 | else | |
5479 | echo "$as_me: program exited with status $ac_status" >&5 | |
5480 | echo "$as_me: failed program was:" >&5 | |
5481 | cat conftest.$ac_ext >&5 | |
5482 | ac_cv_func_strerror_r_works=no | |
5483 | fi | |
5484 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5485 | fi | |
5486 | fi | |
5487 | ||
5488 | fi | |
5489 | echo "$as_me:5489: result: $ac_cv_func_strerror_r_works" >&5 | |
5490 | echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6 | |
5491 | if test $ac_cv_func_strerror_r_works = yes; then | |
5492 | ||
5493 | cat >>confdefs.h <<EOF | |
5494 | #define HAVE_WORKING_STRERROR_R 1 | |
5495 | EOF | |
5496 | ||
5497 | fi | |
5498 | fi | |
5499 | ||
5500 | ALL_LINGUAS="de es et fr ja nl ru" | |
5501 | echo "$as_me:5501: checking for off_t" >&5 | |
5502 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5503 | if test "${ac_cv_type_off_t+set}" = set; then | |
5504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5505 | else | |
5506 | cat >conftest.$ac_ext <<_ACEOF | |
5507 | #line 5507 "configure" | |
5508 | #include "confdefs.h" | |
5509 | $ac_includes_default | |
5510 | int | |
5511 | main () | |
5512 | { | |
5513 | if ((off_t *) 0) | |
5514 | return 0; | |
5515 | if (sizeof (off_t)) | |
5516 | return 0; | |
5517 | ; | |
5518 | return 0; | |
5519 | } | |
5520 | _ACEOF | |
5521 | rm -f conftest.$ac_objext | |
5522 | if { (eval echo "$as_me:5522: \"$ac_compile\"") >&5 | |
5523 | (eval $ac_compile) 2>&5 | |
5524 | ac_status=$? | |
5525 | echo "$as_me:5525: \$? = $ac_status" >&5 | |
5526 | (exit $ac_status); } && | |
5527 | { ac_try='test -s conftest.$ac_objext' | |
5528 | { (eval echo "$as_me:5528: \"$ac_try\"") >&5 | |
5529 | (eval $ac_try) 2>&5 | |
5530 | ac_status=$? | |
5531 | echo "$as_me:5531: \$? = $ac_status" >&5 | |
5532 | (exit $ac_status); }; }; then | |
5533 | ac_cv_type_off_t=yes | |
5534 | else | |
5535 | echo "$as_me: failed program was:" >&5 | |
5536 | cat conftest.$ac_ext >&5 | |
5537 | ac_cv_type_off_t=no | |
5538 | fi | |
5539 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5540 | fi | |
5541 | echo "$as_me:5541: result: $ac_cv_type_off_t" >&5 | |
5542 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5543 | if test $ac_cv_type_off_t = yes; then | |
5544 | : | |
5545 | else | |
5546 | ||
5547 | cat >>confdefs.h <<EOF | |
5548 | #define off_t long | |
5549 | EOF | |
5550 | ||
5551 | fi | |
5552 | ||
5553 | echo "$as_me:5553: checking for size_t" >&5 | |
5554 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
5555 | if test "${ac_cv_type_size_t+set}" = set; then | |
5556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5557 | else | |
5558 | cat >conftest.$ac_ext <<_ACEOF | |
5559 | #line 5559 "configure" | |
5560 | #include "confdefs.h" | |
5561 | $ac_includes_default | |
5562 | int | |
5563 | main () | |
5564 | { | |
5565 | if ((size_t *) 0) | |
5566 | return 0; | |
5567 | if (sizeof (size_t)) | |
5568 | return 0; | |
5569 | ; | |
5570 | return 0; | |
5571 | } | |
5572 | _ACEOF | |
5573 | rm -f conftest.$ac_objext | |
5574 | if { (eval echo "$as_me:5574: \"$ac_compile\"") >&5 | |
5575 | (eval $ac_compile) 2>&5 | |
5576 | ac_status=$? | |
5577 | echo "$as_me:5577: \$? = $ac_status" >&5 | |
5578 | (exit $ac_status); } && | |
5579 | { ac_try='test -s conftest.$ac_objext' | |
5580 | { (eval echo "$as_me:5580: \"$ac_try\"") >&5 | |
5581 | (eval $ac_try) 2>&5 | |
5582 | ac_status=$? | |
5583 | echo "$as_me:5583: \$? = $ac_status" >&5 | |
5584 | (exit $ac_status); }; }; then | |
5585 | ac_cv_type_size_t=yes | |
5586 | else | |
5587 | echo "$as_me: failed program was:" >&5 | |
5588 | cat conftest.$ac_ext >&5 | |
5589 | ac_cv_type_size_t=no | |
5590 | fi | |
5591 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5592 | fi | |
5593 | echo "$as_me:5593: result: $ac_cv_type_size_t" >&5 | |
5594 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
5595 | if test $ac_cv_type_size_t = yes; then | |
5596 | : | |
5597 | else | |
5598 | ||
5599 | cat >>confdefs.h <<EOF | |
5600 | #define size_t unsigned | |
5601 | EOF | |
5602 | ||
5603 | fi | |
5604 | ||
5605 | for ac_header in stdlib.h unistd.h | |
5606 | do | |
5607 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
5608 | echo "$as_me:5608: checking for $ac_header" >&5 | |
5609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5610 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
5611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5612 | else | |
5613 | cat >conftest.$ac_ext <<_ACEOF | |
5614 | #line 5614 "configure" | |
5615 | #include "confdefs.h" | |
5616 | #include <$ac_header> | |
5617 | _ACEOF | |
5618 | if { (eval echo "$as_me:5618: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
5619 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
5620 | ac_status=$? | |
5621 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5622 | rm -f conftest.er1 | |
5623 | cat conftest.err >&5 | |
5624 | echo "$as_me:5624: \$? = $ac_status" >&5 | |
5625 | (exit $ac_status); }; then | |
5626 | if test -s conftest.err; then | |
5627 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5628 | else | |
5629 | ac_cpp_err= | |
5630 | fi | |
5631 | else | |
5632 | ac_cpp_err=yes | |
5633 | fi | |
5634 | if test -z "$ac_cpp_err"; then | |
5635 | eval "$ac_ac_Header=yes" | |
5636 | else | |
5637 | echo "$as_me: failed program was:" >&5 | |
5638 | cat conftest.$ac_ext >&5 | |
5639 | eval "$ac_ac_Header=no" | |
5640 | fi | |
5641 | rm -f conftest.err conftest.$ac_ext | |
5642 | fi | |
5643 | echo "$as_me:5643: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
5644 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
5645 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5646 | cat >>confdefs.h <<EOF | |
5647 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
5648 | EOF | |
5649 | ||
5650 | fi | |
5651 | done | |
5652 | ||
5653 | for ac_func in getpagesize | |
5654 | do | |
5655 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
5656 | echo "$as_me:5656: checking for $ac_func" >&5 | |
5657 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5658 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5660 | else | |
5661 | cat >conftest.$ac_ext <<_ACEOF | |
5662 | #line 5662 "configure" | |
5663 | #include "confdefs.h" | |
5664 | /* System header to define __stub macros and hopefully few prototypes, | |
5665 | which can conflict with char $ac_func (); below. */ | |
5666 | #include <assert.h> | |
5667 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5668 | #ifdef __cplusplus | |
5669 | extern "C" | |
5670 | #endif | |
5671 | /* We use char because int might match the return type of a gcc2 | |
5672 | builtin and then its argument prototype would still apply. */ | |
5673 | char $ac_func (); | |
5674 | char (*f) (); | |
5675 | ||
5676 | int | |
5677 | main () | |
5678 | { | |
5679 | /* The GNU C library defines this for functions which it implements | |
5680 | to always fail with ENOSYS. Some functions are actually named | |
5681 | something starting with __ and the normal name is an alias. */ | |
5682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5683 | choke me | |
5684 | #else | |
5685 | f = $ac_func; | |
5686 | #endif | |
5687 | ||
5688 | ; | |
5689 | return 0; | |
5690 | } | |
5691 | _ACEOF | |
5692 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5693 | if { (eval echo "$as_me:5693: \"$ac_link\"") >&5 | |
5694 | (eval $ac_link) 2>&5 | |
5695 | ac_status=$? | |
5696 | echo "$as_me:5696: \$? = $ac_status" >&5 | |
5697 | (exit $ac_status); } && | |
5698 | { ac_try='test -s conftest$ac_exeext' | |
5699 | { (eval echo "$as_me:5699: \"$ac_try\"") >&5 | |
5700 | (eval $ac_try) 2>&5 | |
5701 | ac_status=$? | |
5702 | echo "$as_me:5702: \$? = $ac_status" >&5 | |
5703 | (exit $ac_status); }; }; then | |
5704 | eval "$ac_ac_var=yes" | |
5705 | else | |
5706 | echo "$as_me: failed program was:" >&5 | |
5707 | cat conftest.$ac_ext >&5 | |
5708 | eval "$ac_ac_var=no" | |
5709 | fi | |
5710 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5711 | fi | |
5712 | echo "$as_me:5712: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
5713 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
5714 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5715 | cat >>confdefs.h <<EOF | |
5716 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
5717 | EOF | |
5718 | ||
5719 | fi | |
5720 | done | |
5721 | ||
5722 | echo "$as_me:5722: checking for working mmap" >&5 | |
5723 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
5724 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
5725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5726 | else | |
5727 | if test "$cross_compiling" = yes; then | |
5728 | ac_cv_func_mmap_fixed_mapped=no | |
5729 | else | |
5730 | cat >conftest.$ac_ext <<_ACEOF | |
5731 | #line 5731 "configure" | |
5732 | #include "confdefs.h" | |
5733 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
5734 | Here is a matrix of mmap possibilities: | |
5735 | mmap private not fixed | |
5736 | mmap private fixed at somewhere currently unmapped | |
5737 | mmap private fixed at somewhere already mapped | |
5738 | mmap shared not fixed | |
5739 | mmap shared fixed at somewhere currently unmapped | |
5740 | mmap shared fixed at somewhere already mapped | |
5741 | For private mappings, we should verify that changes cannot be read() | |
5742 | back from the file, nor mmap's back from the file at a different | |
5743 | address. (There have been systems where private was not correctly | |
5744 | implemented like the infamous i386 svr4.0, and systems where the | |
5745 | VM page cache was not coherent with the file system buffer cache | |
5746 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
5747 | For shared mappings, we should conversely verify that changes get | |
5748 | propogated back to all the places they're supposed to be. | |
5749 | ||
5750 | Grep wants private fixed already mapped. | |
5751 | The main things grep needs to know about mmap are: | |
5752 | * does it exist and is it safe to write into the mmap'd area | |
5753 | * how to use it (BSD variants) */ | |
5754 | #include <sys/types.h> | |
5755 | #include <fcntl.h> | |
5756 | #include <sys/mman.h> | |
5757 | ||
5758 | #if STDC_HEADERS || HAVE_STDLIB_H | |
5759 | # include <stdlib.h> | |
5760 | #else | |
5761 | char *malloc (); | |
5762 | #endif | |
5763 | #if HAVE_UNISTD_H | |
5764 | # include <unistd.h> | |
5765 | #endif | |
5766 | #include <sys/stat.h> | |
5767 | ||
5768 | /* This mess was copied from the GNU getpagesize.h. */ | |
5769 | #if !HAVE_GETPAGESIZE | |
5770 | /* Assume that all systems that can run configure have sys/param.h. */ | |
5771 | # if !HAVE_SYS_PARAM_H | |
5772 | # define HAVE_SYS_PARAM_H 1 | |
5773 | # endif | |
5774 | ||
5775 | # ifdef _SC_PAGESIZE | |
5776 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5777 | # else /* no _SC_PAGESIZE */ | |
5778 | # if HAVE_SYS_PARAM_H | |
5779 | # include <sys/param.h> | |
5780 | # ifdef EXEC_PAGESIZE | |
5781 | # define getpagesize() EXEC_PAGESIZE | |
5782 | # else /* no EXEC_PAGESIZE */ | |
5783 | # ifdef NBPG | |
5784 | # define getpagesize() NBPG * CLSIZE | |
5785 | # ifndef CLSIZE | |
5786 | # define CLSIZE 1 | |
5787 | # endif /* no CLSIZE */ | |
5788 | # else /* no NBPG */ | |
5789 | # ifdef NBPC | |
5790 | # define getpagesize() NBPC | |
5791 | # else /* no NBPC */ | |
5792 | # ifdef PAGESIZE | |
5793 | # define getpagesize() PAGESIZE | |
5794 | # endif /* PAGESIZE */ | |
5795 | # endif /* no NBPC */ | |
5796 | # endif /* no NBPG */ | |
5797 | # endif /* no EXEC_PAGESIZE */ | |
5798 | # else /* no HAVE_SYS_PARAM_H */ | |
5799 | # define getpagesize() 8192 /* punt totally */ | |
5800 | # endif /* no HAVE_SYS_PARAM_H */ | |
5801 | # endif /* no _SC_PAGESIZE */ | |
5802 | ||
5803 | #endif /* no HAVE_GETPAGESIZE */ | |
5804 | ||
5805 | int | |
5806 | main () | |
5807 | { | |
5808 | char *data, *data2, *data3; | |
5809 | int i, pagesize; | |
5810 | int fd; | |
5811 | ||
5812 | pagesize = getpagesize (); | |
5813 | ||
5814 | /* First, make a file with some known garbage in it. */ | |
5815 | data = (char *) malloc (pagesize); | |
5816 | if (!data) | |
5817 | exit (1); | |
5818 | for (i = 0; i < pagesize; ++i) | |
5819 | *(data + i) = rand (); | |
5820 | umask (0); | |
5821 | fd = creat ("conftest.mmap", 0600); | |
5822 | if (fd < 0) | |
5823 | exit (1); | |
5824 | if (write (fd, data, pagesize) != pagesize) | |
5825 | exit (1); | |
5826 | close (fd); | |
5827 | ||
5828 | /* Next, try to mmap the file at a fixed address which already has | |
5829 | something else allocated at it. If we can, also make sure that | |
5830 | we see the same garbage. */ | |
5831 | fd = open ("conftest.mmap", O_RDWR); | |
5832 | if (fd < 0) | |
5833 | exit (1); | |
5834 | data2 = (char *) malloc (2 * pagesize); | |
5835 | if (!data2) | |
5836 | exit (1); | |
5837 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
5838 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5839 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5840 | exit (1); | |
5841 | for (i = 0; i < pagesize; ++i) | |
5842 | if (*(data + i) != *(data2 + i)) | |
5843 | exit (1); | |
5844 | ||
5845 | /* Finally, make sure that changes to the mapped area do not | |
5846 | percolate back to the file as seen by read(). (This is a bug on | |
5847 | some variants of i386 svr4.0.) */ | |
5848 | for (i = 0; i < pagesize; ++i) | |
5849 | *(data2 + i) = *(data2 + i) + 1; | |
5850 | data3 = (char *) malloc (pagesize); | |
5851 | if (!data3) | |
5852 | exit (1); | |
5853 | if (read (fd, data3, pagesize) != pagesize) | |
5854 | exit (1); | |
5855 | for (i = 0; i < pagesize; ++i) | |
5856 | if (*(data + i) != *(data3 + i)) | |
5857 | exit (1); | |
5858 | close (fd); | |
5859 | exit (0); | |
5860 | } | |
5861 | _ACEOF | |
5862 | rm -f conftest$ac_exeext | |
5863 | if { (eval echo "$as_me:5863: \"$ac_link\"") >&5 | |
5864 | (eval $ac_link) 2>&5 | |
5865 | ac_status=$? | |
5866 | echo "$as_me:5866: \$? = $ac_status" >&5 | |
5867 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5868 | { (eval echo "$as_me:5868: \"$ac_try\"") >&5 | |
5869 | (eval $ac_try) 2>&5 | |
5870 | ac_status=$? | |
5871 | echo "$as_me:5871: \$? = $ac_status" >&5 | |
5872 | (exit $ac_status); }; }; then | |
5873 | ac_cv_func_mmap_fixed_mapped=yes | |
5874 | else | |
5875 | echo "$as_me: program exited with status $ac_status" >&5 | |
5876 | echo "$as_me: failed program was:" >&5 | |
5877 | cat conftest.$ac_ext >&5 | |
5878 | ac_cv_func_mmap_fixed_mapped=no | |
5879 | fi | |
5880 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5881 | fi | |
5882 | fi | |
5883 | echo "$as_me:5883: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
5884 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
5885 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
5886 | ||
5887 | cat >>confdefs.h <<\EOF | |
5888 | #define HAVE_MMAP 1 | |
5889 | EOF | |
5890 | ||
5891 | fi | |
5892 | rm -f conftest.mmap | |
5893 | ||
5894 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
5895 | unistd.h sys/param.h | |
5896 | do | |
5897 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
5898 | echo "$as_me:5898: checking for $ac_header" >&5 | |
5899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5900 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
5901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5902 | else | |
5903 | cat >conftest.$ac_ext <<_ACEOF | |
5904 | #line 5904 "configure" | |
5905 | #include "confdefs.h" | |
5906 | #include <$ac_header> | |
5907 | _ACEOF | |
5908 | if { (eval echo "$as_me:5908: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
5909 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
5910 | ac_status=$? | |
5911 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5912 | rm -f conftest.er1 | |
5913 | cat conftest.err >&5 | |
5914 | echo "$as_me:5914: \$? = $ac_status" >&5 | |
5915 | (exit $ac_status); }; then | |
5916 | if test -s conftest.err; then | |
5917 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5918 | else | |
5919 | ac_cpp_err= | |
5920 | fi | |
5921 | else | |
5922 | ac_cpp_err=yes | |
5923 | fi | |
5924 | if test -z "$ac_cpp_err"; then | |
5925 | eval "$ac_ac_Header=yes" | |
5926 | else | |
5927 | echo "$as_me: failed program was:" >&5 | |
5928 | cat conftest.$ac_ext >&5 | |
5929 | eval "$ac_ac_Header=no" | |
5930 | fi | |
5931 | rm -f conftest.err conftest.$ac_ext | |
5932 | fi | |
5933 | echo "$as_me:5933: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
5934 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
5935 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5936 | cat >>confdefs.h <<EOF | |
5937 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
5938 | EOF | |
5939 | ||
5940 | fi | |
5941 | done | |
5942 | ||
5943 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
5944 | strdup __argz_count __argz_stringify __argz_next | |
5945 | do | |
5946 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
5947 | echo "$as_me:5947: checking for $ac_func" >&5 | |
5948 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5949 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5951 | else | |
5952 | cat >conftest.$ac_ext <<_ACEOF | |
5953 | #line 5953 "configure" | |
5954 | #include "confdefs.h" | |
5955 | /* System header to define __stub macros and hopefully few prototypes, | |
5956 | which can conflict with char $ac_func (); below. */ | |
5957 | #include <assert.h> | |
5958 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5959 | #ifdef __cplusplus | |
5960 | extern "C" | |
5961 | #endif | |
5962 | /* We use char because int might match the return type of a gcc2 | |
5963 | builtin and then its argument prototype would still apply. */ | |
5964 | char $ac_func (); | |
5965 | char (*f) (); | |
5966 | ||
5967 | int | |
5968 | main () | |
5969 | { | |
5970 | /* The GNU C library defines this for functions which it implements | |
5971 | to always fail with ENOSYS. Some functions are actually named | |
5972 | something starting with __ and the normal name is an alias. */ | |
5973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5974 | choke me | |
5975 | #else | |
5976 | f = $ac_func; | |
5977 | #endif | |
5978 | ||
5979 | ; | |
5980 | return 0; | |
5981 | } | |
5982 | _ACEOF | |
5983 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5984 | if { (eval echo "$as_me:5984: \"$ac_link\"") >&5 | |
5985 | (eval $ac_link) 2>&5 | |
5986 | ac_status=$? | |
5987 | echo "$as_me:5987: \$? = $ac_status" >&5 | |
5988 | (exit $ac_status); } && | |
5989 | { ac_try='test -s conftest$ac_exeext' | |
5990 | { (eval echo "$as_me:5990: \"$ac_try\"") >&5 | |
5991 | (eval $ac_try) 2>&5 | |
5992 | ac_status=$? | |
5993 | echo "$as_me:5993: \$? = $ac_status" >&5 | |
5994 | (exit $ac_status); }; }; then | |
5995 | eval "$ac_ac_var=yes" | |
5996 | else | |
5997 | echo "$as_me: failed program was:" >&5 | |
5998 | cat conftest.$ac_ext >&5 | |
5999 | eval "$ac_ac_var=no" | |
6000 | fi | |
6001 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6002 | fi | |
6003 | echo "$as_me:6003: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
6004 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
6005 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
6006 | cat >>confdefs.h <<EOF | |
6007 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
6008 | EOF | |
6009 | ||
6010 | fi | |
6011 | done | |
6012 | ||
6013 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
6014 | ||
6015 | for ac_func in stpcpy | |
6016 | do | |
6017 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
6018 | echo "$as_me:6018: checking for $ac_func" >&5 | |
6019 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6020 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
6021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6022 | else | |
6023 | cat >conftest.$ac_ext <<_ACEOF | |
6024 | #line 6024 "configure" | |
6025 | #include "confdefs.h" | |
6026 | /* System header to define __stub macros and hopefully few prototypes, | |
6027 | which can conflict with char $ac_func (); below. */ | |
6028 | #include <assert.h> | |
6029 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6030 | #ifdef __cplusplus | |
6031 | extern "C" | |
6032 | #endif | |
6033 | /* We use char because int might match the return type of a gcc2 | |
6034 | builtin and then its argument prototype would still apply. */ | |
6035 | char $ac_func (); | |
6036 | char (*f) (); | |
6037 | ||
6038 | int | |
6039 | main () | |
6040 | { | |
6041 | /* The GNU C library defines this for functions which it implements | |
6042 | to always fail with ENOSYS. Some functions are actually named | |
6043 | something starting with __ and the normal name is an alias. */ | |
6044 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6045 | choke me | |
6046 | #else | |
6047 | f = $ac_func; | |
6048 | #endif | |
6049 | ||
6050 | ; | |
6051 | return 0; | |
6052 | } | |
6053 | _ACEOF | |
6054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6055 | if { (eval echo "$as_me:6055: \"$ac_link\"") >&5 | |
6056 | (eval $ac_link) 2>&5 | |
6057 | ac_status=$? | |
6058 | echo "$as_me:6058: \$? = $ac_status" >&5 | |
6059 | (exit $ac_status); } && | |
6060 | { ac_try='test -s conftest$ac_exeext' | |
6061 | { (eval echo "$as_me:6061: \"$ac_try\"") >&5 | |
6062 | (eval $ac_try) 2>&5 | |
6063 | ac_status=$? | |
6064 | echo "$as_me:6064: \$? = $ac_status" >&5 | |
6065 | (exit $ac_status); }; }; then | |
6066 | eval "$ac_ac_var=yes" | |
6067 | else | |
6068 | echo "$as_me: failed program was:" >&5 | |
6069 | cat conftest.$ac_ext >&5 | |
6070 | eval "$ac_ac_var=no" | |
6071 | fi | |
6072 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6073 | fi | |
6074 | echo "$as_me:6074: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
6075 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
6076 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
6077 | cat >>confdefs.h <<EOF | |
6078 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
6079 | EOF | |
6080 | ||
6081 | fi | |
6082 | done | |
6083 | ||
6084 | fi | |
6085 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
6086 | ||
6087 | cat >>confdefs.h <<\EOF | |
6088 | #define HAVE_STPCPY 1 | |
6089 | EOF | |
6090 | ||
6091 | fi | |
6092 | ||
6093 | if test $ac_cv_header_locale_h = yes; then | |
6094 | echo "$as_me:6094: checking for LC_MESSAGES" >&5 | |
6095 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
6096 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6098 | else | |
6099 | cat >conftest.$ac_ext <<_ACEOF | |
6100 | #line 6100 "configure" | |
6101 | #include "confdefs.h" | |
6102 | #include <locale.h> | |
6103 | int | |
6104 | main () | |
6105 | { | |
6106 | return LC_MESSAGES | |
6107 | ; | |
6108 | return 0; | |
6109 | } | |
6110 | _ACEOF | |
6111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6112 | if { (eval echo "$as_me:6112: \"$ac_link\"") >&5 | |
6113 | (eval $ac_link) 2>&5 | |
6114 | ac_status=$? | |
6115 | echo "$as_me:6115: \$? = $ac_status" >&5 | |
6116 | (exit $ac_status); } && | |
6117 | { ac_try='test -s conftest$ac_exeext' | |
6118 | { (eval echo "$as_me:6118: \"$ac_try\"") >&5 | |
6119 | (eval $ac_try) 2>&5 | |
6120 | ac_status=$? | |
6121 | echo "$as_me:6121: \$? = $ac_status" >&5 | |
6122 | (exit $ac_status); }; }; then | |
6123 | am_cv_val_LC_MESSAGES=yes | |
6124 | else | |
6125 | echo "$as_me: failed program was:" >&5 | |
6126 | cat conftest.$ac_ext >&5 | |
6127 | am_cv_val_LC_MESSAGES=no | |
6128 | fi | |
6129 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6130 | fi | |
6131 | echo "$as_me:6131: result: $am_cv_val_LC_MESSAGES" >&5 | |
6132 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
6133 | if test $am_cv_val_LC_MESSAGES = yes; then | |
6134 | ||
6135 | cat >>confdefs.h <<\EOF | |
6136 | #define HAVE_LC_MESSAGES 1 | |
6137 | EOF | |
6138 | ||
6139 | fi | |
6140 | fi | |
6141 | echo "$as_me:6141: checking whether NLS is requested" >&5 | |
6142 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
6143 | # Check whether --enable-nls or --disable-nls was given. | |
6144 | if test "${enable_nls+set}" = set; then | |
6145 | enableval="$enable_nls" | |
6146 | USE_NLS=$enableval | |
6147 | else | |
6148 | USE_NLS=yes | |
6149 | fi; | |
6150 | echo "$as_me:6150: result: $USE_NLS" >&5 | |
6151 | echo "${ECHO_T}$USE_NLS" >&6 | |
6152 | ||
6153 | USE_INCLUDED_LIBINTL=no | |
6154 | ||
6155 | if test "$USE_NLS" = "yes"; then | |
6156 | ||
6157 | cat >>confdefs.h <<\EOF | |
6158 | #define ENABLE_NLS 1 | |
6159 | EOF | |
6160 | ||
6161 | echo "$as_me:6161: checking whether included gettext is requested" >&5 | |
6162 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
6163 | ||
6164 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
6165 | if test "${with_included_gettext+set}" = set; then | |
6166 | withval="$with_included_gettext" | |
6167 | nls_cv_force_use_gnu_gettext=$withval | |
6168 | else | |
6169 | nls_cv_force_use_gnu_gettext=no | |
6170 | fi; | |
6171 | echo "$as_me:6171: result: $nls_cv_force_use_gnu_gettext" >&5 | |
6172 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
6173 | ||
6174 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
6175 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
6176 | nls_cv_header_intl= | |
6177 | nls_cv_header_libgt= | |
6178 | CATOBJEXT=NONE | |
6179 | ||
6180 | echo "$as_me:6180: checking for libintl.h" >&5 | |
6181 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
6182 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
6183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6184 | else | |
6185 | cat >conftest.$ac_ext <<_ACEOF | |
6186 | #line 6186 "configure" | |
6187 | #include "confdefs.h" | |
6188 | #include <libintl.h> | |
6189 | _ACEOF | |
6190 | if { (eval echo "$as_me:6190: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
6191 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
6192 | ac_status=$? | |
6193 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6194 | rm -f conftest.er1 | |
6195 | cat conftest.err >&5 | |
6196 | echo "$as_me:6196: \$? = $ac_status" >&5 | |
6197 | (exit $ac_status); }; then | |
6198 | if test -s conftest.err; then | |
6199 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6200 | else | |
6201 | ac_cpp_err= | |
6202 | fi | |
6203 | else | |
6204 | ac_cpp_err=yes | |
6205 | fi | |
6206 | if test -z "$ac_cpp_err"; then | |
6207 | ac_cv_header_libintl_h=yes | |
6208 | else | |
6209 | echo "$as_me: failed program was:" >&5 | |
6210 | cat conftest.$ac_ext >&5 | |
6211 | ac_cv_header_libintl_h=no | |
6212 | fi | |
6213 | rm -f conftest.err conftest.$ac_ext | |
6214 | fi | |
6215 | echo "$as_me:6215: result: $ac_cv_header_libintl_h" >&5 | |
6216 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
6217 | if test $ac_cv_header_libintl_h = yes; then | |
6218 | echo "$as_me:6218: checking for gettext in libc" >&5 | |
6219 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
6220 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
6221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6222 | else | |
6223 | cat >conftest.$ac_ext <<_ACEOF | |
6224 | #line 6224 "configure" | |
6225 | #include "confdefs.h" | |
6226 | #include <libintl.h> | |
6227 | int | |
6228 | main () | |
6229 | { | |
6230 | return (int) gettext ("") | |
6231 | ; | |
6232 | return 0; | |
6233 | } | |
6234 | _ACEOF | |
6235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6236 | if { (eval echo "$as_me:6236: \"$ac_link\"") >&5 | |
6237 | (eval $ac_link) 2>&5 | |
6238 | ac_status=$? | |
6239 | echo "$as_me:6239: \$? = $ac_status" >&5 | |
6240 | (exit $ac_status); } && | |
6241 | { ac_try='test -s conftest$ac_exeext' | |
6242 | { (eval echo "$as_me:6242: \"$ac_try\"") >&5 | |
6243 | (eval $ac_try) 2>&5 | |
6244 | ac_status=$? | |
6245 | echo "$as_me:6245: \$? = $ac_status" >&5 | |
6246 | (exit $ac_status); }; }; then | |
6247 | gt_cv_func_gettext_libc=yes | |
6248 | else | |
6249 | echo "$as_me: failed program was:" >&5 | |
6250 | cat conftest.$ac_ext >&5 | |
6251 | gt_cv_func_gettext_libc=no | |
6252 | fi | |
6253 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6254 | fi | |
6255 | echo "$as_me:6255: result: $gt_cv_func_gettext_libc" >&5 | |
6256 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
6257 | ||
6258 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
6259 | echo "$as_me:6259: checking for bindtextdomain in -lintl" >&5 | |
6260 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
6261 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
6262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6263 | else | |
6264 | ac_check_lib_save_LIBS=$LIBS | |
6265 | LIBS="-lintl $LIBS" | |
6266 | cat >conftest.$ac_ext <<_ACEOF | |
6267 | #line 6267 "configure" | |
6268 | #include "confdefs.h" | |
6269 | ||
6270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6271 | #ifdef __cplusplus | |
6272 | extern "C" | |
6273 | #endif | |
6274 | /* We use char because int might match the return type of a gcc2 | |
6275 | builtin and then its argument prototype would still apply. */ | |
6276 | char bindtextdomain (); | |
6277 | int | |
6278 | main () | |
6279 | { | |
6280 | bindtextdomain (); | |
6281 | ; | |
6282 | return 0; | |
6283 | } | |
6284 | _ACEOF | |
6285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6286 | if { (eval echo "$as_me:6286: \"$ac_link\"") >&5 | |
6287 | (eval $ac_link) 2>&5 | |
6288 | ac_status=$? | |
6289 | echo "$as_me:6289: \$? = $ac_status" >&5 | |
6290 | (exit $ac_status); } && | |
6291 | { ac_try='test -s conftest$ac_exeext' | |
6292 | { (eval echo "$as_me:6292: \"$ac_try\"") >&5 | |
6293 | (eval $ac_try) 2>&5 | |
6294 | ac_status=$? | |
6295 | echo "$as_me:6295: \$? = $ac_status" >&5 | |
6296 | (exit $ac_status); }; }; then | |
6297 | ac_cv_lib_intl_bindtextdomain=yes | |
6298 | else | |
6299 | echo "$as_me: failed program was:" >&5 | |
6300 | cat conftest.$ac_ext >&5 | |
6301 | ac_cv_lib_intl_bindtextdomain=no | |
6302 | fi | |
6303 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6304 | LIBS=$ac_check_lib_save_LIBS | |
6305 | fi | |
6306 | echo "$as_me:6306: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
6307 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
6308 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
6309 | ||
6310 | echo "$as_me:6310: checking for gettext in -lintl" >&5 | |
6311 | echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6 | |
6312 | if test "${ac_cv_lib_intl_gettext+set}" = set; then | |
6313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6314 | else | |
6315 | ac_check_lib_save_LIBS=$LIBS | |
6316 | LIBS="-lintl $LIBS" | |
6317 | cat >conftest.$ac_ext <<_ACEOF | |
6318 | #line 6318 "configure" | |
6319 | #include "confdefs.h" | |
6320 | ||
6321 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6322 | #ifdef __cplusplus | |
6323 | extern "C" | |
6324 | #endif | |
6325 | /* We use char because int might match the return type of a gcc2 | |
6326 | builtin and then its argument prototype would still apply. */ | |
6327 | char gettext (); | |
6328 | int | |
6329 | main () | |
6330 | { | |
6331 | gettext (); | |
6332 | ; | |
6333 | return 0; | |
6334 | } | |
6335 | _ACEOF | |
6336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6337 | if { (eval echo "$as_me:6337: \"$ac_link\"") >&5 | |
6338 | (eval $ac_link) 2>&5 | |
6339 | ac_status=$? | |
6340 | echo "$as_me:6340: \$? = $ac_status" >&5 | |
6341 | (exit $ac_status); } && | |
6342 | { ac_try='test -s conftest$ac_exeext' | |
6343 | { (eval echo "$as_me:6343: \"$ac_try\"") >&5 | |
6344 | (eval $ac_try) 2>&5 | |
6345 | ac_status=$? | |
6346 | echo "$as_me:6346: \$? = $ac_status" >&5 | |
6347 | (exit $ac_status); }; }; then | |
6348 | ac_cv_lib_intl_gettext=yes | |
6349 | else | |
6350 | echo "$as_me: failed program was:" >&5 | |
6351 | cat conftest.$ac_ext >&5 | |
6352 | ac_cv_lib_intl_gettext=no | |
6353 | fi | |
6354 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6355 | LIBS=$ac_check_lib_save_LIBS | |
6356 | fi | |
6357 | echo "$as_me:6357: result: $ac_cv_lib_intl_gettext" >&5 | |
6358 | echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6 | |
6359 | if test $ac_cv_lib_intl_gettext = yes; then | |
6360 | cat >>confdefs.h <<EOF | |
6361 | #define HAVE_LIBINTL 1 | |
6362 | EOF | |
6363 | ||
6364 | LIBS="-lintl $LIBS" | |
6365 | ||
6366 | fi | |
6367 | ||
6368 | fi | |
6369 | ||
6370 | fi | |
6371 | ||
6372 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
6373 | || test "$ac_cv_lib_intl_gettext" = "yes"; then | |
6374 | ||
6375 | cat >>confdefs.h <<\EOF | |
6376 | #define HAVE_GETTEXT 1 | |
6377 | EOF | |
6378 | ||
6379 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6380 | set dummy msgfmt; ac_word=$2 | |
6381 | echo "$as_me:6381: checking for $ac_word" >&5 | |
6382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6383 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
6384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6385 | else | |
6386 | case "$MSGFMT" in | |
6387 | /*) | |
6388 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6389 | ;; | |
6390 | *) | |
6391 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6392 | for ac_dir in $PATH; do | |
6393 | test -z "$ac_dir" && ac_dir=. | |
6394 | if test -f $ac_dir/$ac_word; then | |
6395 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
6396 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
6397 | break | |
6398 | fi | |
6399 | fi | |
6400 | done | |
6401 | IFS="$ac_save_ifs" | |
6402 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
6403 | ;; | |
6404 | esac | |
6405 | fi | |
6406 | MSGFMT="$ac_cv_path_MSGFMT" | |
6407 | if test -n "$MSGFMT"; then | |
6408 | echo "$as_me:6408: result: $MSGFMT" >&5 | |
6409 | echo "${ECHO_T}$MSGFMT" >&6 | |
6410 | else | |
6411 | echo "$as_me:6411: result: no" >&5 | |
6412 | echo "${ECHO_T}no" >&6 | |
6413 | fi | |
6414 | if test "$MSGFMT" != "no"; then | |
6415 | ||
6416 | for ac_func in dcgettext | |
6417 | do | |
6418 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
6419 | echo "$as_me:6419: checking for $ac_func" >&5 | |
6420 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6421 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
6422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6423 | else | |
6424 | cat >conftest.$ac_ext <<_ACEOF | |
6425 | #line 6425 "configure" | |
6426 | #include "confdefs.h" | |
6427 | /* System header to define __stub macros and hopefully few prototypes, | |
6428 | which can conflict with char $ac_func (); below. */ | |
6429 | #include <assert.h> | |
6430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6431 | #ifdef __cplusplus | |
6432 | extern "C" | |
6433 | #endif | |
6434 | /* We use char because int might match the return type of a gcc2 | |
6435 | builtin and then its argument prototype would still apply. */ | |
6436 | char $ac_func (); | |
6437 | char (*f) (); | |
6438 | ||
6439 | int | |
6440 | main () | |
6441 | { | |
6442 | /* The GNU C library defines this for functions which it implements | |
6443 | to always fail with ENOSYS. Some functions are actually named | |
6444 | something starting with __ and the normal name is an alias. */ | |
6445 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6446 | choke me | |
6447 | #else | |
6448 | f = $ac_func; | |
6449 | #endif | |
6450 | ||
6451 | ; | |
6452 | return 0; | |
6453 | } | |
6454 | _ACEOF | |
6455 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6456 | if { (eval echo "$as_me:6456: \"$ac_link\"") >&5 | |
6457 | (eval $ac_link) 2>&5 | |
6458 | ac_status=$? | |
6459 | echo "$as_me:6459: \$? = $ac_status" >&5 | |
6460 | (exit $ac_status); } && | |
6461 | { ac_try='test -s conftest$ac_exeext' | |
6462 | { (eval echo "$as_me:6462: \"$ac_try\"") >&5 | |
6463 | (eval $ac_try) 2>&5 | |
6464 | ac_status=$? | |
6465 | echo "$as_me:6465: \$? = $ac_status" >&5 | |
6466 | (exit $ac_status); }; }; then | |
6467 | eval "$ac_ac_var=yes" | |
6468 | else | |
6469 | echo "$as_me: failed program was:" >&5 | |
6470 | cat conftest.$ac_ext >&5 | |
6471 | eval "$ac_ac_var=no" | |
6472 | fi | |
6473 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6474 | fi | |
6475 | echo "$as_me:6475: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
6476 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
6477 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
6478 | cat >>confdefs.h <<EOF | |
6479 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
6480 | EOF | |
6481 | ||
6482 | fi | |
6483 | done | |
6484 | ||
6485 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6486 | set dummy gmsgfmt; ac_word=$2 | |
6487 | echo "$as_me:6487: checking for $ac_word" >&5 | |
6488 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6489 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6491 | else | |
6492 | case $GMSGFMT in | |
6493 | [\\/]* | ?:[\\/]*) | |
6494 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6495 | ;; | |
6496 | *) | |
6497 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
6498 | ac_dummy="$PATH" | |
6499 | for ac_dir in $ac_dummy; do | |
6500 | IFS=$ac_save_IFS | |
6501 | test -z "$ac_dir" && ac_dir=. | |
6502 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6503 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
6504 | break | |
6505 | fi | |
6506 | done | |
6507 | ||
6508 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
6509 | ;; | |
6510 | esac | |
6511 | fi | |
6512 | GMSGFMT=$ac_cv_path_GMSGFMT | |
6513 | ||
6514 | if test -n "$GMSGFMT"; then | |
6515 | echo "$as_me:6515: result: $GMSGFMT" >&5 | |
6516 | echo "${ECHO_T}$GMSGFMT" >&6 | |
6517 | else | |
6518 | echo "$as_me:6518: result: no" >&5 | |
6519 | echo "${ECHO_T}no" >&6 | |
6520 | fi | |
6521 | ||
6522 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6523 | set dummy xgettext; ac_word=$2 | |
6524 | echo "$as_me:6524: checking for $ac_word" >&5 | |
6525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6526 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
6527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6528 | else | |
6529 | case "$XGETTEXT" in | |
6530 | /*) | |
6531 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6532 | ;; | |
6533 | *) | |
6534 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6535 | for ac_dir in $PATH; do | |
6536 | test -z "$ac_dir" && ac_dir=. | |
6537 | if test -f $ac_dir/$ac_word; then | |
6538 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
6539 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
6540 | break | |
6541 | fi | |
6542 | fi | |
6543 | done | |
6544 | IFS="$ac_save_ifs" | |
6545 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6546 | ;; | |
6547 | esac | |
6548 | fi | |
6549 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6550 | if test -n "$XGETTEXT"; then | |
6551 | echo "$as_me:6551: result: $XGETTEXT" >&5 | |
6552 | echo "${ECHO_T}$XGETTEXT" >&6 | |
6553 | else | |
6554 | echo "$as_me:6554: result: no" >&5 | |
6555 | echo "${ECHO_T}no" >&6 | |
6556 | fi | |
6557 | ||
6558 | cat >conftest.$ac_ext <<_ACEOF | |
6559 | #line 6559 "configure" | |
6560 | #include "confdefs.h" | |
6561 | ||
6562 | int | |
6563 | main () | |
6564 | { | |
6565 | extern int _nl_msg_cat_cntr; | |
6566 | return _nl_msg_cat_cntr | |
6567 | ; | |
6568 | return 0; | |
6569 | } | |
6570 | _ACEOF | |
6571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6572 | if { (eval echo "$as_me:6572: \"$ac_link\"") >&5 | |
6573 | (eval $ac_link) 2>&5 | |
6574 | ac_status=$? | |
6575 | echo "$as_me:6575: \$? = $ac_status" >&5 | |
6576 | (exit $ac_status); } && | |
6577 | { ac_try='test -s conftest$ac_exeext' | |
6578 | { (eval echo "$as_me:6578: \"$ac_try\"") >&5 | |
6579 | (eval $ac_try) 2>&5 | |
6580 | ac_status=$? | |
6581 | echo "$as_me:6581: \$? = $ac_status" >&5 | |
6582 | (exit $ac_status); }; }; then | |
6583 | CATOBJEXT=.gmo | |
6584 | DATADIRNAME=share | |
6585 | else | |
6586 | echo "$as_me: failed program was:" >&5 | |
6587 | cat conftest.$ac_ext >&5 | |
6588 | CATOBJEXT=.mo | |
6589 | DATADIRNAME=lib | |
6590 | fi | |
6591 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6592 | INSTOBJEXT=.mo | |
6593 | fi | |
6594 | fi | |
6595 | ||
6596 | fi | |
6597 | ||
6598 | if test "$CATOBJEXT" = "NONE"; then | |
6599 | echo "$as_me:6599: checking whether catgets can be used" >&5 | |
6600 | echo $ECHO_N "checking whether catgets can be used... $ECHO_C" >&6 | |
6601 | ||
6602 | # Check whether --with-catgets or --without-catgets was given. | |
6603 | if test "${with_catgets+set}" = set; then | |
6604 | withval="$with_catgets" | |
6605 | nls_cv_use_catgets=$withval | |
6606 | else | |
6607 | nls_cv_use_catgets=no | |
6608 | fi; | |
6609 | echo "$as_me:6609: result: $nls_cv_use_catgets" >&5 | |
6610 | echo "${ECHO_T}$nls_cv_use_catgets" >&6 | |
6611 | ||
6612 | if test "$nls_cv_use_catgets" = "yes"; then | |
6613 | ||
6614 | echo "$as_me:6614: checking for main in -li" >&5 | |
6615 | echo $ECHO_N "checking for main in -li... $ECHO_C" >&6 | |
6616 | if test "${ac_cv_lib_i_main+set}" = set; then | |
6617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6618 | else | |
6619 | ac_check_lib_save_LIBS=$LIBS | |
6620 | LIBS="-li $LIBS" | |
6621 | cat >conftest.$ac_ext <<_ACEOF | |
6622 | #line 6622 "configure" | |
6623 | #include "confdefs.h" | |
6624 | ||
6625 | int | |
6626 | main () | |
6627 | { | |
6628 | main (); | |
6629 | ; | |
6630 | return 0; | |
6631 | } | |
6632 | _ACEOF | |
6633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6634 | if { (eval echo "$as_me:6634: \"$ac_link\"") >&5 | |
6635 | (eval $ac_link) 2>&5 | |
6636 | ac_status=$? | |
6637 | echo "$as_me:6637: \$? = $ac_status" >&5 | |
6638 | (exit $ac_status); } && | |
6639 | { ac_try='test -s conftest$ac_exeext' | |
6640 | { (eval echo "$as_me:6640: \"$ac_try\"") >&5 | |
6641 | (eval $ac_try) 2>&5 | |
6642 | ac_status=$? | |
6643 | echo "$as_me:6643: \$? = $ac_status" >&5 | |
6644 | (exit $ac_status); }; }; then | |
6645 | ac_cv_lib_i_main=yes | |
6646 | else | |
6647 | echo "$as_me: failed program was:" >&5 | |
6648 | cat conftest.$ac_ext >&5 | |
6649 | ac_cv_lib_i_main=no | |
6650 | fi | |
6651 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6652 | LIBS=$ac_check_lib_save_LIBS | |
6653 | fi | |
6654 | echo "$as_me:6654: result: $ac_cv_lib_i_main" >&5 | |
6655 | echo "${ECHO_T}$ac_cv_lib_i_main" >&6 | |
6656 | if test $ac_cv_lib_i_main = yes; then | |
6657 | cat >>confdefs.h <<EOF | |
6658 | #define HAVE_LIBI 1 | |
6659 | EOF | |
6660 | ||
6661 | LIBS="-li $LIBS" | |
6662 | ||
6663 | fi | |
6664 | ||
6665 | echo "$as_me:6665: checking for catgets" >&5 | |
6666 | echo $ECHO_N "checking for catgets... $ECHO_C" >&6 | |
6667 | if test "${ac_cv_func_catgets+set}" = set; then | |
6668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6669 | else | |
6670 | cat >conftest.$ac_ext <<_ACEOF | |
6671 | #line 6671 "configure" | |
6672 | #include "confdefs.h" | |
6673 | /* System header to define __stub macros and hopefully few prototypes, | |
6674 | which can conflict with char catgets (); below. */ | |
6675 | #include <assert.h> | |
6676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6677 | #ifdef __cplusplus | |
6678 | extern "C" | |
6679 | #endif | |
6680 | /* We use char because int might match the return type of a gcc2 | |
6681 | builtin and then its argument prototype would still apply. */ | |
6682 | char catgets (); | |
6683 | char (*f) (); | |
6684 | ||
6685 | int | |
6686 | main () | |
6687 | { | |
6688 | /* The GNU C library defines this for functions which it implements | |
6689 | to always fail with ENOSYS. Some functions are actually named | |
6690 | something starting with __ and the normal name is an alias. */ | |
6691 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
6692 | choke me | |
6693 | #else | |
6694 | f = catgets; | |
6695 | #endif | |
6696 | ||
6697 | ; | |
6698 | return 0; | |
6699 | } | |
6700 | _ACEOF | |
6701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6702 | if { (eval echo "$as_me:6702: \"$ac_link\"") >&5 | |
6703 | (eval $ac_link) 2>&5 | |
6704 | ac_status=$? | |
6705 | echo "$as_me:6705: \$? = $ac_status" >&5 | |
6706 | (exit $ac_status); } && | |
6707 | { ac_try='test -s conftest$ac_exeext' | |
6708 | { (eval echo "$as_me:6708: \"$ac_try\"") >&5 | |
6709 | (eval $ac_try) 2>&5 | |
6710 | ac_status=$? | |
6711 | echo "$as_me:6711: \$? = $ac_status" >&5 | |
6712 | (exit $ac_status); }; }; then | |
6713 | ac_cv_func_catgets=yes | |
6714 | else | |
6715 | echo "$as_me: failed program was:" >&5 | |
6716 | cat conftest.$ac_ext >&5 | |
6717 | ac_cv_func_catgets=no | |
6718 | fi | |
6719 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6720 | fi | |
6721 | echo "$as_me:6721: result: $ac_cv_func_catgets" >&5 | |
6722 | echo "${ECHO_T}$ac_cv_func_catgets" >&6 | |
6723 | if test $ac_cv_func_catgets = yes; then | |
6724 | ||
6725 | cat >>confdefs.h <<\EOF | |
6726 | #define HAVE_CATGETS 1 | |
6727 | EOF | |
6728 | ||
6729 | INTLOBJS="\$(CATOBJS)" | |
6730 | # Extract the first word of "gencat", so it can be a program name with args. | |
6731 | set dummy gencat; ac_word=$2 | |
6732 | echo "$as_me:6732: checking for $ac_word" >&5 | |
6733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6734 | if test "${ac_cv_path_GENCAT+set}" = set; then | |
6735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6736 | else | |
6737 | case $GENCAT in | |
6738 | [\\/]* | ?:[\\/]*) | |
6739 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
6740 | ;; | |
6741 | *) | |
6742 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
6743 | ac_dummy="$PATH" | |
6744 | for ac_dir in $ac_dummy; do | |
6745 | IFS=$ac_save_IFS | |
6746 | test -z "$ac_dir" && ac_dir=. | |
6747 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6748 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
6749 | break | |
6750 | fi | |
6751 | done | |
6752 | ||
6753 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
6754 | ;; | |
6755 | esac | |
6756 | fi | |
6757 | GENCAT=$ac_cv_path_GENCAT | |
6758 | ||
6759 | if test -n "$GENCAT"; then | |
6760 | echo "$as_me:6760: result: $GENCAT" >&5 | |
6761 | echo "${ECHO_T}$GENCAT" >&6 | |
6762 | else | |
6763 | echo "$as_me:6763: result: no" >&5 | |
6764 | echo "${ECHO_T}no" >&6 | |
6765 | fi | |
6766 | if test "$GENCAT" != "no"; then | |
6767 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6768 | set dummy gmsgfmt; ac_word=$2 | |
6769 | echo "$as_me:6769: checking for $ac_word" >&5 | |
6770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6771 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6773 | else | |
6774 | case $GMSGFMT in | |
6775 | [\\/]* | ?:[\\/]*) | |
6776 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6777 | ;; | |
6778 | *) | |
6779 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
6780 | ac_dummy="$PATH" | |
6781 | for ac_dir in $ac_dummy; do | |
6782 | IFS=$ac_save_IFS | |
6783 | test -z "$ac_dir" && ac_dir=. | |
6784 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6785 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
6786 | break | |
6787 | fi | |
6788 | done | |
6789 | ||
6790 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
6791 | ;; | |
6792 | esac | |
6793 | fi | |
6794 | GMSGFMT=$ac_cv_path_GMSGFMT | |
6795 | ||
6796 | if test -n "$GMSGFMT"; then | |
6797 | echo "$as_me:6797: result: $GMSGFMT" >&5 | |
6798 | echo "${ECHO_T}$GMSGFMT" >&6 | |
6799 | else | |
6800 | echo "$as_me:6800: result: no" >&5 | |
6801 | echo "${ECHO_T}no" >&6 | |
6802 | fi | |
6803 | ||
6804 | if test "$GMSGFMT" = "no"; then | |
6805 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6806 | set dummy msgfmt; ac_word=$2 | |
6807 | echo "$as_me:6807: checking for $ac_word" >&5 | |
6808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6809 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6811 | else | |
6812 | case "$GMSGFMT" in | |
6813 | /*) | |
6814 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6815 | ;; | |
6816 | *) | |
6817 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6818 | for ac_dir in $PATH; do | |
6819 | test -z "$ac_dir" && ac_dir=. | |
6820 | if test -f $ac_dir/$ac_word; then | |
6821 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
6822 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
6823 | break | |
6824 | fi | |
6825 | fi | |
6826 | done | |
6827 | IFS="$ac_save_ifs" | |
6828 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
6829 | ;; | |
6830 | esac | |
6831 | fi | |
6832 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
6833 | if test -n "$GMSGFMT"; then | |
6834 | echo "$as_me:6834: result: $GMSGFMT" >&5 | |
6835 | echo "${ECHO_T}$GMSGFMT" >&6 | |
6836 | else | |
6837 | echo "$as_me:6837: result: no" >&5 | |
6838 | echo "${ECHO_T}no" >&6 | |
6839 | fi | |
6840 | ||
6841 | fi | |
6842 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6843 | set dummy xgettext; ac_word=$2 | |
6844 | echo "$as_me:6844: checking for $ac_word" >&5 | |
6845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6846 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
6847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6848 | else | |
6849 | case "$XGETTEXT" in | |
6850 | /*) | |
6851 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6852 | ;; | |
6853 | *) | |
6854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6855 | for ac_dir in $PATH; do | |
6856 | test -z "$ac_dir" && ac_dir=. | |
6857 | if test -f $ac_dir/$ac_word; then | |
6858 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
6859 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
6860 | break | |
6861 | fi | |
6862 | fi | |
6863 | done | |
6864 | IFS="$ac_save_ifs" | |
6865 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6866 | ;; | |
6867 | esac | |
6868 | fi | |
6869 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6870 | if test -n "$XGETTEXT"; then | |
6871 | echo "$as_me:6871: result: $XGETTEXT" >&5 | |
6872 | echo "${ECHO_T}$XGETTEXT" >&6 | |
6873 | else | |
6874 | echo "$as_me:6874: result: no" >&5 | |
6875 | echo "${ECHO_T}no" >&6 | |
6876 | fi | |
6877 | ||
6878 | USE_INCLUDED_LIBINTL=yes | |
6879 | CATOBJEXT=.cat | |
6880 | INSTOBJEXT=.cat | |
6881 | DATADIRNAME=lib | |
6882 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
6883 | INTLLIBS=$INTLDEPS | |
6884 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
6885 | nls_cv_header_intl=intl/libintl.h | |
6886 | nls_cv_header_libgt=intl/libgettext.h | |
6887 | fi | |
6888 | fi | |
6889 | ||
6890 | fi | |
6891 | fi | |
6892 | ||
6893 | if test "$CATOBJEXT" = "NONE"; then | |
6894 | nls_cv_use_gnu_gettext=yes | |
6895 | fi | |
6896 | fi | |
6897 | ||
6898 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
6899 | INTLOBJS="\$(GETTOBJS)" | |
6900 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6901 | set dummy msgfmt; ac_word=$2 | |
6902 | echo "$as_me:6902: checking for $ac_word" >&5 | |
6903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6904 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
6905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6906 | else | |
6907 | case "$MSGFMT" in | |
6908 | /*) | |
6909 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6910 | ;; | |
6911 | *) | |
6912 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6913 | for ac_dir in $PATH; do | |
6914 | test -z "$ac_dir" && ac_dir=. | |
6915 | if test -f $ac_dir/$ac_word; then | |
6916 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
6917 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
6918 | break | |
6919 | fi | |
6920 | fi | |
6921 | done | |
6922 | IFS="$ac_save_ifs" | |
6923 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
6924 | ;; | |
6925 | esac | |
6926 | fi | |
6927 | MSGFMT="$ac_cv_path_MSGFMT" | |
6928 | if test -n "$MSGFMT"; then | |
6929 | echo "$as_me:6929: result: $MSGFMT" >&5 | |
6930 | echo "${ECHO_T}$MSGFMT" >&6 | |
6931 | else | |
6932 | echo "$as_me:6932: result: no" >&5 | |
6933 | echo "${ECHO_T}no" >&6 | |
6934 | fi | |
6935 | ||
6936 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6937 | set dummy gmsgfmt; ac_word=$2 | |
6938 | echo "$as_me:6938: checking for $ac_word" >&5 | |
6939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6940 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6942 | else | |
6943 | case $GMSGFMT in | |
6944 | [\\/]* | ?:[\\/]*) | |
6945 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6946 | ;; | |
6947 | *) | |
6948 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
6949 | ac_dummy="$PATH" | |
6950 | for ac_dir in $ac_dummy; do | |
6951 | IFS=$ac_save_IFS | |
6952 | test -z "$ac_dir" && ac_dir=. | |
6953 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6954 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
6955 | break | |
6956 | fi | |
6957 | done | |
6958 | ||
6959 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
6960 | ;; | |
6961 | esac | |
6962 | fi | |
6963 | GMSGFMT=$ac_cv_path_GMSGFMT | |
6964 | ||
6965 | if test -n "$GMSGFMT"; then | |
6966 | echo "$as_me:6966: result: $GMSGFMT" >&5 | |
6967 | echo "${ECHO_T}$GMSGFMT" >&6 | |
6968 | else | |
6969 | echo "$as_me:6969: result: no" >&5 | |
6970 | echo "${ECHO_T}no" >&6 | |
6971 | fi | |
6972 | ||
6973 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6974 | set dummy xgettext; ac_word=$2 | |
6975 | echo "$as_me:6975: checking for $ac_word" >&5 | |
6976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6977 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
6978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6979 | else | |
6980 | case "$XGETTEXT" in | |
6981 | /*) | |
6982 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6983 | ;; | |
6984 | *) | |
6985 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6986 | for ac_dir in $PATH; do | |
6987 | test -z "$ac_dir" && ac_dir=. | |
6988 | if test -f $ac_dir/$ac_word; then | |
6989 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
6990 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
6991 | break | |
6992 | fi | |
6993 | fi | |
6994 | done | |
6995 | IFS="$ac_save_ifs" | |
6996 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6997 | ;; | |
6998 | esac | |
6999 | fi | |
7000 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7001 | if test -n "$XGETTEXT"; then | |
7002 | echo "$as_me:7002: result: $XGETTEXT" >&5 | |
7003 | echo "${ECHO_T}$XGETTEXT" >&6 | |
7004 | else | |
7005 | echo "$as_me:7005: result: no" >&5 | |
7006 | echo "${ECHO_T}no" >&6 | |
7007 | fi | |
7008 | ||
7009 | USE_INCLUDED_LIBINTL=yes | |
7010 | CATOBJEXT=.gmo | |
7011 | INSTOBJEXT=.mo | |
7012 | DATADIRNAME=share | |
7013 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7014 | INTLLIBS=$INTLDEPS | |
7015 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7016 | nls_cv_header_intl=intl/libintl.h | |
7017 | nls_cv_header_libgt=intl/libgettext.h | |
7018 | fi | |
7019 | ||
7020 | if test "$XGETTEXT" != ":"; then | |
7021 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
7022 | : ; | |
7023 | else | |
7024 | echo "$as_me:7024: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
7025 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
7026 | XGETTEXT=":" | |
7027 | fi | |
7028 | fi | |
7029 | ||
7030 | # We need to process the po/ directory. | |
7031 | POSUB=po | |
7032 | else | |
7033 | DATADIRNAME=share | |
7034 | nls_cv_header_intl=intl/libintl.h | |
7035 | nls_cv_header_libgt=intl/libgettext.h | |
7036 | fi | |
7037 | if test -z "$nls_cv_header_intl"; then | |
7038 | # Clean out junk possibly left behind by a previous configuration. | |
7039 | rm -f intl/libintl.h | |
7040 | fi | |
7041 | ac_sources="$nls_cv_header_libgt" | |
7042 | ac_dests="$nls_cv_header_intl" | |
7043 | while test -n "$ac_sources"; do | |
7044 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
7045 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
7046 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
7047 | done | |
7048 | ac_config_links="$ac_config_links $ac_config_links_1" | |
7049 | ||
7050 | ac_config_commands="$ac_config_commands default-2" | |
7051 | ||
7052 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
7053 | # because some of the sources are only built for this goal. | |
7054 | if test "$PACKAGE" = gettext; then | |
7055 | USE_NLS=yes | |
7056 | USE_INCLUDED_LIBINTL=yes | |
7057 | fi | |
7058 | ||
7059 | for lang in $ALL_LINGUAS; do | |
7060 | GMOFILES="$GMOFILES $lang.gmo" | |
7061 | POFILES="$POFILES $lang.po" | |
7062 | done | |
7063 | ||
7064 | if test "x$CATOBJEXT" != "x"; then | |
7065 | if test "x$ALL_LINGUAS" = "x"; then | |
7066 | LINGUAS= | |
7067 | else | |
7068 | echo "$as_me:7068: checking for catalogs to be installed" >&5 | |
7069 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
7070 | NEW_LINGUAS= | |
7071 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
7072 | case "$ALL_LINGUAS" in | |
7073 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
7074 | esac | |
7075 | done | |
7076 | LINGUAS=$NEW_LINGUAS | |
7077 | echo "$as_me:7077: result: $LINGUAS" >&5 | |
7078 | echo "${ECHO_T}$LINGUAS" >&6 | |
7079 | fi | |
7080 | ||
7081 | if test -n "$LINGUAS"; then | |
7082 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
7083 | fi | |
7084 | fi | |
7085 | ||
7086 | if test $ac_cv_header_locale_h = yes; then | |
7087 | INCLUDE_LOCALE_H="#include <locale.h>" | |
7088 | else | |
7089 | INCLUDE_LOCALE_H="\ | |
7090 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
7091 | fi | |
7092 | ||
7093 | test -d intl || mkdir intl | |
7094 | if test "$CATOBJEXT" = ".cat"; then | |
7095 | echo "$as_me:7095: checking for linux/version.h" >&5 | |
7096 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
7097 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
7098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7099 | else | |
7100 | cat >conftest.$ac_ext <<_ACEOF | |
7101 | #line 7101 "configure" | |
7102 | #include "confdefs.h" | |
7103 | #include <linux/version.h> | |
7104 | _ACEOF | |
7105 | if { (eval echo "$as_me:7105: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
7106 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
7107 | ac_status=$? | |
7108 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7109 | rm -f conftest.er1 | |
7110 | cat conftest.err >&5 | |
7111 | echo "$as_me:7111: \$? = $ac_status" >&5 | |
7112 | (exit $ac_status); }; then | |
7113 | if test -s conftest.err; then | |
7114 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7115 | else | |
7116 | ac_cpp_err= | |
7117 | fi | |
7118 | else | |
7119 | ac_cpp_err=yes | |
7120 | fi | |
7121 | if test -z "$ac_cpp_err"; then | |
7122 | ac_cv_header_linux_version_h=yes | |
7123 | else | |
7124 | echo "$as_me: failed program was:" >&5 | |
7125 | cat conftest.$ac_ext >&5 | |
7126 | ac_cv_header_linux_version_h=no | |
7127 | fi | |
7128 | rm -f conftest.err conftest.$ac_ext | |
7129 | fi | |
7130 | echo "$as_me:7130: result: $ac_cv_header_linux_version_h" >&5 | |
7131 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
7132 | if test $ac_cv_header_linux_version_h = yes; then | |
7133 | msgformat=linux | |
7134 | else | |
7135 | msgformat=xopen | |
7136 | fi | |
7137 | ||
7138 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed | |
7139 | fi | |
7140 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
7141 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
7142 | ||
7143 | if test "$PACKAGE" = "gettext"; then | |
7144 | GT_NO="#NO#" | |
7145 | GT_YES= | |
7146 | else | |
7147 | GT_NO= | |
7148 | GT_YES="#YES#" | |
7149 | fi | |
7150 | ||
7151 | MKINSTALLDIRS= | |
7152 | if test -n "$ac_aux_dir"; then | |
7153 | MKINSTALLDIRS="\$(top_srcdir)/$ac_aux_dir/mkinstalldirs" | |
7154 | fi | |
7155 | if test -z "$MKINSTALLDIRS"; then | |
7156 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
7157 | fi | |
7158 | ||
7159 | l= | |
7160 | ||
7161 | test -d po || mkdir po | |
7162 | case "$srcdir" in | |
7163 | .) | |
7164 | posrcprefix="../" ;; | |
7165 | /* | [A-Za-z]:*) | |
7166 | posrcprefix="$srcdir/" ;; | |
7167 | *) | |
7168 | posrcprefix="../$srcdir/" ;; | |
7169 | esac | |
7170 | rm -f po/POTFILES | |
7171 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
7172 | < $srcdir/po/POTFILES.in > po/POTFILES | |
7173 | ||
7174 | # This is necessary so that .o files in LIBOBJS are also built via | |
7175 | # the ANSI2KNR-filtering rules. | |
7176 | LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` | |
7177 | ||
7178 | ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile tests/atconfig" | |
7179 | cat >confcache <<\_ACEOF | |
7180 | # This file is a shell script that caches the results of configure | |
7181 | # tests run on this system so they can be shared between configure | |
7182 | # scripts and configure runs, see configure's option --config-cache. | |
7183 | # It is not useful on other systems. If it contains results you don't | |
7184 | # want to keep, you may remove or edit it. | |
7185 | # | |
7186 | # config.status only pays attention to the cache file if you give it | |
7187 | # the --recheck option to rerun configure. | |
7188 | # | |
7189 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | |
7190 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7191 | # following values. | |
7192 | ||
7193 | _ACEOF | |
7194 | ||
7195 | # The following way of writing the cache mishandles newlines in values, | |
7196 | # but we know of no workaround that is simple, portable, and efficient. | |
7197 | # So, don't put newlines in cache variables' values. | |
7198 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7199 | # and sets the high bit in the cache file unless we assign to the vars. | |
7200 | { | |
7201 | (set) 2>&1 | | |
7202 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7203 | *ac_space=\ *) | |
7204 | # `set' does not quote correctly, so add quotes (double-quote | |
7205 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7206 | sed -n \ | |
7207 | "s/'/'\\\\''/g; | |
7208 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7209 | ;; | |
7210 | *) | |
7211 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7212 | sed -n \ | |
7213 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
7214 | ;; | |
7215 | esac; | |
7216 | } | | |
7217 | sed ' | |
7218 | t clear | |
7219 | : clear | |
7220 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7221 | t end | |
7222 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7223 | : end' >>confcache | |
7224 | if cmp -s $cache_file confcache; then :; else | |
7225 | if test -w $cache_file; then | |
7226 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
7227 | cat confcache >$cache_file | |
7228 | else | |
7229 | echo "not updating unwritable cache $cache_file" | |
7230 | fi | |
7231 | fi | |
7232 | rm -f confcache | |
7233 | ||
7234 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7235 | # Let make expand exec_prefix. | |
7236 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7237 | ||
7238 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
7239 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7240 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7241 | # (actually we leave an empty line to preserve line numbers). | |
7242 | if test "x$srcdir" = x.; then | |
7243 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7244 | s/:*\$(srcdir):*/:/; | |
7245 | s/:*\${srcdir}:*/:/; | |
7246 | s/:*@srcdir@:*/:/; | |
7247 | s/^\([^=]*=[ ]*\):*/\1/; | |
7248 | s/:*$//; | |
7249 | s/^[^=]*=[ ]*$//; | |
7250 | }' | |
7251 | fi | |
7252 | ||
7253 | DEFS=-DHAVE_CONFIG_H | |
7254 | ||
7255 | : ${CONFIG_STATUS=./config.status} | |
7256 | ac_clean_files_save=$ac_clean_files | |
7257 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7258 | { echo "$as_me:7258: creating $CONFIG_STATUS" >&5 | |
7259 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7260 | cat >$CONFIG_STATUS <<\_ACEOF | |
7261 | #! /bin/sh | |
7262 | # Generated automatically by configure. | |
7263 | # Run this file to recreate the current configuration. | |
7264 | # Compiler output produced by configure, useful for debugging | |
7265 | # configure, is in config.log if it exists. | |
7266 | ||
7267 | debug=false | |
7268 | as_me=`echo "$0" | sed 's,.*/,,'` | |
7269 | SHELL=${CONFIG_SHELL-/bin/sh} | |
7270 | ||
7271 | # Be Bourne compatible | |
7272 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7273 | emulate sh | |
7274 | NULLCMD=: | |
7275 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7276 | set -o posix | |
7277 | fi | |
7278 | ||
7279 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7280 | as_expr=expr | |
7281 | else | |
7282 | as_expr=false | |
7283 | fi | |
7284 | ||
7285 | rm -f conf$$ conf$$.exe conf$$.file | |
7286 | echo >conf$$.file | |
7287 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7288 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7289 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7290 | if test -f conf$$.exe; then | |
7291 | # Don't use ln at all; we don't have any links | |
7292 | as_ln_s='cp -p' | |
7293 | else | |
7294 | as_ln_s='ln -s' | |
7295 | fi | |
7296 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7297 | as_ln_s=ln | |
7298 | else | |
7299 | as_ln_s='cp -p' | |
7300 | fi | |
7301 | rm -f conf$$ conf$$.exe conf$$.file | |
7302 | ||
7303 | as_executable_p="test -f" | |
7304 | ||
7305 | # Support unset when possible. | |
7306 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
7307 | as_unset=unset | |
7308 | else | |
7309 | as_unset=false | |
7310 | fi | |
7311 | ||
7312 | # NLS nuisances. | |
7313 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
7314 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
7315 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
7316 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
7317 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
7318 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
7319 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
7320 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
7321 | ||
7322 | # IFS | |
7323 | # We need space, tab and new line, in precisely that order. | |
7324 | as_nl=' | |
7325 | ' | |
7326 | IFS=" $as_nl" | |
7327 | ||
7328 | # CDPATH. | |
7329 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
7330 | ||
7331 | # File descriptor usage: | |
7332 | # 0 standard input | |
7333 | # 1 file creation | |
7334 | # 2 errors and warnings | |
7335 | # 5 compiler messages saved in config.log | |
7336 | # 6 checking for... messages and results | |
7337 | exec 5>>config.log | |
7338 | exec 6>&1 | |
7339 | ||
7340 | cat >&5 << EOF | |
7341 | ||
7342 | ## ----------------------- ## | |
7343 | ## Running config.status. ## | |
7344 | ## ----------------------- ## | |
7345 | ||
7346 | This file was extended by $as_me 2.49d, executed with | |
7347 | > $0 $@ | |
7348 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
7349 | ||
7350 | EOF | |
7351 | ||
7352 | _ACEOF | |
7353 | ||
7354 | # Files that config.status was made for. | |
7355 | if test -n "$ac_config_files"; then | |
7356 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7357 | fi | |
7358 | ||
7359 | if test -n "$ac_config_headers"; then | |
7360 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7361 | fi | |
7362 | ||
7363 | if test -n "$ac_config_links"; then | |
7364 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7365 | fi | |
7366 | ||
7367 | if test -n "$ac_config_commands"; then | |
7368 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7369 | fi | |
7370 | ||
7371 | cat >>$CONFIG_STATUS <<\EOF | |
7372 | ||
7373 | ac_cs_usage="\ | |
7374 | \`$as_me' instantiates files from templates according to the | |
7375 | current configuration. | |
7376 | ||
7377 | Usage: $0 [OPTIONS] [FILE]... | |
7378 | ||
7379 | -h, --help print this help, then exit | |
7380 | -V, --version print version number, then exit | |
7381 | -d, --debug don't remove temporary files | |
7382 | --recheck update $as_me by reconfiguring in the same conditions | |
7383 | --file=FILE[:TEMPLATE] | |
7384 | instantiate the configuration file FILE | |
7385 | --header=FILE[:TEMPLATE] | |
7386 | instantiate the configuration header FILE | |
7387 | ||
7388 | Configuration files: | |
7389 | $config_files | |
7390 | ||
7391 | Configuration headers: | |
7392 | $config_headers | |
7393 | ||
7394 | Configuration links: | |
7395 | $config_links | |
7396 | ||
7397 | Configuration commands: | |
7398 | $config_commands | |
7399 | ||
7400 | Report bugs to <bug-autoconf@gnu.org>." | |
7401 | EOF | |
7402 | ||
7403 | cat >>$CONFIG_STATUS <<EOF | |
7404 | ac_cs_version="\\ | |
7405 | $CONFIG_STATUS generated by $as_me (Autoconf 2.49d). | |
7406 | Configured on host $ac_hostname by | |
7407 | `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`" | |
7408 | srcdir=$srcdir | |
7409 | INSTALL="$INSTALL" | |
7410 | EOF | |
7411 | ||
7412 | cat >>$CONFIG_STATUS <<\EOF | |
7413 | # If no file are specified by the user, then we need to provide default | |
7414 | # value. By we need to know if files were specified by the user. | |
7415 | ac_need_defaults=: | |
7416 | while test $# != 0 | |
7417 | do | |
7418 | case $1 in | |
7419 | --*=*) | |
7420 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7421 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
7422 | shift | |
7423 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
7424 | shift | |
7425 | ;; | |
7426 | -*);; | |
7427 | *) # This is not an option, so the user has probably given explicit | |
7428 | # arguments. | |
7429 | ac_need_defaults=false;; | |
7430 | esac | |
7431 | ||
7432 | case $1 in | |
7433 | # Handling of the options. | |
7434 | EOF | |
7435 | cat >>$CONFIG_STATUS <<EOF | |
7436 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7437 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
7438 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
7439 | EOF | |
7440 | cat >>$CONFIG_STATUS <<\EOF | |
7441 | --version | --vers* | -V ) | |
7442 | echo "$ac_cs_version"; exit 0 ;; | |
7443 | --he | --h) | |
7444 | # Conflict between --help and --header | |
7445 | { { echo "$as_me:7445: error: ambiguous option: $1 | |
7446 | Try \`$0 --help' for more information." >&5 | |
7447 | echo "$as_me: error: ambiguous option: $1 | |
7448 | Try \`$0 --help' for more information." >&2;} | |
7449 | { (exit 1); exit 1; }; };; | |
7450 | --help | --hel | -h ) | |
7451 | echo "$ac_cs_usage"; exit 0 ;; | |
7452 | --debug | --d* | -d ) | |
7453 | debug=: ;; | |
7454 | --file | --fil | --fi | --f ) | |
7455 | shift | |
7456 | CONFIG_FILES="$CONFIG_FILES $1" | |
7457 | ac_need_defaults=false;; | |
7458 | --header | --heade | --head | --hea ) | |
7459 | shift | |
7460 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
7461 | ac_need_defaults=false;; | |
7462 | ||
7463 | # Handling of arguments. | |
7464 | 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7465 | 'intl/Makefile' ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; | |
7466 | 'po/Makefile.in' ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | |
7467 | 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7468 | 'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
7469 | 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
7470 | 'm4/Makefile' ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | |
7471 | 'tests/Makefile' ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
7472 | 'tests/atconfig' ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;; | |
7473 | '$ac_config_links_1' ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
7474 | 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
7475 | 'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; | |
7476 | 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; | |
7477 | ||
7478 | # This is an error. | |
7479 | -*) { { echo "$as_me:7479: error: unrecognized option: $1 | |
7480 | Try \`$0 --help' for more information." >&5 | |
7481 | echo "$as_me: error: unrecognized option: $1 | |
7482 | Try \`$0 --help' for more information." >&2;} | |
7483 | { (exit 1); exit 1; }; } ;; | |
7484 | *) { { echo "$as_me:7484: error: invalid argument: $1" >&5 | |
7485 | echo "$as_me: error: invalid argument: $1" >&2;} | |
7486 | { (exit 1); exit 1; }; };; | |
7487 | esac | |
7488 | shift | |
7489 | done | |
7490 | ||
7491 | EOF | |
7492 | ||
7493 | cat >>$CONFIG_STATUS <<\EOF | |
7494 | # If the user did not use the arguments to specify the items to instantiate, | |
7495 | # then the envvar interface is used. Set only those that are not. | |
7496 | # We use the long form for the default assignment because of an extremely | |
7497 | # bizarre bug on SunOS 4.1.3. | |
7498 | if $ac_need_defaults; then | |
7499 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7500 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7501 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
7502 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7503 | fi | |
7504 | ||
7505 | # Create a temporary directory, and hook for its removal unless debugging. | |
7506 | $debug || | |
7507 | { | |
7508 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7509 | trap '{ (exit $?); exit $?; }' 1 2 13 15 | |
7510 | } | |
7511 | ||
7512 | # Create a (secure) tmp directory for tmp files. | |
7513 | : ${TMPDIR=/tmp} | |
7514 | { | |
7515 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
7516 | test -n "$tmp" && test -d "$tmp" | |
7517 | } || | |
7518 | { | |
7519 | tmp=$TMPDIR/cs$$-$RANDOM | |
7520 | (umask 077 && mkdir $tmp) | |
7521 | } || | |
7522 | { | |
7523 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
7524 | { (exit 1); exit 1; } | |
7525 | } | |
7526 | ||
7527 | EOF | |
7528 | ||
7529 | cat >>$CONFIG_STATUS <<EOF | |
7530 | # | |
7531 | # INIT-COMMANDS section. | |
7532 | # | |
7533 | ||
7534 | EOF | |
7535 | ||
7536 | cat >>$CONFIG_STATUS <<EOF | |
7537 | ||
7538 | # | |
7539 | # CONFIG_FILES section. | |
7540 | # | |
7541 | ||
7542 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7543 | # This happens for instance when ./config.status config.h | |
7544 | if test -n "\$CONFIG_FILES"; then | |
7545 | # Protect against being on the right side of a sed subst in config.status. | |
7546 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7547 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7548 | s,@SHELL@,$SHELL,;t t | |
7549 | s,@exec_prefix@,$exec_prefix,;t t | |
7550 | s,@prefix@,$prefix,;t t | |
7551 | s,@program_transform_name@,$program_transform_name,;t t | |
7552 | s,@bindir@,$bindir,;t t | |
7553 | s,@sbindir@,$sbindir,;t t | |
7554 | s,@libexecdir@,$libexecdir,;t t | |
7555 | s,@datadir@,$datadir,;t t | |
7556 | s,@sysconfdir@,$sysconfdir,;t t | |
7557 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7558 | s,@localstatedir@,$localstatedir,;t t | |
7559 | s,@libdir@,$libdir,;t t | |
7560 | s,@includedir@,$includedir,;t t | |
7561 | s,@oldincludedir@,$oldincludedir,;t t | |
7562 | s,@infodir@,$infodir,;t t | |
7563 | s,@mandir@,$mandir,;t t | |
7564 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7565 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7566 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7567 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7568 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7569 | s,@ECHO_C@,$ECHO_C,;t t | |
7570 | s,@ECHO_N@,$ECHO_N,;t t | |
7571 | s,@ECHO_T@,$ECHO_T,;t t | |
7572 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
7573 | s,@DEFS@,$DEFS,;t t | |
7574 | s,@LIBS@,$LIBS,;t t | |
7575 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7576 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7577 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7578 | s,@PACKAGE@,$PACKAGE,;t t | |
7579 | s,@VERSION@,$VERSION,;t t | |
7580 | s,@ACLOCAL@,$ACLOCAL,;t t | |
7581 | s,@AUTOCONF@,$AUTOCONF,;t t | |
7582 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
7583 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
7584 | s,@MAKEINFO@,$MAKEINFO,;t t | |
7585 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7586 | s,@AT_TESTPATH@,$AT_TESTPATH,;t t | |
7587 | s,@CC@,$CC,;t t | |
7588 | s,@CFLAGS@,$CFLAGS,;t t | |
7589 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7590 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
7591 | s,@EXEEXT@,$EXEEXT,;t t | |
7592 | s,@OBJEXT@,$OBJEXT,;t t | |
7593 | s,@CPP@,$CPP,;t t | |
7594 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7595 | s,@RANLIB@,$RANLIB,;t t | |
7596 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
7597 | s,@M4@,$M4,;t t | |
7598 | s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t | |
7599 | s,@U@,$U,;t t | |
7600 | s,@ANSI2KNR@,$ANSI2KNR,;t t | |
7601 | s,@ALLOCA@,$ALLOCA,;t t | |
7602 | s,@LIBOBJS@,$LIBOBJS,;t t | |
7603 | s,@USE_NLS@,$USE_NLS,;t t | |
7604 | s,@MSGFMT@,$MSGFMT,;t t | |
7605 | s,@GMSGFMT@,$GMSGFMT,;t t | |
7606 | s,@XGETTEXT@,$XGETTEXT,;t t | |
7607 | s,@GENCAT@,$GENCAT,;t t | |
7608 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
7609 | s,@CATALOGS@,$CATALOGS,;t t | |
7610 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
7611 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
7612 | s,@GMOFILES@,$GMOFILES,;t t | |
7613 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
7614 | s,@INTLDEPS@,$INTLDEPS,;t t | |
7615 | s,@INTLLIBS@,$INTLLIBS,;t t | |
7616 | s,@INTLOBJS@,$INTLOBJS,;t t | |
7617 | s,@POFILES@,$POFILES,;t t | |
7618 | s,@POSUB@,$POSUB,;t t | |
7619 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
7620 | s,@GT_NO@,$GT_NO,;t t | |
7621 | s,@GT_YES@,$GT_YES,;t t | |
7622 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
7623 | s,@l@,$l,;t t | |
7624 | CEOF | |
7625 | ||
7626 | EOF | |
7627 | ||
7628 | cat >>$CONFIG_STATUS <<\EOF | |
7629 | # Split the substitutions into bite-sized pieces for seds with | |
7630 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7631 | ac_max_sed_lines=48 | |
7632 | ac_sed_frag=1 # Number of current file. | |
7633 | ac_beg=1 # First line for current file. | |
7634 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7635 | ac_more_lines=: | |
7636 | ac_sed_cmds= | |
7637 | while $ac_more_lines; do | |
7638 | if test $ac_beg -gt 1; then | |
7639 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7640 | else | |
7641 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7642 | fi | |
7643 | if test ! -s $tmp/subs.frag; then | |
7644 | ac_more_lines=false | |
7645 | else | |
7646 | # The purpose of the label and of the branching condition is to | |
7647 | # speed up the sed processing (if there are no `@' at all, there | |
7648 | # is no need to browse any of the substitutions). | |
7649 | # These are the two extra sed commands mentioned above. | |
7650 | (echo ':t | |
7651 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7652 | if test -z "$ac_sed_cmds"; then | |
7653 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7654 | else | |
7655 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7656 | fi | |
7657 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7658 | ac_beg=$ac_end | |
7659 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
7660 | fi | |
7661 | done | |
7662 | if test -z "$ac_sed_cmds"; then | |
7663 | ac_sed_cmds=cat | |
7664 | fi | |
7665 | fi # test -n "$CONFIG_FILES" | |
7666 | ||
7667 | EOF | |
7668 | cat >>$CONFIG_STATUS <<\EOF | |
7669 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
7670 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7671 | case $ac_file in | |
7672 | - | *:- | *:-:* ) # input from stdin | |
7673 | cat >$tmp/stdin | |
7674 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7675 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7676 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7677 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7678 | * ) ac_file_in=$ac_file.in ;; | |
7679 | esac | |
7680 | ||
7681 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
7682 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7683 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7684 | X"$ac_file" : 'X\(//\)$' \| \ | |
7685 | X"$ac_file" : 'X\(/\)' \| \ | |
7686 | . : '\(.\)' 2>/dev/null || | |
7687 | echo X"$ac_file" | | |
7688 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7689 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7690 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7691 | /^X\(\/\).*/{ s//\1/; q; } | |
7692 | s/.*/./; q'` | |
7693 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
7694 | { case "$ac_dir" in | |
7695 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
7696 | *) as_incr_dir=.;; | |
7697 | esac | |
7698 | as_dummy="$ac_dir" | |
7699 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
7700 | case $as_mkdir_dir in | |
7701 | # Skip DOS drivespec | |
7702 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
7703 | *) | |
7704 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
7705 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
7706 | ;; | |
7707 | esac | |
7708 | done; } | |
7709 | ||
7710 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
7711 | # A "../" for each directory in $ac_dir_suffix. | |
7712 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | |
7713 | else | |
7714 | ac_dir_suffix= ac_dots= | |
7715 | fi | |
7716 | ||
7717 | case $srcdir in | |
7718 | .) ac_srcdir=. | |
7719 | if test -z "$ac_dots"; then | |
7720 | ac_top_srcdir=. | |
7721 | else | |
7722 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
7723 | fi ;; | |
7724 | [\\/]* | ?:[\\/]* ) | |
7725 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7726 | ac_top_srcdir=$srcdir ;; | |
7727 | *) # Relative path. | |
7728 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix | |
7729 | ac_top_srcdir=$ac_dots$srcdir ;; | |
7730 | esac | |
7731 | ||
7732 | case $INSTALL in | |
7733 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7734 | *) ac_INSTALL=$ac_dots$INSTALL ;; | |
7735 | esac | |
7736 | ||
7737 | if test x"$ac_file" != x-; then | |
7738 | { echo "$as_me:7738: creating $ac_file" >&5 | |
7739 | echo "$as_me: creating $ac_file" >&6;} | |
7740 | rm -f "$ac_file" | |
7741 | fi | |
7742 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7743 | # use $as_me), people would be surprised to read: | |
7744 | # /* config.h. Generated automatically by config.status. */ | |
7745 | configure_input="Generated automatically from `echo $ac_file_in | | |
7746 | sed 's,.*/,,'` by configure." | |
7747 | ||
7748 | # First look for the input files in the build tree, otherwise in the | |
7749 | # src tree. | |
7750 | ac_file_inputs=`IFS=: | |
7751 | for f in $ac_file_in; do | |
7752 | case $f in | |
7753 | -) echo $tmp/stdin ;; | |
7754 | [\\/$]* | ?:[\\/]*) | |
7755 | # Absolute | |
7756 | test -f "$f" || { { echo "$as_me:7756: error: cannot find input file: $f" >&5 | |
7757 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7758 | { (exit 1); exit 1; }; } | |
7759 | echo $f;; | |
7760 | *) # Relative | |
7761 | if test -f "$f"; then | |
7762 | # Build tree | |
7763 | echo $f | |
7764 | elif test -f "$srcdir/$f"; then | |
7765 | # Source tree | |
7766 | echo $srcdir/$f | |
7767 | else | |
7768 | # /dev/null tree | |
7769 | { { echo "$as_me:7769: error: cannot find input file: $f" >&5 | |
7770 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7771 | { (exit 1); exit 1; }; } | |
7772 | fi;; | |
7773 | esac | |
7774 | done` || { (exit 1); exit 1; } | |
7775 | EOF | |
7776 | cat >>$CONFIG_STATUS <<EOF | |
7777 | sed "$ac_vpsub | |
7778 | $extrasub | |
7779 | EOF | |
7780 | cat >>$CONFIG_STATUS <<\EOF | |
7781 | :t | |
7782 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7783 | s,@configure_input@,$configure_input,;t t | |
7784 | s,@srcdir@,$ac_srcdir,;t t | |
7785 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7786 | s,@INSTALL@,$ac_INSTALL,;t t | |
7787 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7788 | rm -f $tmp/stdin | |
7789 | if test x"$ac_file" != x-; then | |
7790 | mv $tmp/out $ac_file | |
7791 | else | |
7792 | cat $tmp/out | |
7793 | rm -f $tmp/out | |
7794 | fi | |
7795 | ||
7796 | done | |
7797 | EOF | |
7798 | cat >>$CONFIG_STATUS <<\EOF | |
7799 | ||
7800 | # | |
7801 | # CONFIG_HEADER section. | |
7802 | # | |
7803 | ||
7804 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7805 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7806 | # | |
7807 | # ac_d sets the value in "#define NAME VALUE" lines. | |
7808 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
7809 | ac_dB='[ ].*$,\1#\2' | |
7810 | ac_dC=' ' | |
7811 | ac_dD=',;t' | |
7812 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7813 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7814 | ac_uB='$,\1#\2define\3' | |
7815 | ac_uC=' ' | |
7816 | ac_uD=',;t' | |
7817 | ||
7818 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
7819 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7820 | case $ac_file in | |
7821 | - | *:- | *:-:* ) # input from stdin | |
7822 | cat >$tmp/stdin | |
7823 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7824 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7825 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7826 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7827 | * ) ac_file_in=$ac_file.in ;; | |
7828 | esac | |
7829 | ||
7830 | test x"$ac_file" != x- && { echo "$as_me:7830: creating $ac_file" >&5 | |
7831 | echo "$as_me: creating $ac_file" >&6;} | |
7832 | ||
7833 | # First look for the input files in the build tree, otherwise in the | |
7834 | # src tree. | |
7835 | ac_file_inputs=`IFS=: | |
7836 | for f in $ac_file_in; do | |
7837 | case $f in | |
7838 | -) echo $tmp/stdin ;; | |
7839 | [\\/$]* | ?:[\\/]*) | |
7840 | # Absolute | |
7841 | test -f "$f" || { { echo "$as_me:7841: error: cannot find input file: $f" >&5 | |
7842 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7843 | { (exit 1); exit 1; }; } | |
7844 | echo $f;; | |
7845 | *) # Relative | |
7846 | if test -f "$f"; then | |
7847 | # Build tree | |
7848 | echo $f | |
7849 | elif test -f "$srcdir/$f"; then | |
7850 | # Source tree | |
7851 | echo $srcdir/$f | |
7852 | else | |
7853 | # /dev/null tree | |
7854 | { { echo "$as_me:7854: error: cannot find input file: $f" >&5 | |
7855 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7856 | { (exit 1); exit 1; }; } | |
7857 | fi;; | |
7858 | esac | |
7859 | done` || { (exit 1); exit 1; } | |
7860 | # Remove the trailing spaces. | |
7861 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
7862 | ||
7863 | EOF | |
7864 | ||
7865 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7866 | # `conftest.undefs', that substitutes the proper values into | |
7867 | # config.h.in to produce config.h. The first handles `#define' | |
7868 | # templates, and the second `#undef' templates. | |
7869 | # And first: Protect against being on the right side of a sed subst in | |
7870 | # config.status. Protect against being in an unquoted here document | |
7871 | # in config.status. | |
7872 | rm -f conftest.defines conftest.undefs | |
7873 | # Using a here document instead of a string reduces the quoting nightmare. | |
7874 | # Putting comments in sed scripts is not portable. | |
7875 | # | |
7876 | # `end' is used to avoid that the second main sed command (meant for | |
7877 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7878 | # See the Autoconf documentation for `clear'. | |
7879 | cat >confdef2sed.sed <<\EOF | |
7880 | s/[\\&,]/\\&/g | |
7881 | s,[\\$`],\\&,g | |
7882 | t clear | |
7883 | : clear | |
7884 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
7885 | t end | |
7886 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
7887 | : end | |
7888 | EOF | |
7889 | # If some macros were called several times there might be several times | |
7890 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7891 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7892 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7893 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7894 | rm -f confdef2sed.sed | |
7895 | ||
7896 | # This sed command replaces #undef with comments. This is necessary, for | |
7897 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7898 | # on some systems where configure will not decide to define it. | |
7899 | cat >>conftest.undefs <<\EOF | |
7900 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
7901 | EOF | |
7902 | ||
7903 | # Break up conftest.defines because some shells have a limit on the size | |
7904 | # of here documents, and old seds have small limits too (100 cmds). | |
7905 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
7906 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
7907 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
7908 | echo ' :' >>$CONFIG_STATUS | |
7909 | rm -f conftest.tail | |
7910 | while grep . conftest.defines >/dev/null | |
7911 | do | |
7912 | # Write a limited-size here document to $tmp/defines.sed. | |
7913 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7914 | # Speed up: don't consider the non `#define' lines. | |
7915 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
7916 | # Work around the forget-to-reset-the-flag bug. | |
7917 | echo 't clr' >>$CONFIG_STATUS | |
7918 | echo ': clr' >>$CONFIG_STATUS | |
7919 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7920 | echo 'CEOF | |
7921 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7922 | rm -f $tmp/in | |
7923 | mv $tmp/out $tmp/in | |
7924 | ' >>$CONFIG_STATUS | |
7925 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7926 | rm -f conftest.defines | |
7927 | mv conftest.tail conftest.defines | |
7928 | done | |
7929 | rm -f conftest.defines | |
7930 | echo ' fi # egrep' >>$CONFIG_STATUS | |
7931 | echo >>$CONFIG_STATUS | |
7932 | ||
7933 | # Break up conftest.undefs because some shells have a limit on the size | |
7934 | # of here documents, and old seds have small limits too (100 cmds). | |
7935 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
7936 | rm -f conftest.tail | |
7937 | while grep . conftest.undefs >/dev/null | |
7938 | do | |
7939 | # Write a limited-size here document to $tmp/undefs.sed. | |
7940 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7941 | # Speed up: don't consider the non `#undef' | |
7942 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
7943 | # Work around the forget-to-reset-the-flag bug. | |
7944 | echo 't clr' >>$CONFIG_STATUS | |
7945 | echo ': clr' >>$CONFIG_STATUS | |
7946 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
7947 | echo 'CEOF | |
7948 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
7949 | rm -f $tmp/in | |
7950 | mv $tmp/out $tmp/in | |
7951 | ' >>$CONFIG_STATUS | |
7952 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
7953 | rm -f conftest.undefs | |
7954 | mv conftest.tail conftest.undefs | |
7955 | done | |
7956 | rm -f conftest.undefs | |
7957 | ||
7958 | cat >>$CONFIG_STATUS <<\EOF | |
7959 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7960 | # use $as_me), people would be surprised to read: | |
7961 | # /* config.h. Generated automatically by config.status. */ | |
7962 | if test x"$ac_file" = x-; then | |
7963 | echo "/* Generated automatically by configure. */" >$tmp/config.h | |
7964 | else | |
7965 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h | |
7966 | fi | |
7967 | cat $tmp/in >>$tmp/config.h | |
7968 | rm -f $tmp/in | |
7969 | if test x"$ac_file" != x-; then | |
7970 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
7971 | { echo "$as_me:7971: $ac_file is unchanged" >&5 | |
7972 | echo "$as_me: $ac_file is unchanged" >&6;} | |
7973 | else | |
7974 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7975 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7976 | X"$ac_file" : 'X\(//\)$' \| \ | |
7977 | X"$ac_file" : 'X\(/\)' \| \ | |
7978 | . : '\(.\)' 2>/dev/null || | |
7979 | echo X"$ac_file" | | |
7980 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7981 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7982 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7983 | /^X\(\/\).*/{ s//\1/; q; } | |
7984 | s/.*/./; q'` | |
7985 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
7986 | { case "$ac_dir" in | |
7987 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
7988 | *) as_incr_dir=.;; | |
7989 | esac | |
7990 | as_dummy="$ac_dir" | |
7991 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
7992 | case $as_mkdir_dir in | |
7993 | # Skip DOS drivespec | |
7994 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
7995 | *) | |
7996 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
7997 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
7998 | ;; | |
7999 | esac | |
8000 | done; } | |
8001 | ||
8002 | fi | |
8003 | rm -f $ac_file | |
8004 | mv $tmp/config.h $ac_file | |
8005 | fi | |
8006 | else | |
8007 | cat $tmp/config.h | |
8008 | rm -f $tmp/config.h | |
8009 | fi | |
8010 | done | |
8011 | EOF | |
8012 | cat >>$CONFIG_STATUS <<\EOF | |
8013 | ||
8014 | # | |
8015 | # CONFIG_LINKS section. | |
8016 | # | |
8017 | ||
8018 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | |
8019 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8020 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8021 | ||
8022 | { echo "$as_me:8022: linking $srcdir/$ac_source to $ac_dest" >&5 | |
8023 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
8024 | ||
8025 | if test ! -r $srcdir/$ac_source; then | |
8026 | { { echo "$as_me:8026: error: $srcdir/$ac_source: File not found" >&5 | |
8027 | echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;} | |
8028 | { (exit 1); exit 1; }; } | |
8029 | fi | |
8030 | rm -f $ac_dest | |
8031 | ||
8032 | # Make relative symlinks. | |
8033 | ac_dest_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8034 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8035 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8036 | X"$ac_dest" : 'X\(/\)' \| \ | |
8037 | . : '\(.\)' 2>/dev/null || | |
8038 | echo X"$ac_dest" | | |
8039 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8040 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8041 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8042 | /^X\(\/\).*/{ s//\1/; q; } | |
8043 | s/.*/./; q'` | |
8044 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
8045 | { case "$ac_dest_dir" in | |
8046 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
8047 | *) as_incr_dir=.;; | |
8048 | esac | |
8049 | as_dummy="$ac_dest_dir" | |
8050 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
8051 | case $as_mkdir_dir in | |
8052 | # Skip DOS drivespec | |
8053 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
8054 | *) | |
8055 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
8056 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
8057 | ;; | |
8058 | esac | |
8059 | done; } | |
8060 | ||
8061 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's,^\./,,'`" | |
8062 | # A "../" for each directory in $ac_dest_dir_suffix. | |
8063 | ac_dots=`echo $ac_dest_dir_suffix|sed 's,/[^/]*,../,g'` | |
8064 | else | |
8065 | ac_dest_dir_suffix= ac_dots= | |
8066 | fi | |
8067 | ||
8068 | case $srcdir in | |
8069 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
8070 | *) ac_rel_source=$ac_dots$srcdir/$ac_source ;; | |
8071 | esac | |
8072 | ||
8073 | # Make a symlink if possible; otherwise try a hard link. | |
8074 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
8075 | ln $srcdir/$ac_source $ac_dest || | |
8076 | { { echo "$as_me:8076: error: cannot link $ac_dest to $srcdir/$ac_source" >&5 | |
8077 | echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;} | |
8078 | { (exit 1); exit 1; }; } | |
8079 | done | |
8080 | EOF | |
8081 | cat >>$CONFIG_STATUS <<\EOF | |
8082 | ||
8083 | # | |
8084 | # CONFIG_COMMANDS section. | |
8085 | # | |
8086 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
8087 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8088 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8089 | ||
8090 | case $ac_dest in | |
8091 | default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; | |
8092 | default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*) | |
8093 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
8094 | esac ;; | |
8095 | esac | |
8096 | done | |
8097 | EOF | |
8098 | ||
8099 | cat >>$CONFIG_STATUS <<\EOF | |
8100 | ||
8101 | { (exit 0); exit 0; } | |
8102 | EOF | |
8103 | chmod +x $CONFIG_STATUS | |
8104 | ac_clean_files=$ac_clean_files_save | |
8105 | ||
8106 | test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit 1; } | |
8107 |