]> git.saurik.com Git - bison.git/blob - configure
Regen. and fix typo in configure.in.
[bison.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52c for GNU Bison 1.28e.
4 #
5 # Report bugs to <bug-bison@gnu.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
18
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
25 ## --------------------- ##
26 ## M4sh Initialization. ##
27 ## --------------------- ##
28
29 # Be Bourne compatible
30 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31 emulate sh
32 NULLCMD=:
33 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 set -o posix
35 fi
36
37 # Name of the executable.
38 as_me=`echo "$0" |sed 's,.*[\\/],,'`
39
40 if expr a : '\(a\)' >/dev/null 2>&1; then
41 as_expr=expr
42 else
43 as_expr=false
44 fi
45
46 rm -f conf$$ conf$$.exe conf$$.file
47 echo >conf$$.file
48 if ln -s conf$$.file conf$$ 2>/dev/null; then
49 # We could just check for DJGPP; but this test a) works b) is more generic
50 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51 if test -f conf$$.exe; then
52 # Don't use ln at all; we don't have any links
53 as_ln_s='cp -p'
54 else
55 as_ln_s='ln -s'
56 fi
57 elif ln conf$$.file conf$$ 2>/dev/null; then
58 as_ln_s=ln
59 else
60 as_ln_s='cp -p'
61 fi
62 rm -f conf$$ conf$$.exe conf$$.file
63
64 as_executable_p="test -f"
65
66 # Support unset when possible.
67 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 as_unset=unset
69 else
70 as_unset=false
71 fi
72
73 # NLS nuisances.
74 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
75 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
76 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
77 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
78 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
79 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
80 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
81 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
82
83 # IFS
84 # We need space, tab and new line, in precisely that order.
85 as_nl='
86 '
87 IFS=" $as_nl"
88
89 # CDPATH.
90 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
91
92 # Name of the host.
93 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
94 # so uname gets run too.
95 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96
97 exec 6>&1
98
99 #
100 # Initializations.
101 #
102 ac_default_prefix=/usr/local
103 cross_compiling=no
104 subdirs=
105 MFLAGS= MAKEFLAGS=
106 SHELL=${CONFIG_SHELL-/bin/sh}
107
108 # Maximum number of lines to put in a shell here document.
109 # This variable seems obsolete. It should probably be removed, and
110 # only ac_max_sed_lines should be used.
111 : ${ac_max_here_lines=38}
112
113 # Factoring default headers for most tests.
114 ac_includes_default="\
115 #include <stdio.h>
116 #if HAVE_SYS_TYPES_H
117 # include <sys/types.h>
118 #endif
119 #if HAVE_SYS_STAT_H
120 # include <sys/stat.h>
121 #endif
122 #if STDC_HEADERS
123 # include <stdlib.h>
124 # include <stddef.h>
125 #else
126 # if HAVE_STDLIB_H
127 # include <stdlib.h>
128 # endif
129 #endif
130 #if HAVE_STRING_H
131 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <memory.h>
133 # endif
134 # include <string.h>
135 #endif
136 #if HAVE_STRINGS_H
137 # include <strings.h>
138 #endif
139 #if HAVE_INTTYPES_H
140 # include <inttypes.h>
141 #else
142 # if HAVE_STDINT_H
143 # include <stdint.h>
144 # endif
145 #endif
146 #if HAVE_UNISTD_H
147 # include <unistd.h>
148 #endif"
149
150 # Initialize some variables set by options.
151 ac_init_help=
152 ac_init_version=false
153 # The variables have the same names as the options, with
154 # dashes changed to underlines.
155 cache_file=/dev/null
156 exec_prefix=NONE
157 no_create=
158 no_recursion=
159 prefix=NONE
160 program_prefix=NONE
161 program_suffix=NONE
162 program_transform_name=s,x,x,
163 silent=
164 site=
165 srcdir=
166 verbose=
167 x_includes=NONE
168 x_libraries=NONE
169
170 # Installation directory options.
171 # These are left unexpanded so users can "make install exec_prefix=/foo"
172 # and all the variables that are supposed to be based on exec_prefix
173 # by default will actually change.
174 # Use braces instead of parens because sh, perl, etc. also accept them.
175 bindir='${exec_prefix}/bin'
176 sbindir='${exec_prefix}/sbin'
177 libexecdir='${exec_prefix}/libexec'
178 datadir='${prefix}/share'
179 sysconfdir='${prefix}/etc'
180 sharedstatedir='${prefix}/com'
181 localstatedir='${prefix}/var'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${prefix}/info'
186 mandir='${prefix}/man'
187
188 # Identity of this package.
189 PACKAGE_NAME='GNU Bison'
190 PACKAGE_TARNAME='bison'
191 PACKAGE_VERSION='1.28e'
192 PACKAGE_STRING='GNU Bison 1.28e'
193 PACKAGE_BUGREPORT='bug-bison@gnu.org'
194
195 ac_prev=
196 for ac_option
197 do
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
201 ac_prev=
202 continue
203 fi
204
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
206
207 # Accept the important Cygnus configure options, so we can diagnose typos.
208
209 case $ac_option in
210
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
212 ac_prev=bindir ;;
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 bindir=$ac_optarg ;;
215
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
220
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
227
228 --config-cache | -C)
229 cache_file=config.cache ;;
230
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
232 ac_prev=datadir ;;
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
234 | --da=*)
235 datadir=$ac_optarg ;;
236
237 -disable-* | --disable-*)
238 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
239 # Reject names that are not valid shell variable names.
240 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
241 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
242 { (exit 1); exit 1; }; }
243 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
244 eval "enable_$ac_feature=no" ;;
245
246 -enable-* | --enable-*)
247 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
248 # Reject names that are not valid shell variable names.
249 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
250 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
251 { (exit 1); exit 1; }; }
252 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
253 case $ac_option in
254 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
255 *) ac_optarg=yes ;;
256 esac
257 eval "enable_$ac_feature='$ac_optarg'" ;;
258
259 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
260 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
261 | --exec | --exe | --ex)
262 ac_prev=exec_prefix ;;
263 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
264 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
265 | --exec=* | --exe=* | --ex=*)
266 exec_prefix=$ac_optarg ;;
267
268 -gas | --gas | --ga | --g)
269 # Obsolete; use --with-gas.
270 with_gas=yes ;;
271
272 -help | --help | --hel | --he | -h)
273 ac_init_help=long ;;
274 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
275 ac_init_help=recursive ;;
276 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
277 ac_init_help=short ;;
278
279 -host | --host | --hos | --ho)
280 ac_prev=host_alias ;;
281 -host=* | --host=* | --hos=* | --ho=*)
282 host_alias=$ac_optarg ;;
283
284 -includedir | --includedir | --includedi | --included | --include \
285 | --includ | --inclu | --incl | --inc)
286 ac_prev=includedir ;;
287 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
288 | --includ=* | --inclu=* | --incl=* | --inc=*)
289 includedir=$ac_optarg ;;
290
291 -infodir | --infodir | --infodi | --infod | --info | --inf)
292 ac_prev=infodir ;;
293 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
294 infodir=$ac_optarg ;;
295
296 -libdir | --libdir | --libdi | --libd)
297 ac_prev=libdir ;;
298 -libdir=* | --libdir=* | --libdi=* | --libd=*)
299 libdir=$ac_optarg ;;
300
301 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
302 | --libexe | --libex | --libe)
303 ac_prev=libexecdir ;;
304 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
305 | --libexe=* | --libex=* | --libe=*)
306 libexecdir=$ac_optarg ;;
307
308 -localstatedir | --localstatedir | --localstatedi | --localstated \
309 | --localstate | --localstat | --localsta | --localst \
310 | --locals | --local | --loca | --loc | --lo)
311 ac_prev=localstatedir ;;
312 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
313 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
314 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
315 localstatedir=$ac_optarg ;;
316
317 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
318 ac_prev=mandir ;;
319 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
320 mandir=$ac_optarg ;;
321
322 -nfp | --nfp | --nf)
323 # Obsolete; use --without-fp.
324 with_fp=no ;;
325
326 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 | --no-cr | --no-c)
328 no_create=yes ;;
329
330 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
331 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
332 no_recursion=yes ;;
333
334 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
335 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
336 | --oldin | --oldi | --old | --ol | --o)
337 ac_prev=oldincludedir ;;
338 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
339 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
340 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
341 oldincludedir=$ac_optarg ;;
342
343 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
344 ac_prev=prefix ;;
345 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
346 prefix=$ac_optarg ;;
347
348 -program-prefix | --program-prefix | --program-prefi | --program-pref \
349 | --program-pre | --program-pr | --program-p)
350 ac_prev=program_prefix ;;
351 -program-prefix=* | --program-prefix=* | --program-prefi=* \
352 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
353 program_prefix=$ac_optarg ;;
354
355 -program-suffix | --program-suffix | --program-suffi | --program-suff \
356 | --program-suf | --program-su | --program-s)
357 ac_prev=program_suffix ;;
358 -program-suffix=* | --program-suffix=* | --program-suffi=* \
359 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
360 program_suffix=$ac_optarg ;;
361
362 -program-transform-name | --program-transform-name \
363 | --program-transform-nam | --program-transform-na \
364 | --program-transform-n | --program-transform- \
365 | --program-transform | --program-transfor \
366 | --program-transfo | --program-transf \
367 | --program-trans | --program-tran \
368 | --progr-tra | --program-tr | --program-t)
369 ac_prev=program_transform_name ;;
370 -program-transform-name=* | --program-transform-name=* \
371 | --program-transform-nam=* | --program-transform-na=* \
372 | --program-transform-n=* | --program-transform-=* \
373 | --program-transform=* | --program-transfor=* \
374 | --program-transfo=* | --program-transf=* \
375 | --program-trans=* | --program-tran=* \
376 | --progr-tra=* | --program-tr=* | --program-t=*)
377 program_transform_name=$ac_optarg ;;
378
379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
380 | -silent | --silent | --silen | --sile | --sil)
381 silent=yes ;;
382
383 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
384 ac_prev=sbindir ;;
385 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
386 | --sbi=* | --sb=*)
387 sbindir=$ac_optarg ;;
388
389 -sharedstatedir | --sharedstatedir | --sharedstatedi \
390 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
391 | --sharedst | --shareds | --shared | --share | --shar \
392 | --sha | --sh)
393 ac_prev=sharedstatedir ;;
394 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
395 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
396 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
397 | --sha=* | --sh=*)
398 sharedstatedir=$ac_optarg ;;
399
400 -site | --site | --sit)
401 ac_prev=site ;;
402 -site=* | --site=* | --sit=*)
403 site=$ac_optarg ;;
404
405 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
406 ac_prev=srcdir ;;
407 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
408 srcdir=$ac_optarg ;;
409
410 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
411 | --syscon | --sysco | --sysc | --sys | --sy)
412 ac_prev=sysconfdir ;;
413 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
414 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
415 sysconfdir=$ac_optarg ;;
416
417 -target | --target | --targe | --targ | --tar | --ta | --t)
418 ac_prev=target_alias ;;
419 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
420 target_alias=$ac_optarg ;;
421
422 -v | -verbose | --verbose | --verbos | --verbo | --verb)
423 verbose=yes ;;
424
425 -version | --version | --versio | --versi | --vers | -V)
426 ac_init_version=: ;;
427
428 -with-* | --with-*)
429 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
430 # Reject names that are not valid shell variable names.
431 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
432 { echo "$as_me: error: invalid package name: $ac_package" >&2
433 { (exit 1); exit 1; }; }
434 ac_package=`echo $ac_package| sed 's/-/_/g'`
435 case $ac_option in
436 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
437 *) ac_optarg=yes ;;
438 esac
439 eval "with_$ac_package='$ac_optarg'" ;;
440
441 -without-* | --without-*)
442 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
443 # Reject names that are not valid shell variable names.
444 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
445 { echo "$as_me: error: invalid package name: $ac_package" >&2
446 { (exit 1); exit 1; }; }
447 ac_package=`echo $ac_package | sed 's/-/_/g'`
448 eval "with_$ac_package=no" ;;
449
450 --x)
451 # Obsolete; use --with-x.
452 with_x=yes ;;
453
454 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
455 | --x-incl | --x-inc | --x-in | --x-i)
456 ac_prev=x_includes ;;
457 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
458 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
459 x_includes=$ac_optarg ;;
460
461 -x-libraries | --x-libraries | --x-librarie | --x-librari \
462 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
463 ac_prev=x_libraries ;;
464 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
465 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
466 x_libraries=$ac_optarg ;;
467
468 -*) { echo "$as_me: error: unrecognized option: $ac_option
469 Try \`$0 --help' for more information." >&2
470 { (exit 1); exit 1; }; }
471 ;;
472
473 *=*)
474 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
475 # Reject names that are not valid shell variable names.
476 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
477 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
478 { (exit 1); exit 1; }; }
479 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
480 eval "$ac_envvar='$ac_optarg'"
481 export $ac_envvar ;;
482
483 *)
484 # FIXME: should be removed in autoconf 3.0.
485 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
486 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
487 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
488 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 ;;
490
491 esac
492 done
493
494 if test -n "$ac_prev"; then
495 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
496 { echo "$as_me: error: missing argument to $ac_option" >&2
497 { (exit 1); exit 1; }; }
498 fi
499
500 # Be sure to have absolute paths.
501 for ac_var in exec_prefix prefix
502 do
503 eval ac_val=$`echo $ac_var`
504 case $ac_val in
505 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
506 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
507 { (exit 1); exit 1; }; };;
508 esac
509 done
510
511 # Be sure to have absolute paths.
512 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
513 localstatedir libdir includedir oldincludedir infodir mandir
514 do
515 eval ac_val=$`echo $ac_var`
516 case $ac_val in
517 [\\/$]* | ?:[\\/]* ) ;;
518 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
519 { (exit 1); exit 1; }; };;
520 esac
521 done
522
523 # There might be people who depend on the old broken behavior: `$host'
524 # used to hold the argument of --host etc.
525 build=$build_alias
526 host=$host_alias
527 target=$target_alias
528
529 # FIXME: should be removed in autoconf 3.0.
530 if test "x$host_alias" != x; then
531 if test "x$build_alias" = x; then
532 cross_compiling=maybe
533 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
534 If a cross compiler is detected then cross compile mode will be used." >&2
535 elif test "x$build_alias" != "x$host_alias"; then
536 cross_compiling=yes
537 fi
538 fi
539
540 ac_tool_prefix=
541 test -n "$host_alias" && ac_tool_prefix=$host_alias-
542
543 test "$silent" = yes && exec 6>/dev/null
544
545 # Find the source files, if location was not specified.
546 if test -z "$srcdir"; then
547 ac_srcdir_defaulted=yes
548 # Try the directory containing this script, then its parent.
549 ac_prog=$0
550 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
551 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
552 srcdir=$ac_confdir
553 if test ! -r $srcdir/$ac_unique_file; then
554 srcdir=..
555 fi
556 else
557 ac_srcdir_defaulted=no
558 fi
559 if test ! -r $srcdir/$ac_unique_file; then
560 if test "$ac_srcdir_defaulted" = yes; then
561 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
562 { (exit 1); exit 1; }; }
563 else
564 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
565 { (exit 1); exit 1; }; }
566 fi
567 fi
568 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
569 ac_env_build_alias_set=${build_alias+set}
570 ac_env_build_alias_value=$build_alias
571 ac_cv_env_build_alias_set=${build_alias+set}
572 ac_cv_env_build_alias_value=$build_alias
573 ac_env_host_alias_set=${host_alias+set}
574 ac_env_host_alias_value=$host_alias
575 ac_cv_env_host_alias_set=${host_alias+set}
576 ac_cv_env_host_alias_value=$host_alias
577 ac_env_target_alias_set=${target_alias+set}
578 ac_env_target_alias_value=$target_alias
579 ac_cv_env_target_alias_set=${target_alias+set}
580 ac_cv_env_target_alias_value=$target_alias
581 ac_env_CC_set=${CC+set}
582 ac_env_CC_value=$CC
583 ac_cv_env_CC_set=${CC+set}
584 ac_cv_env_CC_value=$CC
585 ac_env_CFLAGS_set=${CFLAGS+set}
586 ac_env_CFLAGS_value=$CFLAGS
587 ac_cv_env_CFLAGS_set=${CFLAGS+set}
588 ac_cv_env_CFLAGS_value=$CFLAGS
589 ac_env_LDFLAGS_set=${LDFLAGS+set}
590 ac_env_LDFLAGS_value=$LDFLAGS
591 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
592 ac_cv_env_LDFLAGS_value=$LDFLAGS
593 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
594 ac_env_CPPFLAGS_value=$CPPFLAGS
595 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
596 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
597 ac_env_CPP_set=${CPP+set}
598 ac_env_CPP_value=$CPP
599 ac_cv_env_CPP_set=${CPP+set}
600 ac_cv_env_CPP_value=$CPP
601
602 #
603 # Report the --help message.
604 #
605 if test "$ac_init_help" = "long"; then
606 # Omit some internal or obsolete options to make the list less imposing.
607 # This message is too long to be a string in the A/UX 3.1 sh.
608 cat <<_ACEOF
609 \`configure' configures GNU Bison 1.28e to adapt to many kinds of systems.
610
611 Usage: $0 [OPTION]... [VAR=VALUE]...
612
613 To assign environment variables (e.g., CC, CFLAGS...), specify them as
614 VAR=VALUE. See below for descriptions of some of the useful variables.
615
616 Defaults for the options are specified in brackets.
617
618 Configuration:
619 -h, --help display this help and exit
620 --help=short display options specific to this package
621 --help=recursive display the short help of all the included packages
622 -V, --version display version information and exit
623 -q, --quiet, --silent do not print \`checking...' messages
624 --cache-file=FILE cache test results in FILE [disabled]
625 -C, --config-cache alias for \`--cache-file=config.cache'
626 -n, --no-create do not create output files
627 --srcdir=DIR find the sources in DIR [configure dir or \`..']
628
629 _ACEOF
630
631 cat <<_ACEOF
632 Installation directories:
633 --prefix=PREFIX install architecture-independent files in PREFIX
634 [$ac_default_prefix]
635 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
636 [PREFIX]
637
638 By default, \`make install' will install all the files in
639 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
640 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
641 for instance \`--prefix=\$HOME'.
642
643 For better control, use the options below.
644
645 Fine tuning of the installation directories:
646 --bindir=DIR user executables [EPREFIX/bin]
647 --sbindir=DIR system admin executables [EPREFIX/sbin]
648 --libexecdir=DIR program executables [EPREFIX/libexec]
649 --datadir=DIR read-only architecture-independent data [PREFIX/share]
650 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
651 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
652 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
653 --libdir=DIR object code libraries [EPREFIX/lib]
654 --includedir=DIR C header files [PREFIX/include]
655 --oldincludedir=DIR C header files for non-gcc [/usr/include]
656 --infodir=DIR info documentation [PREFIX/info]
657 --mandir=DIR man documentation [PREFIX/man]
658 _ACEOF
659
660 cat <<\_ACEOF
661
662 Program names:
663 --program-prefix=PREFIX prepend PREFIX to installed program names
664 --program-suffix=SUFFIX append SUFFIX to installed program names
665 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
666
667 System types:
668 --build=BUILD configure for building on BUILD [guessed]
669 --host=HOST build programs to run on HOST [BUILD]
670 _ACEOF
671 fi
672
673 if test -n "$ac_init_help"; then
674 case $ac_init_help in
675 short | recursive ) echo "Configuration of GNU Bison 1.28e:";;
676 esac
677 cat <<\_ACEOF
678
679 Optional Features:
680 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
681 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
682 --disable-dependency-tracking Speeds up one-time builds
683 --enable-dependency-tracking Do not reject slow dependency extractors
684 --enable-gcc-warnings turn on lots of GCC warnings (not recommended)
685 --disable-nls do not use Native Language Support
686
687 Optional Packages:
688 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
689 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
690 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
691 --with-included-gettext use the GNU gettext library included here
692
693 Some influential environment variables:
694 CC C compiler command
695 CFLAGS C compiler flags
696 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
697 nonstandard directory <lib dir>
698 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
699 headers in a nonstandard directory <include dir>
700 CPP C preprocessor
701
702 Use these variables to override the choices made by `configure' or to help
703 it to find libraries and programs with nonstandard names/locations.
704
705 Report bugs to <bug-bison@gnu.org>.
706 _ACEOF
707 fi
708
709 if test "$ac_init_help" = "recursive"; then
710 # If there are subdirs, report their specific --help.
711 ac_popdir=`pwd`
712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
713 cd $ac_dir
714 if test "$ac_dir" != .; then
715 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
716 # A "../" for each directory in $ac_dir_suffix.
717 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
718 else
719 ac_dir_suffix= ac_top_builddir=
720 fi
721
722 case $srcdir in
723 .) # No --srcdir option. We are building in place.
724 ac_srcdir=.
725 if test -z "$ac_top_builddir"; then
726 ac_top_srcdir=.
727 else
728 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
729 fi ;;
730 [\\/]* | ?:[\\/]* ) # Absolute path.
731 ac_srcdir=$srcdir$ac_dir_suffix;
732 ac_top_srcdir=$srcdir ;;
733 *) # Relative path.
734 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
735 ac_top_srcdir=$ac_top_builddir$srcdir ;;
736 esac
737
738 # Check for guested configure; otherwise get Cygnus style configure.
739 if test -f $ac_srcdir/configure.gnu; then
740 echo
741 $SHELL $ac_srcdir/configure.gnu --help=recursive
742 elif test -f $ac_srcdir/configure; then
743 echo
744 $SHELL $ac_srcdir/configure --help=recursive
745 elif test -f $ac_srcdir/configure.ac ||
746 test -f $ac_srcdir/configure.in; then
747 echo
748 $ac_configure --help
749 else
750 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
751 fi
752 cd $ac_popdir
753 done
754 fi
755
756 test -n "$ac_init_help" && exit 0
757 if $ac_init_version; then
758 cat <<\_ACEOF
759 GNU Bison configure 1.28e
760 generated by GNU Autoconf 2.52c
761
762 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
763 Free Software Foundation, Inc.
764 This configure script is free software; the Free Software Foundation
765 gives unlimited permission to copy, distribute and modify it.
766 _ACEOF
767 exit 0
768 fi
769 exec 5>config.log
770 cat >&5 <<_ACEOF
771 This file contains any messages produced by compilers while
772 running configure, to aid debugging if configure makes a mistake.
773
774 It was created by GNU Bison $as_me 1.28e, which was
775 generated by GNU Autoconf 2.52c. Invocation command line was
776
777 $ $0 $@
778
779 _ACEOF
780 {
781 cat <<_ASUNAME
782 ## --------- ##
783 ## Platform. ##
784 ## --------- ##
785
786 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
787 uname -m = `(uname -m) 2>/dev/null || echo unknown`
788 uname -r = `(uname -r) 2>/dev/null || echo unknown`
789 uname -s = `(uname -s) 2>/dev/null || echo unknown`
790 uname -v = `(uname -v) 2>/dev/null || echo unknown`
791
792 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
793 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
794
795 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
796 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
797 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
798 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
799 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
800 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
801 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
802
803 PATH = $PATH
804
805 _ASUNAME
806 } >&5
807
808 cat >&5 <<_ACEOF
809 ## ----------- ##
810 ## Core tests. ##
811 ## ----------- ##
812
813 _ACEOF
814
815 # Keep a trace of the command line.
816 # Strip out --no-create and --no-recursion so they do not pile up.
817 # Also quote any args containing shell meta-characters.
818 ac_configure_args=
819 ac_sep=
820 for ac_arg
821 do
822 case $ac_arg in
823 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
824 | --no-cr | --no-c) ;;
825 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
826 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
827 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
828 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
829 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
830 ac_sep=" " ;;
831 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
832 ac_sep=" " ;;
833 esac
834 # Get rid of the leading space.
835 done
836
837 # When interrupted or exit'd, cleanup temporary files, and complete
838 # config.log. We remove comments because anyway the quotes in there
839 # would cause problems or look ugly.
840 # WARNING: Be sure not to use single quotes in there, as some shells,
841 # such as our DU 5.0 friend, will then `close' the trap.
842 trap 'exit_status=$?
843 # Save into config.log some information that might help in debugging.
844 {
845 echo
846 cat <<\_ASBOX
847 ## ---------------- ##
848 ## Cache variables. ##
849 ## ---------------- ##
850 _ASBOX
851 echo
852 # The following way of writing the cache mishandles newlines in values,
853 {
854 (set) 2>&1 |
855 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
856 *ac_space=\ *)
857 sed -n \
858 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
860 ;;
861 *)
862 sed -n \
863 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
864 ;;
865 esac;
866 }
867 echo
868 if test -s confdefs.h; then
869 cat <<\_ASBOX
870 ## ----------- ##
871 ## confdefs.h. ##
872 ## ----------- ##
873 _ASBOX
874 echo
875 sed "/^$/d" confdefs.h
876 echo
877 fi
878 test "$ac_signal" != 0 &&
879 echo "$as_me: caught signal $ac_signal"
880 echo "$as_me: exit $exit_status"
881 } >&5
882 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
883 exit $exit_status
884 ' 0
885 for ac_signal in 1 2 13 15; do
886 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
887 done
888 ac_signal=0
889
890 # confdefs.h avoids OS command line length limits that DEFS can exceed.
891 rm -rf conftest* confdefs.h
892 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
893 echo >confdefs.h
894
895 # Let the site file select an alternate cache file if it wants to.
896 # Prefer explicitly selected file to automatically selected ones.
897 if test -z "$CONFIG_SITE"; then
898 if test "x$prefix" != xNONE; then
899 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
900 else
901 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
902 fi
903 fi
904 for ac_site_file in $CONFIG_SITE; do
905 if test -r "$ac_site_file"; then
906 { echo "$as_me:906: loading site script $ac_site_file" >&5
907 echo "$as_me: loading site script $ac_site_file" >&6;}
908 sed 's/^/| /' "$ac_site_file" >&5
909 . "$ac_site_file"
910 fi
911 done
912
913 if test -r "$cache_file"; then
914 # Some versions of bash will fail to source /dev/null (special
915 # files actually), so we avoid doing that.
916 if test -f "$cache_file"; then
917 { echo "$as_me:917: loading cache $cache_file" >&5
918 echo "$as_me: loading cache $cache_file" >&6;}
919 case $cache_file in
920 [\\/]* | ?:[\\/]* ) . $cache_file;;
921 *) . ./$cache_file;;
922 esac
923 fi
924 else
925 { echo "$as_me:925: creating cache $cache_file" >&5
926 echo "$as_me: creating cache $cache_file" >&6;}
927 >$cache_file
928 fi
929
930 # Check that the precious variables saved in the cache have kept the same
931 # value.
932 ac_cache_corrupted=false
933 for ac_var in `(set) 2>&1 |
934 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
936 eval ac_new_set=\$ac_env_${ac_var}_set
937 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
938 eval ac_new_val="\$ac_env_${ac_var}_value"
939 case $ac_old_set,$ac_new_set in
940 set,)
941 { echo "$as_me:941: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
942 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
943 ac_cache_corrupted=: ;;
944 ,set)
945 { echo "$as_me:945: error: \`$ac_var' was not set in the previous run" >&5
946 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
947 ac_cache_corrupted=: ;;
948 ,);;
949 *)
950 if test "x$ac_old_val" != "x$ac_new_val"; then
951 { echo "$as_me:951: error: \`$ac_var' has changed since the previous run:" >&5
952 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
953 { echo "$as_me:953: former value: $ac_old_val" >&5
954 echo "$as_me: former value: $ac_old_val" >&2;}
955 { echo "$as_me:955: current value: $ac_new_val" >&5
956 echo "$as_me: current value: $ac_new_val" >&2;}
957 ac_cache_corrupted=:
958 fi;;
959 esac
960 # Pass precious variables to config.status. It doesn't matter if
961 # we pass some twice (in addition to the command line arguments).
962 if test "$ac_new_set" = set; then
963 case $ac_new_val in
964 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
965 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
966 ac_configure_args="$ac_configure_args '$ac_arg'"
967 ;;
968 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
969 ;;
970 esac
971 fi
972 done
973 if $ac_cache_corrupted; then
974 { echo "$as_me:974: error: changes in the environment can compromise the build" >&5
975 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
976 { { echo "$as_me:976: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
977 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
978 { (exit 1); exit 1; }; }
979 fi
980
981 ac_ext=c
982 ac_cpp='$CPP $CPPFLAGS'
983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
986
987 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
988 *c*,-n*) ECHO_N= ECHO_C='
989 ' ECHO_T=' ' ;;
990 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
991 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
992 esac
993 echo "#! $SHELL" >conftest.sh
994 echo "exit 0" >>conftest.sh
995 chmod +x conftest.sh
996 if { (echo "$as_me:996: PATH=\".;.\"; conftest.sh") >&5
997 (PATH=".;."; conftest.sh) 2>&5
998 ac_status=$?
999 echo "$as_me:999: \$? = $ac_status" >&5
1000 (exit $ac_status); }; then
1001 ac_path_separator=';'
1002 else
1003 ac_path_separator=:
1004 fi
1005 PATH_SEPARATOR="$ac_path_separator"
1006 rm -f conftest.sh
1007
1008 ac_aux_dir=
1009 for ac_dir in config $srcdir/config; do
1010 if test -f $ac_dir/install-sh; then
1011 ac_aux_dir=$ac_dir
1012 ac_install_sh="$ac_aux_dir/install-sh -c"
1013 break
1014 elif test -f $ac_dir/install.sh; then
1015 ac_aux_dir=$ac_dir
1016 ac_install_sh="$ac_aux_dir/install.sh -c"
1017 break
1018 elif test -f $ac_dir/shtool; then
1019 ac_aux_dir=$ac_dir
1020 ac_install_sh="$ac_aux_dir/shtool install -c"
1021 break
1022 fi
1023 done
1024 if test -z "$ac_aux_dir"; then
1025 { { echo "$as_me:1025: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1026 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1027 { (exit 1); exit 1; }; }
1028 fi
1029 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1030 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1031 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1032
1033 # Find a good install program. We prefer a C program (faster),
1034 # so one script is as good as another. But avoid the broken or
1035 # incompatible versions:
1036 # SysV /etc/install, /usr/sbin/install
1037 # SunOS /usr/etc/install
1038 # IRIX /sbin/install
1039 # AIX /bin/install
1040 # AmigaOS /C/install, which installs bootblocks on floppy discs
1041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1044 # ./install, which can be erroneously created by make from ./install.sh.
1045 echo "$as_me:1045: checking for a BSD compatible install" >&5
1046 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1047 if test -z "$INSTALL"; then
1048 if test "${ac_cv_path_install+set}" = set; then
1049 echo $ECHO_N "(cached) $ECHO_C" >&6
1050 else
1051 ac_save_IFS=$IFS; IFS=$ac_path_separator
1052 for ac_dir in $PATH; do
1053 IFS=$ac_save_IFS
1054 # Account for people who put trailing slashes in PATH elements.
1055 case $ac_dir/ in
1056 / | ./ | .// | /cC/* \
1057 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1058 | /usr/ucb/* ) ;;
1059 *)
1060 # OSF1 and SCO ODT 3.0 have their own names for install.
1061 # Don't use installbsd from OSF since it installs stuff as root
1062 # by default.
1063 for ac_prog in ginstall scoinst install; do
1064 if $as_executable_p "$ac_dir/$ac_prog"; then
1065 if test $ac_prog = install &&
1066 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1067 # AIX install. It has an incompatible calling convention.
1068 :
1069 elif test $ac_prog = install &&
1070 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1071 # program-specific install script used by HP pwplus--don't use.
1072 :
1073 else
1074 ac_cv_path_install="$ac_dir/$ac_prog -c"
1075 break 2
1076 fi
1077 fi
1078 done
1079 ;;
1080 esac
1081 done
1082
1083 fi
1084 if test "${ac_cv_path_install+set}" = set; then
1085 INSTALL=$ac_cv_path_install
1086 else
1087 # As a last resort, use the slow shell script. We don't cache a
1088 # path for INSTALL within a source directory, because that will
1089 # break other packages using the cache if that directory is
1090 # removed, or if the path is relative.
1091 INSTALL=$ac_install_sh
1092 fi
1093 fi
1094 echo "$as_me:1094: result: $INSTALL" >&5
1095 echo "${ECHO_T}$INSTALL" >&6
1096
1097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1098 # It thinks the first close brace ends the variable substitution.
1099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1100
1101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1102
1103 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1104
1105 echo "$as_me:1105: checking whether build environment is sane" >&5
1106 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1107 # Just in case
1108 sleep 1
1109 echo timestamp > conftest.file
1110 # Do `set' in a subshell so we don't clobber the current shell's
1111 # arguments. Must try -L first in case configure is actually a
1112 # symlink; some systems play weird games with the mod time of symlinks
1113 # (eg FreeBSD returns the mod time of the symlink's containing
1114 # directory).
1115 if (
1116 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1117 if test "$*" = "X"; then
1118 # -L didn't work.
1119 set X `ls -t $srcdir/configure conftest.file`
1120 fi
1121 rm -f conftest.file
1122 if test "$*" != "X $srcdir/configure conftest.file" \
1123 && test "$*" != "X conftest.file $srcdir/configure"; then
1124
1125 # If neither matched, then we have a broken ls. This can happen
1126 # if, for instance, CONFIG_SHELL is bash and it inherits a
1127 # broken ls alias from the environment. This has actually
1128 # happened. Such a system could not be considered "sane".
1129 { { echo "$as_me:1129: error: ls -t appears to fail. Make sure there is not a broken
1130 alias in your environment" >&5
1131 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1132 alias in your environment" >&2;}
1133 { (exit 1); exit 1; }; }
1134 fi
1135
1136 test "$2" = conftest.file
1137 )
1138 then
1139 # Ok.
1140 :
1141 else
1142 { { echo "$as_me:1142: error: newly created file is older than distributed files!
1143 Check your system clock" >&5
1144 echo "$as_me: error: newly created file is older than distributed files!
1145 Check your system clock" >&2;}
1146 { (exit 1); exit 1; }; }
1147 fi
1148 echo "$as_me:1148: result: yes" >&5
1149 echo "${ECHO_T}yes" >&6
1150 test "$program_prefix" != NONE &&
1151 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1152 # Use a double $ so make ignores it.
1153 test "$program_suffix" != NONE &&
1154 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1155 # Double any \ or $. echo might interpret backslashes.
1156 # By default was `s,x,x', remove it if useless.
1157 cat <<\_ACEOF >conftest.sed
1158 s/[\\$]/&&/g;s/;s,x,x,$//
1159 _ACEOF
1160 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1161 rm conftest.sed
1162
1163 # expand $ac_aux_dir to an absolute path
1164 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1165
1166 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1167 # Use eval to expand $SHELL
1168 if eval "$MISSING --run true"; then
1169 am_missing_run="$MISSING --run "
1170 else
1171 am_missing_run=
1172 am_backtick='`'
1173 { echo "$as_me:1173: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1174 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1175 fi
1176
1177 for ac_prog in mawk gawk nawk awk
1178 do
1179 # Extract the first word of "$ac_prog", so it can be a program name with args.
1180 set dummy $ac_prog; ac_word=$2
1181 echo "$as_me:1181: checking for $ac_word" >&5
1182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1183 if test "${ac_cv_prog_AWK+set}" = set; then
1184 echo $ECHO_N "(cached) $ECHO_C" >&6
1185 else
1186 if test -n "$AWK"; then
1187 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1188 else
1189 ac_save_IFS=$IFS; IFS=$ac_path_separator
1190 ac_dummy="$PATH"
1191 for ac_dir in $ac_dummy; do
1192 IFS=$ac_save_IFS
1193 test -z "$ac_dir" && ac_dir=.
1194 $as_executable_p "$ac_dir/$ac_word" || continue
1195 ac_cv_prog_AWK="$ac_prog"
1196 echo "$as_me:1196: found $ac_dir/$ac_word" >&5
1197 break
1198 done
1199
1200 fi
1201 fi
1202 AWK=$ac_cv_prog_AWK
1203 if test -n "$AWK"; then
1204 echo "$as_me:1204: result: $AWK" >&5
1205 echo "${ECHO_T}$AWK" >&6
1206 else
1207 echo "$as_me:1207: result: no" >&5
1208 echo "${ECHO_T}no" >&6
1209 fi
1210
1211 test -n "$AWK" && break
1212 done
1213
1214 echo "$as_me:1214: checking whether ${MAKE-make} sets \${MAKE}" >&5
1215 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1216 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1217 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1218 echo $ECHO_N "(cached) $ECHO_C" >&6
1219 else
1220 cat >conftest.make <<\_ACEOF
1221 all:
1222 @echo 'ac_maketemp="${MAKE}"'
1223 _ACEOF
1224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1225 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1226 if test -n "$ac_maketemp"; then
1227 eval ac_cv_prog_make_${ac_make}_set=yes
1228 else
1229 eval ac_cv_prog_make_${ac_make}_set=no
1230 fi
1231 rm -f conftest.make
1232 fi
1233 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1234 echo "$as_me:1234: result: yes" >&5
1235 echo "${ECHO_T}yes" >&6
1236 SET_MAKE=
1237 else
1238 echo "$as_me:1238: result: no" >&5
1239 echo "${ECHO_T}no" >&6
1240 SET_MAKE="MAKE=${MAKE-make}"
1241 fi
1242
1243 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1244 if test "${enable_dependency_tracking+set}" = set; then
1245 enableval="$enable_dependency_tracking"
1246
1247 fi;
1248 if test "x$enable_dependency_tracking" != xno; then
1249 am_depcomp="$ac_aux_dir/depcomp"
1250 AMDEPBACKSLASH='\'
1251 fi
1252
1253 if test "x$enable_dependency_tracking" != xno; then
1254 AMDEP_TRUE=
1255 AMDEP_FALSE='#'
1256 else
1257 AMDEP_TRUE='#'
1258 AMDEP_FALSE=
1259 fi
1260
1261 rm -f .deps 2>/dev/null
1262 mkdir .deps 2>/dev/null
1263 if test -d .deps; then
1264 DEPDIR=.deps
1265 else
1266 # MS-DOS does not allow filenames that begin with a dot.
1267 DEPDIR=_deps
1268 fi
1269 rmdir .deps 2>/dev/null
1270
1271 # test to see if srcdir already configured
1272 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1273 test -f $srcdir/config.status; then
1274 { { echo "$as_me:1274: error: source directory already configured; run \"make distclean\" there first" >&5
1275 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1276 { (exit 1); exit 1; }; }
1277 fi
1278
1279 # Define the identity of the package.
1280 PACKAGE=bison
1281 VERSION=1.28e
1282
1283 cat >>confdefs.h <<_ACEOF
1284 #define PACKAGE "$PACKAGE"
1285 _ACEOF
1286
1287 cat >>confdefs.h <<_ACEOF
1288 #define VERSION "$VERSION"
1289 _ACEOF
1290
1291 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1292 # the ones we care about.
1293
1294 # Autoconf 2.50 always computes EXEEXT. However we need to be
1295 # compatible with 2.13, for now. So we always define EXEEXT, but we
1296 # don't compute it.
1297
1298 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1299 # requests that it be used. This is a bit dumb.
1300 : ${OBJEXT=o}
1301
1302 # Some tools Automake needs.
1303
1304 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1305
1306 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1307
1308 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1309
1310 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1311
1312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1313
1314 AMTAR=${AMTAR-"${am_missing_run}tar"}
1315
1316 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1317
1318 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1319
1320 # We need awk for the "check" target. The system "awk" is bad on
1321 # some platforms.
1322
1323 ac_config_headers="$ac_config_headers config.h:config.hin"
1324
1325 # Initialize the test suite.
1326 ac_config_commands="$ac_config_commands tests/atconfig"
1327
1328 if test -f $srcdir/tests/atlocal.in; then
1329 ac_config_files="$ac_config_files tests/atlocal"
1330
1331 fi
1332
1333 # Checks for programs.
1334 ac_ext=c
1335 ac_cpp='$CPP $CPPFLAGS'
1336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1339 if test -n "$ac_tool_prefix"; then
1340 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1341 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1342 echo "$as_me:1342: checking for $ac_word" >&5
1343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1344 if test "${ac_cv_prog_CC+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 else
1347 if test -n "$CC"; then
1348 ac_cv_prog_CC="$CC" # Let the user override the test.
1349 else
1350 ac_save_IFS=$IFS; IFS=$ac_path_separator
1351 ac_dummy="$PATH"
1352 for ac_dir in $ac_dummy; do
1353 IFS=$ac_save_IFS
1354 test -z "$ac_dir" && ac_dir=.
1355 $as_executable_p "$ac_dir/$ac_word" || continue
1356 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1357 echo "$as_me:1357: found $ac_dir/$ac_word" >&5
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 "gcc", so it can be a program name with args.
1376 set dummy gcc; 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="gcc"
1392 echo "$as_me:1392: found $ac_dir/$ac_word" >&5
1393 break
1394 done
1395
1396 fi
1397 fi
1398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1399 if test -n "$ac_ct_CC"; then
1400 echo "$as_me:1400: result: $ac_ct_CC" >&5
1401 echo "${ECHO_T}$ac_ct_CC" >&6
1402 else
1403 echo "$as_me:1403: result: no" >&5
1404 echo "${ECHO_T}no" >&6
1405 fi
1406
1407 CC=$ac_ct_CC
1408 else
1409 CC="$ac_cv_prog_CC"
1410 fi
1411
1412 if test -z "$CC"; then
1413 if test -n "$ac_tool_prefix"; then
1414 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1415 set dummy ${ac_tool_prefix}cc; ac_word=$2
1416 echo "$as_me:1416: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_prog_CC+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421 if test -n "$CC"; then
1422 ac_cv_prog_CC="$CC" # Let the user override the test.
1423 else
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 ac_cv_prog_CC="${ac_tool_prefix}cc"
1431 echo "$as_me:1431: found $ac_dir/$ac_word" >&5
1432 break
1433 done
1434
1435 fi
1436 fi
1437 CC=$ac_cv_prog_CC
1438 if test -n "$CC"; then
1439 echo "$as_me:1439: result: $CC" >&5
1440 echo "${ECHO_T}$CC" >&6
1441 else
1442 echo "$as_me:1442: result: no" >&5
1443 echo "${ECHO_T}no" >&6
1444 fi
1445
1446 fi
1447 if test -z "$ac_cv_prog_CC"; then
1448 ac_ct_CC=$CC
1449 # Extract the first word of "cc", so it can be a program name with args.
1450 set dummy cc; ac_word=$2
1451 echo "$as_me:1451: checking for $ac_word" >&5
1452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 else
1456 if test -n "$ac_ct_CC"; then
1457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1458 else
1459 ac_save_IFS=$IFS; IFS=$ac_path_separator
1460 ac_dummy="$PATH"
1461 for ac_dir in $ac_dummy; do
1462 IFS=$ac_save_IFS
1463 test -z "$ac_dir" && ac_dir=.
1464 $as_executable_p "$ac_dir/$ac_word" || continue
1465 ac_cv_prog_ac_ct_CC="cc"
1466 echo "$as_me:1466: found $ac_dir/$ac_word" >&5
1467 break
1468 done
1469
1470 fi
1471 fi
1472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1473 if test -n "$ac_ct_CC"; then
1474 echo "$as_me:1474: result: $ac_ct_CC" >&5
1475 echo "${ECHO_T}$ac_ct_CC" >&6
1476 else
1477 echo "$as_me:1477: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1479 fi
1480
1481 CC=$ac_ct_CC
1482 else
1483 CC="$ac_cv_prog_CC"
1484 fi
1485
1486 fi
1487 if test -z "$CC"; then
1488 # Extract the first word of "cc", so it can be a program name with args.
1489 set dummy cc; ac_word=$2
1490 echo "$as_me:1490: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1497 else
1498 ac_prog_rejected=no
1499 ac_save_IFS=$IFS; IFS=$ac_path_separator
1500 ac_dummy="$PATH"
1501 for ac_dir in $ac_dummy; do
1502 IFS=$ac_save_IFS
1503 test -z "$ac_dir" && ac_dir=.
1504 $as_executable_p "$ac_dir/$ac_word" || continue
1505 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1506 ac_prog_rejected=yes
1507 continue
1508 fi
1509 ac_cv_prog_CC="cc"
1510 echo "$as_me:1510: found $ac_dir/$ac_word" >&5
1511 break
1512 done
1513
1514 if test $ac_prog_rejected = yes; then
1515 # We found a bogon in the path, so make sure we never use it.
1516 set dummy $ac_cv_prog_CC
1517 shift
1518 if test $# != 0; then
1519 # We chose a different compiler from the bogus one.
1520 # However, it has the same basename, so the bogon will be chosen
1521 # first if we set CC to just the basename; use the full file name.
1522 shift
1523 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1524 shift
1525 ac_cv_prog_CC="$@"
1526 fi
1527 fi
1528 fi
1529 fi
1530 CC=$ac_cv_prog_CC
1531 if test -n "$CC"; then
1532 echo "$as_me:1532: result: $CC" >&5
1533 echo "${ECHO_T}$CC" >&6
1534 else
1535 echo "$as_me:1535: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1537 fi
1538
1539 fi
1540 if test -z "$CC"; then
1541 if test -n "$ac_tool_prefix"; then
1542 for ac_prog in cl
1543 do
1544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1546 echo "$as_me:1546: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1553 else
1554 ac_save_IFS=$IFS; IFS=$ac_path_separator
1555 ac_dummy="$PATH"
1556 for ac_dir in $ac_dummy; do
1557 IFS=$ac_save_IFS
1558 test -z "$ac_dir" && ac_dir=.
1559 $as_executable_p "$ac_dir/$ac_word" || continue
1560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1561 echo "$as_me:1561: found $ac_dir/$ac_word" >&5
1562 break
1563 done
1564
1565 fi
1566 fi
1567 CC=$ac_cv_prog_CC
1568 if test -n "$CC"; then
1569 echo "$as_me:1569: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1571 else
1572 echo "$as_me:1572: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 fi
1575
1576 test -n "$CC" && break
1577 done
1578 fi
1579 if test -z "$CC"; then
1580 ac_ct_CC=$CC
1581 for ac_prog in cl
1582 do
1583 # Extract the first word of "$ac_prog", so it can be a program name with args.
1584 set dummy $ac_prog; ac_word=$2
1585 echo "$as_me:1585: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590 if test -n "$ac_ct_CC"; then
1591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592 else
1593 ac_save_IFS=$IFS; IFS=$ac_path_separator
1594 ac_dummy="$PATH"
1595 for ac_dir in $ac_dummy; do
1596 IFS=$ac_save_IFS
1597 test -z "$ac_dir" && ac_dir=.
1598 $as_executable_p "$ac_dir/$ac_word" || continue
1599 ac_cv_prog_ac_ct_CC="$ac_prog"
1600 echo "$as_me:1600: found $ac_dir/$ac_word" >&5
1601 break
1602 done
1603
1604 fi
1605 fi
1606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1607 if test -n "$ac_ct_CC"; then
1608 echo "$as_me:1608: result: $ac_ct_CC" >&5
1609 echo "${ECHO_T}$ac_ct_CC" >&6
1610 else
1611 echo "$as_me:1611: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1613 fi
1614
1615 test -n "$ac_ct_CC" && break
1616 done
1617
1618 CC=$ac_ct_CC
1619 fi
1620
1621 fi
1622
1623 test -z "$CC" && { { echo "$as_me:1623: error: no acceptable cc found in \$PATH" >&5
1624 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1625 { (exit 1); exit 1; }; }
1626
1627 # Provide some information about the compiler.
1628 echo "$as_me:1628:" \
1629 "checking for C compiler version" >&5
1630 ac_compiler=`set X $ac_compile; echo $2`
1631 { (eval echo "$as_me:1631: \"$ac_compiler --version </dev/null >&5\"") >&5
1632 (eval $ac_compiler --version </dev/null >&5) 2>&5
1633 ac_status=$?
1634 echo "$as_me:1634: \$? = $ac_status" >&5
1635 (exit $ac_status); }
1636 { (eval echo "$as_me:1636: \"$ac_compiler -v </dev/null >&5\"") >&5
1637 (eval $ac_compiler -v </dev/null >&5) 2>&5
1638 ac_status=$?
1639 echo "$as_me:1639: \$? = $ac_status" >&5
1640 (exit $ac_status); }
1641 { (eval echo "$as_me:1641: \"$ac_compiler -V </dev/null >&5\"") >&5
1642 (eval $ac_compiler -V </dev/null >&5) 2>&5
1643 ac_status=$?
1644 echo "$as_me:1644: \$? = $ac_status" >&5
1645 (exit $ac_status); }
1646
1647 cat >conftest.$ac_ext <<_ACEOF
1648 #line 1648 "configure"
1649 #include "confdefs.h"
1650
1651 #ifdef F77_DUMMY_MAIN
1652 # ifdef __cplusplus
1653 extern "C"
1654 # endif
1655 int F77_DUMMY_MAIN() { return 1; }
1656 #endif
1657 int
1658 main ()
1659 {
1660
1661 ;
1662 return 0;
1663 }
1664 _ACEOF
1665 ac_clean_files_save=$ac_clean_files
1666 ac_clean_files="$ac_clean_files a.out a.exe"
1667 # Try to create an executable without -o first, disregard a.out.
1668 # It will help us diagnose broken compilers, and finding out an intuition
1669 # of exeext.
1670 echo "$as_me:1670: checking for C compiler default output" >&5
1671 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1672 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1673 if { (eval echo "$as_me:1673: \"$ac_link_default\"") >&5
1674 (eval $ac_link_default) 2>&5
1675 ac_status=$?
1676 echo "$as_me:1676: \$? = $ac_status" >&5
1677 (exit $ac_status); }; then
1678 # Find the output, starting from the most likely. This scheme is
1679 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1680 # resort.
1681 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1682 ls a.out conftest 2>/dev/null;
1683 ls a.* conftest.* 2>/dev/null`; do
1684 case $ac_file in
1685 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1686 a.out ) # We found the default executable, but exeext='' is most
1687 # certainly right.
1688 break;;
1689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1690 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1691 export ac_cv_exeext
1692 break;;
1693 * ) break;;
1694 esac
1695 done
1696 else
1697 echo "$as_me: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1699 { { echo "$as_me:1699: error: C compiler cannot create executables" >&5
1700 echo "$as_me: error: C compiler cannot create executables" >&2;}
1701 { (exit 77); exit 77; }; }
1702 fi
1703
1704 ac_exeext=$ac_cv_exeext
1705 echo "$as_me:1705: result: $ac_file" >&5
1706 echo "${ECHO_T}$ac_file" >&6
1707
1708 # Check the compiler produces executables we can run. If not, either
1709 # the compiler is broken, or we cross compile.
1710 echo "$as_me:1710: checking whether the C compiler works" >&5
1711 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1712 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1713 # If not cross compiling, check that we can run a simple program.
1714 if test "$cross_compiling" != yes; then
1715 if { ac_try='./$ac_file'
1716 { (eval echo "$as_me:1716: \"$ac_try\"") >&5
1717 (eval $ac_try) 2>&5
1718 ac_status=$?
1719 echo "$as_me:1719: \$? = $ac_status" >&5
1720 (exit $ac_status); }; }; then
1721 cross_compiling=no
1722 else
1723 if test "$cross_compiling" = maybe; then
1724 cross_compiling=yes
1725 else
1726 { { echo "$as_me:1726: error: cannot run C compiled programs.
1727 If you meant to cross compile, use \`--host'." >&5
1728 echo "$as_me: error: cannot run C compiled programs.
1729 If you meant to cross compile, use \`--host'." >&2;}
1730 { (exit 1); exit 1; }; }
1731 fi
1732 fi
1733 fi
1734 echo "$as_me:1734: result: yes" >&5
1735 echo "${ECHO_T}yes" >&6
1736
1737 rm -f a.out a.exe conftest$ac_cv_exeext
1738 ac_clean_files=$ac_clean_files_save
1739 # Check the compiler produces executables we can run. If not, either
1740 # the compiler is broken, or we cross compile.
1741 echo "$as_me:1741: checking whether we are cross compiling" >&5
1742 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1743 echo "$as_me:1743: result: $cross_compiling" >&5
1744 echo "${ECHO_T}$cross_compiling" >&6
1745
1746 echo "$as_me:1746: checking for executable suffix" >&5
1747 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1748 if { (eval echo "$as_me:1748: \"$ac_link\"") >&5
1749 (eval $ac_link) 2>&5
1750 ac_status=$?
1751 echo "$as_me:1751: \$? = $ac_status" >&5
1752 (exit $ac_status); }; then
1753 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1754 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1755 # work properly (i.e., refer to `conftest.exe'), while it won't with
1756 # `rm'.
1757 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1758 case $ac_file in
1759 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1760 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1761 export ac_cv_exeext
1762 break;;
1763 * ) break;;
1764 esac
1765 done
1766 else
1767 { { echo "$as_me:1767: error: cannot compute EXEEXT: cannot compile and link" >&5
1768 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1769 { (exit 1); exit 1; }; }
1770 fi
1771
1772 rm -f conftest$ac_cv_exeext
1773 echo "$as_me:1773: result: $ac_cv_exeext" >&5
1774 echo "${ECHO_T}$ac_cv_exeext" >&6
1775
1776 rm -f conftest.$ac_ext
1777 EXEEXT=$ac_cv_exeext
1778 ac_exeext=$EXEEXT
1779 echo "$as_me:1779: checking for object suffix" >&5
1780 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1781 if test "${ac_cv_objext+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784 cat >conftest.$ac_ext <<_ACEOF
1785 #line 1785 "configure"
1786 #include "confdefs.h"
1787
1788 #ifdef F77_DUMMY_MAIN
1789 # ifdef __cplusplus
1790 extern "C"
1791 # endif
1792 int F77_DUMMY_MAIN() { return 1; }
1793 #endif
1794 int
1795 main ()
1796 {
1797
1798 ;
1799 return 0;
1800 }
1801 _ACEOF
1802 rm -f conftest.o conftest.obj
1803 if { (eval echo "$as_me:1803: \"$ac_compile\"") >&5
1804 (eval $ac_compile) 2>&5
1805 ac_status=$?
1806 echo "$as_me:1806: \$? = $ac_status" >&5
1807 (exit $ac_status); }; then
1808 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1809 case $ac_file in
1810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1811 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1812 break;;
1813 esac
1814 done
1815 else
1816 echo "$as_me: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
1818 { { echo "$as_me:1818: error: cannot compute OBJEXT: cannot compile" >&5
1819 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1820 { (exit 1); exit 1; }; }
1821 fi
1822
1823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1824 fi
1825 echo "$as_me:1825: result: $ac_cv_objext" >&5
1826 echo "${ECHO_T}$ac_cv_objext" >&6
1827 OBJEXT=$ac_cv_objext
1828 ac_objext=$OBJEXT
1829 echo "$as_me:1829: checking whether we are using the GNU C compiler" >&5
1830 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1831 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 else
1834 cat >conftest.$ac_ext <<_ACEOF
1835 #line 1835 "configure"
1836 #include "confdefs.h"
1837
1838 #ifdef F77_DUMMY_MAIN
1839 # ifdef __cplusplus
1840 extern "C"
1841 # endif
1842 int F77_DUMMY_MAIN() { return 1; }
1843 #endif
1844 int
1845 main ()
1846 {
1847 #ifndef __GNUC__
1848 choke me
1849 #endif
1850
1851 ;
1852 return 0;
1853 }
1854 _ACEOF
1855 rm -f conftest.$ac_objext
1856 if { (eval echo "$as_me:1856: \"$ac_compile\"") >&5
1857 (eval $ac_compile) 2>&5
1858 ac_status=$?
1859 echo "$as_me:1859: \$? = $ac_status" >&5
1860 (exit $ac_status); } &&
1861 { ac_try='test -s conftest.$ac_objext'
1862 { (eval echo "$as_me:1862: \"$ac_try\"") >&5
1863 (eval $ac_try) 2>&5
1864 ac_status=$?
1865 echo "$as_me:1865: \$? = $ac_status" >&5
1866 (exit $ac_status); }; }; then
1867 ac_compiler_gnu=yes
1868 else
1869 echo "$as_me: failed program was:" >&5
1870 cat conftest.$ac_ext >&5
1871 ac_compiler_gnu=no
1872 fi
1873 rm -f conftest.$ac_objext conftest.$ac_ext
1874 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1875
1876 fi
1877 echo "$as_me:1877: result: $ac_cv_c_compiler_gnu" >&5
1878 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1879 GCC=`test $ac_compiler_gnu = yes && echo yes`
1880 ac_test_CFLAGS=${CFLAGS+set}
1881 ac_save_CFLAGS=$CFLAGS
1882 CFLAGS="-g"
1883 echo "$as_me:1883: checking whether $CC accepts -g" >&5
1884 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1885 if test "${ac_cv_prog_cc_g+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 cat >conftest.$ac_ext <<_ACEOF
1889 #line 1889 "configure"
1890 #include "confdefs.h"
1891
1892 #ifdef F77_DUMMY_MAIN
1893 # ifdef __cplusplus
1894 extern "C"
1895 # endif
1896 int F77_DUMMY_MAIN() { return 1; }
1897 #endif
1898 int
1899 main ()
1900 {
1901
1902 ;
1903 return 0;
1904 }
1905 _ACEOF
1906 rm -f conftest.$ac_objext
1907 if { (eval echo "$as_me:1907: \"$ac_compile\"") >&5
1908 (eval $ac_compile) 2>&5
1909 ac_status=$?
1910 echo "$as_me:1910: \$? = $ac_status" >&5
1911 (exit $ac_status); } &&
1912 { ac_try='test -s conftest.$ac_objext'
1913 { (eval echo "$as_me:1913: \"$ac_try\"") >&5
1914 (eval $ac_try) 2>&5
1915 ac_status=$?
1916 echo "$as_me:1916: \$? = $ac_status" >&5
1917 (exit $ac_status); }; }; then
1918 ac_cv_prog_cc_g=yes
1919 else
1920 echo "$as_me: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1922 ac_cv_prog_cc_g=no
1923 fi
1924 rm -f conftest.$ac_objext conftest.$ac_ext
1925 fi
1926 echo "$as_me:1926: result: $ac_cv_prog_cc_g" >&5
1927 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1928 if test "$ac_test_CFLAGS" = set; then
1929 CFLAGS=$ac_save_CFLAGS
1930 elif test $ac_cv_prog_cc_g = yes; then
1931 if test "$GCC" = yes; then
1932 CFLAGS="-g -O2"
1933 else
1934 CFLAGS="-g"
1935 fi
1936 else
1937 if test "$GCC" = yes; then
1938 CFLAGS="-O2"
1939 else
1940 CFLAGS=
1941 fi
1942 fi
1943 # Some people use a C++ compiler to compile C. Since we use `exit',
1944 # in C++ we need to declare it. In case someone uses the same compiler
1945 # for both compiling C and C++ we need to have the C++ compiler decide
1946 # the declaration of exit, since it's the most demanding environment.
1947 cat >conftest.$ac_ext <<_ACEOF
1948 #ifndef __cplusplus
1949 choke me
1950 #endif
1951 _ACEOF
1952 rm -f conftest.$ac_objext
1953 if { (eval echo "$as_me:1953: \"$ac_compile\"") >&5
1954 (eval $ac_compile) 2>&5
1955 ac_status=$?
1956 echo "$as_me:1956: \$? = $ac_status" >&5
1957 (exit $ac_status); } &&
1958 { ac_try='test -s conftest.$ac_objext'
1959 { (eval echo "$as_me:1959: \"$ac_try\"") >&5
1960 (eval $ac_try) 2>&5
1961 ac_status=$?
1962 echo "$as_me:1962: \$? = $ac_status" >&5
1963 (exit $ac_status); }; }; then
1964 for ac_declaration in \
1965 ''\
1966 '#include <stdlib.h>' \
1967 'extern "C" void std::exit (int) throw (); using std::exit;' \
1968 'extern "C" void std::exit (int); using std::exit;' \
1969 'extern "C" void exit (int) throw ();' \
1970 'extern "C" void exit (int);' \
1971 'void exit (int);'
1972 do
1973 cat >conftest.$ac_ext <<_ACEOF
1974 #line 1974 "configure"
1975 #include "confdefs.h"
1976 #include <stdlib.h>
1977 $ac_declaration
1978 #ifdef F77_DUMMY_MAIN
1979 # ifdef __cplusplus
1980 extern "C"
1981 # endif
1982 int F77_DUMMY_MAIN() { return 1; }
1983 #endif
1984 int
1985 main ()
1986 {
1987 exit (42);
1988 ;
1989 return 0;
1990 }
1991 _ACEOF
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:1993: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>&5
1995 ac_status=$?
1996 echo "$as_me:1996: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -s conftest.$ac_objext'
1999 { (eval echo "$as_me:1999: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:2002: \$? = $ac_status" >&5
2003 (exit $ac_status); }; }; then
2004 :
2005 else
2006 echo "$as_me: failed program was:" >&5
2007 cat conftest.$ac_ext >&5
2008 continue
2009 fi
2010 rm -f conftest.$ac_objext conftest.$ac_ext
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line 2012 "configure"
2013 #include "confdefs.h"
2014 $ac_declaration
2015 #ifdef F77_DUMMY_MAIN
2016 # ifdef __cplusplus
2017 extern "C"
2018 # endif
2019 int F77_DUMMY_MAIN() { return 1; }
2020 #endif
2021 int
2022 main ()
2023 {
2024 exit (42);
2025 ;
2026 return 0;
2027 }
2028 _ACEOF
2029 rm -f conftest.$ac_objext
2030 if { (eval echo "$as_me:2030: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2032 ac_status=$?
2033 echo "$as_me:2033: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:2036: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:2039: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2041 break
2042 else
2043 echo "$as_me: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2045 fi
2046 rm -f conftest.$ac_objext conftest.$ac_ext
2047 done
2048 rm -f conftest*
2049 if test -n "$ac_declaration"; then
2050 echo '#ifdef __cplusplus' >>confdefs.h
2051 echo $ac_declaration >>confdefs.h
2052 echo '#endif' >>confdefs.h
2053 fi
2054
2055 else
2056 echo "$as_me: failed program was:" >&5
2057 cat conftest.$ac_ext >&5
2058 fi
2059 rm -f conftest.$ac_objext conftest.$ac_ext
2060 ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065
2066 ac_config_commands="$ac_config_commands default-1"
2067
2068 am_make=${MAKE-make}
2069 cat > confinc << 'END'
2070 doit:
2071 @echo done
2072 END
2073 # If we don't find an include directive, just comment out the code.
2074 echo "$as_me:2074: checking for style of include used by $am_make" >&5
2075 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2076 am__include='#'
2077 am__quote=
2078 _am_result=none
2079 # First try GNU make style include.
2080 echo "include confinc" > confmf
2081 # We grep out `Entering directory' and `Leaving directory'
2082 # messages which can occur if `w' ends up in MAKEFLAGS.
2083 # In particular we don't look at `^make:' because GNU make might
2084 # be invoked under some other name (usually "gmake"), in which
2085 # case it prints its new name instead of `make'.
2086 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2087 am__include=include
2088 am__quote=
2089 _am_result=GNU
2090 fi
2091 # Now try BSD make style include.
2092 if test "$am__include" = "#"; then
2093 echo '.include "confinc"' > confmf
2094 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2095 am__include=.include
2096 am__quote='"'
2097 _am_result=BSD
2098 fi
2099 fi
2100
2101 echo "$as_me:2101: result: $_am_result" >&5
2102 echo "${ECHO_T}$_am_result" >&6
2103 rm -f confinc confmf
2104
2105 depcc="$CC" am_compiler_list=
2106
2107 echo "$as_me:2107: checking dependency style of $depcc" >&5
2108 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2109 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2113 # We make a subdir and do the tests there. Otherwise we can end up
2114 # making bogus files that we don't know about and never remove. For
2115 # instance it was reported that on HP-UX the gcc test will end up
2116 # making a dummy file named `D' -- because `-MD' means `put the output
2117 # in D'.
2118 mkdir conftest.dir
2119 # Copy depcomp to subdir because otherwise we won't find it if we're
2120 # using a relative directory.
2121 cp "$am_depcomp" conftest.dir
2122 cd conftest.dir
2123
2124 am_cv_CC_dependencies_compiler_type=none
2125 if test "$am_compiler_list" = ""; then
2126 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2127 fi
2128 for depmode in $am_compiler_list; do
2129 # We need to recreate these files for each test, as the compiler may
2130 # overwrite some of them when testing with obscure command lines.
2131 # This happens at least with the AIX C compiler.
2132 echo '#include "conftest.h"' > conftest.c
2133 echo 'int i;' > conftest.h
2134 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2135
2136 case $depmode in
2137 nosideeffect)
2138 # after this tag, mechanisms are not by side-effect, so they'll
2139 # only be used when explicitly requested
2140 if test "x$enable_dependency_tracking" = xyes; then
2141 continue
2142 else
2143 break
2144 fi
2145 ;;
2146 none) break ;;
2147 esac
2148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2149 # mode. It turns out that the SunPro C++ compiler does not properly
2150 # handle `-M -o', and we need to detect this.
2151 if depmode=$depmode \
2152 source=conftest.c object=conftest.o \
2153 depfile=conftest.Po tmpdepfile=conftest.TPo \
2154 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2155 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2156 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2157 am_cv_CC_dependencies_compiler_type=$depmode
2158 break
2159 fi
2160 done
2161
2162 cd ..
2163 rm -rf conftest.dir
2164 else
2165 am_cv_CC_dependencies_compiler_type=none
2166 fi
2167
2168 fi
2169 echo "$as_me:2169: result: $am_cv_CC_dependencies_compiler_type" >&5
2170 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2171 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2172
2173 ac_ext=c
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 echo "$as_me:2178: checking how to run the C preprocessor" >&5
2179 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2180 # On Suns, sometimes $CPP names a directory.
2181 if test -n "$CPP" && test -d "$CPP"; then
2182 CPP=
2183 fi
2184 if test -z "$CPP"; then
2185 if test "${ac_cv_prog_CPP+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 # Double quotes because CPP needs to be expanded
2189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2190 do
2191 ac_preproc_ok=false
2192 for ac_c_preproc_warn_flag in '' yes
2193 do
2194 # Use a header file that comes with gcc, so configuring glibc
2195 # with a fresh cross-compiler works.
2196 # On the NeXT, cc -E runs the code through the compiler's parser,
2197 # not just through cpp. "Syntax error" is here to catch this case.
2198 cat >conftest.$ac_ext <<_ACEOF
2199 #line 2199 "configure"
2200 #include "confdefs.h"
2201 #include <assert.h>
2202 Syntax error
2203 _ACEOF
2204 if { (eval echo "$as_me:2204: \"$ac_cpp conftest.$ac_ext\"") >&5
2205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2206 ac_status=$?
2207 egrep -v '^ *\+' conftest.er1 >conftest.err
2208 rm -f conftest.er1
2209 cat conftest.err >&5
2210 echo "$as_me:2210: \$? = $ac_status" >&5
2211 (exit $ac_status); } >/dev/null; then
2212 if test -s conftest.err; then
2213 ac_cpp_err=$ac_c_preproc_warn_flag
2214 else
2215 ac_cpp_err=
2216 fi
2217 else
2218 ac_cpp_err=yes
2219 fi
2220 if test -z "$ac_cpp_err"; then
2221 :
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2225 # Broken: fails on valid input.
2226 continue
2227 fi
2228 rm -f conftest.err conftest.$ac_ext
2229
2230 # OK, works on sane cases. Now check whether non-existent headers
2231 # can be detected and how.
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #line 2233 "configure"
2234 #include "confdefs.h"
2235 #include <ac_nonexistent.h>
2236 _ACEOF
2237 if { (eval echo "$as_me:2237: \"$ac_cpp conftest.$ac_ext\"") >&5
2238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2239 ac_status=$?
2240 egrep -v '^ *\+' conftest.er1 >conftest.err
2241 rm -f conftest.er1
2242 cat conftest.err >&5
2243 echo "$as_me:2243: \$? = $ac_status" >&5
2244 (exit $ac_status); } >/dev/null; then
2245 if test -s conftest.err; then
2246 ac_cpp_err=$ac_c_preproc_warn_flag
2247 else
2248 ac_cpp_err=
2249 fi
2250 else
2251 ac_cpp_err=yes
2252 fi
2253 if test -z "$ac_cpp_err"; then
2254 # Broken: success on invalid input.
2255 continue
2256 else
2257 echo "$as_me: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 # Passes both tests.
2260 ac_preproc_ok=:
2261 break
2262 fi
2263 rm -f conftest.err conftest.$ac_ext
2264
2265 done
2266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2267 rm -f conftest.err conftest.$ac_ext
2268 if $ac_preproc_ok; then
2269 break
2270 fi
2271
2272 done
2273 ac_cv_prog_CPP=$CPP
2274
2275 fi
2276 CPP=$ac_cv_prog_CPP
2277 else
2278 ac_cv_prog_CPP=$CPP
2279 fi
2280 echo "$as_me:2280: result: $CPP" >&5
2281 echo "${ECHO_T}$CPP" >&6
2282 ac_preproc_ok=false
2283 for ac_c_preproc_warn_flag in '' yes
2284 do
2285 # Use a header file that comes with gcc, so configuring glibc
2286 # with a fresh cross-compiler works.
2287 # On the NeXT, cc -E runs the code through the compiler's parser,
2288 # not just through cpp. "Syntax error" is here to catch this case.
2289 cat >conftest.$ac_ext <<_ACEOF
2290 #line 2290 "configure"
2291 #include "confdefs.h"
2292 #include <assert.h>
2293 Syntax error
2294 _ACEOF
2295 if { (eval echo "$as_me:2295: \"$ac_cpp conftest.$ac_ext\"") >&5
2296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2297 ac_status=$?
2298 egrep -v '^ *\+' conftest.er1 >conftest.err
2299 rm -f conftest.er1
2300 cat conftest.err >&5
2301 echo "$as_me:2301: \$? = $ac_status" >&5
2302 (exit $ac_status); } >/dev/null; then
2303 if test -s conftest.err; then
2304 ac_cpp_err=$ac_c_preproc_warn_flag
2305 else
2306 ac_cpp_err=
2307 fi
2308 else
2309 ac_cpp_err=yes
2310 fi
2311 if test -z "$ac_cpp_err"; then
2312 :
2313 else
2314 echo "$as_me: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 # Broken: fails on valid input.
2317 continue
2318 fi
2319 rm -f conftest.err conftest.$ac_ext
2320
2321 # OK, works on sane cases. Now check whether non-existent headers
2322 # can be detected and how.
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line 2324 "configure"
2325 #include "confdefs.h"
2326 #include <ac_nonexistent.h>
2327 _ACEOF
2328 if { (eval echo "$as_me:2328: \"$ac_cpp conftest.$ac_ext\"") >&5
2329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2330 ac_status=$?
2331 egrep -v '^ *\+' conftest.er1 >conftest.err
2332 rm -f conftest.er1
2333 cat conftest.err >&5
2334 echo "$as_me:2334: \$? = $ac_status" >&5
2335 (exit $ac_status); } >/dev/null; then
2336 if test -s conftest.err; then
2337 ac_cpp_err=$ac_c_preproc_warn_flag
2338 else
2339 ac_cpp_err=
2340 fi
2341 else
2342 ac_cpp_err=yes
2343 fi
2344 if test -z "$ac_cpp_err"; then
2345 # Broken: success on invalid input.
2346 continue
2347 else
2348 echo "$as_me: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2350 # Passes both tests.
2351 ac_preproc_ok=:
2352 break
2353 fi
2354 rm -f conftest.err conftest.$ac_ext
2355
2356 done
2357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2358 rm -f conftest.err conftest.$ac_ext
2359 if $ac_preproc_ok; then
2360 :
2361 else
2362 { { echo "$as_me:2362: error: C preprocessor \"$CPP\" fails sanity check" >&5
2363 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2364 { (exit 1); exit 1; }; }
2365 fi
2366
2367 ac_ext=c
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372
2373 echo "$as_me:2373: checking for ANSI C header files" >&5
2374 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2375 if test "${ac_cv_header_stdc+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378 cat >conftest.$ac_ext <<_ACEOF
2379 #line 2379 "configure"
2380 #include "confdefs.h"
2381 #include <stdlib.h>
2382 #include <stdarg.h>
2383 #include <string.h>
2384 #include <float.h>
2385
2386 _ACEOF
2387 if { (eval echo "$as_me:2387: \"$ac_cpp conftest.$ac_ext\"") >&5
2388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389 ac_status=$?
2390 egrep -v '^ *\+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:2393: \$? = $ac_status" >&5
2394 (exit $ac_status); } >/dev/null; then
2395 if test -s conftest.err; then
2396 ac_cpp_err=$ac_c_preproc_warn_flag
2397 else
2398 ac_cpp_err=
2399 fi
2400 else
2401 ac_cpp_err=yes
2402 fi
2403 if test -z "$ac_cpp_err"; then
2404 ac_cv_header_stdc=yes
2405 else
2406 echo "$as_me: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2408 ac_cv_header_stdc=no
2409 fi
2410 rm -f conftest.err conftest.$ac_ext
2411
2412 if test $ac_cv_header_stdc = yes; then
2413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2414 cat >conftest.$ac_ext <<_ACEOF
2415 #line 2415 "configure"
2416 #include "confdefs.h"
2417 #include <string.h>
2418
2419 _ACEOF
2420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2421 egrep "memchr" >/dev/null 2>&1; then
2422 :
2423 else
2424 ac_cv_header_stdc=no
2425 fi
2426 rm -f conftest*
2427
2428 fi
2429
2430 if test $ac_cv_header_stdc = yes; then
2431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2432 cat >conftest.$ac_ext <<_ACEOF
2433 #line 2433 "configure"
2434 #include "confdefs.h"
2435 #include <stdlib.h>
2436
2437 _ACEOF
2438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2439 egrep "free" >/dev/null 2>&1; then
2440 :
2441 else
2442 ac_cv_header_stdc=no
2443 fi
2444 rm -f conftest*
2445
2446 fi
2447
2448 if test $ac_cv_header_stdc = yes; then
2449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2450 if test "$cross_compiling" = yes; then
2451 :
2452 else
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line 2454 "configure"
2455 #include "confdefs.h"
2456 #include <ctype.h>
2457 #if ((' ' & 0x0FF) == 0x020)
2458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2460 #else
2461 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2462 || ('j' <= (c) && (c) <= 'r') \
2463 || ('s' <= (c) && (c) <= 'z'))
2464 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2465 #endif
2466
2467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2468 int
2469 main ()
2470 {
2471 int i;
2472 for (i = 0; i < 256; i++)
2473 if (XOR (islower (i), ISLOWER (i))
2474 || toupper (i) != TOUPPER (i))
2475 exit(2);
2476 exit (0);
2477 }
2478 _ACEOF
2479 rm -f conftest$ac_exeext
2480 if { (eval echo "$as_me:2480: \"$ac_link\"") >&5
2481 (eval $ac_link) 2>&5
2482 ac_status=$?
2483 echo "$as_me:2483: \$? = $ac_status" >&5
2484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2485 { (eval echo "$as_me:2485: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:2488: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 :
2491 else
2492 echo "$as_me: program exited with status $ac_status" >&5
2493 echo "$as_me: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 ac_cv_header_stdc=no
2496 fi
2497 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2498 fi
2499 fi
2500 fi
2501 echo "$as_me:2501: result: $ac_cv_header_stdc" >&5
2502 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2503 if test $ac_cv_header_stdc = yes; then
2504
2505 cat >>confdefs.h <<\_ACEOF
2506 #define STDC_HEADERS 1
2507 _ACEOF
2508
2509 fi
2510
2511 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2512
2513 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2514 inttypes.h stdint.h unistd.h
2515 do
2516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2517 echo "$as_me:2517: checking for $ac_header" >&5
2518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522 cat >conftest.$ac_ext <<_ACEOF
2523 #line 2523 "configure"
2524 #include "confdefs.h"
2525 $ac_includes_default
2526
2527 #include <$ac_header>
2528 _ACEOF
2529 rm -f conftest.$ac_objext
2530 if { (eval echo "$as_me:2530: \"$ac_compile\"") >&5
2531 (eval $ac_compile) 2>&5
2532 ac_status=$?
2533 echo "$as_me:2533: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:2536: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:2539: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 eval "$as_ac_Header=yes"
2542 else
2543 echo "$as_me: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2545 eval "$as_ac_Header=no"
2546 fi
2547 rm -f conftest.$ac_objext conftest.$ac_ext
2548 fi
2549 echo "$as_me:2549: result: `eval echo '${'$as_ac_Header'}'`" >&5
2550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2552 cat >>confdefs.h <<_ACEOF
2553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2554 _ACEOF
2555
2556 fi
2557
2558 done
2559
2560 if test "${ac_cv_header_minix_config_h+set}" = set; then
2561 echo "$as_me:2561: checking for minix/config.h" >&5
2562 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2563 if test "${ac_cv_header_minix_config_h+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 fi
2566 echo "$as_me:2566: result: $ac_cv_header_minix_config_h" >&5
2567 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2568 else
2569 # Is the header compilable?
2570 echo "$as_me:2570: checking minix/config.h usability" >&5
2571 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2572 cat >conftest.$ac_ext <<_ACEOF
2573 #line 2573 "configure"
2574 #include "confdefs.h"
2575 $ac_includes_default
2576 #include <minix/config.h>
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:2579: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>&5
2581 ac_status=$?
2582 echo "$as_me:2582: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:2585: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:2588: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_header_compiler=yes
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 cat conftest.$ac_ext >&5
2594 ac_header_compiler=no
2595 fi
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2597 echo "$as_me:2597: result: $ac_header_compiler" >&5
2598 echo "${ECHO_T}$ac_header_compiler" >&6
2599
2600 # Is the header present?
2601 echo "$as_me:2601: checking minix/config.h presence" >&5
2602 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2603 cat >conftest.$ac_ext <<_ACEOF
2604 #line 2604 "configure"
2605 #include "confdefs.h"
2606 #include <minix/config.h>
2607 _ACEOF
2608 if { (eval echo "$as_me:2608: \"$ac_cpp conftest.$ac_ext\"") >&5
2609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2610 ac_status=$?
2611 egrep -v '^ *\+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:2614: \$? = $ac_status" >&5
2615 (exit $ac_status); } >/dev/null; then
2616 if test -s conftest.err; then
2617 ac_cpp_err=$ac_c_preproc_warn_flag
2618 else
2619 ac_cpp_err=
2620 fi
2621 else
2622 ac_cpp_err=yes
2623 fi
2624 if test -z "$ac_cpp_err"; then
2625 ac_header_preproc=yes
2626 else
2627 echo "$as_me: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2629 ac_header_preproc=no
2630 fi
2631 rm -f conftest.err conftest.$ac_ext
2632 echo "$as_me:2632: result: $ac_header_preproc" >&5
2633 echo "${ECHO_T}$ac_header_preproc" >&6
2634
2635 # So? What about this header?
2636 case $ac_header_compiler:$ac_header_preproc in
2637 yes:no )
2638 { echo "$as_me:2638: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2639 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2640 { echo "$as_me:2640: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2641 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2642 no:yes )
2643 { echo "$as_me:2643: WARNING: minix/config.h: present but cannot be compiled." >&5
2644 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2645 { echo "$as_me:2645: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2646 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2647 { echo "$as_me:2647: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2648 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2649 esac
2650 echo "$as_me:2650: checking for minix/config.h" >&5
2651 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2652 if test "${ac_cv_header_minix_config_h+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655 ac_cv_header_minix_config_h=$ac_header_preproc
2656 fi
2657 echo "$as_me:2657: result: $ac_cv_header_minix_config_h" >&5
2658 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2659
2660 fi
2661 if test $ac_cv_header_minix_config_h = yes; then
2662 MINIX=yes
2663 else
2664 MINIX=
2665 fi
2666
2667 if test "$MINIX" = yes; then
2668
2669 cat >>confdefs.h <<\_ACEOF
2670 #define _POSIX_SOURCE 1
2671 _ACEOF
2672
2673 cat >>confdefs.h <<\_ACEOF
2674 #define _POSIX_1_SOURCE 2
2675 _ACEOF
2676
2677 cat >>confdefs.h <<\_ACEOF
2678 #define _MINIX 1
2679 _ACEOF
2680
2681 fi
2682
2683 echo "$as_me:2683: checking for strerror in -lcposix" >&5
2684 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2685 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688 ac_check_lib_save_LIBS=$LIBS
2689 LIBS="-lcposix $LIBS"
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line 2691 "configure"
2692 #include "confdefs.h"
2693
2694 /* Override any gcc2 internal prototype to avoid an error. */
2695 #ifdef __cplusplus
2696 extern "C"
2697 #endif
2698 /* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2700 char strerror ();
2701 #ifdef F77_DUMMY_MAIN
2702 # ifdef __cplusplus
2703 extern "C"
2704 # endif
2705 int F77_DUMMY_MAIN() { return 1; }
2706 #endif
2707 int
2708 main ()
2709 {
2710 strerror ();
2711 ;
2712 return 0;
2713 }
2714 _ACEOF
2715 rm -f conftest.$ac_objext conftest$ac_exeext
2716 if { (eval echo "$as_me:2716: \"$ac_link\"") >&5
2717 (eval $ac_link) 2>&5
2718 ac_status=$?
2719 echo "$as_me:2719: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -s conftest$ac_exeext'
2722 { (eval echo "$as_me:2722: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:2725: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_cv_lib_cposix_strerror=yes
2728 else
2729 echo "$as_me: failed program was:" >&5
2730 cat conftest.$ac_ext >&5
2731 ac_cv_lib_cposix_strerror=no
2732 fi
2733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2734 LIBS=$ac_check_lib_save_LIBS
2735 fi
2736 echo "$as_me:2736: result: $ac_cv_lib_cposix_strerror" >&5
2737 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2738 if test $ac_cv_lib_cposix_strerror = yes; then
2739 LIBS="$LIBS -lcposix"
2740 fi
2741
2742 echo "$as_me:2742: checking for ${CC-cc} option to accept ANSI C" >&5
2743 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2744 if test "${am_cv_prog_cc_stdc+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 am_cv_prog_cc_stdc=no
2748 ac_save_CC="$CC"
2749 # Don't try gcc -ansi; that turns off useful extensions and
2750 # breaks some systems' header files.
2751 # AIX -qlanglvl=ansi
2752 # Ultrix and OSF/1 -std1
2753 # HP-UX 10.20 and later -Ae
2754 # HP-UX older versions -Aa -D_HPUX_SOURCE
2755 # SVR4 -Xc -D__EXTENSIONS__
2756 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2757 do
2758 CC="$ac_save_CC $ac_arg"
2759 cat >conftest.$ac_ext <<_ACEOF
2760 #line 2760 "configure"
2761 #include "confdefs.h"
2762 #include <stdarg.h>
2763 #include <stdio.h>
2764 #include <sys/types.h>
2765 #include <sys/stat.h>
2766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2767 struct buf { int x; };
2768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2769 static char *e (p, i)
2770 char **p;
2771 int i;
2772 {
2773 return p[i];
2774 }
2775 static char *f (char * (*g) (char **, int), char **p, ...)
2776 {
2777 char *s;
2778 va_list v;
2779 va_start (v,p);
2780 s = g (p, va_arg (v,int));
2781 va_end (v);
2782 return s;
2783 }
2784 int test (int i, double x);
2785 struct s1 {int (*f) (int a);};
2786 struct s2 {int (*f) (double a);};
2787 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2788 int argc;
2789 char **argv;
2790
2791 #ifdef F77_DUMMY_MAIN
2792 # ifdef __cplusplus
2793 extern "C"
2794 # endif
2795 int F77_DUMMY_MAIN() { return 1; }
2796 #endif
2797 int
2798 main ()
2799 {
2800
2801 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2802
2803 ;
2804 return 0;
2805 }
2806 _ACEOF
2807 rm -f conftest.$ac_objext
2808 if { (eval echo "$as_me:2808: \"$ac_compile\"") >&5
2809 (eval $ac_compile) 2>&5
2810 ac_status=$?
2811 echo "$as_me:2811: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:2814: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:2817: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 am_cv_prog_cc_stdc="$ac_arg"; break
2820 else
2821 echo "$as_me: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2823 fi
2824 rm -f conftest.$ac_objext conftest.$ac_ext
2825 done
2826 CC="$ac_save_CC"
2827
2828 fi
2829
2830 if test -z "$am_cv_prog_cc_stdc"; then
2831 echo "$as_me:2831: result: none needed" >&5
2832 echo "${ECHO_T}none needed" >&6
2833 else
2834 echo "$as_me:2834: result: $am_cv_prog_cc_stdc" >&5
2835 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2836 fi
2837 case "x$am_cv_prog_cc_stdc" in
2838 x|xno) ;;
2839 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2840 esac
2841
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2845 echo "$as_me:2845: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2847 if test "${ac_cv_prog_RANLIB+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850 if test -n "$RANLIB"; then
2851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2852 else
2853 ac_save_IFS=$IFS; IFS=$ac_path_separator
2854 ac_dummy="$PATH"
2855 for ac_dir in $ac_dummy; do
2856 IFS=$ac_save_IFS
2857 test -z "$ac_dir" && ac_dir=.
2858 $as_executable_p "$ac_dir/$ac_word" || continue
2859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2860 echo "$as_me:2860: found $ac_dir/$ac_word" >&5
2861 break
2862 done
2863
2864 fi
2865 fi
2866 RANLIB=$ac_cv_prog_RANLIB
2867 if test -n "$RANLIB"; then
2868 echo "$as_me:2868: result: $RANLIB" >&5
2869 echo "${ECHO_T}$RANLIB" >&6
2870 else
2871 echo "$as_me:2871: result: no" >&5
2872 echo "${ECHO_T}no" >&6
2873 fi
2874
2875 fi
2876 if test -z "$ac_cv_prog_RANLIB"; then
2877 ac_ct_RANLIB=$RANLIB
2878 # Extract the first word of "ranlib", so it can be a program name with args.
2879 set dummy ranlib; ac_word=$2
2880 echo "$as_me:2880: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 if test -n "$ac_ct_RANLIB"; then
2886 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2887 else
2888 ac_save_IFS=$IFS; IFS=$ac_path_separator
2889 ac_dummy="$PATH"
2890 for ac_dir in $ac_dummy; do
2891 IFS=$ac_save_IFS
2892 test -z "$ac_dir" && ac_dir=.
2893 $as_executable_p "$ac_dir/$ac_word" || continue
2894 ac_cv_prog_ac_ct_RANLIB="ranlib"
2895 echo "$as_me:2895: found $ac_dir/$ac_word" >&5
2896 break
2897 done
2898
2899 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2900 fi
2901 fi
2902 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2903 if test -n "$ac_ct_RANLIB"; then
2904 echo "$as_me:2904: result: $ac_ct_RANLIB" >&5
2905 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2906 else
2907 echo "$as_me:2907: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2909 fi
2910
2911 RANLIB=$ac_ct_RANLIB
2912 else
2913 RANLIB="$ac_cv_prog_RANLIB"
2914 fi
2915
2916 # GNU M4 is needed to build the testsuite.
2917 for ac_prog in gm4 gnum4 m4
2918 do
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 echo "$as_me:2921: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2923 if test "${ac_cv_path_M4+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 case $M4 in
2927 [\\/]* | ?:[\\/]*)
2928 ac_cv_path_M4="$M4" # Let the user override the test with a path.
2929 ;;
2930 *)
2931 ac_save_IFS=$IFS; IFS=$ac_path_separator
2932 ac_dummy="$PATH"
2933 for ac_dir in $ac_dummy; do
2934 IFS=$ac_save_IFS
2935 test -z "$ac_dir" && ac_dir=.
2936 if $as_executable_p "$ac_dir/$ac_word"; then
2937 ac_cv_path_M4="$ac_dir/$ac_word"
2938 echo "$as_me:2938: found $ac_dir/$ac_word" >&5
2939 break
2940 fi
2941 done
2942
2943 ;;
2944 esac
2945 fi
2946 M4=$ac_cv_path_M4
2947
2948 if test -n "$M4"; then
2949 echo "$as_me:2949: result: $M4" >&5
2950 echo "${ECHO_T}$M4" >&6
2951 else
2952 echo "$as_me:2952: result: no" >&5
2953 echo "${ECHO_T}no" >&6
2954 fi
2955
2956 test -n "$M4" && break
2957 done
2958 test -n "$M4" || M4="m4"
2959
2960 echo "$as_me:2960: checking whether m4 supports frozen files" >&5
2961 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
2962 if test "${ac_cv_prog_gnu_m4+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965 ac_cv_prog_gnu_m4=no
2966 if test x"$M4" != x; then
2967 case `$M4 --help < /dev/null 2>&1` in
2968 *reload-state*) ac_cv_prog_gnu_m4=yes ;;
2969 esac
2970 fi
2971 fi
2972 echo "$as_me:2972: result: $ac_cv_prog_gnu_m4" >&5
2973 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
2974
2975 if test "$ac_cv_prog_gnu_m4" != yes; then
2976 missing_dir=`cd $ac_aux_dir && pwd`
2977 M4="$missing_dir/missing m4"
2978 fi
2979
2980 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
2981 if test "${enable_gcc_warnings+set}" = set; then
2982 enableval="$enable_gcc_warnings"
2983 case "${enableval}" in
2984 yes|no) ;;
2985 *) { { echo "$as_me:2985: error: bad value ${enableval} for gcc-warnings option" >&5
2986 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
2987 { (exit 1); exit 1; }; } ;;
2988 esac
2989 else
2990 enableval=no
2991 fi;
2992 if test "${enableval}" = yes; then
2993 echo "$as_me:2993: checking whether compiler accepts -Wall" >&5
2994 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
2995
2996 ac_save_CFLAGS="$CFLAGS"
2997 CFLAGS="$CFLAGS -Wall"
2998 cat >conftest.$ac_ext <<_ACEOF
2999 #line 2999 "configure"
3000 #include "confdefs.h"
3001
3002 #ifdef F77_DUMMY_MAIN
3003 # ifdef __cplusplus
3004 extern "C"
3005 # endif
3006 int F77_DUMMY_MAIN() { return 1; }
3007 #endif
3008 int
3009 main ()
3010 {
3011 int x;
3012 ;
3013 return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (eval echo "$as_me:3017: \"$ac_compile\"") >&5
3018 (eval $ac_compile) 2>&5
3019 ac_status=$?
3020 echo "$as_me:3020: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try='test -s conftest.$ac_objext'
3023 { (eval echo "$as_me:3023: \"$ac_try\"") >&5
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
3026 echo "$as_me:3026: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 WARNING_CFLAGS="$WARNING_CFLAGS -Wall"
3029 echo "$as_me:3029: result: yes" >&5
3030 echo "${ECHO_T}yes" >&6
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3034 echo "$as_me:3034: result: no" >&5
3035 echo "${ECHO_T}no" >&6
3036 fi
3037 rm -f conftest.$ac_objext conftest.$ac_ext
3038 CFLAGS="$ac_save_CFLAGS"
3039 echo "$as_me:3039: checking whether compiler accepts -W" >&5
3040 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3041
3042 ac_save_CFLAGS="$CFLAGS"
3043 CFLAGS="$CFLAGS -W"
3044 cat >conftest.$ac_ext <<_ACEOF
3045 #line 3045 "configure"
3046 #include "confdefs.h"
3047
3048 #ifdef F77_DUMMY_MAIN
3049 # ifdef __cplusplus
3050 extern "C"
3051 # endif
3052 int F77_DUMMY_MAIN() { return 1; }
3053 #endif
3054 int
3055 main ()
3056 {
3057 int x;
3058 ;
3059 return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:3063: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>&5
3065 ac_status=$?
3066 echo "$as_me:3066: \$? = $ac_status" >&5
3067 (exit $ac_status); } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (eval echo "$as_me:3069: \"$ac_try\"") >&5
3070 (eval $ac_try) 2>&5
3071 ac_status=$?
3072 echo "$as_me:3072: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3074 WARNING_CFLAGS="$WARNING_CFLAGS -W"
3075 echo "$as_me:3075: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3080 echo "$as_me:3080: result: no" >&5
3081 echo "${ECHO_T}no" >&6
3082 fi
3083 rm -f conftest.$ac_objext conftest.$ac_ext
3084 CFLAGS="$ac_save_CFLAGS"
3085 echo "$as_me:3085: checking whether compiler accepts -Wbad-function-cast" >&5
3086 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3087
3088 ac_save_CFLAGS="$CFLAGS"
3089 CFLAGS="$CFLAGS -Wbad-function-cast"
3090 cat >conftest.$ac_ext <<_ACEOF
3091 #line 3091 "configure"
3092 #include "confdefs.h"
3093
3094 #ifdef F77_DUMMY_MAIN
3095 # ifdef __cplusplus
3096 extern "C"
3097 # endif
3098 int F77_DUMMY_MAIN() { return 1; }
3099 #endif
3100 int
3101 main ()
3102 {
3103 int x;
3104 ;
3105 return 0;
3106 }
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (eval echo "$as_me:3109: \"$ac_compile\"") >&5
3110 (eval $ac_compile) 2>&5
3111 ac_status=$?
3112 echo "$as_me:3112: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (eval echo "$as_me:3115: \"$ac_try\"") >&5
3116 (eval $ac_try) 2>&5
3117 ac_status=$?
3118 echo "$as_me:3118: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3120 WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast"
3121 echo "$as_me:3121: result: yes" >&5
3122 echo "${ECHO_T}yes" >&6
3123 else
3124 echo "$as_me: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3126 echo "$as_me:3126: result: no" >&5
3127 echo "${ECHO_T}no" >&6
3128 fi
3129 rm -f conftest.$ac_objext conftest.$ac_ext
3130 CFLAGS="$ac_save_CFLAGS"
3131 echo "$as_me:3131: checking whether compiler accepts -Wcast-align" >&5
3132 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3133
3134 ac_save_CFLAGS="$CFLAGS"
3135 CFLAGS="$CFLAGS -Wcast-align"
3136 cat >conftest.$ac_ext <<_ACEOF
3137 #line 3137 "configure"
3138 #include "confdefs.h"
3139
3140 #ifdef F77_DUMMY_MAIN
3141 # ifdef __cplusplus
3142 extern "C"
3143 # endif
3144 int F77_DUMMY_MAIN() { return 1; }
3145 #endif
3146 int
3147 main ()
3148 {
3149 int x;
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 rm -f conftest.$ac_objext
3155 if { (eval echo "$as_me:3155: \"$ac_compile\"") >&5
3156 (eval $ac_compile) 2>&5
3157 ac_status=$?
3158 echo "$as_me:3158: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (eval echo "$as_me:3161: \"$ac_try\"") >&5
3162 (eval $ac_try) 2>&5
3163 ac_status=$?
3164 echo "$as_me:3164: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align"
3167 echo "$as_me:3167: result: yes" >&5
3168 echo "${ECHO_T}yes" >&6
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3172 echo "$as_me:3172: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3174 fi
3175 rm -f conftest.$ac_objext conftest.$ac_ext
3176 CFLAGS="$ac_save_CFLAGS"
3177 echo "$as_me:3177: checking whether compiler accepts -Wcast-qual" >&5
3178 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3179
3180 ac_save_CFLAGS="$CFLAGS"
3181 CFLAGS="$CFLAGS -Wcast-qual"
3182 cat >conftest.$ac_ext <<_ACEOF
3183 #line 3183 "configure"
3184 #include "confdefs.h"
3185
3186 #ifdef F77_DUMMY_MAIN
3187 # ifdef __cplusplus
3188 extern "C"
3189 # endif
3190 int F77_DUMMY_MAIN() { return 1; }
3191 #endif
3192 int
3193 main ()
3194 {
3195 int x;
3196 ;
3197 return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.$ac_objext
3201 if { (eval echo "$as_me:3201: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>&5
3203 ac_status=$?
3204 echo "$as_me:3204: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 { ac_try='test -s conftest.$ac_objext'
3207 { (eval echo "$as_me:3207: \"$ac_try\"") >&5
3208 (eval $ac_try) 2>&5
3209 ac_status=$?
3210 echo "$as_me:3210: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3212 WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual"
3213 echo "$as_me:3213: result: yes" >&5
3214 echo "${ECHO_T}yes" >&6
3215 else
3216 echo "$as_me: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3218 echo "$as_me:3218: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3220 fi
3221 rm -f conftest.$ac_objext conftest.$ac_ext
3222 CFLAGS="$ac_save_CFLAGS"
3223 echo "$as_me:3223: checking whether compiler accepts -Wformat" >&5
3224 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3225
3226 ac_save_CFLAGS="$CFLAGS"
3227 CFLAGS="$CFLAGS -Wformat"
3228 cat >conftest.$ac_ext <<_ACEOF
3229 #line 3229 "configure"
3230 #include "confdefs.h"
3231
3232 #ifdef F77_DUMMY_MAIN
3233 # ifdef __cplusplus
3234 extern "C"
3235 # endif
3236 int F77_DUMMY_MAIN() { return 1; }
3237 #endif
3238 int
3239 main ()
3240 {
3241 int x;
3242 ;
3243 return 0;
3244 }
3245 _ACEOF
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:3247: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>&5
3249 ac_status=$?
3250 echo "$as_me:3250: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (eval echo "$as_me:3253: \"$ac_try\"") >&5
3254 (eval $ac_try) 2>&5
3255 ac_status=$?
3256 echo "$as_me:3256: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 WARNING_CFLAGS="$WARNING_CFLAGS -Wformat"
3259 echo "$as_me:3259: result: yes" >&5
3260 echo "${ECHO_T}yes" >&6
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3264 echo "$as_me:3264: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3266 fi
3267 rm -f conftest.$ac_objext conftest.$ac_ext
3268 CFLAGS="$ac_save_CFLAGS"
3269 echo "$as_me:3269: checking whether compiler accepts -Wmissing-declarations" >&5
3270 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3271
3272 ac_save_CFLAGS="$CFLAGS"
3273 CFLAGS="$CFLAGS -Wmissing-declarations"
3274 cat >conftest.$ac_ext <<_ACEOF
3275 #line 3275 "configure"
3276 #include "confdefs.h"
3277
3278 #ifdef F77_DUMMY_MAIN
3279 # ifdef __cplusplus
3280 extern "C"
3281 # endif
3282 int F77_DUMMY_MAIN() { return 1; }
3283 #endif
3284 int
3285 main ()
3286 {
3287 int x;
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (eval echo "$as_me:3293: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>&5
3295 ac_status=$?
3296 echo "$as_me:3296: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:3299: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:3302: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations"
3305 echo "$as_me:3305: result: yes" >&5
3306 echo "${ECHO_T}yes" >&6
3307 else
3308 echo "$as_me: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3310 echo "$as_me:3310: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 fi
3313 rm -f conftest.$ac_objext conftest.$ac_ext
3314 CFLAGS="$ac_save_CFLAGS"
3315 echo "$as_me:3315: checking whether compiler accepts -Wmissing-prototypes" >&5
3316 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3317
3318 ac_save_CFLAGS="$CFLAGS"
3319 CFLAGS="$CFLAGS -Wmissing-prototypes"
3320 cat >conftest.$ac_ext <<_ACEOF
3321 #line 3321 "configure"
3322 #include "confdefs.h"
3323
3324 #ifdef F77_DUMMY_MAIN
3325 # ifdef __cplusplus
3326 extern "C"
3327 # endif
3328 int F77_DUMMY_MAIN() { return 1; }
3329 #endif
3330 int
3331 main ()
3332 {
3333 int x;
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:3339: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>&5
3341 ac_status=$?
3342 echo "$as_me:3342: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:3345: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:3348: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes"
3351 echo "$as_me:3351: result: yes" >&5
3352 echo "${ECHO_T}yes" >&6
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 echo "$as_me:3356: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3358 fi
3359 rm -f conftest.$ac_objext conftest.$ac_ext
3360 CFLAGS="$ac_save_CFLAGS"
3361 echo "$as_me:3361: checking whether compiler accepts -Wnested-externs" >&5
3362 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3363
3364 ac_save_CFLAGS="$CFLAGS"
3365 CFLAGS="$CFLAGS -Wnested-externs"
3366 cat >conftest.$ac_ext <<_ACEOF
3367 #line 3367 "configure"
3368 #include "confdefs.h"
3369
3370 #ifdef F77_DUMMY_MAIN
3371 # ifdef __cplusplus
3372 extern "C"
3373 # endif
3374 int F77_DUMMY_MAIN() { return 1; }
3375 #endif
3376 int
3377 main ()
3378 {
3379 int x;
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:3385: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>&5
3387 ac_status=$?
3388 echo "$as_me:3388: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (eval echo "$as_me:3391: \"$ac_try\"") >&5
3392 (eval $ac_try) 2>&5
3393 ac_status=$?
3394 echo "$as_me:3394: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs"
3397 echo "$as_me:3397: result: yes" >&5
3398 echo "${ECHO_T}yes" >&6
3399 else
3400 echo "$as_me: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3402 echo "$as_me:3402: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3404 fi
3405 rm -f conftest.$ac_objext conftest.$ac_ext
3406 CFLAGS="$ac_save_CFLAGS"
3407 echo "$as_me:3407: checking whether compiler accepts -Wshadow" >&5
3408 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3409
3410 ac_save_CFLAGS="$CFLAGS"
3411 CFLAGS="$CFLAGS -Wshadow"
3412 cat >conftest.$ac_ext <<_ACEOF
3413 #line 3413 "configure"
3414 #include "confdefs.h"
3415
3416 #ifdef F77_DUMMY_MAIN
3417 # ifdef __cplusplus
3418 extern "C"
3419 # endif
3420 int F77_DUMMY_MAIN() { return 1; }
3421 #endif
3422 int
3423 main ()
3424 {
3425 int x;
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (eval echo "$as_me:3431: \"$ac_compile\"") >&5
3432 (eval $ac_compile) 2>&5
3433 ac_status=$?
3434 echo "$as_me:3434: \$? = $ac_status" >&5
3435 (exit $ac_status); } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:3437: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:3440: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow"
3443 echo "$as_me:3443: result: yes" >&5
3444 echo "${ECHO_T}yes" >&6
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 echo "$as_me:3448: result: no" >&5
3449 echo "${ECHO_T}no" >&6
3450 fi
3451 rm -f conftest.$ac_objext conftest.$ac_ext
3452 CFLAGS="$ac_save_CFLAGS"
3453 echo "$as_me:3453: checking whether compiler accepts -Wstrict-prototypes" >&5
3454 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3455
3456 ac_save_CFLAGS="$CFLAGS"
3457 CFLAGS="$CFLAGS -Wstrict-prototypes"
3458 cat >conftest.$ac_ext <<_ACEOF
3459 #line 3459 "configure"
3460 #include "confdefs.h"
3461
3462 #ifdef F77_DUMMY_MAIN
3463 # ifdef __cplusplus
3464 extern "C"
3465 # endif
3466 int F77_DUMMY_MAIN() { return 1; }
3467 #endif
3468 int
3469 main ()
3470 {
3471 int x;
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:3477: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>&5
3479 ac_status=$?
3480 echo "$as_me:3480: \$? = $ac_status" >&5
3481 (exit $ac_status); } &&
3482 { ac_try='test -s conftest.$ac_objext'
3483 { (eval echo "$as_me:3483: \"$ac_try\"") >&5
3484 (eval $ac_try) 2>&5
3485 ac_status=$?
3486 echo "$as_me:3486: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes"
3489 echo "$as_me:3489: result: yes" >&5
3490 echo "${ECHO_T}yes" >&6
3491 else
3492 echo "$as_me: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3494 echo "$as_me:3494: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497 rm -f conftest.$ac_objext conftest.$ac_ext
3498 CFLAGS="$ac_save_CFLAGS"
3499 echo "$as_me:3499: checking whether compiler accepts -Wwrite-strings" >&5
3500 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3501
3502 ac_save_CFLAGS="$CFLAGS"
3503 CFLAGS="$CFLAGS -Wwrite-strings"
3504 cat >conftest.$ac_ext <<_ACEOF
3505 #line 3505 "configure"
3506 #include "confdefs.h"
3507
3508 #ifdef F77_DUMMY_MAIN
3509 # ifdef __cplusplus
3510 extern "C"
3511 # endif
3512 int F77_DUMMY_MAIN() { return 1; }
3513 #endif
3514 int
3515 main ()
3516 {
3517 int x;
3518 ;
3519 return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (eval echo "$as_me:3523: \"$ac_compile\"") >&5
3524 (eval $ac_compile) 2>&5
3525 ac_status=$?
3526 echo "$as_me:3526: \$? = $ac_status" >&5
3527 (exit $ac_status); } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:3529: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:3532: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings"
3535 echo "$as_me:3535: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3537 else
3538 echo "$as_me: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3540 echo "$as_me:3540: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3542 fi
3543 rm -f conftest.$ac_objext conftest.$ac_ext
3544 CFLAGS="$ac_save_CFLAGS"
3545 CFLAGS="$CFLAGS $WARNING_CFLAGS"
3546 fi
3547
3548 # Checks for libraries.
3549
3550 cat >>confdefs.h <<\_ACEOF
3551 #define _GNU_SOURCE 1
3552 _ACEOF
3553
3554 # Checks for header files.
3555 echo "$as_me:3555: checking for ANSI C header files" >&5
3556 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3557 if test "${ac_cv_header_stdc+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 cat >conftest.$ac_ext <<_ACEOF
3561 #line 3561 "configure"
3562 #include "confdefs.h"
3563 #include <stdlib.h>
3564 #include <stdarg.h>
3565 #include <string.h>
3566 #include <float.h>
3567
3568 _ACEOF
3569 if { (eval echo "$as_me:3569: \"$ac_cpp conftest.$ac_ext\"") >&5
3570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3571 ac_status=$?
3572 egrep -v '^ *\+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:3575: \$? = $ac_status" >&5
3576 (exit $ac_status); } >/dev/null; then
3577 if test -s conftest.err; then
3578 ac_cpp_err=$ac_c_preproc_warn_flag
3579 else
3580 ac_cpp_err=
3581 fi
3582 else
3583 ac_cpp_err=yes
3584 fi
3585 if test -z "$ac_cpp_err"; then
3586 ac_cv_header_stdc=yes
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3590 ac_cv_header_stdc=no
3591 fi
3592 rm -f conftest.err conftest.$ac_ext
3593
3594 if test $ac_cv_header_stdc = yes; then
3595 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line 3597 "configure"
3598 #include "confdefs.h"
3599 #include <string.h>
3600
3601 _ACEOF
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 egrep "memchr" >/dev/null 2>&1; then
3604 :
3605 else
3606 ac_cv_header_stdc=no
3607 fi
3608 rm -f conftest*
3609
3610 fi
3611
3612 if test $ac_cv_header_stdc = yes; then
3613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3614 cat >conftest.$ac_ext <<_ACEOF
3615 #line 3615 "configure"
3616 #include "confdefs.h"
3617 #include <stdlib.h>
3618
3619 _ACEOF
3620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3621 egrep "free" >/dev/null 2>&1; then
3622 :
3623 else
3624 ac_cv_header_stdc=no
3625 fi
3626 rm -f conftest*
3627
3628 fi
3629
3630 if test $ac_cv_header_stdc = yes; then
3631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3632 if test "$cross_compiling" = yes; then
3633 :
3634 else
3635 cat >conftest.$ac_ext <<_ACEOF
3636 #line 3636 "configure"
3637 #include "confdefs.h"
3638 #include <ctype.h>
3639 #if ((' ' & 0x0FF) == 0x020)
3640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3642 #else
3643 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3644 || ('j' <= (c) && (c) <= 'r') \
3645 || ('s' <= (c) && (c) <= 'z'))
3646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3647 #endif
3648
3649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3650 int
3651 main ()
3652 {
3653 int i;
3654 for (i = 0; i < 256; i++)
3655 if (XOR (islower (i), ISLOWER (i))
3656 || toupper (i) != TOUPPER (i))
3657 exit(2);
3658 exit (0);
3659 }
3660 _ACEOF
3661 rm -f conftest$ac_exeext
3662 if { (eval echo "$as_me:3662: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>&5
3664 ac_status=$?
3665 echo "$as_me:3665: \$? = $ac_status" >&5
3666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3667 { (eval echo "$as_me:3667: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:3670: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 :
3673 else
3674 echo "$as_me: program exited with status $ac_status" >&5
3675 echo "$as_me: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 ac_cv_header_stdc=no
3678 fi
3679 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3680 fi
3681 fi
3682 fi
3683 echo "$as_me:3683: result: $ac_cv_header_stdc" >&5
3684 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3685 if test $ac_cv_header_stdc = yes; then
3686
3687 cat >>confdefs.h <<\_ACEOF
3688 #define STDC_HEADERS 1
3689 _ACEOF
3690
3691 fi
3692
3693 for ac_header in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3694 do
3695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697 echo "$as_me:3697: checking for $ac_header" >&5
3698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 fi
3702 echo "$as_me:3702: result: `eval echo '${'$as_ac_Header'}'`" >&5
3703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3704 else
3705 # Is the header compilable?
3706 echo "$as_me:3706: checking $ac_header usability" >&5
3707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3708 cat >conftest.$ac_ext <<_ACEOF
3709 #line 3709 "configure"
3710 #include "confdefs.h"
3711 $ac_includes_default
3712 #include <$ac_header>
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:3715: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>&5
3717 ac_status=$?
3718 echo "$as_me:3718: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try='test -s conftest.$ac_objext'
3721 { (eval echo "$as_me:3721: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:3724: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 ac_header_compiler=yes
3727 else
3728 echo "$as_me: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3730 ac_header_compiler=no
3731 fi
3732 rm -f conftest.$ac_objext conftest.$ac_ext
3733 echo "$as_me:3733: result: $ac_header_compiler" >&5
3734 echo "${ECHO_T}$ac_header_compiler" >&6
3735
3736 # Is the header present?
3737 echo "$as_me:3737: checking $ac_header presence" >&5
3738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3739 cat >conftest.$ac_ext <<_ACEOF
3740 #line 3740 "configure"
3741 #include "confdefs.h"
3742 #include <$ac_header>
3743 _ACEOF
3744 if { (eval echo "$as_me:3744: \"$ac_cpp conftest.$ac_ext\"") >&5
3745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3746 ac_status=$?
3747 egrep -v '^ *\+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:3750: \$? = $ac_status" >&5
3751 (exit $ac_status); } >/dev/null; then
3752 if test -s conftest.err; then
3753 ac_cpp_err=$ac_c_preproc_warn_flag
3754 else
3755 ac_cpp_err=
3756 fi
3757 else
3758 ac_cpp_err=yes
3759 fi
3760 if test -z "$ac_cpp_err"; then
3761 ac_header_preproc=yes
3762 else
3763 echo "$as_me: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3765 ac_header_preproc=no
3766 fi
3767 rm -f conftest.err conftest.$ac_ext
3768 echo "$as_me:3768: result: $ac_header_preproc" >&5
3769 echo "${ECHO_T}$ac_header_preproc" >&6
3770
3771 # So? What about this header?
3772 case $ac_header_compiler:$ac_header_preproc in
3773 yes:no )
3774 { echo "$as_me:3774: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3776 { echo "$as_me:3776: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3778 no:yes )
3779 { echo "$as_me:3779: WARNING: $ac_header: present but cannot be compiled." >&5
3780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3781 { echo "$as_me:3781: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3783 { echo "$as_me:3783: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3785 esac
3786 echo "$as_me:3786: checking for $ac_header" >&5
3787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791 eval "$as_ac_Header=$ac_header_preproc"
3792 fi
3793 echo "$as_me:3793: result: `eval echo '${'$as_ac_Header'}'`" >&5
3794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3795
3796 fi
3797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3798 cat >>confdefs.h <<_ACEOF
3799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3800 _ACEOF
3801
3802 fi
3803
3804 done
3805
3806 # Checks for typedefs.
3807
3808 # Checks for structures.
3809
3810 # Checks for compiler characteristics.
3811 echo "$as_me:3811: checking for $CC option to accept ANSI C" >&5
3812 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3813 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 ac_cv_prog_cc_stdc=no
3817 ac_save_CC=$CC
3818 cat >conftest.$ac_ext <<_ACEOF
3819 #line 3819 "configure"
3820 #include "confdefs.h"
3821 #include <stdarg.h>
3822 #include <stdio.h>
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3826 struct buf { int x; };
3827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3828 static char *e (p, i)
3829 char **p;
3830 int i;
3831 {
3832 return p[i];
3833 }
3834 static char *f (char * (*g) (char **, int), char **p, ...)
3835 {
3836 char *s;
3837 va_list v;
3838 va_start (v,p);
3839 s = g (p, va_arg (v,int));
3840 va_end (v);
3841 return s;
3842 }
3843 int test (int i, double x);
3844 struct s1 {int (*f) (int a);};
3845 struct s2 {int (*f) (double a);};
3846 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3847 int argc;
3848 char **argv;
3849 #ifdef F77_DUMMY_MAIN
3850 # ifdef __cplusplus
3851 extern "C"
3852 # endif
3853 int F77_DUMMY_MAIN() { return 1; }
3854 #endif
3855 int
3856 main ()
3857 {
3858 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3859 ;
3860 return 0;
3861 }
3862 _ACEOF
3863 # Don't try gcc -ansi; that turns off useful extensions and
3864 # breaks some systems' header files.
3865 # AIX -qlanglvl=ansi
3866 # Ultrix and OSF/1 -std1
3867 # HP-UX 10.20 and later -Ae
3868 # HP-UX older versions -Aa -D_HPUX_SOURCE
3869 # SVR4 -Xc -D__EXTENSIONS__
3870 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3871 do
3872 CC="$ac_save_CC $ac_arg"
3873 rm -f conftest.$ac_objext
3874 if { (eval echo "$as_me:3874: \"$ac_compile\"") >&5
3875 (eval $ac_compile) 2>&5
3876 ac_status=$?
3877 echo "$as_me:3877: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -s conftest.$ac_objext'
3880 { (eval echo "$as_me:3880: \"$ac_try\"") >&5
3881 (eval $ac_try) 2>&5
3882 ac_status=$?
3883 echo "$as_me:3883: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 ac_cv_prog_cc_stdc=$ac_arg
3886 break
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3890 fi
3891 rm -f conftest.$ac_objext
3892 done
3893 rm -f conftest.$ac_ext conftest.$ac_objext
3894 CC=$ac_save_CC
3895
3896 fi
3897
3898 case "x$ac_cv_prog_cc_stdc" in
3899 x|xno)
3900 echo "$as_me:3900: result: none needed" >&5
3901 echo "${ECHO_T}none needed" >&6 ;;
3902 *)
3903 echo "$as_me:3903: result: $ac_cv_prog_cc_stdc" >&5
3904 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3905 CC="$CC $ac_cv_prog_cc_stdc" ;;
3906 esac
3907
3908 echo "$as_me:3908: checking for an ANSI C-conforming const" >&5
3909 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3910 if test "${ac_cv_c_const+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 cat >conftest.$ac_ext <<_ACEOF
3914 #line 3914 "configure"
3915 #include "confdefs.h"
3916
3917 #ifdef F77_DUMMY_MAIN
3918 # ifdef __cplusplus
3919 extern "C"
3920 # endif
3921 int F77_DUMMY_MAIN() { return 1; }
3922 #endif
3923 int
3924 main ()
3925 {
3926 /* FIXME: Include the comments suggested by Paul. */
3927 #ifndef __cplusplus
3928 /* Ultrix mips cc rejects this. */
3929 typedef int charset[2];
3930 const charset x;
3931 /* SunOS 4.1.1 cc rejects this. */
3932 char const *const *ccp;
3933 char **p;
3934 /* NEC SVR4.0.2 mips cc rejects this. */
3935 struct point {int x, y;};
3936 static struct point const zero = {0,0};
3937 /* AIX XL C 1.02.0.0 rejects this.
3938 It does not let you subtract one const X* pointer from another in
3939 an arm of an if-expression whose if-part is not a constant
3940 expression */
3941 const char *g = "string";
3942 ccp = &g + (g ? g-g : 0);
3943 /* HPUX 7.0 cc rejects these. */
3944 ++ccp;
3945 p = (char**) ccp;
3946 ccp = (char const *const *) p;
3947 { /* SCO 3.2v4 cc rejects this. */
3948 char *t;
3949 char const *s = 0 ? (char *) 0 : (char const *) 0;
3950
3951 *t++ = 0;
3952 }
3953 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3954 int x[] = {25, 17};
3955 const int *foo = &x[0];
3956 ++foo;
3957 }
3958 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3959 typedef const int *iptr;
3960 iptr p = 0;
3961 ++p;
3962 }
3963 { /* AIX XL C 1.02.0.0 rejects this saying
3964 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3965 struct s { int j; const int *ap[3]; };
3966 struct s *b; b->j = 5;
3967 }
3968 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3969 const int foo = 10;
3970 }
3971 #endif
3972
3973 ;
3974 return 0;
3975 }
3976 _ACEOF
3977 rm -f conftest.$ac_objext
3978 if { (eval echo "$as_me:3978: \"$ac_compile\"") >&5
3979 (eval $ac_compile) 2>&5
3980 ac_status=$?
3981 echo "$as_me:3981: \$? = $ac_status" >&5
3982 (exit $ac_status); } &&
3983 { ac_try='test -s conftest.$ac_objext'
3984 { (eval echo "$as_me:3984: \"$ac_try\"") >&5
3985 (eval $ac_try) 2>&5
3986 ac_status=$?
3987 echo "$as_me:3987: \$? = $ac_status" >&5
3988 (exit $ac_status); }; }; then
3989 ac_cv_c_const=yes
3990 else
3991 echo "$as_me: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3993 ac_cv_c_const=no
3994 fi
3995 rm -f conftest.$ac_objext conftest.$ac_ext
3996 fi
3997 echo "$as_me:3997: result: $ac_cv_c_const" >&5
3998 echo "${ECHO_T}$ac_cv_c_const" >&6
3999 if test $ac_cv_c_const = no; then
4000
4001 cat >>confdefs.h <<\_ACEOF
4002 #define const
4003 _ACEOF
4004
4005 fi
4006
4007 echo "$as_me:4007: checking for inline" >&5
4008 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4009 if test "${ac_cv_c_inline+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012 ac_cv_c_inline=no
4013 for ac_kw in inline __inline__ __inline; do
4014 cat >conftest.$ac_ext <<_ACEOF
4015 #line 4015 "configure"
4016 #include "confdefs.h"
4017 #ifndef __cplusplus
4018 static $ac_kw int static_foo () {return 0; }
4019 $ac_kw int foo () {return 0; }
4020 #endif
4021
4022 _ACEOF
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:4024: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>&5
4026 ac_status=$?
4027 echo "$as_me:4027: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (eval echo "$as_me:4030: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:4033: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_cv_c_inline=$ac_kw; break
4036 else
4037 echo "$as_me: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4039 fi
4040 rm -f conftest.$ac_objext conftest.$ac_ext
4041 done
4042
4043 fi
4044 echo "$as_me:4044: result: $ac_cv_c_inline" >&5
4045 echo "${ECHO_T}$ac_cv_c_inline" >&6
4046 case $ac_cv_c_inline in
4047 inline | yes) ;;
4048 no)
4049 cat >>confdefs.h <<\_ACEOF
4050 #define inline
4051 _ACEOF
4052 ;;
4053 *) cat >>confdefs.h <<_ACEOF
4054 #define inline $ac_cv_c_inline
4055 _ACEOF
4056 ;;
4057 esac
4058
4059 echo "$as_me:4059: checking for function prototypes" >&5
4060 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4061 if test "$am_cv_prog_cc_stdc" != no; then
4062 echo "$as_me:4062: result: yes" >&5
4063 echo "${ECHO_T}yes" >&6
4064
4065 cat >>confdefs.h <<\_ACEOF
4066 #define PROTOTYPES 1
4067 _ACEOF
4068
4069 U= ANSI2KNR=
4070 else
4071 echo "$as_me:4071: result: no" >&5
4072 echo "${ECHO_T}no" >&6
4073 U=_ ANSI2KNR=./ansi2knr
4074 fi
4075 # Ensure some checks needed by ansi2knr itself.
4076 echo "$as_me:4076: checking for ANSI C header files" >&5
4077 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4078 if test "${ac_cv_header_stdc+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081 cat >conftest.$ac_ext <<_ACEOF
4082 #line 4082 "configure"
4083 #include "confdefs.h"
4084 #include <stdlib.h>
4085 #include <stdarg.h>
4086 #include <string.h>
4087 #include <float.h>
4088
4089 _ACEOF
4090 if { (eval echo "$as_me:4090: \"$ac_cpp conftest.$ac_ext\"") >&5
4091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4092 ac_status=$?
4093 egrep -v '^ *\+' conftest.er1 >conftest.err
4094 rm -f conftest.er1
4095 cat conftest.err >&5
4096 echo "$as_me:4096: \$? = $ac_status" >&5
4097 (exit $ac_status); } >/dev/null; then
4098 if test -s conftest.err; then
4099 ac_cpp_err=$ac_c_preproc_warn_flag
4100 else
4101 ac_cpp_err=
4102 fi
4103 else
4104 ac_cpp_err=yes
4105 fi
4106 if test -z "$ac_cpp_err"; then
4107 ac_cv_header_stdc=yes
4108 else
4109 echo "$as_me: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4111 ac_cv_header_stdc=no
4112 fi
4113 rm -f conftest.err conftest.$ac_ext
4114
4115 if test $ac_cv_header_stdc = yes; then
4116 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4117 cat >conftest.$ac_ext <<_ACEOF
4118 #line 4118 "configure"
4119 #include "confdefs.h"
4120 #include <string.h>
4121
4122 _ACEOF
4123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124 egrep "memchr" >/dev/null 2>&1; then
4125 :
4126 else
4127 ac_cv_header_stdc=no
4128 fi
4129 rm -f conftest*
4130
4131 fi
4132
4133 if test $ac_cv_header_stdc = yes; then
4134 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4135 cat >conftest.$ac_ext <<_ACEOF
4136 #line 4136 "configure"
4137 #include "confdefs.h"
4138 #include <stdlib.h>
4139
4140 _ACEOF
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142 egrep "free" >/dev/null 2>&1; then
4143 :
4144 else
4145 ac_cv_header_stdc=no
4146 fi
4147 rm -f conftest*
4148
4149 fi
4150
4151 if test $ac_cv_header_stdc = yes; then
4152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4153 if test "$cross_compiling" = yes; then
4154 :
4155 else
4156 cat >conftest.$ac_ext <<_ACEOF
4157 #line 4157 "configure"
4158 #include "confdefs.h"
4159 #include <ctype.h>
4160 #if ((' ' & 0x0FF) == 0x020)
4161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4163 #else
4164 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4165 || ('j' <= (c) && (c) <= 'r') \
4166 || ('s' <= (c) && (c) <= 'z'))
4167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168 #endif
4169
4170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4171 int
4172 main ()
4173 {
4174 int i;
4175 for (i = 0; i < 256; i++)
4176 if (XOR (islower (i), ISLOWER (i))
4177 || toupper (i) != TOUPPER (i))
4178 exit(2);
4179 exit (0);
4180 }
4181 _ACEOF
4182 rm -f conftest$ac_exeext
4183 if { (eval echo "$as_me:4183: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4185 ac_status=$?
4186 echo "$as_me:4186: \$? = $ac_status" >&5
4187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4188 { (eval echo "$as_me:4188: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:4191: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 :
4194 else
4195 echo "$as_me: program exited with status $ac_status" >&5
4196 echo "$as_me: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4198 ac_cv_header_stdc=no
4199 fi
4200 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4201 fi
4202 fi
4203 fi
4204 echo "$as_me:4204: result: $ac_cv_header_stdc" >&5
4205 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4206 if test $ac_cv_header_stdc = yes; then
4207
4208 cat >>confdefs.h <<\_ACEOF
4209 #define STDC_HEADERS 1
4210 _ACEOF
4211
4212 fi
4213
4214 for ac_header in string.h
4215 do
4216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4218 echo "$as_me:4218: checking for $ac_header" >&5
4219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 fi
4223 echo "$as_me:4223: result: `eval echo '${'$as_ac_Header'}'`" >&5
4224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4225 else
4226 # Is the header compilable?
4227 echo "$as_me:4227: checking $ac_header usability" >&5
4228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4229 cat >conftest.$ac_ext <<_ACEOF
4230 #line 4230 "configure"
4231 #include "confdefs.h"
4232 $ac_includes_default
4233 #include <$ac_header>
4234 _ACEOF
4235 rm -f conftest.$ac_objext
4236 if { (eval echo "$as_me:4236: \"$ac_compile\"") >&5
4237 (eval $ac_compile) 2>&5
4238 ac_status=$?
4239 echo "$as_me:4239: \$? = $ac_status" >&5
4240 (exit $ac_status); } &&
4241 { ac_try='test -s conftest.$ac_objext'
4242 { (eval echo "$as_me:4242: \"$ac_try\"") >&5
4243 (eval $ac_try) 2>&5
4244 ac_status=$?
4245 echo "$as_me:4245: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 ac_header_compiler=yes
4248 else
4249 echo "$as_me: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4251 ac_header_compiler=no
4252 fi
4253 rm -f conftest.$ac_objext conftest.$ac_ext
4254 echo "$as_me:4254: result: $ac_header_compiler" >&5
4255 echo "${ECHO_T}$ac_header_compiler" >&6
4256
4257 # Is the header present?
4258 echo "$as_me:4258: checking $ac_header presence" >&5
4259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4260 cat >conftest.$ac_ext <<_ACEOF
4261 #line 4261 "configure"
4262 #include "confdefs.h"
4263 #include <$ac_header>
4264 _ACEOF
4265 if { (eval echo "$as_me:4265: \"$ac_cpp conftest.$ac_ext\"") >&5
4266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4267 ac_status=$?
4268 egrep -v '^ *\+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:4271: \$? = $ac_status" >&5
4272 (exit $ac_status); } >/dev/null; then
4273 if test -s conftest.err; then
4274 ac_cpp_err=$ac_c_preproc_warn_flag
4275 else
4276 ac_cpp_err=
4277 fi
4278 else
4279 ac_cpp_err=yes
4280 fi
4281 if test -z "$ac_cpp_err"; then
4282 ac_header_preproc=yes
4283 else
4284 echo "$as_me: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4286 ac_header_preproc=no
4287 fi
4288 rm -f conftest.err conftest.$ac_ext
4289 echo "$as_me:4289: result: $ac_header_preproc" >&5
4290 echo "${ECHO_T}$ac_header_preproc" >&6
4291
4292 # So? What about this header?
4293 case $ac_header_compiler:$ac_header_preproc in
4294 yes:no )
4295 { echo "$as_me:4295: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4297 { echo "$as_me:4297: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4299 no:yes )
4300 { echo "$as_me:4300: WARNING: $ac_header: present but cannot be compiled." >&5
4301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4302 { echo "$as_me:4302: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4304 { echo "$as_me:4304: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4306 esac
4307 echo "$as_me:4307: checking for $ac_header" >&5
4308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 eval "$as_ac_Header=$ac_header_preproc"
4313 fi
4314 echo "$as_me:4314: result: `eval echo '${'$as_ac_Header'}'`" >&5
4315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4316
4317 fi
4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4321 _ACEOF
4322
4323 fi
4324
4325 done
4326
4327 # Checks for library functions.
4328 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4329 # for constant arguments. Useless!
4330 echo "$as_me:4330: checking for working alloca.h" >&5
4331 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4332 if test "${ac_cv_working_alloca_h+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335 cat >conftest.$ac_ext <<_ACEOF
4336 #line 4336 "configure"
4337 #include "confdefs.h"
4338 #include <alloca.h>
4339 #ifdef F77_DUMMY_MAIN
4340 # ifdef __cplusplus
4341 extern "C"
4342 # endif
4343 int F77_DUMMY_MAIN() { return 1; }
4344 #endif
4345 int
4346 main ()
4347 {
4348 char *p = (char *) alloca (2 * sizeof (int));
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 rm -f conftest.$ac_objext conftest$ac_exeext
4354 if { (eval echo "$as_me:4354: \"$ac_link\"") >&5
4355 (eval $ac_link) 2>&5
4356 ac_status=$?
4357 echo "$as_me:4357: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -s conftest$ac_exeext'
4360 { (eval echo "$as_me:4360: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:4363: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_working_alloca_h=yes
4366 else
4367 echo "$as_me: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4369 ac_cv_working_alloca_h=no
4370 fi
4371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4372 fi
4373 echo "$as_me:4373: result: $ac_cv_working_alloca_h" >&5
4374 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4375 if test $ac_cv_working_alloca_h = yes; then
4376
4377 cat >>confdefs.h <<\_ACEOF
4378 #define HAVE_ALLOCA_H 1
4379 _ACEOF
4380
4381 fi
4382
4383 echo "$as_me:4383: checking for alloca" >&5
4384 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4385 if test "${ac_cv_func_alloca_works+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 cat >conftest.$ac_ext <<_ACEOF
4389 #line 4389 "configure"
4390 #include "confdefs.h"
4391 #ifdef __GNUC__
4392 # define alloca __builtin_alloca
4393 #else
4394 # ifdef _MSC_VER
4395 # include <malloc.h>
4396 # define alloca _alloca
4397 # else
4398 # if HAVE_ALLOCA_H
4399 # include <alloca.h>
4400 # else
4401 # ifdef _AIX
4402 #pragma alloca
4403 # else
4404 # ifndef alloca /* predefined by HP cc +Olibcalls */
4405 char *alloca ();
4406 # endif
4407 # endif
4408 # endif
4409 # endif
4410 #endif
4411
4412 #ifdef F77_DUMMY_MAIN
4413 # ifdef __cplusplus
4414 extern "C"
4415 # endif
4416 int F77_DUMMY_MAIN() { return 1; }
4417 #endif
4418 int
4419 main ()
4420 {
4421 char *p = (char *) alloca (1);
4422 ;
4423 return 0;
4424 }
4425 _ACEOF
4426 rm -f conftest.$ac_objext conftest$ac_exeext
4427 if { (eval echo "$as_me:4427: \"$ac_link\"") >&5
4428 (eval $ac_link) 2>&5
4429 ac_status=$?
4430 echo "$as_me:4430: \$? = $ac_status" >&5
4431 (exit $ac_status); } &&
4432 { ac_try='test -s conftest$ac_exeext'
4433 { (eval echo "$as_me:4433: \"$ac_try\"") >&5
4434 (eval $ac_try) 2>&5
4435 ac_status=$?
4436 echo "$as_me:4436: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_cv_func_alloca_works=yes
4439 else
4440 echo "$as_me: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4442 ac_cv_func_alloca_works=no
4443 fi
4444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4445 fi
4446 echo "$as_me:4446: result: $ac_cv_func_alloca_works" >&5
4447 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4448
4449 if test $ac_cv_func_alloca_works = yes; then
4450
4451 cat >>confdefs.h <<\_ACEOF
4452 #define HAVE_ALLOCA 1
4453 _ACEOF
4454
4455 else
4456 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4457 # that cause trouble. Some versions do not even contain alloca or
4458 # contain a buggy version. If you still want to use their alloca,
4459 # use ar to extract alloca.o from them instead of compiling alloca.c.
4460
4461 ALLOCA=alloca.$ac_objext
4462
4463 cat >>confdefs.h <<\_ACEOF
4464 #define C_ALLOCA 1
4465 _ACEOF
4466
4467 echo "$as_me:4467: checking whether \`alloca.c' needs Cray hooks" >&5
4468 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4469 if test "${ac_cv_os_cray+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 cat >conftest.$ac_ext <<_ACEOF
4473 #line 4473 "configure"
4474 #include "confdefs.h"
4475 #if defined(CRAY) && ! defined(CRAY2)
4476 webecray
4477 #else
4478 wenotbecray
4479 #endif
4480
4481 _ACEOF
4482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4483 egrep "webecray" >/dev/null 2>&1; then
4484 ac_cv_os_cray=yes
4485 else
4486 ac_cv_os_cray=no
4487 fi
4488 rm -f conftest*
4489
4490 fi
4491 echo "$as_me:4491: result: $ac_cv_os_cray" >&5
4492 echo "${ECHO_T}$ac_cv_os_cray" >&6
4493 if test $ac_cv_os_cray = yes; then
4494 for ac_func in _getb67 GETB67 getb67; do
4495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4496 echo "$as_me:4496: checking for $ac_func" >&5
4497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4498 if eval "test \"\${$as_ac_var+set}\" = set"; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line 4502 "configure"
4503 #include "confdefs.h"
4504 /* System header to define __stub macros and hopefully few prototypes,
4505 which can conflict with char $ac_func (); below. */
4506 #include <assert.h>
4507 /* Override any gcc2 internal prototype to avoid an error. */
4508 #ifdef __cplusplus
4509 extern "C"
4510 #endif
4511 /* We use char because int might match the return type of a gcc2
4512 builtin and then its argument prototype would still apply. */
4513 char $ac_func ();
4514 char (*f) ();
4515
4516 #ifdef F77_DUMMY_MAIN
4517 # ifdef __cplusplus
4518 extern "C"
4519 # endif
4520 int F77_DUMMY_MAIN() { return 1; }
4521 #endif
4522 int
4523 main ()
4524 {
4525 /* The GNU C library defines this for functions which it implements
4526 to always fail with ENOSYS. Some functions are actually named
4527 something starting with __ and the normal name is an alias. */
4528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4529 choke me
4530 #else
4531 f = $ac_func;
4532 #endif
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:4539: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>&5
4541 ac_status=$?
4542 echo "$as_me:4542: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -s conftest$ac_exeext'
4545 { (eval echo "$as_me:4545: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:4548: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 eval "$as_ac_var=yes"
4551 else
4552 echo "$as_me: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4554 eval "$as_ac_var=no"
4555 fi
4556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4557 fi
4558 echo "$as_me:4558: result: `eval echo '${'$as_ac_var'}'`" >&5
4559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4560 if test `eval echo '${'$as_ac_var'}'` = yes; then
4561
4562 cat >>confdefs.h <<_ACEOF
4563 #define CRAY_STACKSEG_END $ac_func
4564 _ACEOF
4565
4566 break
4567 fi
4568
4569 done
4570 fi
4571
4572 echo "$as_me:4572: checking stack direction for C alloca" >&5
4573 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4574 if test "${ac_cv_c_stack_direction+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577 if test "$cross_compiling" = yes; then
4578 ac_cv_c_stack_direction=0
4579 else
4580 cat >conftest.$ac_ext <<_ACEOF
4581 #line 4581 "configure"
4582 #include "confdefs.h"
4583 int
4584 find_stack_direction ()
4585 {
4586 static char *addr = 0;
4587 auto char dummy;
4588 if (addr == 0)
4589 {
4590 addr = &dummy;
4591 return find_stack_direction ();
4592 }
4593 else
4594 return (&dummy > addr) ? 1 : -1;
4595 }
4596
4597 int
4598 main ()
4599 {
4600 exit (find_stack_direction () < 0);
4601 }
4602 _ACEOF
4603 rm -f conftest$ac_exeext
4604 if { (eval echo "$as_me:4604: \"$ac_link\"") >&5
4605 (eval $ac_link) 2>&5
4606 ac_status=$?
4607 echo "$as_me:4607: \$? = $ac_status" >&5
4608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609 { (eval echo "$as_me:4609: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:4612: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_cv_c_stack_direction=1
4615 else
4616 echo "$as_me: program exited with status $ac_status" >&5
4617 echo "$as_me: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4619 ac_cv_c_stack_direction=-1
4620 fi
4621 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4622 fi
4623 fi
4624 echo "$as_me:4624: result: $ac_cv_c_stack_direction" >&5
4625 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4626
4627 cat >>confdefs.h <<_ACEOF
4628 #define STACK_DIRECTION $ac_cv_c_stack_direction
4629 _ACEOF
4630
4631 fi
4632
4633 for ac_func in mkstemp setlocale
4634 do
4635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4636 echo "$as_me:4636: checking for $ac_func" >&5
4637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_var+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 cat >conftest.$ac_ext <<_ACEOF
4642 #line 4642 "configure"
4643 #include "confdefs.h"
4644 /* System header to define __stub macros and hopefully few prototypes,
4645 which can conflict with char $ac_func (); below. */
4646 #include <assert.h>
4647 /* Override any gcc2 internal prototype to avoid an error. */
4648 #ifdef __cplusplus
4649 extern "C"
4650 #endif
4651 /* We use char because int might match the return type of a gcc2
4652 builtin and then its argument prototype would still apply. */
4653 char $ac_func ();
4654 char (*f) ();
4655
4656 #ifdef F77_DUMMY_MAIN
4657 # ifdef __cplusplus
4658 extern "C"
4659 # endif
4660 int F77_DUMMY_MAIN() { return 1; }
4661 #endif
4662 int
4663 main ()
4664 {
4665 /* The GNU C library defines this for functions which it implements
4666 to always fail with ENOSYS. Some functions are actually named
4667 something starting with __ and the normal name is an alias. */
4668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4669 choke me
4670 #else
4671 f = $ac_func;
4672 #endif
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.$ac_objext conftest$ac_exeext
4679 if { (eval echo "$as_me:4679: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4681 ac_status=$?
4682 echo "$as_me:4682: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -s conftest$ac_exeext'
4685 { (eval echo "$as_me:4685: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:4688: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 eval "$as_ac_var=yes"
4691 else
4692 echo "$as_me: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4694 eval "$as_ac_var=no"
4695 fi
4696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4697 fi
4698 echo "$as_me:4698: result: `eval echo '${'$as_ac_var'}'`" >&5
4699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4700 if test `eval echo '${'$as_ac_var'}'` = yes; then
4701 cat >>confdefs.h <<_ACEOF
4702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4703 _ACEOF
4704
4705 fi
4706 done
4707
4708 echo "$as_me:4708: checking whether stpcpy is declared" >&5
4709 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4710 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713 cat >conftest.$ac_ext <<_ACEOF
4714 #line 4714 "configure"
4715 #include "confdefs.h"
4716 $ac_includes_default
4717 #ifdef F77_DUMMY_MAIN
4718 # ifdef __cplusplus
4719 extern "C"
4720 # endif
4721 int F77_DUMMY_MAIN() { return 1; }
4722 #endif
4723 int
4724 main ()
4725 {
4726 #ifndef stpcpy
4727 char *p = (char *) stpcpy;
4728 #endif
4729
4730 ;
4731 return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.$ac_objext
4735 if { (eval echo "$as_me:4735: \"$ac_compile\"") >&5
4736 (eval $ac_compile) 2>&5
4737 ac_status=$?
4738 echo "$as_me:4738: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try='test -s conftest.$ac_objext'
4741 { (eval echo "$as_me:4741: \"$ac_try\"") >&5
4742 (eval $ac_try) 2>&5
4743 ac_status=$?
4744 echo "$as_me:4744: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 ac_cv_have_decl_stpcpy=yes
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4750 ac_cv_have_decl_stpcpy=no
4751 fi
4752 rm -f conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 echo "$as_me:4754: result: $ac_cv_have_decl_stpcpy" >&5
4755 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4756 if test $ac_cv_have_decl_stpcpy = yes; then
4757
4758 cat >>confdefs.h <<_ACEOF
4759 #define HAVE_DECL_STPCPY 1
4760 _ACEOF
4761
4762 else
4763 cat >>confdefs.h <<_ACEOF
4764 #define HAVE_DECL_STPCPY 0
4765 _ACEOF
4766
4767 fi
4768 echo "$as_me:4768: checking whether strndup is declared" >&5
4769 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4770 if test "${ac_cv_have_decl_strndup+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 #line 4774 "configure"
4775 #include "confdefs.h"
4776 $ac_includes_default
4777 #ifdef F77_DUMMY_MAIN
4778 # ifdef __cplusplus
4779 extern "C"
4780 # endif
4781 int F77_DUMMY_MAIN() { return 1; }
4782 #endif
4783 int
4784 main ()
4785 {
4786 #ifndef strndup
4787 char *p = (char *) strndup;
4788 #endif
4789
4790 ;
4791 return 0;
4792 }
4793 _ACEOF
4794 rm -f conftest.$ac_objext
4795 if { (eval echo "$as_me:4795: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>&5
4797 ac_status=$?
4798 echo "$as_me:4798: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:4801: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:4804: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_cv_have_decl_strndup=yes
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 ac_cv_have_decl_strndup=no
4811 fi
4812 rm -f conftest.$ac_objext conftest.$ac_ext
4813 fi
4814 echo "$as_me:4814: result: $ac_cv_have_decl_strndup" >&5
4815 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4816 if test $ac_cv_have_decl_strndup = yes; then
4817
4818 cat >>confdefs.h <<_ACEOF
4819 #define HAVE_DECL_STRNDUP 1
4820 _ACEOF
4821
4822 else
4823 cat >>confdefs.h <<_ACEOF
4824 #define HAVE_DECL_STRNDUP 0
4825 _ACEOF
4826
4827 fi
4828 echo "$as_me:4828: checking whether strnlen is declared" >&5
4829 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4830 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833 cat >conftest.$ac_ext <<_ACEOF
4834 #line 4834 "configure"
4835 #include "confdefs.h"
4836 $ac_includes_default
4837 #ifdef F77_DUMMY_MAIN
4838 # ifdef __cplusplus
4839 extern "C"
4840 # endif
4841 int F77_DUMMY_MAIN() { return 1; }
4842 #endif
4843 int
4844 main ()
4845 {
4846 #ifndef strnlen
4847 char *p = (char *) strnlen;
4848 #endif
4849
4850 ;
4851 return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:4855: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>&5
4857 ac_status=$?
4858 echo "$as_me:4858: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:4861: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:4864: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_cv_have_decl_strnlen=yes
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4870 ac_cv_have_decl_strnlen=no
4871 fi
4872 rm -f conftest.$ac_objext conftest.$ac_ext
4873 fi
4874 echo "$as_me:4874: result: $ac_cv_have_decl_strnlen" >&5
4875 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4876 if test $ac_cv_have_decl_strnlen = yes; then
4877
4878 cat >>confdefs.h <<_ACEOF
4879 #define HAVE_DECL_STRNLEN 1
4880 _ACEOF
4881
4882 else
4883 cat >>confdefs.h <<_ACEOF
4884 #define HAVE_DECL_STRNLEN 0
4885 _ACEOF
4886
4887 fi
4888 echo "$as_me:4888: checking whether memchr is declared" >&5
4889 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4890 if test "${ac_cv_have_decl_memchr+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893 cat >conftest.$ac_ext <<_ACEOF
4894 #line 4894 "configure"
4895 #include "confdefs.h"
4896 $ac_includes_default
4897 #ifdef F77_DUMMY_MAIN
4898 # ifdef __cplusplus
4899 extern "C"
4900 # endif
4901 int F77_DUMMY_MAIN() { return 1; }
4902 #endif
4903 int
4904 main ()
4905 {
4906 #ifndef memchr
4907 char *p = (char *) memchr;
4908 #endif
4909
4910 ;
4911 return 0;
4912 }
4913 _ACEOF
4914 rm -f conftest.$ac_objext
4915 if { (eval echo "$as_me:4915: \"$ac_compile\"") >&5
4916 (eval $ac_compile) 2>&5
4917 ac_status=$?
4918 echo "$as_me:4918: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try='test -s conftest.$ac_objext'
4921 { (eval echo "$as_me:4921: \"$ac_try\"") >&5
4922 (eval $ac_try) 2>&5
4923 ac_status=$?
4924 echo "$as_me:4924: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 ac_cv_have_decl_memchr=yes
4927 else
4928 echo "$as_me: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4930 ac_cv_have_decl_memchr=no
4931 fi
4932 rm -f conftest.$ac_objext conftest.$ac_ext
4933 fi
4934 echo "$as_me:4934: result: $ac_cv_have_decl_memchr" >&5
4935 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
4936 if test $ac_cv_have_decl_memchr = yes; then
4937
4938 cat >>confdefs.h <<_ACEOF
4939 #define HAVE_DECL_MEMCHR 1
4940 _ACEOF
4941
4942 else
4943 cat >>confdefs.h <<_ACEOF
4944 #define HAVE_DECL_MEMCHR 0
4945 _ACEOF
4946
4947 fi
4948
4949 for ac_func in stpcpy strndup strnlen strspn memchr
4950 do
4951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4952 echo "$as_me:4952: checking for $ac_func" >&5
4953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4954 if eval "test \"\${$as_ac_var+set}\" = set"; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957 cat >conftest.$ac_ext <<_ACEOF
4958 #line 4958 "configure"
4959 #include "confdefs.h"
4960 /* System header to define __stub macros and hopefully few prototypes,
4961 which can conflict with char $ac_func (); below. */
4962 #include <assert.h>
4963 /* Override any gcc2 internal prototype to avoid an error. */
4964 #ifdef __cplusplus
4965 extern "C"
4966 #endif
4967 /* We use char because int might match the return type of a gcc2
4968 builtin and then its argument prototype would still apply. */
4969 char $ac_func ();
4970 char (*f) ();
4971
4972 #ifdef F77_DUMMY_MAIN
4973 # ifdef __cplusplus
4974 extern "C"
4975 # endif
4976 int F77_DUMMY_MAIN() { return 1; }
4977 #endif
4978 int
4979 main ()
4980 {
4981 /* The GNU C library defines this for functions which it implements
4982 to always fail with ENOSYS. Some functions are actually named
4983 something starting with __ and the normal name is an alias. */
4984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4985 choke me
4986 #else
4987 f = $ac_func;
4988 #endif
4989
4990 ;
4991 return 0;
4992 }
4993 _ACEOF
4994 rm -f conftest.$ac_objext conftest$ac_exeext
4995 if { (eval echo "$as_me:4995: \"$ac_link\"") >&5
4996 (eval $ac_link) 2>&5
4997 ac_status=$?
4998 echo "$as_me:4998: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -s conftest$ac_exeext'
5001 { (eval echo "$as_me:5001: \"$ac_try\"") >&5
5002 (eval $ac_try) 2>&5
5003 ac_status=$?
5004 echo "$as_me:5004: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }; then
5006 eval "$as_ac_var=yes"
5007 else
5008 echo "$as_me: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5010 eval "$as_ac_var=no"
5011 fi
5012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5013 fi
5014 echo "$as_me:5014: result: `eval echo '${'$as_ac_var'}'`" >&5
5015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5016 if test `eval echo '${'$as_ac_var'}'` = yes; then
5017 cat >>confdefs.h <<_ACEOF
5018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5019 _ACEOF
5020
5021 else
5022 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5023 fi
5024 done
5025
5026 cat >>confdefs.h <<_ACEOF
5027 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5028 _ACEOF
5029
5030 echo "$as_me:5030: checking for working malloc" >&5
5031 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5032 if test "${jm_cv_func_working_malloc+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 if test "$cross_compiling" = yes; then
5036 jm_cv_func_working_malloc=no
5037 else
5038 cat >conftest.$ac_ext <<_ACEOF
5039 #line 5039 "configure"
5040 #include "confdefs.h"
5041
5042 char *malloc ();
5043 int
5044 main ()
5045 {
5046 exit (malloc (0) ? 0 : 1);
5047 }
5048
5049 _ACEOF
5050 rm -f conftest$ac_exeext
5051 if { (eval echo "$as_me:5051: \"$ac_link\"") >&5
5052 (eval $ac_link) 2>&5
5053 ac_status=$?
5054 echo "$as_me:5054: \$? = $ac_status" >&5
5055 (exit $ac_status); } && { ac_try='./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 jm_cv_func_working_malloc=yes
5062 else
5063 echo "$as_me: program exited with status $ac_status" >&5
5064 echo "$as_me: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 jm_cv_func_working_malloc=no
5067 fi
5068 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5069 fi
5070
5071 fi
5072 echo "$as_me:5072: result: $jm_cv_func_working_malloc" >&5
5073 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5074 if test $jm_cv_func_working_malloc = no; then
5075
5076 LIBOBJS="$LIBOBJS malloc.$ac_objext"
5077
5078 cat >>confdefs.h <<_ACEOF
5079 #define malloc rpl_malloc
5080 _ACEOF
5081
5082 fi
5083
5084 cat >>confdefs.h <<_ACEOF
5085 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5086 _ACEOF
5087
5088 echo "$as_me:5088: checking for working realloc" >&5
5089 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5090 if test "${jm_cv_func_working_realloc+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093 if test "$cross_compiling" = yes; then
5094 jm_cv_func_working_realloc=no
5095 else
5096 cat >conftest.$ac_ext <<_ACEOF
5097 #line 5097 "configure"
5098 #include "confdefs.h"
5099
5100 char *realloc ();
5101 int
5102 main ()
5103 {
5104 exit (realloc (0, 0) ? 0 : 1);
5105 }
5106
5107 _ACEOF
5108 rm -f conftest$ac_exeext
5109 if { (eval echo "$as_me:5109: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>&5
5111 ac_status=$?
5112 echo "$as_me:5112: \$? = $ac_status" >&5
5113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5114 { (eval echo "$as_me:5114: \"$ac_try\"") >&5
5115 (eval $ac_try) 2>&5
5116 ac_status=$?
5117 echo "$as_me:5117: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 jm_cv_func_working_realloc=yes
5120 else
5121 echo "$as_me: program exited with status $ac_status" >&5
5122 echo "$as_me: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5124 jm_cv_func_working_realloc=no
5125 fi
5126 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5127 fi
5128
5129 fi
5130 echo "$as_me:5130: result: $jm_cv_func_working_realloc" >&5
5131 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5132 if test $jm_cv_func_working_realloc = no; then
5133
5134 LIBOBJS="$LIBOBJS realloc.$ac_objext"
5135
5136 cat >>confdefs.h <<_ACEOF
5137 #define realloc rpl_realloc
5138 _ACEOF
5139
5140 fi
5141
5142 for ac_func in isascii iswprint mbrtowc
5143 do
5144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5145 echo "$as_me:5145: checking for $ac_func" >&5
5146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5147 if eval "test \"\${$as_ac_var+set}\" = set"; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 cat >conftest.$ac_ext <<_ACEOF
5151 #line 5151 "configure"
5152 #include "confdefs.h"
5153 /* System header to define __stub macros and hopefully few prototypes,
5154 which can conflict with char $ac_func (); below. */
5155 #include <assert.h>
5156 /* Override any gcc2 internal prototype to avoid an error. */
5157 #ifdef __cplusplus
5158 extern "C"
5159 #endif
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5162 char $ac_func ();
5163 char (*f) ();
5164
5165 #ifdef F77_DUMMY_MAIN
5166 # ifdef __cplusplus
5167 extern "C"
5168 # endif
5169 int F77_DUMMY_MAIN() { return 1; }
5170 #endif
5171 int
5172 main ()
5173 {
5174 /* The GNU C library defines this for functions which it implements
5175 to always fail with ENOSYS. Some functions are actually named
5176 something starting with __ and the normal name is an alias. */
5177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5178 choke me
5179 #else
5180 f = $ac_func;
5181 #endif
5182
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext conftest$ac_exeext
5188 if { (eval echo "$as_me:5188: \"$ac_link\"") >&5
5189 (eval $ac_link) 2>&5
5190 ac_status=$?
5191 echo "$as_me:5191: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -s conftest$ac_exeext'
5194 { (eval echo "$as_me:5194: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:5197: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 eval "$as_ac_var=yes"
5200 else
5201 echo "$as_me: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5203 eval "$as_ac_var=no"
5204 fi
5205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5206 fi
5207 echo "$as_me:5207: result: `eval echo '${'$as_ac_var'}'`" >&5
5208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5209 if test `eval echo '${'$as_ac_var'}'` = yes; then
5210 cat >>confdefs.h <<_ACEOF
5211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5212 _ACEOF
5213
5214 fi
5215 done
5216
5217 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
5218 do
5219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5221 echo "$as_me:5221: checking for $ac_header" >&5
5222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 fi
5226 echo "$as_me:5226: result: `eval echo '${'$as_ac_Header'}'`" >&5
5227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5228 else
5229 # Is the header compilable?
5230 echo "$as_me:5230: checking $ac_header usability" >&5
5231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5232 cat >conftest.$ac_ext <<_ACEOF
5233 #line 5233 "configure"
5234 #include "confdefs.h"
5235 $ac_includes_default
5236 #include <$ac_header>
5237 _ACEOF
5238 rm -f conftest.$ac_objext
5239 if { (eval echo "$as_me:5239: \"$ac_compile\"") >&5
5240 (eval $ac_compile) 2>&5
5241 ac_status=$?
5242 echo "$as_me:5242: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -s conftest.$ac_objext'
5245 { (eval echo "$as_me:5245: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:5248: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_header_compiler=yes
5251 else
5252 echo "$as_me: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5254 ac_header_compiler=no
5255 fi
5256 rm -f conftest.$ac_objext conftest.$ac_ext
5257 echo "$as_me:5257: result: $ac_header_compiler" >&5
5258 echo "${ECHO_T}$ac_header_compiler" >&6
5259
5260 # Is the header present?
5261 echo "$as_me:5261: checking $ac_header presence" >&5
5262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5263 cat >conftest.$ac_ext <<_ACEOF
5264 #line 5264 "configure"
5265 #include "confdefs.h"
5266 #include <$ac_header>
5267 _ACEOF
5268 if { (eval echo "$as_me:5268: \"$ac_cpp conftest.$ac_ext\"") >&5
5269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5270 ac_status=$?
5271 egrep -v '^ *\+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:5274: \$? = $ac_status" >&5
5275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_c_preproc_warn_flag
5278 else
5279 ac_cpp_err=
5280 fi
5281 else
5282 ac_cpp_err=yes
5283 fi
5284 if test -z "$ac_cpp_err"; then
5285 ac_header_preproc=yes
5286 else
5287 echo "$as_me: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5289 ac_header_preproc=no
5290 fi
5291 rm -f conftest.err conftest.$ac_ext
5292 echo "$as_me:5292: result: $ac_header_preproc" >&5
5293 echo "${ECHO_T}$ac_header_preproc" >&6
5294
5295 # So? What about this header?
5296 case $ac_header_compiler:$ac_header_preproc in
5297 yes:no )
5298 { echo "$as_me:5298: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5300 { echo "$as_me:5300: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5302 no:yes )
5303 { echo "$as_me:5303: WARNING: $ac_header: present but cannot be compiled." >&5
5304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5305 { echo "$as_me:5305: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5307 { echo "$as_me:5307: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5309 esac
5310 echo "$as_me:5310: checking for $ac_header" >&5
5311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 eval "$as_ac_Header=$ac_header_preproc"
5316 fi
5317 echo "$as_me:5317: result: `eval echo '${'$as_ac_Header'}'`" >&5
5318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5319
5320 fi
5321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5322 cat >>confdefs.h <<_ACEOF
5323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5324 _ACEOF
5325
5326 fi
5327
5328 done
5329
5330 echo "$as_me:5330: checking for ANSI C header files" >&5
5331 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5332 if test "${ac_cv_header_stdc+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335 cat >conftest.$ac_ext <<_ACEOF
5336 #line 5336 "configure"
5337 #include "confdefs.h"
5338 #include <stdlib.h>
5339 #include <stdarg.h>
5340 #include <string.h>
5341 #include <float.h>
5342
5343 _ACEOF
5344 if { (eval echo "$as_me:5344: \"$ac_cpp conftest.$ac_ext\"") >&5
5345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5346 ac_status=$?
5347 egrep -v '^ *\+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:5350: \$? = $ac_status" >&5
5351 (exit $ac_status); } >/dev/null; then
5352 if test -s conftest.err; then
5353 ac_cpp_err=$ac_c_preproc_warn_flag
5354 else
5355 ac_cpp_err=
5356 fi
5357 else
5358 ac_cpp_err=yes
5359 fi
5360 if test -z "$ac_cpp_err"; then
5361 ac_cv_header_stdc=yes
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5365 ac_cv_header_stdc=no
5366 fi
5367 rm -f conftest.err conftest.$ac_ext
5368
5369 if test $ac_cv_header_stdc = yes; then
5370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5371 cat >conftest.$ac_ext <<_ACEOF
5372 #line 5372 "configure"
5373 #include "confdefs.h"
5374 #include <string.h>
5375
5376 _ACEOF
5377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5378 egrep "memchr" >/dev/null 2>&1; then
5379 :
5380 else
5381 ac_cv_header_stdc=no
5382 fi
5383 rm -f conftest*
5384
5385 fi
5386
5387 if test $ac_cv_header_stdc = yes; then
5388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5389 cat >conftest.$ac_ext <<_ACEOF
5390 #line 5390 "configure"
5391 #include "confdefs.h"
5392 #include <stdlib.h>
5393
5394 _ACEOF
5395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5396 egrep "free" >/dev/null 2>&1; then
5397 :
5398 else
5399 ac_cv_header_stdc=no
5400 fi
5401 rm -f conftest*
5402
5403 fi
5404
5405 if test $ac_cv_header_stdc = yes; then
5406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5407 if test "$cross_compiling" = yes; then
5408 :
5409 else
5410 cat >conftest.$ac_ext <<_ACEOF
5411 #line 5411 "configure"
5412 #include "confdefs.h"
5413 #include <ctype.h>
5414 #if ((' ' & 0x0FF) == 0x020)
5415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5417 #else
5418 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5419 || ('j' <= (c) && (c) <= 'r') \
5420 || ('s' <= (c) && (c) <= 'z'))
5421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5422 #endif
5423
5424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5425 int
5426 main ()
5427 {
5428 int i;
5429 for (i = 0; i < 256; i++)
5430 if (XOR (islower (i), ISLOWER (i))
5431 || toupper (i) != TOUPPER (i))
5432 exit(2);
5433 exit (0);
5434 }
5435 _ACEOF
5436 rm -f conftest$ac_exeext
5437 if { (eval echo "$as_me:5437: \"$ac_link\"") >&5
5438 (eval $ac_link) 2>&5
5439 ac_status=$?
5440 echo "$as_me:5440: \$? = $ac_status" >&5
5441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5442 { (eval echo "$as_me:5442: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:5445: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 :
5448 else
5449 echo "$as_me: program exited with status $ac_status" >&5
5450 echo "$as_me: failed program was:" >&5
5451 cat conftest.$ac_ext >&5
5452 ac_cv_header_stdc=no
5453 fi
5454 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5455 fi
5456 fi
5457 fi
5458 echo "$as_me:5458: result: $ac_cv_header_stdc" >&5
5459 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5460 if test $ac_cv_header_stdc = yes; then
5461
5462 cat >>confdefs.h <<\_ACEOF
5463 #define STDC_HEADERS 1
5464 _ACEOF
5465
5466 fi
5467
5468 echo "$as_me:5468: checking whether backslash-a works in strings" >&5
5469 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5470 if test "${ac_cv_c_backslash_a+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line 5474 "configure"
5475 #include "confdefs.h"
5476
5477 #ifdef F77_DUMMY_MAIN
5478 # ifdef __cplusplus
5479 extern "C"
5480 # endif
5481 int F77_DUMMY_MAIN() { return 1; }
5482 #endif
5483 int
5484 main ()
5485 {
5486
5487 #if '\a' == 'a'
5488 syntax error;
5489 #endif
5490 char buf['\a' == 'a' ? -1 : 1];
5491 buf[0] = '\a';
5492 return buf[0] != "\a"[0];
5493
5494 ;
5495 return 0;
5496 }
5497 _ACEOF
5498 rm -f conftest.$ac_objext
5499 if { (eval echo "$as_me:5499: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>&5
5501 ac_status=$?
5502 echo "$as_me:5502: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -s conftest.$ac_objext'
5505 { (eval echo "$as_me:5505: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:5508: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5510 ac_cv_c_backslash_a=yes
5511 else
5512 echo "$as_me: failed program was:" >&5
5513 cat conftest.$ac_ext >&5
5514 ac_cv_c_backslash_a=no
5515 fi
5516 rm -f conftest.$ac_objext conftest.$ac_ext
5517 fi
5518 echo "$as_me:5518: result: $ac_cv_c_backslash_a" >&5
5519 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5520 if test $ac_cv_c_backslash_a = yes; then
5521
5522 cat >>confdefs.h <<\_ACEOF
5523 #define HAVE_C_BACKSLASH_A 1
5524 _ACEOF
5525
5526 fi
5527
5528 for ac_header in stdlib.h
5529 do
5530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5532 echo "$as_me:5532: checking for $ac_header" >&5
5533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 fi
5537 echo "$as_me:5537: result: `eval echo '${'$as_ac_Header'}'`" >&5
5538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5539 else
5540 # Is the header compilable?
5541 echo "$as_me:5541: checking $ac_header usability" >&5
5542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5543 cat >conftest.$ac_ext <<_ACEOF
5544 #line 5544 "configure"
5545 #include "confdefs.h"
5546 $ac_includes_default
5547 #include <$ac_header>
5548 _ACEOF
5549 rm -f conftest.$ac_objext
5550 if { (eval echo "$as_me:5550: \"$ac_compile\"") >&5
5551 (eval $ac_compile) 2>&5
5552 ac_status=$?
5553 echo "$as_me:5553: \$? = $ac_status" >&5
5554 (exit $ac_status); } &&
5555 { ac_try='test -s conftest.$ac_objext'
5556 { (eval echo "$as_me:5556: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:5559: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 ac_header_compiler=yes
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5565 ac_header_compiler=no
5566 fi
5567 rm -f conftest.$ac_objext conftest.$ac_ext
5568 echo "$as_me:5568: result: $ac_header_compiler" >&5
5569 echo "${ECHO_T}$ac_header_compiler" >&6
5570
5571 # Is the header present?
5572 echo "$as_me:5572: checking $ac_header presence" >&5
5573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5574 cat >conftest.$ac_ext <<_ACEOF
5575 #line 5575 "configure"
5576 #include "confdefs.h"
5577 #include <$ac_header>
5578 _ACEOF
5579 if { (eval echo "$as_me:5579: \"$ac_cpp conftest.$ac_ext\"") >&5
5580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5581 ac_status=$?
5582 egrep -v '^ *\+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:5585: \$? = $ac_status" >&5
5586 (exit $ac_status); } >/dev/null; then
5587 if test -s conftest.err; then
5588 ac_cpp_err=$ac_c_preproc_warn_flag
5589 else
5590 ac_cpp_err=
5591 fi
5592 else
5593 ac_cpp_err=yes
5594 fi
5595 if test -z "$ac_cpp_err"; then
5596 ac_header_preproc=yes
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5600 ac_header_preproc=no
5601 fi
5602 rm -f conftest.err conftest.$ac_ext
5603 echo "$as_me:5603: result: $ac_header_preproc" >&5
5604 echo "${ECHO_T}$ac_header_preproc" >&6
5605
5606 # So? What about this header?
5607 case $ac_header_compiler:$ac_header_preproc in
5608 yes:no )
5609 { echo "$as_me:5609: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5611 { echo "$as_me:5611: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5613 no:yes )
5614 { echo "$as_me:5614: WARNING: $ac_header: present but cannot be compiled." >&5
5615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5616 { echo "$as_me:5616: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5618 { echo "$as_me:5618: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5620 esac
5621 echo "$as_me:5621: checking for $ac_header" >&5
5622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 else
5626 eval "$as_ac_Header=$ac_header_preproc"
5627 fi
5628 echo "$as_me:5628: result: `eval echo '${'$as_ac_Header'}'`" >&5
5629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5630
5631 fi
5632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5633 cat >>confdefs.h <<_ACEOF
5634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5635 _ACEOF
5636
5637 fi
5638
5639 done
5640
5641 echo "$as_me:5641: checking for mbstate_t" >&5
5642 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5643 if test "${ac_cv_type_mbstate_t+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line 5647 "configure"
5648 #include "confdefs.h"
5649
5650 #if HAVE_STDLIB_H
5651 # include <stdlib.h>
5652 #endif
5653 #include <wchar.h>
5654 #ifdef F77_DUMMY_MAIN
5655 # ifdef __cplusplus
5656 extern "C"
5657 # endif
5658 int F77_DUMMY_MAIN() { return 1; }
5659 #endif
5660 int
5661 main ()
5662 {
5663 mbstate_t x; return sizeof x;
5664 ;
5665 return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:5669: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>&5
5671 ac_status=$?
5672 echo "$as_me:5672: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -s conftest.$ac_objext'
5675 { (eval echo "$as_me:5675: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:5678: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_cv_type_mbstate_t=yes
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5684 ac_cv_type_mbstate_t=no
5685 fi
5686 rm -f conftest.$ac_objext conftest.$ac_ext
5687 fi
5688 echo "$as_me:5688: result: $ac_cv_type_mbstate_t" >&5
5689 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5690 if test $ac_cv_type_mbstate_t = no; then
5691
5692 cat >>confdefs.h <<\_ACEOF
5693 #define mbstate_t int
5694 _ACEOF
5695
5696 fi
5697
5698 echo "$as_me:5698: checking for function prototypes" >&5
5699 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5700 if test "$am_cv_prog_cc_stdc" != no; then
5701 echo "$as_me:5701: result: yes" >&5
5702 echo "${ECHO_T}yes" >&6
5703
5704 cat >>confdefs.h <<\_ACEOF
5705 #define PROTOTYPES 1
5706 _ACEOF
5707
5708 U= ANSI2KNR=
5709 else
5710 echo "$as_me:5710: result: no" >&5
5711 echo "${ECHO_T}no" >&6
5712 U=_ ANSI2KNR=./ansi2knr
5713 fi
5714 # Ensure some checks needed by ansi2knr itself.
5715 echo "$as_me:5715: checking for ANSI C header files" >&5
5716 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5717 if test "${ac_cv_header_stdc+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720 cat >conftest.$ac_ext <<_ACEOF
5721 #line 5721 "configure"
5722 #include "confdefs.h"
5723 #include <stdlib.h>
5724 #include <stdarg.h>
5725 #include <string.h>
5726 #include <float.h>
5727
5728 _ACEOF
5729 if { (eval echo "$as_me:5729: \"$ac_cpp conftest.$ac_ext\"") >&5
5730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5731 ac_status=$?
5732 egrep -v '^ *\+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:5735: \$? = $ac_status" >&5
5736 (exit $ac_status); } >/dev/null; then
5737 if test -s conftest.err; then
5738 ac_cpp_err=$ac_c_preproc_warn_flag
5739 else
5740 ac_cpp_err=
5741 fi
5742 else
5743 ac_cpp_err=yes
5744 fi
5745 if test -z "$ac_cpp_err"; then
5746 ac_cv_header_stdc=yes
5747 else
5748 echo "$as_me: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5750 ac_cv_header_stdc=no
5751 fi
5752 rm -f conftest.err conftest.$ac_ext
5753
5754 if test $ac_cv_header_stdc = yes; then
5755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line 5757 "configure"
5758 #include "confdefs.h"
5759 #include <string.h>
5760
5761 _ACEOF
5762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763 egrep "memchr" >/dev/null 2>&1; then
5764 :
5765 else
5766 ac_cv_header_stdc=no
5767 fi
5768 rm -f conftest*
5769
5770 fi
5771
5772 if test $ac_cv_header_stdc = yes; then
5773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5774 cat >conftest.$ac_ext <<_ACEOF
5775 #line 5775 "configure"
5776 #include "confdefs.h"
5777 #include <stdlib.h>
5778
5779 _ACEOF
5780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5781 egrep "free" >/dev/null 2>&1; then
5782 :
5783 else
5784 ac_cv_header_stdc=no
5785 fi
5786 rm -f conftest*
5787
5788 fi
5789
5790 if test $ac_cv_header_stdc = yes; then
5791 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5792 if test "$cross_compiling" = yes; then
5793 :
5794 else
5795 cat >conftest.$ac_ext <<_ACEOF
5796 #line 5796 "configure"
5797 #include "confdefs.h"
5798 #include <ctype.h>
5799 #if ((' ' & 0x0FF) == 0x020)
5800 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5801 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5802 #else
5803 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5804 || ('j' <= (c) && (c) <= 'r') \
5805 || ('s' <= (c) && (c) <= 'z'))
5806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5807 #endif
5808
5809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5810 int
5811 main ()
5812 {
5813 int i;
5814 for (i = 0; i < 256; i++)
5815 if (XOR (islower (i), ISLOWER (i))
5816 || toupper (i) != TOUPPER (i))
5817 exit(2);
5818 exit (0);
5819 }
5820 _ACEOF
5821 rm -f conftest$ac_exeext
5822 if { (eval echo "$as_me:5822: \"$ac_link\"") >&5
5823 (eval $ac_link) 2>&5
5824 ac_status=$?
5825 echo "$as_me:5825: \$? = $ac_status" >&5
5826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5827 { (eval echo "$as_me:5827: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:5830: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 :
5833 else
5834 echo "$as_me: program exited with status $ac_status" >&5
5835 echo "$as_me: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5837 ac_cv_header_stdc=no
5838 fi
5839 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5840 fi
5841 fi
5842 fi
5843 echo "$as_me:5843: result: $ac_cv_header_stdc" >&5
5844 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5845 if test $ac_cv_header_stdc = yes; then
5846
5847 cat >>confdefs.h <<\_ACEOF
5848 #define STDC_HEADERS 1
5849 _ACEOF
5850
5851 fi
5852
5853 for ac_header in string.h
5854 do
5855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5857 echo "$as_me:5857: checking for $ac_header" >&5
5858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 fi
5862 echo "$as_me:5862: result: `eval echo '${'$as_ac_Header'}'`" >&5
5863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5864 else
5865 # Is the header compilable?
5866 echo "$as_me:5866: checking $ac_header usability" >&5
5867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5868 cat >conftest.$ac_ext <<_ACEOF
5869 #line 5869 "configure"
5870 #include "confdefs.h"
5871 $ac_includes_default
5872 #include <$ac_header>
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (eval echo "$as_me:5875: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>&5
5877 ac_status=$?
5878 echo "$as_me:5878: \$? = $ac_status" >&5
5879 (exit $ac_status); } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:5881: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:5884: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_header_compiler=yes
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 cat conftest.$ac_ext >&5
5890 ac_header_compiler=no
5891 fi
5892 rm -f conftest.$ac_objext conftest.$ac_ext
5893 echo "$as_me:5893: result: $ac_header_compiler" >&5
5894 echo "${ECHO_T}$ac_header_compiler" >&6
5895
5896 # Is the header present?
5897 echo "$as_me:5897: checking $ac_header presence" >&5
5898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5899 cat >conftest.$ac_ext <<_ACEOF
5900 #line 5900 "configure"
5901 #include "confdefs.h"
5902 #include <$ac_header>
5903 _ACEOF
5904 if { (eval echo "$as_me:5904: \"$ac_cpp conftest.$ac_ext\"") >&5
5905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5906 ac_status=$?
5907 egrep -v '^ *\+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:5910: \$? = $ac_status" >&5
5911 (exit $ac_status); } >/dev/null; then
5912 if test -s conftest.err; then
5913 ac_cpp_err=$ac_c_preproc_warn_flag
5914 else
5915 ac_cpp_err=
5916 fi
5917 else
5918 ac_cpp_err=yes
5919 fi
5920 if test -z "$ac_cpp_err"; then
5921 ac_header_preproc=yes
5922 else
5923 echo "$as_me: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5925 ac_header_preproc=no
5926 fi
5927 rm -f conftest.err conftest.$ac_ext
5928 echo "$as_me:5928: result: $ac_header_preproc" >&5
5929 echo "${ECHO_T}$ac_header_preproc" >&6
5930
5931 # So? What about this header?
5932 case $ac_header_compiler:$ac_header_preproc in
5933 yes:no )
5934 { echo "$as_me:5934: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5936 { echo "$as_me:5936: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5938 no:yes )
5939 { echo "$as_me:5939: WARNING: $ac_header: present but cannot be compiled." >&5
5940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5941 { echo "$as_me:5941: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5943 { echo "$as_me:5943: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5945 esac
5946 echo "$as_me:5946: checking for $ac_header" >&5
5947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 eval "$as_ac_Header=$ac_header_preproc"
5952 fi
5953 echo "$as_me:5953: result: `eval echo '${'$as_ac_Header'}'`" >&5
5954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5955
5956 fi
5957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5958 cat >>confdefs.h <<_ACEOF
5959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5960 _ACEOF
5961
5962 fi
5963
5964 done
5965
5966 for ac_func in strerror strerror_r vprintf doprnt
5967 do
5968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5969 echo "$as_me:5969: checking for $ac_func" >&5
5970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5971 if eval "test \"\${$as_ac_var+set}\" = set"; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 cat >conftest.$ac_ext <<_ACEOF
5975 #line 5975 "configure"
5976 #include "confdefs.h"
5977 /* System header to define __stub macros and hopefully few prototypes,
5978 which can conflict with char $ac_func (); below. */
5979 #include <assert.h>
5980 /* Override any gcc2 internal prototype to avoid an error. */
5981 #ifdef __cplusplus
5982 extern "C"
5983 #endif
5984 /* We use char because int might match the return type of a gcc2
5985 builtin and then its argument prototype would still apply. */
5986 char $ac_func ();
5987 char (*f) ();
5988
5989 #ifdef F77_DUMMY_MAIN
5990 # ifdef __cplusplus
5991 extern "C"
5992 # endif
5993 int F77_DUMMY_MAIN() { return 1; }
5994 #endif
5995 int
5996 main ()
5997 {
5998 /* The GNU C library defines this for functions which it implements
5999 to always fail with ENOSYS. Some functions are actually named
6000 something starting with __ and the normal name is an alias. */
6001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6002 choke me
6003 #else
6004 f = $ac_func;
6005 #endif
6006
6007 ;
6008 return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest.$ac_objext conftest$ac_exeext
6012 if { (eval echo "$as_me:6012: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6014 ac_status=$?
6015 echo "$as_me:6015: \$? = $ac_status" >&5
6016 (exit $ac_status); } &&
6017 { ac_try='test -s conftest$ac_exeext'
6018 { (eval echo "$as_me:6018: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:6021: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 eval "$as_ac_var=yes"
6024 else
6025 echo "$as_me: failed program was:" >&5
6026 cat conftest.$ac_ext >&5
6027 eval "$as_ac_var=no"
6028 fi
6029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6030 fi
6031 echo "$as_me:6031: result: `eval echo '${'$as_ac_var'}'`" >&5
6032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6033 if test `eval echo '${'$as_ac_var'}'` = yes; then
6034 cat >>confdefs.h <<_ACEOF
6035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6036 _ACEOF
6037
6038 fi
6039 done
6040
6041 echo "$as_me:6041: checking for ANSI C header files" >&5
6042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6043 if test "${ac_cv_header_stdc+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046 cat >conftest.$ac_ext <<_ACEOF
6047 #line 6047 "configure"
6048 #include "confdefs.h"
6049 #include <stdlib.h>
6050 #include <stdarg.h>
6051 #include <string.h>
6052 #include <float.h>
6053
6054 _ACEOF
6055 if { (eval echo "$as_me:6055: \"$ac_cpp conftest.$ac_ext\"") >&5
6056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6057 ac_status=$?
6058 egrep -v '^ *\+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:6061: \$? = $ac_status" >&5
6062 (exit $ac_status); } >/dev/null; then
6063 if test -s conftest.err; then
6064 ac_cpp_err=$ac_c_preproc_warn_flag
6065 else
6066 ac_cpp_err=
6067 fi
6068 else
6069 ac_cpp_err=yes
6070 fi
6071 if test -z "$ac_cpp_err"; then
6072 ac_cv_header_stdc=yes
6073 else
6074 echo "$as_me: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6076 ac_cv_header_stdc=no
6077 fi
6078 rm -f conftest.err conftest.$ac_ext
6079
6080 if test $ac_cv_header_stdc = yes; then
6081 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6082 cat >conftest.$ac_ext <<_ACEOF
6083 #line 6083 "configure"
6084 #include "confdefs.h"
6085 #include <string.h>
6086
6087 _ACEOF
6088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6089 egrep "memchr" >/dev/null 2>&1; then
6090 :
6091 else
6092 ac_cv_header_stdc=no
6093 fi
6094 rm -f conftest*
6095
6096 fi
6097
6098 if test $ac_cv_header_stdc = yes; then
6099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6100 cat >conftest.$ac_ext <<_ACEOF
6101 #line 6101 "configure"
6102 #include "confdefs.h"
6103 #include <stdlib.h>
6104
6105 _ACEOF
6106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6107 egrep "free" >/dev/null 2>&1; then
6108 :
6109 else
6110 ac_cv_header_stdc=no
6111 fi
6112 rm -f conftest*
6113
6114 fi
6115
6116 if test $ac_cv_header_stdc = yes; then
6117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6118 if test "$cross_compiling" = yes; then
6119 :
6120 else
6121 cat >conftest.$ac_ext <<_ACEOF
6122 #line 6122 "configure"
6123 #include "confdefs.h"
6124 #include <ctype.h>
6125 #if ((' ' & 0x0FF) == 0x020)
6126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6128 #else
6129 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6130 || ('j' <= (c) && (c) <= 'r') \
6131 || ('s' <= (c) && (c) <= 'z'))
6132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6133 #endif
6134
6135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6136 int
6137 main ()
6138 {
6139 int i;
6140 for (i = 0; i < 256; i++)
6141 if (XOR (islower (i), ISLOWER (i))
6142 || toupper (i) != TOUPPER (i))
6143 exit(2);
6144 exit (0);
6145 }
6146 _ACEOF
6147 rm -f conftest$ac_exeext
6148 if { (eval echo "$as_me:6148: \"$ac_link\"") >&5
6149 (eval $ac_link) 2>&5
6150 ac_status=$?
6151 echo "$as_me:6151: \$? = $ac_status" >&5
6152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6153 { (eval echo "$as_me:6153: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:6156: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 :
6159 else
6160 echo "$as_me: program exited with status $ac_status" >&5
6161 echo "$as_me: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6163 ac_cv_header_stdc=no
6164 fi
6165 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6166 fi
6167 fi
6168 fi
6169 echo "$as_me:6169: result: $ac_cv_header_stdc" >&5
6170 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6171 if test $ac_cv_header_stdc = yes; then
6172
6173 cat >>confdefs.h <<\_ACEOF
6174 #define STDC_HEADERS 1
6175 _ACEOF
6176
6177 fi
6178
6179 echo "$as_me:6179: checking whether strerror_r is declared" >&5
6180 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6181 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184 cat >conftest.$ac_ext <<_ACEOF
6185 #line 6185 "configure"
6186 #include "confdefs.h"
6187 $ac_includes_default
6188 #ifdef F77_DUMMY_MAIN
6189 # ifdef __cplusplus
6190 extern "C"
6191 # endif
6192 int F77_DUMMY_MAIN() { return 1; }
6193 #endif
6194 int
6195 main ()
6196 {
6197 #ifndef strerror_r
6198 char *p = (char *) strerror_r;
6199 #endif
6200
6201 ;
6202 return 0;
6203 }
6204 _ACEOF
6205 rm -f conftest.$ac_objext
6206 if { (eval echo "$as_me:6206: \"$ac_compile\"") >&5
6207 (eval $ac_compile) 2>&5
6208 ac_status=$?
6209 echo "$as_me:6209: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:6212: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:6215: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_cv_have_decl_strerror_r=yes
6218 else
6219 echo "$as_me: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6221 ac_cv_have_decl_strerror_r=no
6222 fi
6223 rm -f conftest.$ac_objext conftest.$ac_ext
6224 fi
6225 echo "$as_me:6225: result: $ac_cv_have_decl_strerror_r" >&5
6226 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6227 if test $ac_cv_have_decl_strerror_r = yes; then
6228
6229 cat >>confdefs.h <<_ACEOF
6230 #define HAVE_DECL_STRERROR_R 1
6231 _ACEOF
6232
6233 else
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE_DECL_STRERROR_R 0
6236 _ACEOF
6237
6238 fi
6239
6240 for ac_func in strerror_r
6241 do
6242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6243 echo "$as_me:6243: checking for $ac_func" >&5
6244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6245 if eval "test \"\${$as_ac_var+set}\" = set"; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 cat >conftest.$ac_ext <<_ACEOF
6249 #line 6249 "configure"
6250 #include "confdefs.h"
6251 /* System header to define __stub macros and hopefully few prototypes,
6252 which can conflict with char $ac_func (); below. */
6253 #include <assert.h>
6254 /* Override any gcc2 internal prototype to avoid an error. */
6255 #ifdef __cplusplus
6256 extern "C"
6257 #endif
6258 /* We use char because int might match the return type of a gcc2
6259 builtin and then its argument prototype would still apply. */
6260 char $ac_func ();
6261 char (*f) ();
6262
6263 #ifdef F77_DUMMY_MAIN
6264 # ifdef __cplusplus
6265 extern "C"
6266 # endif
6267 int F77_DUMMY_MAIN() { return 1; }
6268 #endif
6269 int
6270 main ()
6271 {
6272 /* The GNU C library defines this for functions which it implements
6273 to always fail with ENOSYS. Some functions are actually named
6274 something starting with __ and the normal name is an alias. */
6275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6276 choke me
6277 #else
6278 f = $ac_func;
6279 #endif
6280
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 eval "$as_ac_var=yes"
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6301 eval "$as_ac_var=no"
6302 fi
6303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6304 fi
6305 echo "$as_me:6305: result: `eval echo '${'$as_ac_var'}'`" >&5
6306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6307 if test `eval echo '${'$as_ac_var'}'` = yes; then
6308 cat >>confdefs.h <<_ACEOF
6309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6310 _ACEOF
6311
6312 fi
6313 done
6314
6315 if test $ac_cv_func_strerror_r = yes; then
6316
6317 for ac_header in string.h
6318 do
6319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6321 echo "$as_me:6321: checking for $ac_header" >&5
6322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 fi
6326 echo "$as_me:6326: result: `eval echo '${'$as_ac_Header'}'`" >&5
6327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6328 else
6329 # Is the header compilable?
6330 echo "$as_me:6330: checking $ac_header usability" >&5
6331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6332 cat >conftest.$ac_ext <<_ACEOF
6333 #line 6333 "configure"
6334 #include "confdefs.h"
6335 $ac_includes_default
6336 #include <$ac_header>
6337 _ACEOF
6338 rm -f conftest.$ac_objext
6339 if { (eval echo "$as_me:6339: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>&5
6341 ac_status=$?
6342 echo "$as_me:6342: \$? = $ac_status" >&5
6343 (exit $ac_status); } &&
6344 { ac_try='test -s conftest.$ac_objext'
6345 { (eval echo "$as_me:6345: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:6348: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_header_compiler=yes
6351 else
6352 echo "$as_me: failed program was:" >&5
6353 cat conftest.$ac_ext >&5
6354 ac_header_compiler=no
6355 fi
6356 rm -f conftest.$ac_objext conftest.$ac_ext
6357 echo "$as_me:6357: result: $ac_header_compiler" >&5
6358 echo "${ECHO_T}$ac_header_compiler" >&6
6359
6360 # Is the header present?
6361 echo "$as_me:6361: checking $ac_header presence" >&5
6362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6363 cat >conftest.$ac_ext <<_ACEOF
6364 #line 6364 "configure"
6365 #include "confdefs.h"
6366 #include <$ac_header>
6367 _ACEOF
6368 if { (eval echo "$as_me:6368: \"$ac_cpp conftest.$ac_ext\"") >&5
6369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6370 ac_status=$?
6371 egrep -v '^ *\+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:6374: \$? = $ac_status" >&5
6375 (exit $ac_status); } >/dev/null; then
6376 if test -s conftest.err; then
6377 ac_cpp_err=$ac_c_preproc_warn_flag
6378 else
6379 ac_cpp_err=
6380 fi
6381 else
6382 ac_cpp_err=yes
6383 fi
6384 if test -z "$ac_cpp_err"; then
6385 ac_header_preproc=yes
6386 else
6387 echo "$as_me: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6389 ac_header_preproc=no
6390 fi
6391 rm -f conftest.err conftest.$ac_ext
6392 echo "$as_me:6392: result: $ac_header_preproc" >&5
6393 echo "${ECHO_T}$ac_header_preproc" >&6
6394
6395 # So? What about this header?
6396 case $ac_header_compiler:$ac_header_preproc in
6397 yes:no )
6398 { echo "$as_me:6398: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6400 { echo "$as_me:6400: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6402 no:yes )
6403 { echo "$as_me:6403: WARNING: $ac_header: present but cannot be compiled." >&5
6404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6405 { echo "$as_me:6405: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6407 { echo "$as_me:6407: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6409 esac
6410 echo "$as_me:6410: checking for $ac_header" >&5
6411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415 eval "$as_ac_Header=$ac_header_preproc"
6416 fi
6417 echo "$as_me:6417: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419
6420 fi
6421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6422 cat >>confdefs.h <<_ACEOF
6423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6424 _ACEOF
6425
6426 fi
6427
6428 done
6429
6430 echo "$as_me:6430: checking for working strerror_r" >&5
6431 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6432 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435
6436 cat >conftest.$ac_ext <<_ACEOF
6437 #line 6437 "configure"
6438 #include "confdefs.h"
6439
6440 # include <stdio.h>
6441 # if HAVE_STRING_H
6442 # include <string.h>
6443 # endif
6444
6445 #ifdef F77_DUMMY_MAIN
6446 # ifdef __cplusplus
6447 extern "C"
6448 # endif
6449 int F77_DUMMY_MAIN() { return 1; }
6450 #endif
6451 int
6452 main ()
6453 {
6454
6455 char buf[100];
6456 char x = *strerror_r (0, buf, sizeof buf);
6457
6458 ;
6459 return 0;
6460 }
6461 _ACEOF
6462 rm -f conftest.$ac_objext
6463 if { (eval echo "$as_me:6463: \"$ac_compile\"") >&5
6464 (eval $ac_compile) 2>&5
6465 ac_status=$?
6466 echo "$as_me:6466: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -s conftest.$ac_objext'
6469 { (eval echo "$as_me:6469: \"$ac_try\"") >&5
6470 (eval $ac_try) 2>&5
6471 ac_status=$?
6472 echo "$as_me:6472: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6474 ac_cv_func_strerror_r_works=yes
6475 else
6476 echo "$as_me: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6478 ac_cv_func_strerror_r_works=no
6479
6480 fi
6481 rm -f conftest.$ac_objext conftest.$ac_ext
6482 if test $ac_cv_func_strerror_r_works = no; then
6483 # strerror_r seems not to work, but now we have to choose between
6484 # systems that have relatively inaccessible declarations for the
6485 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6486 # former has a strerror_r that returns char*, while the latter
6487 # has a strerror_r that returns `int'.
6488 # This test should segfault on the DEC system.
6489 if test "$cross_compiling" = yes; then
6490 ac_cv_func_strerror_r_works=no
6491 else
6492 cat >conftest.$ac_ext <<_ACEOF
6493 #line 6493 "configure"
6494 #include "confdefs.h"
6495
6496 # include <stdio.h>
6497 # include <string.h>
6498 # include <ctype.h>
6499
6500 extern char *strerror_r ();
6501
6502 int
6503 main ()
6504 {
6505 char buf[100];
6506 char x = *strerror_r (0, buf, sizeof buf);
6507 exit (!isalpha (x));
6508 }
6509
6510 _ACEOF
6511 rm -f conftest$ac_exeext
6512 if { (eval echo "$as_me:6512: \"$ac_link\"") >&5
6513 (eval $ac_link) 2>&5
6514 ac_status=$?
6515 echo "$as_me:6515: \$? = $ac_status" >&5
6516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6517 { (eval echo "$as_me:6517: \"$ac_try\"") >&5
6518 (eval $ac_try) 2>&5
6519 ac_status=$?
6520 echo "$as_me:6520: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
6522 ac_cv_func_strerror_r_works=yes
6523 else
6524 echo "$as_me: program exited with status $ac_status" >&5
6525 echo "$as_me: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6527 ac_cv_func_strerror_r_works=no
6528 fi
6529 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6530 fi
6531 fi
6532
6533 fi
6534 echo "$as_me:6534: result: $ac_cv_func_strerror_r_works" >&5
6535 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6536 if test $ac_cv_func_strerror_r_works = yes; then
6537
6538 cat >>confdefs.h <<_ACEOF
6539 #define HAVE_WORKING_STRERROR_R 1
6540 _ACEOF
6541
6542 fi
6543 fi
6544
6545 ALL_LINGUAS="de es et fr ja nl ru"
6546 # Make sure we can run config.sub.
6547 $ac_config_sub sun4 >/dev/null 2>&1 ||
6548 { { echo "$as_me:6548: error: cannot run $ac_config_sub" >&5
6549 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6550 { (exit 1); exit 1; }; }
6551
6552 echo "$as_me:6552: checking build system type" >&5
6553 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6554 if test "${ac_cv_build+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 ac_cv_build_alias=$build_alias
6558 test -z "$ac_cv_build_alias" &&
6559 ac_cv_build_alias=`$ac_config_guess`
6560 test -z "$ac_cv_build_alias" &&
6561 { { echo "$as_me:6561: error: cannot guess build type; you must specify one" >&5
6562 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6563 { (exit 1); exit 1; }; }
6564 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6565 { { echo "$as_me:6565: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6566 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6567 { (exit 1); exit 1; }; }
6568
6569 fi
6570 echo "$as_me:6570: result: $ac_cv_build" >&5
6571 echo "${ECHO_T}$ac_cv_build" >&6
6572 build=$ac_cv_build
6573 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6574 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6575 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6576
6577 echo "$as_me:6577: checking host system type" >&5
6578 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6579 if test "${ac_cv_host+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582 ac_cv_host_alias=$host_alias
6583 test -z "$ac_cv_host_alias" &&
6584 ac_cv_host_alias=$ac_cv_build_alias
6585 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6586 { { echo "$as_me:6586: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6587 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6588 { (exit 1); exit 1; }; }
6589
6590 fi
6591 echo "$as_me:6591: result: $ac_cv_host" >&5
6592 echo "${ECHO_T}$ac_cv_host" >&6
6593 host=$ac_cv_host
6594 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6595 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6596 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6597
6598 echo "$as_me:6598: checking for off_t" >&5
6599 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6600 if test "${ac_cv_type_off_t+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603 cat >conftest.$ac_ext <<_ACEOF
6604 #line 6604 "configure"
6605 #include "confdefs.h"
6606 $ac_includes_default
6607 #ifdef F77_DUMMY_MAIN
6608 # ifdef __cplusplus
6609 extern "C"
6610 # endif
6611 int F77_DUMMY_MAIN() { return 1; }
6612 #endif
6613 int
6614 main ()
6615 {
6616 if ((off_t *) 0)
6617 return 0;
6618 if (sizeof (off_t))
6619 return 0;
6620 ;
6621 return 0;
6622 }
6623 _ACEOF
6624 rm -f conftest.$ac_objext
6625 if { (eval echo "$as_me:6625: \"$ac_compile\"") >&5
6626 (eval $ac_compile) 2>&5
6627 ac_status=$?
6628 echo "$as_me:6628: \$? = $ac_status" >&5
6629 (exit $ac_status); } &&
6630 { ac_try='test -s conftest.$ac_objext'
6631 { (eval echo "$as_me:6631: \"$ac_try\"") >&5
6632 (eval $ac_try) 2>&5
6633 ac_status=$?
6634 echo "$as_me:6634: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 ac_cv_type_off_t=yes
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6640 ac_cv_type_off_t=no
6641 fi
6642 rm -f conftest.$ac_objext conftest.$ac_ext
6643 fi
6644 echo "$as_me:6644: result: $ac_cv_type_off_t" >&5
6645 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6646 if test $ac_cv_type_off_t = yes; then
6647 :
6648 else
6649
6650 cat >>confdefs.h <<_ACEOF
6651 #define off_t long
6652 _ACEOF
6653
6654 fi
6655
6656 echo "$as_me:6656: checking for size_t" >&5
6657 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6658 if test "${ac_cv_type_size_t+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661 cat >conftest.$ac_ext <<_ACEOF
6662 #line 6662 "configure"
6663 #include "confdefs.h"
6664 $ac_includes_default
6665 #ifdef F77_DUMMY_MAIN
6666 # ifdef __cplusplus
6667 extern "C"
6668 # endif
6669 int F77_DUMMY_MAIN() { return 1; }
6670 #endif
6671 int
6672 main ()
6673 {
6674 if ((size_t *) 0)
6675 return 0;
6676 if (sizeof (size_t))
6677 return 0;
6678 ;
6679 return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:6683: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>&5
6685 ac_status=$?
6686 echo "$as_me:6686: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:6689: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:6692: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_cv_type_size_t=yes
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6698 ac_cv_type_size_t=no
6699 fi
6700 rm -f conftest.$ac_objext conftest.$ac_ext
6701 fi
6702 echo "$as_me:6702: result: $ac_cv_type_size_t" >&5
6703 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6704 if test $ac_cv_type_size_t = yes; then
6705 :
6706 else
6707
6708 cat >>confdefs.h <<_ACEOF
6709 #define size_t unsigned
6710 _ACEOF
6711
6712 fi
6713
6714 for ac_header in stdlib.h unistd.h
6715 do
6716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6718 echo "$as_me:6718: checking for $ac_header" >&5
6719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 fi
6723 echo "$as_me:6723: result: `eval echo '${'$as_ac_Header'}'`" >&5
6724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6725 else
6726 # Is the header compilable?
6727 echo "$as_me:6727: checking $ac_header usability" >&5
6728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6729 cat >conftest.$ac_ext <<_ACEOF
6730 #line 6730 "configure"
6731 #include "confdefs.h"
6732 $ac_includes_default
6733 #include <$ac_header>
6734 _ACEOF
6735 rm -f conftest.$ac_objext
6736 if { (eval echo "$as_me:6736: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>&5
6738 ac_status=$?
6739 echo "$as_me:6739: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try='test -s conftest.$ac_objext'
6742 { (eval echo "$as_me:6742: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:6745: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_header_compiler=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6751 ac_header_compiler=no
6752 fi
6753 rm -f conftest.$ac_objext conftest.$ac_ext
6754 echo "$as_me:6754: result: $ac_header_compiler" >&5
6755 echo "${ECHO_T}$ac_header_compiler" >&6
6756
6757 # Is the header present?
6758 echo "$as_me:6758: checking $ac_header presence" >&5
6759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6760 cat >conftest.$ac_ext <<_ACEOF
6761 #line 6761 "configure"
6762 #include "confdefs.h"
6763 #include <$ac_header>
6764 _ACEOF
6765 if { (eval echo "$as_me:6765: \"$ac_cpp conftest.$ac_ext\"") >&5
6766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6767 ac_status=$?
6768 egrep -v '^ *\+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
6771 echo "$as_me:6771: \$? = $ac_status" >&5
6772 (exit $ac_status); } >/dev/null; then
6773 if test -s conftest.err; then
6774 ac_cpp_err=$ac_c_preproc_warn_flag
6775 else
6776 ac_cpp_err=
6777 fi
6778 else
6779 ac_cpp_err=yes
6780 fi
6781 if test -z "$ac_cpp_err"; then
6782 ac_header_preproc=yes
6783 else
6784 echo "$as_me: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6786 ac_header_preproc=no
6787 fi
6788 rm -f conftest.err conftest.$ac_ext
6789 echo "$as_me:6789: result: $ac_header_preproc" >&5
6790 echo "${ECHO_T}$ac_header_preproc" >&6
6791
6792 # So? What about this header?
6793 case $ac_header_compiler:$ac_header_preproc in
6794 yes:no )
6795 { echo "$as_me:6795: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6797 { echo "$as_me:6797: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6799 no:yes )
6800 { echo "$as_me:6800: WARNING: $ac_header: present but cannot be compiled." >&5
6801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6802 { echo "$as_me:6802: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6804 { echo "$as_me:6804: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6806 esac
6807 echo "$as_me:6807: checking for $ac_header" >&5
6808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 eval "$as_ac_Header=$ac_header_preproc"
6813 fi
6814 echo "$as_me:6814: result: `eval echo '${'$as_ac_Header'}'`" >&5
6815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6816
6817 fi
6818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6819 cat >>confdefs.h <<_ACEOF
6820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6821 _ACEOF
6822
6823 fi
6824
6825 done
6826
6827 for ac_func in getpagesize
6828 do
6829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6830 echo "$as_me:6830: checking for $ac_func" >&5
6831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6832 if eval "test \"\${$as_ac_var+set}\" = set"; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835 cat >conftest.$ac_ext <<_ACEOF
6836 #line 6836 "configure"
6837 #include "confdefs.h"
6838 /* System header to define __stub macros and hopefully few prototypes,
6839 which can conflict with char $ac_func (); below. */
6840 #include <assert.h>
6841 /* Override any gcc2 internal prototype to avoid an error. */
6842 #ifdef __cplusplus
6843 extern "C"
6844 #endif
6845 /* We use char because int might match the return type of a gcc2
6846 builtin and then its argument prototype would still apply. */
6847 char $ac_func ();
6848 char (*f) ();
6849
6850 #ifdef F77_DUMMY_MAIN
6851 # ifdef __cplusplus
6852 extern "C"
6853 # endif
6854 int F77_DUMMY_MAIN() { return 1; }
6855 #endif
6856 int
6857 main ()
6858 {
6859 /* The GNU C library defines this for functions which it implements
6860 to always fail with ENOSYS. Some functions are actually named
6861 something starting with __ and the normal name is an alias. */
6862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6863 choke me
6864 #else
6865 f = $ac_func;
6866 #endif
6867
6868 ;
6869 return 0;
6870 }
6871 _ACEOF
6872 rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (eval echo "$as_me:6873: \"$ac_link\"") >&5
6874 (eval $ac_link) 2>&5
6875 ac_status=$?
6876 echo "$as_me:6876: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -s conftest$ac_exeext'
6879 { (eval echo "$as_me:6879: \"$ac_try\"") >&5
6880 (eval $ac_try) 2>&5
6881 ac_status=$?
6882 echo "$as_me:6882: \$? = $ac_status" >&5
6883 (exit $ac_status); }; }; then
6884 eval "$as_ac_var=yes"
6885 else
6886 echo "$as_me: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6888 eval "$as_ac_var=no"
6889 fi
6890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6891 fi
6892 echo "$as_me:6892: result: `eval echo '${'$as_ac_var'}'`" >&5
6893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6894 if test `eval echo '${'$as_ac_var'}'` = yes; then
6895 cat >>confdefs.h <<_ACEOF
6896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6897 _ACEOF
6898
6899 fi
6900 done
6901
6902 echo "$as_me:6902: checking for working mmap" >&5
6903 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6904 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 if test "$cross_compiling" = yes; then
6908 ac_cv_func_mmap_fixed_mapped=no
6909 else
6910 cat >conftest.$ac_ext <<_ACEOF
6911 #line 6911 "configure"
6912 #include "confdefs.h"
6913 $ac_includes_default
6914 /* Thanks to Mike Haertel and Jim Avera for this test.
6915 Here is a matrix of mmap possibilities:
6916 mmap private not fixed
6917 mmap private fixed at somewhere currently unmapped
6918 mmap private fixed at somewhere already mapped
6919 mmap shared not fixed
6920 mmap shared fixed at somewhere currently unmapped
6921 mmap shared fixed at somewhere already mapped
6922 For private mappings, we should verify that changes cannot be read()
6923 back from the file, nor mmap's back from the file at a different
6924 address. (There have been systems where private was not correctly
6925 implemented like the infamous i386 svr4.0, and systems where the
6926 VM page cache was not coherent with the file system buffer cache
6927 like early versions of FreeBSD and possibly contemporary NetBSD.)
6928 For shared mappings, we should conversely verify that changes get
6929 propogated back to all the places they're supposed to be.
6930
6931 Grep wants private fixed already mapped.
6932 The main things grep needs to know about mmap are:
6933 * does it exist and is it safe to write into the mmap'd area
6934 * how to use it (BSD variants) */
6935
6936 #include <fcntl.h>
6937 #include <sys/mman.h>
6938
6939 #if !STDC_HEADERS && !HAVE_STDLIB_H
6940 char *malloc ();
6941 #endif
6942
6943 /* This mess was copied from the GNU getpagesize.h. */
6944 #if !HAVE_GETPAGESIZE
6945 /* Assume that all systems that can run configure have sys/param.h. */
6946 # if !HAVE_SYS_PARAM_H
6947 # define HAVE_SYS_PARAM_H 1
6948 # endif
6949
6950 # ifdef _SC_PAGESIZE
6951 # define getpagesize() sysconf(_SC_PAGESIZE)
6952 # else /* no _SC_PAGESIZE */
6953 # if HAVE_SYS_PARAM_H
6954 # include <sys/param.h>
6955 # ifdef EXEC_PAGESIZE
6956 # define getpagesize() EXEC_PAGESIZE
6957 # else /* no EXEC_PAGESIZE */
6958 # ifdef NBPG
6959 # define getpagesize() NBPG * CLSIZE
6960 # ifndef CLSIZE
6961 # define CLSIZE 1
6962 # endif /* no CLSIZE */
6963 # else /* no NBPG */
6964 # ifdef NBPC
6965 # define getpagesize() NBPC
6966 # else /* no NBPC */
6967 # ifdef PAGESIZE
6968 # define getpagesize() PAGESIZE
6969 # endif /* PAGESIZE */
6970 # endif /* no NBPC */
6971 # endif /* no NBPG */
6972 # endif /* no EXEC_PAGESIZE */
6973 # else /* no HAVE_SYS_PARAM_H */
6974 # define getpagesize() 8192 /* punt totally */
6975 # endif /* no HAVE_SYS_PARAM_H */
6976 # endif /* no _SC_PAGESIZE */
6977
6978 #endif /* no HAVE_GETPAGESIZE */
6979
6980 int
6981 main ()
6982 {
6983 char *data, *data2, *data3;
6984 int i, pagesize;
6985 int fd;
6986
6987 pagesize = getpagesize ();
6988
6989 /* First, make a file with some known garbage in it. */
6990 data = (char *) malloc (pagesize);
6991 if (!data)
6992 exit (1);
6993 for (i = 0; i < pagesize; ++i)
6994 *(data + i) = rand ();
6995 umask (0);
6996 fd = creat ("conftest.mmap", 0600);
6997 if (fd < 0)
6998 exit (1);
6999 if (write (fd, data, pagesize) != pagesize)
7000 exit (1);
7001 close (fd);
7002
7003 /* Next, try to mmap the file at a fixed address which already has
7004 something else allocated at it. If we can, also make sure that
7005 we see the same garbage. */
7006 fd = open ("conftest.mmap", O_RDWR);
7007 if (fd < 0)
7008 exit (1);
7009 data2 = (char *) malloc (2 * pagesize);
7010 if (!data2)
7011 exit (1);
7012 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7013 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7014 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7015 exit (1);
7016 for (i = 0; i < pagesize; ++i)
7017 if (*(data + i) != *(data2 + i))
7018 exit (1);
7019
7020 /* Finally, make sure that changes to the mapped area do not
7021 percolate back to the file as seen by read(). (This is a bug on
7022 some variants of i386 svr4.0.) */
7023 for (i = 0; i < pagesize; ++i)
7024 *(data2 + i) = *(data2 + i) + 1;
7025 data3 = (char *) malloc (pagesize);
7026 if (!data3)
7027 exit (1);
7028 if (read (fd, data3, pagesize) != pagesize)
7029 exit (1);
7030 for (i = 0; i < pagesize; ++i)
7031 if (*(data + i) != *(data3 + i))
7032 exit (1);
7033 close (fd);
7034 exit (0);
7035 }
7036 _ACEOF
7037 rm -f conftest$ac_exeext
7038 if { (eval echo "$as_me:7038: \"$ac_link\"") >&5
7039 (eval $ac_link) 2>&5
7040 ac_status=$?
7041 echo "$as_me:7041: \$? = $ac_status" >&5
7042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7043 { (eval echo "$as_me:7043: \"$ac_try\"") >&5
7044 (eval $ac_try) 2>&5
7045 ac_status=$?
7046 echo "$as_me:7046: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 ac_cv_func_mmap_fixed_mapped=yes
7049 else
7050 echo "$as_me: program exited with status $ac_status" >&5
7051 echo "$as_me: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7053 ac_cv_func_mmap_fixed_mapped=no
7054 fi
7055 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7056 fi
7057 fi
7058 echo "$as_me:7058: result: $ac_cv_func_mmap_fixed_mapped" >&5
7059 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7060 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7061
7062 cat >>confdefs.h <<\_ACEOF
7063 #define HAVE_MMAP 1
7064 _ACEOF
7065
7066 fi
7067 rm -f conftest.mmap
7068
7069 echo "$as_me:7069: checking whether we are using the GNU C Library 2.1 or newer" >&5
7070 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7071 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074 cat >conftest.$ac_ext <<_ACEOF
7075 #line 7075 "configure"
7076 #include "confdefs.h"
7077
7078 #include <features.h>
7079 #ifdef __GNU_LIBRARY__
7080 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7081 Lucky GNU user
7082 #endif
7083 #endif
7084
7085 _ACEOF
7086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7087 egrep "Lucky GNU user" >/dev/null 2>&1; then
7088 ac_cv_gnu_library_2_1=yes
7089 else
7090 ac_cv_gnu_library_2_1=no
7091 fi
7092 rm -f conftest*
7093
7094 fi
7095 echo "$as_me:7095: result: $ac_cv_gnu_library_2_1" >&5
7096 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7097
7098 GLIBC21="$ac_cv_gnu_library_2_1"
7099
7100 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7101 stdlib.h string.h unistd.h sys/param.h
7102 do
7103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7105 echo "$as_me:7105: checking for $ac_header" >&5
7106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 fi
7110 echo "$as_me:7110: result: `eval echo '${'$as_ac_Header'}'`" >&5
7111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7112 else
7113 # Is the header compilable?
7114 echo "$as_me:7114: checking $ac_header usability" >&5
7115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7116 cat >conftest.$ac_ext <<_ACEOF
7117 #line 7117 "configure"
7118 #include "confdefs.h"
7119 $ac_includes_default
7120 #include <$ac_header>
7121 _ACEOF
7122 rm -f conftest.$ac_objext
7123 if { (eval echo "$as_me:7123: \"$ac_compile\"") >&5
7124 (eval $ac_compile) 2>&5
7125 ac_status=$?
7126 echo "$as_me:7126: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -s conftest.$ac_objext'
7129 { (eval echo "$as_me:7129: \"$ac_try\"") >&5
7130 (eval $ac_try) 2>&5
7131 ac_status=$?
7132 echo "$as_me:7132: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 ac_header_compiler=yes
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7138 ac_header_compiler=no
7139 fi
7140 rm -f conftest.$ac_objext conftest.$ac_ext
7141 echo "$as_me:7141: result: $ac_header_compiler" >&5
7142 echo "${ECHO_T}$ac_header_compiler" >&6
7143
7144 # Is the header present?
7145 echo "$as_me:7145: checking $ac_header presence" >&5
7146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7147 cat >conftest.$ac_ext <<_ACEOF
7148 #line 7148 "configure"
7149 #include "confdefs.h"
7150 #include <$ac_header>
7151 _ACEOF
7152 if { (eval echo "$as_me:7152: \"$ac_cpp conftest.$ac_ext\"") >&5
7153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7154 ac_status=$?
7155 egrep -v '^ *\+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:7158: \$? = $ac_status" >&5
7159 (exit $ac_status); } >/dev/null; then
7160 if test -s conftest.err; then
7161 ac_cpp_err=$ac_c_preproc_warn_flag
7162 else
7163 ac_cpp_err=
7164 fi
7165 else
7166 ac_cpp_err=yes
7167 fi
7168 if test -z "$ac_cpp_err"; then
7169 ac_header_preproc=yes
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 ac_header_preproc=no
7174 fi
7175 rm -f conftest.err conftest.$ac_ext
7176 echo "$as_me:7176: result: $ac_header_preproc" >&5
7177 echo "${ECHO_T}$ac_header_preproc" >&6
7178
7179 # So? What about this header?
7180 case $ac_header_compiler:$ac_header_preproc in
7181 yes:no )
7182 { echo "$as_me:7182: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7184 { echo "$as_me:7184: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7186 no:yes )
7187 { echo "$as_me:7187: WARNING: $ac_header: present but cannot be compiled." >&5
7188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7189 { echo "$as_me:7189: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7191 { echo "$as_me:7191: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7193 esac
7194 echo "$as_me:7194: checking for $ac_header" >&5
7195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199 eval "$as_ac_Header=$ac_header_preproc"
7200 fi
7201 echo "$as_me:7201: result: `eval echo '${'$as_ac_Header'}'`" >&5
7202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7203
7204 fi
7205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7206 cat >>confdefs.h <<_ACEOF
7207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7208 _ACEOF
7209
7210 fi
7211
7212 done
7213
7214 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7215 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7216 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7217 do
7218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7219 echo "$as_me:7219: checking for $ac_func" >&5
7220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7221 if eval "test \"\${$as_ac_var+set}\" = set"; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224 cat >conftest.$ac_ext <<_ACEOF
7225 #line 7225 "configure"
7226 #include "confdefs.h"
7227 /* System header to define __stub macros and hopefully few prototypes,
7228 which can conflict with char $ac_func (); below. */
7229 #include <assert.h>
7230 /* Override any gcc2 internal prototype to avoid an error. */
7231 #ifdef __cplusplus
7232 extern "C"
7233 #endif
7234 /* We use char because int might match the return type of a gcc2
7235 builtin and then its argument prototype would still apply. */
7236 char $ac_func ();
7237 char (*f) ();
7238
7239 #ifdef F77_DUMMY_MAIN
7240 # ifdef __cplusplus
7241 extern "C"
7242 # endif
7243 int F77_DUMMY_MAIN() { return 1; }
7244 #endif
7245 int
7246 main ()
7247 {
7248 /* The GNU C library defines this for functions which it implements
7249 to always fail with ENOSYS. Some functions are actually named
7250 something starting with __ and the normal name is an alias. */
7251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7252 choke me
7253 #else
7254 f = $ac_func;
7255 #endif
7256
7257 ;
7258 return 0;
7259 }
7260 _ACEOF
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (eval echo "$as_me:7262: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>&5
7264 ac_status=$?
7265 echo "$as_me:7265: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -s conftest$ac_exeext'
7268 { (eval echo "$as_me:7268: \"$ac_try\"") >&5
7269 (eval $ac_try) 2>&5
7270 ac_status=$?
7271 echo "$as_me:7271: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7273 eval "$as_ac_var=yes"
7274 else
7275 echo "$as_me: failed program was:" >&5
7276 cat conftest.$ac_ext >&5
7277 eval "$as_ac_var=no"
7278 fi
7279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7280 fi
7281 echo "$as_me:7281: result: `eval echo '${'$as_ac_var'}'`" >&5
7282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7283 if test `eval echo '${'$as_ac_var'}'` = yes; then
7284 cat >>confdefs.h <<_ACEOF
7285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7286 _ACEOF
7287
7288 fi
7289 done
7290
7291 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7292 if test "${with_libiconv_prefix+set}" = set; then
7293 withval="$with_libiconv_prefix"
7294
7295 for dir in `echo "$withval" | tr : ' '`; do
7296 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7297 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
7298 done
7299
7300 fi;
7301
7302 echo "$as_me:7302: checking for iconv" >&5
7303 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7304 if test "${am_cv_func_iconv+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307
7308 am_cv_func_iconv="no, consider installing GNU libiconv"
7309 am_cv_lib_iconv=no
7310 cat >conftest.$ac_ext <<_ACEOF
7311 #line 7311 "configure"
7312 #include "confdefs.h"
7313 #include <stdlib.h>
7314 #include <iconv.h>
7315 #ifdef F77_DUMMY_MAIN
7316 # ifdef __cplusplus
7317 extern "C"
7318 # endif
7319 int F77_DUMMY_MAIN() { return 1; }
7320 #endif
7321 int
7322 main ()
7323 {
7324 iconv_t cd = iconv_open("","");
7325 iconv(cd,NULL,NULL,NULL,NULL);
7326 iconv_close(cd);
7327 ;
7328 return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:7332: \"$ac_link\"") >&5
7333 (eval $ac_link) 2>&5
7334 ac_status=$?
7335 echo "$as_me:7335: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -s conftest$ac_exeext'
7338 { (eval echo "$as_me:7338: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:7341: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 am_cv_func_iconv=yes
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7347 fi
7348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7349 if test "$am_cv_func_iconv" != yes; then
7350 am_save_LIBS="$LIBS"
7351 LIBS="$LIBS -liconv"
7352 cat >conftest.$ac_ext <<_ACEOF
7353 #line 7353 "configure"
7354 #include "confdefs.h"
7355 #include <stdlib.h>
7356 #include <iconv.h>
7357 #ifdef F77_DUMMY_MAIN
7358 # ifdef __cplusplus
7359 extern "C"
7360 # endif
7361 int F77_DUMMY_MAIN() { return 1; }
7362 #endif
7363 int
7364 main ()
7365 {
7366 iconv_t cd = iconv_open("","");
7367 iconv(cd,NULL,NULL,NULL,NULL);
7368 iconv_close(cd);
7369 ;
7370 return 0;
7371 }
7372 _ACEOF
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (eval echo "$as_me:7374: \"$ac_link\"") >&5
7375 (eval $ac_link) 2>&5
7376 ac_status=$?
7377 echo "$as_me:7377: \$? = $ac_status" >&5
7378 (exit $ac_status); } &&
7379 { ac_try='test -s conftest$ac_exeext'
7380 { (eval echo "$as_me:7380: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 echo "$as_me:7383: \$? = $ac_status" >&5
7384 (exit $ac_status); }; }; then
7385 am_cv_lib_iconv=yes
7386 am_cv_func_iconv=yes
7387 else
7388 echo "$as_me: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 fi
7391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7392 LIBS="$am_save_LIBS"
7393 fi
7394
7395 fi
7396 echo "$as_me:7396: result: $am_cv_func_iconv" >&5
7397 echo "${ECHO_T}$am_cv_func_iconv" >&6
7398 if test "$am_cv_func_iconv" = yes; then
7399
7400 cat >>confdefs.h <<\_ACEOF
7401 #define HAVE_ICONV 1
7402 _ACEOF
7403
7404 echo "$as_me:7404: checking for iconv declaration" >&5
7405 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7406 if test "${am_cv_proto_iconv+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409
7410 cat >conftest.$ac_ext <<_ACEOF
7411 #line 7411 "configure"
7412 #include "confdefs.h"
7413
7414 #include <stdlib.h>
7415 #include <iconv.h>
7416 extern
7417 #ifdef __cplusplus
7418 "C"
7419 #endif
7420 #if defined(__STDC__) || defined(__cplusplus)
7421 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7422 #else
7423 size_t iconv();
7424 #endif
7425
7426 #ifdef F77_DUMMY_MAIN
7427 # ifdef __cplusplus
7428 extern "C"
7429 # endif
7430 int F77_DUMMY_MAIN() { return 1; }
7431 #endif
7432 int
7433 main ()
7434 {
7435
7436 ;
7437 return 0;
7438 }
7439 _ACEOF
7440 rm -f conftest.$ac_objext
7441 if { (eval echo "$as_me:7441: \"$ac_compile\"") >&5
7442 (eval $ac_compile) 2>&5
7443 ac_status=$?
7444 echo "$as_me:7444: \$? = $ac_status" >&5
7445 (exit $ac_status); } &&
7446 { ac_try='test -s conftest.$ac_objext'
7447 { (eval echo "$as_me:7447: \"$ac_try\"") >&5
7448 (eval $ac_try) 2>&5
7449 ac_status=$?
7450 echo "$as_me:7450: \$? = $ac_status" >&5
7451 (exit $ac_status); }; }; then
7452 am_cv_proto_iconv_arg1=""
7453 else
7454 echo "$as_me: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7456 am_cv_proto_iconv_arg1="const"
7457 fi
7458 rm -f conftest.$ac_objext conftest.$ac_ext
7459 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7460 fi
7461
7462 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7463 echo "$as_me:7463: result: ${ac_t:-
7464 }$am_cv_proto_iconv" >&5
7465 echo "${ECHO_T}${ac_t:-
7466 }$am_cv_proto_iconv" >&6
7467
7468 cat >>confdefs.h <<_ACEOF
7469 #define ICONV_CONST $am_cv_proto_iconv_arg1
7470 _ACEOF
7471
7472 fi
7473 LIBICONV=
7474 if test "$am_cv_lib_iconv" = yes; then
7475 LIBICONV="-liconv"
7476 fi
7477
7478 echo "$as_me:7478: checking for nl_langinfo and CODESET" >&5
7479 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7480 if test "${am_cv_langinfo_codeset+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483 cat >conftest.$ac_ext <<_ACEOF
7484 #line 7484 "configure"
7485 #include "confdefs.h"
7486 #include <langinfo.h>
7487 #ifdef F77_DUMMY_MAIN
7488 # ifdef __cplusplus
7489 extern "C"
7490 # endif
7491 int F77_DUMMY_MAIN() { return 1; }
7492 #endif
7493 int
7494 main ()
7495 {
7496 char* cs = nl_langinfo(CODESET);
7497 ;
7498 return 0;
7499 }
7500 _ACEOF
7501 rm -f conftest.$ac_objext conftest$ac_exeext
7502 if { (eval echo "$as_me:7502: \"$ac_link\"") >&5
7503 (eval $ac_link) 2>&5
7504 ac_status=$?
7505 echo "$as_me:7505: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try='test -s conftest$ac_exeext'
7508 { (eval echo "$as_me:7508: \"$ac_try\"") >&5
7509 (eval $ac_try) 2>&5
7510 ac_status=$?
7511 echo "$as_me:7511: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 am_cv_langinfo_codeset=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7517 am_cv_langinfo_codeset=no
7518 fi
7519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7520
7521 fi
7522 echo "$as_me:7522: result: $am_cv_langinfo_codeset" >&5
7523 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7524 if test $am_cv_langinfo_codeset = yes; then
7525
7526 cat >>confdefs.h <<\_ACEOF
7527 #define HAVE_LANGINFO_CODESET 1
7528 _ACEOF
7529
7530 fi
7531
7532 if test $ac_cv_header_locale_h = yes; then
7533 echo "$as_me:7533: checking for LC_MESSAGES" >&5
7534 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7535 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538 cat >conftest.$ac_ext <<_ACEOF
7539 #line 7539 "configure"
7540 #include "confdefs.h"
7541 #include <locale.h>
7542 #ifdef F77_DUMMY_MAIN
7543 # ifdef __cplusplus
7544 extern "C"
7545 # endif
7546 int F77_DUMMY_MAIN() { return 1; }
7547 #endif
7548 int
7549 main ()
7550 {
7551 return LC_MESSAGES
7552 ;
7553 return 0;
7554 }
7555 _ACEOF
7556 rm -f conftest.$ac_objext conftest$ac_exeext
7557 if { (eval echo "$as_me:7557: \"$ac_link\"") >&5
7558 (eval $ac_link) 2>&5
7559 ac_status=$?
7560 echo "$as_me:7560: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try='test -s conftest$ac_exeext'
7563 { (eval echo "$as_me:7563: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 echo "$as_me:7566: \$? = $ac_status" >&5
7567 (exit $ac_status); }; }; then
7568 am_cv_val_LC_MESSAGES=yes
7569 else
7570 echo "$as_me: failed program was:" >&5
7571 cat conftest.$ac_ext >&5
7572 am_cv_val_LC_MESSAGES=no
7573 fi
7574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7575 fi
7576 echo "$as_me:7576: result: $am_cv_val_LC_MESSAGES" >&5
7577 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7578 if test $am_cv_val_LC_MESSAGES = yes; then
7579
7580 cat >>confdefs.h <<\_ACEOF
7581 #define HAVE_LC_MESSAGES 1
7582 _ACEOF
7583
7584 fi
7585 fi
7586 echo "$as_me:7586: checking whether NLS is requested" >&5
7587 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7588 # Check whether --enable-nls or --disable-nls was given.
7589 if test "${enable_nls+set}" = set; then
7590 enableval="$enable_nls"
7591 USE_NLS=$enableval
7592 else
7593 USE_NLS=yes
7594 fi;
7595 echo "$as_me:7595: result: $USE_NLS" >&5
7596 echo "${ECHO_T}$USE_NLS" >&6
7597
7598 BUILD_INCLUDED_LIBINTL=no
7599 USE_INCLUDED_LIBINTL=no
7600 INTLLIBS=
7601
7602 if test "$USE_NLS" = "yes"; then
7603
7604 cat >>confdefs.h <<\_ACEOF
7605 #define ENABLE_NLS 1
7606 _ACEOF
7607
7608 echo "$as_me:7608: checking whether included gettext is requested" >&5
7609 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7610
7611 # Check whether --with-included-gettext or --without-included-gettext was given.
7612 if test "${with_included_gettext+set}" = set; then
7613 withval="$with_included_gettext"
7614 nls_cv_force_use_gnu_gettext=$withval
7615 else
7616 nls_cv_force_use_gnu_gettext=no
7617 fi;
7618 echo "$as_me:7618: result: $nls_cv_force_use_gnu_gettext" >&5
7619 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7620
7621 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7622 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7623 CATOBJEXT=NONE
7624
7625 if test "${ac_cv_header_libintl_h+set}" = set; then
7626 echo "$as_me:7626: checking for libintl.h" >&5
7627 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7628 if test "${ac_cv_header_libintl_h+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 fi
7631 echo "$as_me:7631: result: $ac_cv_header_libintl_h" >&5
7632 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7633 else
7634 # Is the header compilable?
7635 echo "$as_me:7635: checking libintl.h usability" >&5
7636 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7637 cat >conftest.$ac_ext <<_ACEOF
7638 #line 7638 "configure"
7639 #include "confdefs.h"
7640 $ac_includes_default
7641 #include <libintl.h>
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:7644: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>&5
7646 ac_status=$?
7647 echo "$as_me:7647: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:7650: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:7653: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 ac_header_compiler=yes
7656 else
7657 echo "$as_me: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7659 ac_header_compiler=no
7660 fi
7661 rm -f conftest.$ac_objext conftest.$ac_ext
7662 echo "$as_me:7662: result: $ac_header_compiler" >&5
7663 echo "${ECHO_T}$ac_header_compiler" >&6
7664
7665 # Is the header present?
7666 echo "$as_me:7666: checking libintl.h presence" >&5
7667 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7668 cat >conftest.$ac_ext <<_ACEOF
7669 #line 7669 "configure"
7670 #include "confdefs.h"
7671 #include <libintl.h>
7672 _ACEOF
7673 if { (eval echo "$as_me:7673: \"$ac_cpp conftest.$ac_ext\"") >&5
7674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7675 ac_status=$?
7676 egrep -v '^ *\+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:7679: \$? = $ac_status" >&5
7680 (exit $ac_status); } >/dev/null; then
7681 if test -s conftest.err; then
7682 ac_cpp_err=$ac_c_preproc_warn_flag
7683 else
7684 ac_cpp_err=
7685 fi
7686 else
7687 ac_cpp_err=yes
7688 fi
7689 if test -z "$ac_cpp_err"; then
7690 ac_header_preproc=yes
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7694 ac_header_preproc=no
7695 fi
7696 rm -f conftest.err conftest.$ac_ext
7697 echo "$as_me:7697: result: $ac_header_preproc" >&5
7698 echo "${ECHO_T}$ac_header_preproc" >&6
7699
7700 # So? What about this header?
7701 case $ac_header_compiler:$ac_header_preproc in
7702 yes:no )
7703 { echo "$as_me:7703: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7704 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7705 { echo "$as_me:7705: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7706 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7707 no:yes )
7708 { echo "$as_me:7708: WARNING: libintl.h: present but cannot be compiled." >&5
7709 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7710 { echo "$as_me:7710: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7711 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7712 { echo "$as_me:7712: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7713 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7714 esac
7715 echo "$as_me:7715: checking for libintl.h" >&5
7716 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7717 if test "${ac_cv_header_libintl_h+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 ac_cv_header_libintl_h=$ac_header_preproc
7721 fi
7722 echo "$as_me:7722: result: $ac_cv_header_libintl_h" >&5
7723 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7724
7725 fi
7726 if test $ac_cv_header_libintl_h = yes; then
7727 echo "$as_me:7727: checking for GNU gettext in libc" >&5
7728 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7729 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732 cat >conftest.$ac_ext <<_ACEOF
7733 #line 7733 "configure"
7734 #include "confdefs.h"
7735 #include <libintl.h>
7736 extern int _nl_msg_cat_cntr;
7737 #ifdef F77_DUMMY_MAIN
7738 # ifdef __cplusplus
7739 extern "C"
7740 # endif
7741 int F77_DUMMY_MAIN() { return 1; }
7742 #endif
7743 int
7744 main ()
7745 {
7746 bindtextdomain ("", "");
7747 return (int) gettext ("") + _nl_msg_cat_cntr
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 rm -f conftest.$ac_objext conftest$ac_exeext
7753 if { (eval echo "$as_me:7753: \"$ac_link\"") >&5
7754 (eval $ac_link) 2>&5
7755 ac_status=$?
7756 echo "$as_me:7756: \$? = $ac_status" >&5
7757 (exit $ac_status); } &&
7758 { ac_try='test -s conftest$ac_exeext'
7759 { (eval echo "$as_me:7759: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:7762: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7764 gt_cv_func_gnugettext1_libc=yes
7765 else
7766 echo "$as_me: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7768 gt_cv_func_gnugettext1_libc=no
7769 fi
7770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7771 fi
7772 echo "$as_me:7772: result: $gt_cv_func_gnugettext1_libc" >&5
7773 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7774
7775 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7776 echo "$as_me:7776: checking for GNU gettext in libintl" >&5
7777 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7778 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781 gt_save_LIBS="$LIBS"
7782 LIBS="$LIBS -lintl $LIBICONV"
7783 cat >conftest.$ac_ext <<_ACEOF
7784 #line 7784 "configure"
7785 #include "confdefs.h"
7786 #include <libintl.h>
7787 extern int _nl_msg_cat_cntr;
7788 #ifdef F77_DUMMY_MAIN
7789 # ifdef __cplusplus
7790 extern "C"
7791 # endif
7792 int F77_DUMMY_MAIN() { return 1; }
7793 #endif
7794 int
7795 main ()
7796 {
7797 bindtextdomain ("", "");
7798 return (int) gettext ("") + _nl_msg_cat_cntr
7799 ;
7800 return 0;
7801 }
7802 _ACEOF
7803 rm -f conftest.$ac_objext conftest$ac_exeext
7804 if { (eval echo "$as_me:7804: \"$ac_link\"") >&5
7805 (eval $ac_link) 2>&5
7806 ac_status=$?
7807 echo "$as_me:7807: \$? = $ac_status" >&5
7808 (exit $ac_status); } &&
7809 { ac_try='test -s conftest$ac_exeext'
7810 { (eval echo "$as_me:7810: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:7813: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 gt_cv_func_gnugettext1_libintl=yes
7816 else
7817 echo "$as_me: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7819 gt_cv_func_gnugettext1_libintl=no
7820 fi
7821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7822 LIBS="$gt_save_LIBS"
7823 fi
7824 echo "$as_me:7824: result: $gt_cv_func_gnugettext1_libintl" >&5
7825 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7826 fi
7827
7828 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7829 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7830 && test "$PACKAGE" != gettext; }; then
7831
7832 cat >>confdefs.h <<\_ACEOF
7833 #define HAVE_GETTEXT 1
7834 _ACEOF
7835
7836 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7837 INTLLIBS="-lintl $LIBICONV"
7838 fi
7839
7840 gt_save_LIBS="$LIBS"
7841 LIBS="$LIBS $INTLLIBS"
7842
7843 for ac_func in dcgettext
7844 do
7845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7846 echo "$as_me:7846: checking for $ac_func" >&5
7847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_var+set}\" = set"; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851 cat >conftest.$ac_ext <<_ACEOF
7852 #line 7852 "configure"
7853 #include "confdefs.h"
7854 /* System header to define __stub macros and hopefully few prototypes,
7855 which can conflict with char $ac_func (); below. */
7856 #include <assert.h>
7857 /* Override any gcc2 internal prototype to avoid an error. */
7858 #ifdef __cplusplus
7859 extern "C"
7860 #endif
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7863 char $ac_func ();
7864 char (*f) ();
7865
7866 #ifdef F77_DUMMY_MAIN
7867 # ifdef __cplusplus
7868 extern "C"
7869 # endif
7870 int F77_DUMMY_MAIN() { return 1; }
7871 #endif
7872 int
7873 main ()
7874 {
7875 /* The GNU C library defines this for functions which it implements
7876 to always fail with ENOSYS. Some functions are actually named
7877 something starting with __ and the normal name is an alias. */
7878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7879 choke me
7880 #else
7881 f = $ac_func;
7882 #endif
7883
7884 ;
7885 return 0;
7886 }
7887 _ACEOF
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (eval echo "$as_me:7889: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>&5
7891 ac_status=$?
7892 echo "$as_me:7892: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:7895: \"$ac_try\"") >&5
7896 (eval $ac_try) 2>&5
7897 ac_status=$?
7898 echo "$as_me:7898: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 eval "$as_ac_var=yes"
7901 else
7902 echo "$as_me: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7904 eval "$as_ac_var=no"
7905 fi
7906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7907 fi
7908 echo "$as_me:7908: result: `eval echo '${'$as_ac_var'}'`" >&5
7909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7910 if test `eval echo '${'$as_ac_var'}'` = yes; then
7911 cat >>confdefs.h <<_ACEOF
7912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7913 _ACEOF
7914
7915 fi
7916 done
7917
7918 LIBS="$gt_save_LIBS"
7919
7920 # Extract the first word of "msgfmt", so it can be a program name with args.
7921 set dummy msgfmt; ac_word=$2
7922 echo "$as_me:7922: checking for $ac_word" >&5
7923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7924 if test "${ac_cv_path_MSGFMT+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927 case "$MSGFMT" in
7928 /*)
7929 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7930 ;;
7931 *)
7932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7933 for ac_dir in $PATH; do
7934 test -z "$ac_dir" && ac_dir=.
7935 if test -f $ac_dir/$ac_word; then
7936 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7937 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7938 break
7939 fi
7940 fi
7941 done
7942 IFS="$ac_save_ifs"
7943 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7944 ;;
7945 esac
7946 fi
7947 MSGFMT="$ac_cv_path_MSGFMT"
7948 if test "$MSGFMT" != ":"; then
7949 echo "$as_me:7949: result: $MSGFMT" >&5
7950 echo "${ECHO_T}$MSGFMT" >&6
7951 else
7952 echo "$as_me:7952: result: no" >&5
7953 echo "${ECHO_T}no" >&6
7954 fi
7955
7956 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7957 set dummy gmsgfmt; ac_word=$2
7958 echo "$as_me:7958: checking for $ac_word" >&5
7959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7960 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963 case $GMSGFMT in
7964 [\\/]* | ?:[\\/]*)
7965 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7966 ;;
7967 *)
7968 ac_save_IFS=$IFS; IFS=$ac_path_separator
7969 ac_dummy="$PATH"
7970 for ac_dir in $ac_dummy; do
7971 IFS=$ac_save_IFS
7972 test -z "$ac_dir" && ac_dir=.
7973 if $as_executable_p "$ac_dir/$ac_word"; then
7974 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7975 echo "$as_me:7975: found $ac_dir/$ac_word" >&5
7976 break
7977 fi
7978 done
7979
7980 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7981 ;;
7982 esac
7983 fi
7984 GMSGFMT=$ac_cv_path_GMSGFMT
7985
7986 if test -n "$GMSGFMT"; then
7987 echo "$as_me:7987: result: $GMSGFMT" >&5
7988 echo "${ECHO_T}$GMSGFMT" >&6
7989 else
7990 echo "$as_me:7990: result: no" >&5
7991 echo "${ECHO_T}no" >&6
7992 fi
7993
7994 # Extract the first word of "xgettext", so it can be a program name with args.
7995 set dummy xgettext; ac_word=$2
7996 echo "$as_me:7996: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7998 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001 case "$XGETTEXT" in
8002 /*)
8003 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8004 ;;
8005 *)
8006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8007 for ac_dir in $PATH; do
8008 test -z "$ac_dir" && ac_dir=.
8009 if test -f $ac_dir/$ac_word; then
8010 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8011 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8012 break
8013 fi
8014 fi
8015 done
8016 IFS="$ac_save_ifs"
8017 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8018 ;;
8019 esac
8020 fi
8021 XGETTEXT="$ac_cv_path_XGETTEXT"
8022 if test "$XGETTEXT" != ":"; then
8023 echo "$as_me:8023: result: $XGETTEXT" >&5
8024 echo "${ECHO_T}$XGETTEXT" >&6
8025 else
8026 echo "$as_me:8026: result: no" >&5
8027 echo "${ECHO_T}no" >&6
8028 fi
8029
8030 CATOBJEXT=.gmo
8031 fi
8032
8033 fi
8034
8035 if test "$CATOBJEXT" = "NONE"; then
8036 nls_cv_use_gnu_gettext=yes
8037 fi
8038 fi
8039
8040 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8041 INTLOBJS="\$(GETTOBJS)"
8042 # Extract the first word of "msgfmt", so it can be a program name with args.
8043 set dummy msgfmt; ac_word=$2
8044 echo "$as_me:8044: checking for $ac_word" >&5
8045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8046 if test "${ac_cv_path_MSGFMT+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049 case "$MSGFMT" in
8050 /*)
8051 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8052 ;;
8053 *)
8054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8055 for ac_dir in $PATH; do
8056 test -z "$ac_dir" && ac_dir=.
8057 if test -f $ac_dir/$ac_word; then
8058 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8059 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8060 break
8061 fi
8062 fi
8063 done
8064 IFS="$ac_save_ifs"
8065 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8066 ;;
8067 esac
8068 fi
8069 MSGFMT="$ac_cv_path_MSGFMT"
8070 if test "$MSGFMT" != ":"; then
8071 echo "$as_me:8071: result: $MSGFMT" >&5
8072 echo "${ECHO_T}$MSGFMT" >&6
8073 else
8074 echo "$as_me:8074: result: no" >&5
8075 echo "${ECHO_T}no" >&6
8076 fi
8077
8078 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8079 set dummy gmsgfmt; ac_word=$2
8080 echo "$as_me:8080: checking for $ac_word" >&5
8081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8082 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085 case $GMSGFMT in
8086 [\\/]* | ?:[\\/]*)
8087 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8088 ;;
8089 *)
8090 ac_save_IFS=$IFS; IFS=$ac_path_separator
8091 ac_dummy="$PATH"
8092 for ac_dir in $ac_dummy; do
8093 IFS=$ac_save_IFS
8094 test -z "$ac_dir" && ac_dir=.
8095 if $as_executable_p "$ac_dir/$ac_word"; then
8096 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8097 echo "$as_me:8097: found $ac_dir/$ac_word" >&5
8098 break
8099 fi
8100 done
8101
8102 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8103 ;;
8104 esac
8105 fi
8106 GMSGFMT=$ac_cv_path_GMSGFMT
8107
8108 if test -n "$GMSGFMT"; then
8109 echo "$as_me:8109: result: $GMSGFMT" >&5
8110 echo "${ECHO_T}$GMSGFMT" >&6
8111 else
8112 echo "$as_me:8112: result: no" >&5
8113 echo "${ECHO_T}no" >&6
8114 fi
8115
8116 # Extract the first word of "xgettext", so it can be a program name with args.
8117 set dummy xgettext; ac_word=$2
8118 echo "$as_me:8118: checking for $ac_word" >&5
8119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8120 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123 case "$XGETTEXT" in
8124 /*)
8125 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8126 ;;
8127 *)
8128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8129 for ac_dir in $PATH; do
8130 test -z "$ac_dir" && ac_dir=.
8131 if test -f $ac_dir/$ac_word; then
8132 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8133 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8134 break
8135 fi
8136 fi
8137 done
8138 IFS="$ac_save_ifs"
8139 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8140 ;;
8141 esac
8142 fi
8143 XGETTEXT="$ac_cv_path_XGETTEXT"
8144 if test "$XGETTEXT" != ":"; then
8145 echo "$as_me:8145: result: $XGETTEXT" >&5
8146 echo "${ECHO_T}$XGETTEXT" >&6
8147 else
8148 echo "$as_me:8148: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8150 fi
8151
8152 BUILD_INCLUDED_LIBINTL=yes
8153 USE_INCLUDED_LIBINTL=yes
8154 CATOBJEXT=.gmo
8155 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
8156 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8157 fi
8158
8159 if test "$GMSGFMT" != ":"; then
8160 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
8161 : ;
8162 else
8163 echo "$as_me:8163: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8164 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8165 GMSGFMT=":"
8166 fi
8167 fi
8168
8169 if test "$XGETTEXT" != ":"; then
8170 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
8171 : ;
8172 else
8173 echo "$as_me:8173: result: found xgettext program is not GNU xgettext; ignore it" >&5
8174 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8175 XGETTEXT=":"
8176 fi
8177 fi
8178
8179 POSUB=po
8180 fi
8181 ac_config_commands="$ac_config_commands default-2"
8182
8183 if test "$PACKAGE" = gettext; then
8184 BUILD_INCLUDED_LIBINTL=yes
8185 fi
8186
8187 for ac_prog in bison
8188 do
8189 # Extract the first word of "$ac_prog", so it can be a program name with args.
8190 set dummy $ac_prog; ac_word=$2
8191 echo "$as_me:8191: checking for $ac_word" >&5
8192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8193 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196 if test -n "$INTLBISON"; then
8197 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8198 else
8199 ac_save_IFS=$IFS; IFS=$ac_path_separator
8200 ac_dummy="$PATH"
8201 for ac_dir in $ac_dummy; do
8202 IFS=$ac_save_IFS
8203 test -z "$ac_dir" && ac_dir=.
8204 $as_executable_p "$ac_dir/$ac_word" || continue
8205 ac_cv_prog_INTLBISON="$ac_prog"
8206 echo "$as_me:8206: found $ac_dir/$ac_word" >&5
8207 break
8208 done
8209
8210 fi
8211 fi
8212 INTLBISON=$ac_cv_prog_INTLBISON
8213 if test -n "$INTLBISON"; then
8214 echo "$as_me:8214: result: $INTLBISON" >&5
8215 echo "${ECHO_T}$INTLBISON" >&6
8216 else
8217 echo "$as_me:8217: result: no" >&5
8218 echo "${ECHO_T}no" >&6
8219 fi
8220
8221 test -n "$INTLBISON" && break
8222 done
8223
8224 if test -z "$INTLBISON"; then
8225 ac_verc_fail=yes
8226 else
8227 echo "$as_me:8227: checking version of bison" >&5
8228 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8229 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8230 case $ac_prog_version in
8231 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8232 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8233 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8234 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8235 esac
8236 echo "$as_me:8236: result: $ac_prog_version" >&5
8237 echo "${ECHO_T}$ac_prog_version" >&6
8238 fi
8239 if test $ac_verc_fail = yes; then
8240 INTLBISON=:
8241 fi
8242
8243 for lang in $ALL_LINGUAS; do
8244 GMOFILES="$GMOFILES $lang.gmo"
8245 POFILES="$POFILES $lang.po"
8246 done
8247
8248 nls_cv_header_intl=
8249 nls_cv_header_libgt=
8250
8251 DATADIRNAME=share
8252
8253 INSTOBJEXT=.mo
8254
8255 GENCAT=gencat
8256
8257 if test "x$CATOBJEXT" != "x"; then
8258 if test "x$ALL_LINGUAS" = "x"; then
8259 LINGUAS=
8260 else
8261 echo "$as_me:8261: checking for catalogs to be installed" >&5
8262 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8263 NEW_LINGUAS=
8264 for presentlang in $ALL_LINGUAS; do
8265 useit=no
8266 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
8267 # Use the presentlang catalog if desiredlang is
8268 # a. equal to presentlang, or
8269 # b. a variant of presentlang (because in this case,
8270 # presentlang can be used as a fallback for messages
8271 # which are not translated in the desiredlang catalog).
8272 case "$desiredlang" in
8273 "$presentlang"*) useit=yes;;
8274 esac
8275 done
8276 if test $useit = yes; then
8277 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8278 fi
8279 done
8280 LINGUAS=$NEW_LINGUAS
8281 echo "$as_me:8281: result: $LINGUAS" >&5
8282 echo "${ECHO_T}$LINGUAS" >&6
8283 fi
8284
8285 if test -n "$LINGUAS"; then
8286 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8287 fi
8288 fi
8289
8290 MKINSTALLDIRS=
8291 if test -n "$ac_aux_dir"; then
8292 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8293 fi
8294 if test -z "$MKINSTALLDIRS"; then
8295 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8296 fi
8297
8298 INTL_LIBTOOL_SUFFIX_PREFIX=
8299
8300 # This is necessary so that .o files in LIBOBJS are also built via
8301 # the ANSI2KNR-filtering rules.
8302 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8303
8304 ac_config_files="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8305 cat >confcache <<\_ACEOF
8306 # This file is a shell script that caches the results of configure
8307 # tests run on this system so they can be shared between configure
8308 # scripts and configure runs, see configure's option --config-cache.
8309 # It is not useful on other systems. If it contains results you don't
8310 # want to keep, you may remove or edit it.
8311 #
8312 # config.status only pays attention to the cache file if you give it
8313 # the --recheck option to rerun configure.
8314 #
8315 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8317 # following values.
8318
8319 _ACEOF
8320
8321 # The following way of writing the cache mishandles newlines in values,
8322 # but we know of no workaround that is simple, portable, and efficient.
8323 # So, don't put newlines in cache variables' values.
8324 # Ultrix sh set writes to stderr and can't be redirected directly,
8325 # and sets the high bit in the cache file unless we assign to the vars.
8326 {
8327 (set) 2>&1 |
8328 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8329 *ac_space=\ *)
8330 # `set' does not quote correctly, so add quotes (double-quote
8331 # substitution turns \\\\ into \\, and sed turns \\ into \).
8332 sed -n \
8333 "s/'/'\\\\''/g;
8334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8335 ;;
8336 *)
8337 # `set' quotes correctly as required by POSIX, so do not add quotes.
8338 sed -n \
8339 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8340 ;;
8341 esac;
8342 } |
8343 sed '
8344 t clear
8345 : clear
8346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8347 t end
8348 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8349 : end' >>confcache
8350 if cmp -s $cache_file confcache; then :; else
8351 if test -w $cache_file; then
8352 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8353 cat confcache >$cache_file
8354 else
8355 echo "not updating unwritable cache $cache_file"
8356 fi
8357 fi
8358 rm -f confcache
8359
8360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8361 # Let make expand exec_prefix.
8362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8363
8364 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8365 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8366 # trailing colons and then remove the whole line if VPATH becomes empty
8367 # (actually we leave an empty line to preserve line numbers).
8368 if test "x$srcdir" = x.; then
8369 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8370 s/:*\$(srcdir):*/:/;
8371 s/:*\${srcdir}:*/:/;
8372 s/:*@srcdir@:*/:/;
8373 s/^\([^=]*=[ ]*\):*/\1/;
8374 s/:*$//;
8375 s/^[^=]*=[ ]*$//;
8376 }'
8377 fi
8378
8379 DEFS=-DHAVE_CONFIG_H
8380
8381 : ${CONFIG_STATUS=./config.status}
8382 ac_clean_files_save=$ac_clean_files
8383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8384 { echo "$as_me:8384: creating $CONFIG_STATUS" >&5
8385 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8386 cat >$CONFIG_STATUS <<_ACEOF
8387 #! $SHELL
8388 # Generated automatically by $as_me.
8389 # Run this file to recreate the current configuration.
8390 # Compiler output produced by configure, useful for debugging
8391 # configure, is in config.log if it exists.
8392
8393 debug=false
8394 SHELL=\${CONFIG_SHELL-$SHELL}
8395 _ACEOF
8396
8397 cat >>$CONFIG_STATUS <<\_ACEOF
8398
8399 ## --------------------- ##
8400 ## M4sh Initialization. ##
8401 ## --------------------- ##
8402
8403 # Be Bourne compatible
8404 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8405 emulate sh
8406 NULLCMD=:
8407 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8408 set -o posix
8409 fi
8410
8411 # Name of the executable.
8412 as_me=`echo "$0" |sed 's,.*[\\/],,'`
8413
8414 if expr a : '\(a\)' >/dev/null 2>&1; then
8415 as_expr=expr
8416 else
8417 as_expr=false
8418 fi
8419
8420 rm -f conf$$ conf$$.exe conf$$.file
8421 echo >conf$$.file
8422 if ln -s conf$$.file conf$$ 2>/dev/null; then
8423 # We could just check for DJGPP; but this test a) works b) is more generic
8424 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8425 if test -f conf$$.exe; then
8426 # Don't use ln at all; we don't have any links
8427 as_ln_s='cp -p'
8428 else
8429 as_ln_s='ln -s'
8430 fi
8431 elif ln conf$$.file conf$$ 2>/dev/null; then
8432 as_ln_s=ln
8433 else
8434 as_ln_s='cp -p'
8435 fi
8436 rm -f conf$$ conf$$.exe conf$$.file
8437
8438 as_executable_p="test -f"
8439
8440 # Support unset when possible.
8441 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8442 as_unset=unset
8443 else
8444 as_unset=false
8445 fi
8446
8447 # NLS nuisances.
8448 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8449 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8450 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8451 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8452 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8453 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8454 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8455 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8456
8457 # IFS
8458 # We need space, tab and new line, in precisely that order.
8459 as_nl='
8460 '
8461 IFS=" $as_nl"
8462
8463 # CDPATH.
8464 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8465
8466 exec 6>&1
8467
8468 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8469 # report actual input values of CONFIG_FILES etc. instead of their
8470 # values after options handling. Logging --version etc. is OK.
8471 exec 5>>config.log
8472 cat >&5 <<_CSEOF
8473
8474 `sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8475 ## Running \$as_me. ##
8476 _ASBOX`
8477
8478 This file was extended by GNU Bison $as_me 1.28e, which was
8479 generated by GNU Autoconf 2.52c. Invocation command line was
8480
8481 CONFIG_FILES = $CONFIG_FILES
8482 CONFIG_HEADERS = $CONFIG_HEADERS
8483 CONFIG_LINKS = $CONFIG_LINKS
8484 CONFIG_COMMANDS = $CONFIG_COMMANDS
8485 $ $@
8486 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8487
8488 _CSEOF
8489 _ACEOF
8490
8491 # Files that config.status was made for.
8492 if test -n "$ac_config_files"; then
8493 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8494 fi
8495
8496 if test -n "$ac_config_headers"; then
8497 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8498 fi
8499
8500 if test -n "$ac_config_links"; then
8501 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8502 fi
8503
8504 if test -n "$ac_config_commands"; then
8505 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8506 fi
8507
8508 cat >>$CONFIG_STATUS <<\_ACEOF
8509
8510 ac_cs_usage="\
8511 \`$as_me' instantiates files from templates according to the
8512 current configuration.
8513
8514 Usage: $0 [OPTIONS] [FILE]...
8515
8516 -h, --help print this help, then exit
8517 -V, --version print version number, then exit
8518 -d, --debug don't remove temporary files
8519 --recheck update $as_me by reconfiguring in the same conditions
8520 --file=FILE[:TEMPLATE]
8521 instantiate the configuration file FILE
8522 --header=FILE[:TEMPLATE]
8523 instantiate the configuration header FILE
8524
8525 Configuration files:
8526 $config_files
8527
8528 Configuration headers:
8529 $config_headers
8530
8531 Configuration commands:
8532 $config_commands
8533
8534 Report bugs to <bug-autoconf@gnu.org>."
8535 _ACEOF
8536
8537 cat >>$CONFIG_STATUS <<_ACEOF
8538 ac_cs_version="\\
8539 GNU Bison config.status 1.28e
8540 configured by $0, generated by GNU Autoconf 2.52c,
8541 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8542
8543 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8544 Free Software Foundation, Inc.
8545 This config.status script is free software; the Free Software Foundation
8546 gives unlimited permission to copy, distribute and modify it."
8547 srcdir=$srcdir
8548 INSTALL="$INSTALL"
8549 _ACEOF
8550
8551 cat >>$CONFIG_STATUS <<\_ACEOF
8552 # If no file are specified by the user, then we need to provide default
8553 # value. By we need to know if files were specified by the user.
8554 ac_need_defaults=:
8555 while test $# != 0
8556 do
8557 case $1 in
8558 --*=*)
8559 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8560 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8561 shift
8562 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8563 shift
8564 ;;
8565 -*);;
8566 *) # This is not an option, so the user has probably given explicit
8567 # arguments.
8568 ac_need_defaults=false;;
8569 esac
8570
8571 case $1 in
8572 # Handling of the options.
8573 _ACEOF
8574 cat >>$CONFIG_STATUS <<_ACEOF
8575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8576 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8577 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8578 _ACEOF
8579 cat >>$CONFIG_STATUS <<\_ACEOF
8580 --version | --vers* | -V )
8581 echo "$ac_cs_version"; exit 0 ;;
8582 --he | --h)
8583 # Conflict between --help and --header
8584 { { echo "$as_me:8584: error: ambiguous option: $1
8585 Try \`$0 --help' for more information." >&5
8586 echo "$as_me: error: ambiguous option: $1
8587 Try \`$0 --help' for more information." >&2;}
8588 { (exit 1); exit 1; }; };;
8589 --help | --hel | -h )
8590 echo "$ac_cs_usage"; exit 0 ;;
8591 --debug | --d* | -d )
8592 debug=: ;;
8593 --file | --fil | --fi | --f )
8594 shift
8595 CONFIG_FILES="$CONFIG_FILES $1"
8596 ac_need_defaults=false;;
8597 --header | --heade | --head | --hea )
8598 shift
8599 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8600 ac_need_defaults=false;;
8601
8602 # This is an error.
8603 -*) { { echo "$as_me:8603: error: unrecognized option: $1
8604 Try \`$0 --help' for more information." >&5
8605 echo "$as_me: error: unrecognized option: $1
8606 Try \`$0 --help' for more information." >&2;}
8607 { (exit 1); exit 1; }; } ;;
8608
8609 *) ac_config_targets="$ac_config_targets $1" ;;
8610
8611 esac
8612 shift
8613 done
8614
8615 _ACEOF
8616
8617 cat >>$CONFIG_STATUS <<_ACEOF
8618 #
8619 # INIT-COMMANDS section.
8620 #
8621
8622 at_package='$PACKAGE_NAME'
8623 at_version='$PACKAGE_VERSION'
8624 at_bugreport='$PACKAGE_BUGREPORT'
8625
8626 at_n='$ECHO_N'
8627 at_c='$ECHO_C'
8628
8629 at_shell='$SHELL'
8630 at_path_separator='$PATH_SEPARATOR'
8631
8632 AMDEP_TRUE="$AMDEP_TRUE"
8633 ac_aux_dir="$ac_aux_dir"
8634
8635 _ACEOF
8636
8637 cat >>$CONFIG_STATUS <<\_ACEOF
8638 for ac_config_target in $ac_config_targets
8639 do
8640 case "$ac_config_target" in
8641 # Handling of arguments.
8642 "tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
8643 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8644 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
8645 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8646 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8647 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8648 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8649 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8650 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
8651 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8652 "tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
8653 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8654 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
8655 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
8656 *) { { echo "$as_me:8656: error: invalid argument: $ac_config_target" >&5
8657 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8658 { (exit 1); exit 1; }; };;
8659 esac
8660 done
8661
8662 # If the user did not use the arguments to specify the items to instantiate,
8663 # then the envvar interface is used. Set only those that are not.
8664 # We use the long form for the default assignment because of an extremely
8665 # bizarre bug on SunOS 4.1.3.
8666 if $ac_need_defaults; then
8667 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8668 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8669 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8670 fi
8671
8672 # Create a temporary directory, and hook for its removal unless debugging.
8673 $debug ||
8674 {
8675 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8676 trap '{ (exit 1); exit 1; }' 1 2 13 15
8677 }
8678
8679 # Create a (secure) tmp directory for tmp files.
8680 : ${TMPDIR=/tmp}
8681 {
8682 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8683 test -n "$tmp" && test -d "$tmp"
8684 } ||
8685 {
8686 tmp=$TMPDIR/cs$$-$RANDOM
8687 (umask 077 && mkdir $tmp)
8688 } ||
8689 {
8690 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8691 { (exit 1); exit 1; }
8692 }
8693
8694 _ACEOF
8695
8696 cat >>$CONFIG_STATUS <<_ACEOF
8697
8698 #
8699 # CONFIG_FILES section.
8700 #
8701
8702 # No need to generate the scripts if there are no CONFIG_FILES.
8703 # This happens for instance when ./config.status config.h
8704 if test -n "\$CONFIG_FILES"; then
8705 # Protect against being on the right side of a sed subst in config.status.
8706 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8707 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8708 s,@SHELL@,$SHELL,;t t
8709 s,@exec_prefix@,$exec_prefix,;t t
8710 s,@prefix@,$prefix,;t t
8711 s,@program_transform_name@,$program_transform_name,;t t
8712 s,@bindir@,$bindir,;t t
8713 s,@sbindir@,$sbindir,;t t
8714 s,@libexecdir@,$libexecdir,;t t
8715 s,@datadir@,$datadir,;t t
8716 s,@sysconfdir@,$sysconfdir,;t t
8717 s,@sharedstatedir@,$sharedstatedir,;t t
8718 s,@localstatedir@,$localstatedir,;t t
8719 s,@libdir@,$libdir,;t t
8720 s,@includedir@,$includedir,;t t
8721 s,@oldincludedir@,$oldincludedir,;t t
8722 s,@infodir@,$infodir,;t t
8723 s,@mandir@,$mandir,;t t
8724 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8725 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8726 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8727 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8728 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8729 s,@build_alias@,$build_alias,;t t
8730 s,@host_alias@,$host_alias,;t t
8731 s,@target_alias@,$target_alias,;t t
8732 s,@ECHO_C@,$ECHO_C,;t t
8733 s,@ECHO_N@,$ECHO_N,;t t
8734 s,@ECHO_T@,$ECHO_T,;t t
8735 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8736 s,@DEFS@,$DEFS,;t t
8737 s,@LIBS@,$LIBS,;t t
8738 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8739 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8740 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8741 s,@PACKAGE@,$PACKAGE,;t t
8742 s,@VERSION@,$VERSION,;t t
8743 s,@EXEEXT@,$EXEEXT,;t t
8744 s,@OBJEXT@,$OBJEXT,;t t
8745 s,@ACLOCAL@,$ACLOCAL,;t t
8746 s,@AUTOCONF@,$AUTOCONF,;t t
8747 s,@AUTOMAKE@,$AUTOMAKE,;t t
8748 s,@AUTOHEADER@,$AUTOHEADER,;t t
8749 s,@MAKEINFO@,$MAKEINFO,;t t
8750 s,@AMTAR@,$AMTAR,;t t
8751 s,@install_sh@,$install_sh,;t t
8752 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8753 s,@AWK@,$AWK,;t t
8754 s,@SET_MAKE@,$SET_MAKE,;t t
8755 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8756 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8757 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8758 s,@DEPDIR@,$DEPDIR,;t t
8759 s,@CC@,$CC,;t t
8760 s,@CFLAGS@,$CFLAGS,;t t
8761 s,@LDFLAGS@,$LDFLAGS,;t t
8762 s,@CPPFLAGS@,$CPPFLAGS,;t t
8763 s,@ac_ct_CC@,$ac_ct_CC,;t t
8764 s,@am__include@,$am__include,;t t
8765 s,@am__quote@,$am__quote,;t t
8766 s,@CCDEPMODE@,$CCDEPMODE,;t t
8767 s,@CPP@,$CPP,;t t
8768 s,@RANLIB@,$RANLIB,;t t
8769 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8770 s,@M4@,$M4,;t t
8771 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
8772 s,@U@,$U,;t t
8773 s,@ANSI2KNR@,$ANSI2KNR,;t t
8774 s,@ALLOCA@,$ALLOCA,;t t
8775 s,@LIBOBJS@,$LIBOBJS,;t t
8776 s,@build@,$build,;t t
8777 s,@build_cpu@,$build_cpu,;t t
8778 s,@build_vendor@,$build_vendor,;t t
8779 s,@build_os@,$build_os,;t t
8780 s,@host@,$host,;t t
8781 s,@host_cpu@,$host_cpu,;t t
8782 s,@host_vendor@,$host_vendor,;t t
8783 s,@host_os@,$host_os,;t t
8784 s,@GLIBC21@,$GLIBC21,;t t
8785 s,@LIBICONV@,$LIBICONV,;t t
8786 s,@USE_NLS@,$USE_NLS,;t t
8787 s,@MSGFMT@,$MSGFMT,;t t
8788 s,@GMSGFMT@,$GMSGFMT,;t t
8789 s,@XGETTEXT@,$XGETTEXT,;t t
8790 s,@INTLBISON@,$INTLBISON,;t t
8791 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
8792 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8793 s,@CATALOGS@,$CATALOGS,;t t
8794 s,@CATOBJEXT@,$CATOBJEXT,;t t
8795 s,@GMOFILES@,$GMOFILES,;t t
8796 s,@INTLLIBS@,$INTLLIBS,;t t
8797 s,@INTLOBJS@,$INTLOBJS,;t t
8798 s,@POFILES@,$POFILES,;t t
8799 s,@POSUB@,$POSUB,;t t
8800 s,@DATADIRNAME@,$DATADIRNAME,;t t
8801 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8802 s,@GENCAT@,$GENCAT,;t t
8803 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8804 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
8805 CEOF
8806
8807 _ACEOF
8808
8809 cat >>$CONFIG_STATUS <<\_ACEOF
8810 # Split the substitutions into bite-sized pieces for seds with
8811 # small command number limits, like on Digital OSF/1 and HP-UX.
8812 ac_max_sed_lines=48
8813 ac_sed_frag=1 # Number of current file.
8814 ac_beg=1 # First line for current file.
8815 ac_end=$ac_max_sed_lines # Line after last line for current file.
8816 ac_more_lines=:
8817 ac_sed_cmds=
8818 while $ac_more_lines; do
8819 if test $ac_beg -gt 1; then
8820 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8821 else
8822 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8823 fi
8824 if test ! -s $tmp/subs.frag; then
8825 ac_more_lines=false
8826 else
8827 # The purpose of the label and of the branching condition is to
8828 # speed up the sed processing (if there are no `@' at all, there
8829 # is no need to browse any of the substitutions).
8830 # These are the two extra sed commands mentioned above.
8831 (echo ':t
8832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8833 if test -z "$ac_sed_cmds"; then
8834 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8835 else
8836 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8837 fi
8838 ac_sed_frag=`expr $ac_sed_frag + 1`
8839 ac_beg=$ac_end
8840 ac_end=`expr $ac_end + $ac_max_sed_lines`
8841 fi
8842 done
8843 if test -z "$ac_sed_cmds"; then
8844 ac_sed_cmds=cat
8845 fi
8846 fi # test -n "$CONFIG_FILES"
8847
8848 _ACEOF
8849 cat >>$CONFIG_STATUS <<\_ACEOF
8850 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8851 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8852 case $ac_file in
8853 - | *:- | *:-:* ) # input from stdin
8854 cat >$tmp/stdin
8855 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8856 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8857 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8858 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8859 * ) ac_file_in=$ac_file.in ;;
8860 esac
8861
8862 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8863 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8864 X"$ac_file" : 'X\(//\)[^/]' \| \
8865 X"$ac_file" : 'X\(//\)$' \| \
8866 X"$ac_file" : 'X\(/\)' \| \
8867 . : '\(.\)' 2>/dev/null ||
8868 echo X"$ac_file" |
8869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8871 /^X\(\/\/\)$/{ s//\1/; q; }
8872 /^X\(\/\).*/{ s//\1/; q; }
8873 s/.*/./; q'`
8874 { case "$ac_dir" in
8875 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8876 *) as_incr_dir=.;;
8877 esac
8878 as_dummy="$ac_dir"
8879 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8880 case $as_mkdir_dir in
8881 # Skip DOS drivespec
8882 ?:) as_incr_dir=$as_mkdir_dir ;;
8883 *)
8884 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8885 test -d "$as_incr_dir" ||
8886 mkdir "$as_incr_dir" ||
8887 { { echo "$as_me:8887: error: cannot create \"$ac_dir\"" >&5
8888 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8889 { (exit 1); exit 1; }; }
8890 ;;
8891 esac
8892 done; }
8893
8894 if test "$ac_dir" != .; then
8895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
8896 # A "../" for each directory in $ac_dir_suffix.
8897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8898 else
8899 ac_dir_suffix= ac_top_builddir=
8900 fi
8901
8902 case $srcdir in
8903 .) # No --srcdir option. We are building in place.
8904 ac_srcdir=.
8905 if test -z "$ac_top_builddir"; then
8906 ac_top_srcdir=.
8907 else
8908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8909 fi ;;
8910 [\\/]* | ?:[\\/]* ) # Absolute path.
8911 ac_srcdir=$srcdir$ac_dir_suffix;
8912 ac_top_srcdir=$srcdir ;;
8913 *) # Relative path.
8914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8916 esac
8917
8918 case $INSTALL in
8919 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8920 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8921 esac
8922
8923 if test x"$ac_file" != x-; then
8924 { echo "$as_me:8924: creating $ac_file" >&5
8925 echo "$as_me: creating $ac_file" >&6;}
8926 rm -f "$ac_file"
8927 fi
8928 # Let's still pretend it is `configure' which instantiates (i.e., don't
8929 # use $as_me), people would be surprised to read:
8930 # /* config.h. Generated automatically by config.status. */
8931 configure_input="Generated automatically from `echo $ac_file_in |
8932 sed 's,.*/,,'` by configure."
8933
8934 # First look for the input files in the build tree, otherwise in the
8935 # src tree.
8936 ac_file_inputs=`IFS=:
8937 for f in $ac_file_in; do
8938 case $f in
8939 -) echo $tmp/stdin ;;
8940 [\\/$]*)
8941 # Absolute (can't be DOS-style, as IFS=:)
8942 test -f "$f" || { { echo "$as_me:8942: error: cannot find input file: $f" >&5
8943 echo "$as_me: error: cannot find input file: $f" >&2;}
8944 { (exit 1); exit 1; }; }
8945 echo $f;;
8946 *) # Relative
8947 if test -f "$f"; then
8948 # Build tree
8949 echo $f
8950 elif test -f "$srcdir/$f"; then
8951 # Source tree
8952 echo $srcdir/$f
8953 else
8954 # /dev/null tree
8955 { { echo "$as_me:8955: error: cannot find input file: $f" >&5
8956 echo "$as_me: error: cannot find input file: $f" >&2;}
8957 { (exit 1); exit 1; }; }
8958 fi;;
8959 esac
8960 done` || { (exit 1); exit 1; }
8961 _ACEOF
8962 cat >>$CONFIG_STATUS <<_ACEOF
8963 sed "$ac_vpsub
8964 $extrasub
8965 _ACEOF
8966 cat >>$CONFIG_STATUS <<\_ACEOF
8967 :t
8968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8969 s,@configure_input@,$configure_input,;t t
8970 s,@srcdir@,$ac_srcdir,;t t
8971 s,@top_srcdir@,$ac_top_srcdir,;t t
8972 s,@INSTALL@,$ac_INSTALL,;t t
8973 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8974 rm -f $tmp/stdin
8975 if test x"$ac_file" != x-; then
8976 mv $tmp/out $ac_file
8977 else
8978 cat $tmp/out
8979 rm -f $tmp/out
8980 fi
8981
8982 done
8983 _ACEOF
8984 cat >>$CONFIG_STATUS <<\_ACEOF
8985
8986 #
8987 # CONFIG_HEADER section.
8988 #
8989
8990 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8991 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8992 #
8993 # ac_d sets the value in "#define NAME VALUE" lines.
8994 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8995 ac_dB='[ ].*$,\1#\2'
8996 ac_dC=' '
8997 ac_dD=',;t'
8998 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8999 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9000 ac_uB='$,\1#\2define\3'
9001 ac_uC=' '
9002 ac_uD=',;t'
9003
9004 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9006 case $ac_file in
9007 - | *:- | *:-:* ) # input from stdin
9008 cat >$tmp/stdin
9009 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9010 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9011 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9012 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9013 * ) ac_file_in=$ac_file.in ;;
9014 esac
9015
9016 test x"$ac_file" != x- && { echo "$as_me:9016: creating $ac_file" >&5
9017 echo "$as_me: creating $ac_file" >&6;}
9018
9019 # First look for the input files in the build tree, otherwise in the
9020 # src tree.
9021 ac_file_inputs=`IFS=:
9022 for f in $ac_file_in; do
9023 case $f in
9024 -) echo $tmp/stdin ;;
9025 [\\/$]*)
9026 # Absolute (can't be DOS-style, as IFS=:)
9027 test -f "$f" || { { echo "$as_me:9027: error: cannot find input file: $f" >&5
9028 echo "$as_me: error: cannot find input file: $f" >&2;}
9029 { (exit 1); exit 1; }; }
9030 echo $f;;
9031 *) # Relative
9032 if test -f "$f"; then
9033 # Build tree
9034 echo $f
9035 elif test -f "$srcdir/$f"; then
9036 # Source tree
9037 echo $srcdir/$f
9038 else
9039 # /dev/null tree
9040 { { echo "$as_me:9040: error: cannot find input file: $f" >&5
9041 echo "$as_me: error: cannot find input file: $f" >&2;}
9042 { (exit 1); exit 1; }; }
9043 fi;;
9044 esac
9045 done` || { (exit 1); exit 1; }
9046 # Remove the trailing spaces.
9047 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9048
9049 _ACEOF
9050
9051 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9052 # `conftest.undefs', that substitutes the proper values into
9053 # config.h.in to produce config.h. The first handles `#define'
9054 # templates, and the second `#undef' templates.
9055 # And first: Protect against being on the right side of a sed subst in
9056 # config.status. Protect against being in an unquoted here document
9057 # in config.status.
9058 rm -f conftest.defines conftest.undefs
9059 # Using a here document instead of a string reduces the quoting nightmare.
9060 # Putting comments in sed scripts is not portable.
9061 #
9062 # `end' is used to avoid that the second main sed command (meant for
9063 # 0-ary CPP macros) applies to n-ary macro definitions.
9064 # See the Autoconf documentation for `clear'.
9065 cat >confdef2sed.sed <<\_ACEOF
9066 s/[\\&,]/\\&/g
9067 s,[\\$`],\\&,g
9068 t clear
9069 : clear
9070 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9071 t end
9072 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9073 : end
9074 _ACEOF
9075 # If some macros were called several times there might be several times
9076 # the same #defines, which is useless. Nevertheless, we may not want to
9077 # sort them, since we want the *last* AC-DEFINE to be honored.
9078 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9079 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9080 rm -f confdef2sed.sed
9081
9082 # This sed command replaces #undef with comments. This is necessary, for
9083 # example, in the case of _POSIX_SOURCE, which is predefined and required
9084 # on some systems where configure will not decide to define it.
9085 cat >>conftest.undefs <<\_ACEOF
9086 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9087 _ACEOF
9088
9089 # Break up conftest.defines because some shells have a limit on the size
9090 # of here documents, and old seds have small limits too (100 cmds).
9091 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9092 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9093 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9094 echo ' :' >>$CONFIG_STATUS
9095 rm -f conftest.tail
9096 while grep . conftest.defines >/dev/null
9097 do
9098 # Write a limited-size here document to $tmp/defines.sed.
9099 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9100 # Speed up: don't consider the non `#define' lines.
9101 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9102 # Work around the forget-to-reset-the-flag bug.
9103 echo 't clr' >>$CONFIG_STATUS
9104 echo ': clr' >>$CONFIG_STATUS
9105 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9106 echo 'CEOF
9107 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9108 rm -f $tmp/in
9109 mv $tmp/out $tmp/in
9110 ' >>$CONFIG_STATUS
9111 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9112 rm -f conftest.defines
9113 mv conftest.tail conftest.defines
9114 done
9115 rm -f conftest.defines
9116 echo ' fi # egrep' >>$CONFIG_STATUS
9117 echo >>$CONFIG_STATUS
9118
9119 # Break up conftest.undefs because some shells have a limit on the size
9120 # of here documents, and old seds have small limits too (100 cmds).
9121 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9122 rm -f conftest.tail
9123 while grep . conftest.undefs >/dev/null
9124 do
9125 # Write a limited-size here document to $tmp/undefs.sed.
9126 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9127 # Speed up: don't consider the non `#undef'
9128 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9129 # Work around the forget-to-reset-the-flag bug.
9130 echo 't clr' >>$CONFIG_STATUS
9131 echo ': clr' >>$CONFIG_STATUS
9132 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9133 echo 'CEOF
9134 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9135 rm -f $tmp/in
9136 mv $tmp/out $tmp/in
9137 ' >>$CONFIG_STATUS
9138 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9139 rm -f conftest.undefs
9140 mv conftest.tail conftest.undefs
9141 done
9142 rm -f conftest.undefs
9143
9144 cat >>$CONFIG_STATUS <<\_ACEOF
9145 # Let's still pretend it is `configure' which instantiates (i.e., don't
9146 # use $as_me), people would be surprised to read:
9147 # /* config.h. Generated automatically by config.status. */
9148 if test x"$ac_file" = x-; then
9149 echo "/* Generated automatically by configure. */" >$tmp/config.h
9150 else
9151 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9152 fi
9153 cat $tmp/in >>$tmp/config.h
9154 rm -f $tmp/in
9155 if test x"$ac_file" != x-; then
9156 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9157 { echo "$as_me:9157: $ac_file is unchanged" >&5
9158 echo "$as_me: $ac_file is unchanged" >&6;}
9159 else
9160 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9161 X"$ac_file" : 'X\(//\)[^/]' \| \
9162 X"$ac_file" : 'X\(//\)$' \| \
9163 X"$ac_file" : 'X\(/\)' \| \
9164 . : '\(.\)' 2>/dev/null ||
9165 echo X"$ac_file" |
9166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9168 /^X\(\/\/\)$/{ s//\1/; q; }
9169 /^X\(\/\).*/{ s//\1/; q; }
9170 s/.*/./; q'`
9171 { case "$ac_dir" in
9172 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9173 *) as_incr_dir=.;;
9174 esac
9175 as_dummy="$ac_dir"
9176 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9177 case $as_mkdir_dir in
9178 # Skip DOS drivespec
9179 ?:) as_incr_dir=$as_mkdir_dir ;;
9180 *)
9181 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9182 test -d "$as_incr_dir" ||
9183 mkdir "$as_incr_dir" ||
9184 { { echo "$as_me:9184: error: cannot create \"$ac_dir\"" >&5
9185 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9186 { (exit 1); exit 1; }; }
9187 ;;
9188 esac
9189 done; }
9190
9191 rm -f $ac_file
9192 mv $tmp/config.h $ac_file
9193 fi
9194 else
9195 cat $tmp/config.h
9196 rm -f $tmp/config.h
9197 fi
9198 # Run the commands associated with the file.
9199 case $ac_file in
9200 config.h ) # update the timestamp
9201 echo timestamp >"./stamp-h1"
9202 ;;
9203 esac
9204 done
9205 _ACEOF
9206 cat >>$CONFIG_STATUS <<\_ACEOF
9207
9208 #
9209 # CONFIG_COMMANDS section.
9210 #
9211 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9212 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9213 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9214 ac_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9215 X"$ac_dest" : 'X\(//\)[^/]' \| \
9216 X"$ac_dest" : 'X\(//\)$' \| \
9217 X"$ac_dest" : 'X\(/\)' \| \
9218 . : '\(.\)' 2>/dev/null ||
9219 echo X"$ac_dest" |
9220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9222 /^X\(\/\/\)$/{ s//\1/; q; }
9223 /^X\(\/\).*/{ s//\1/; q; }
9224 s/.*/./; q'`
9225 if test "$ac_dir" != .; then
9226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
9227 # A "../" for each directory in $ac_dir_suffix.
9228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9229 else
9230 ac_dir_suffix= ac_top_builddir=
9231 fi
9232
9233 case $srcdir in
9234 .) # No --srcdir option. We are building in place.
9235 ac_srcdir=.
9236 if test -z "$ac_top_builddir"; then
9237 ac_top_srcdir=.
9238 else
9239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9240 fi ;;
9241 [\\/]* | ?:[\\/]* ) # Absolute path.
9242 ac_srcdir=$srcdir$ac_dir_suffix;
9243 ac_top_srcdir=$srcdir ;;
9244 *) # Relative path.
9245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9247 esac
9248
9249 { echo "$as_me:9249: executing $ac_dest commands" >&5
9250 echo "$as_me: executing $ac_dest commands" >&6;}
9251 case $ac_dest in
9252 tests/atconfig ) cat >tests/atconfig <<ATEOF
9253 # Configurable variable values for building test suites.
9254 # Generated by $0
9255 # Copyright 2000, 2001 Free Software Foundation, Inc.
9256
9257 at_package='$at_package'
9258 at_version='$at_version'
9259 at_bugreport='$at_bugreport'
9260
9261 at_n='$at_n'
9262 at_c='$at_c'
9263
9264 at_testdir='tests'
9265 srcdir='$ac_srcdir'
9266 top_srcdir='$ac_top_srcdir'
9267 top_builddir='$ac_top_builddir'
9268
9269 AUTOTEST_PATH='tests'
9270
9271 SHELL=\${CONFIG_SHELL-'$at_shell'}
9272 PATH_SEPARATOR='$at_path_separator'
9273
9274 ATEOF
9275 ;;
9276 default-1 )
9277 test x"$AMDEP_TRUE" != x"" ||
9278 for mf in $CONFIG_FILES; do
9279 case "$mf" in
9280 Makefile) dirpart=.;;
9281 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9282 *) continue;;
9283 esac
9284 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9285 # Extract the definition of DEP_FILES from the Makefile without
9286 # running `make'.
9287 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9288 test -z "$DEPDIR" && continue
9289 # When using ansi2knr, U may be empty or an underscore; expand it
9290 U=`sed -n -e '/^U = / s///p' < "$mf"`
9291 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9292 # We invoke sed twice because it is the simplest approach to
9293 # changing $(DEPDIR) to its actual value in the expansion.
9294 for file in `sed -n -e '
9295 /^DEP_FILES = .*\\\\$/ {
9296 s/^DEP_FILES = //
9297 :loop
9298 s/\\\\$//
9299 p
9300 n
9301 /\\\\$/ b loop
9302 p
9303 }
9304 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9305 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9306 # Make sure the directory exists.
9307 test -f "$dirpart/$file" && continue
9308 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
9309 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
9310 # echo "creating $dirpart/$file"
9311 echo '# dummy' > "$dirpart/$file"
9312 done
9313 done
9314 ;;
9315 default-2 ) for ac_file in $CONFIG_FILES; do
9316 # Support "outfile[:infile[:infile...]]"
9317 case "$ac_file" in
9318 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9319 esac
9320 # PO directories have a Makefile.in generated from Makefile.in.in.
9321 case "$ac_file" in */Makefile.in)
9322 # Adjust a relative srcdir.
9323 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9324 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9325 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9326 # In autoconf-2.13 it is called $ac_given_srcdir.
9327 # In autoconf-2.50 it is called $srcdir.
9328 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9329 case "$ac_given_srcdir" in
9330 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9331 /*) top_srcdir="$ac_given_srcdir" ;;
9332 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9333 esac
9334 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9335 rm -f "$ac_dir/POTFILES"
9336 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9337 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9338 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9339 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9340 fi
9341 ;;
9342 esac
9343 done ;;
9344 esac
9345 done
9346 _ACEOF
9347
9348 cat >>$CONFIG_STATUS <<\_ACEOF
9349
9350 { (exit 0); exit 0; }
9351 _ACEOF
9352 chmod +x $CONFIG_STATUS
9353 ac_clean_files=$ac_clean_files_save
9354
9355 # configure is writing to config.log, and then calls config.status.
9356 # config.status does its own redirection, appending to config.log.
9357 # Unfortunately, on DOS this fails, as config.log is still kept open
9358 # by configure, so config.status won't be able to write to it; its
9359 # output is simply discarded. So we exec the FD to /dev/null,
9360 # effectively closing config.log, so it can be properly (re)opened and
9361 # appended to by config.status. When coming back to configure, we
9362 # need to make the FD available again.
9363 if test "$no_create" != yes; then
9364 ac_cs_success=:
9365 exec 5>/dev/null
9366 $SHELL $CONFIG_STATUS || ac_cs_success=false
9367 exec 5>>config.log
9368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9369 # would make configure fail if this is the last instruction.
9370 $ac_cs_success || { (exit 1); exit 1; }
9371 fi