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