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