2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52g for GNU Bison 1.30e.
5 # Report bugs to <bug-bison@gnu.org>.
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.
12 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19 ## --------------------- ##
20 ## M4sh Initialization. ##
21 ## --------------------- ##
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
32 # Support unset when possible.
33 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
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
; }
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
90 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
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
107 *[\\/]* ) as_myself
=$0 ;;
108 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
112 test -z "$as_dir" && as_dir
=.
113 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
130 for as_dir
in /bin
:/usr
/bin
:$PATH
133 test -z "$as_dir" && as_dir
=.
134 for as_base
in sh bash ksh sh5
; do
137 if ("$as_dir/$as_base" -c '
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
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
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; }; }
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).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c
*,-n*) ECHO_N
= ECHO_C
='
187 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
188 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
191 if expr a
: '\(a\)' >/dev
/null
2>&1; then
197 rm -f conf$$ conf$$.exe 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
208 elif ln conf$$.
file conf$$
2>/dev
/null
; then
213 rm -f conf$$ conf$$.exe conf$$.
file
215 as_executable_p
="test -f"
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"
220 # Sed expression to map a string onto a valid variable name.
221 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
225 # We need space, tab and new line, in precisely that order.
231 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
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`
244 ac_default_prefix
=/usr
/local
249 SHELL
=${CONFIG_SHELL-/bin/sh}
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}
256 # Factoring default headers for most tests.
257 ac_includes_default
="\
260 # include <sys/types.h>
263 # include <sys/stat.h>
274 # if !STDC_HEADERS && HAVE_MEMORY_H
280 # include <strings.h>
283 # include <inttypes.h>
294 # Initialize some variables set by options.
296 ac_init_version
=false
297 # The variables have the same names as the options, with
298 # dashes changed to underlines.
306 program_transform_name
=s
,x
,x
,
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'
332 # Identity of this package.
333 PACKAGE_NAME
='GNU Bison'
334 PACKAGE_TARNAME
='bison'
335 PACKAGE_VERSION
='1.30e'
336 PACKAGE_STRING
='GNU Bison 1.30e'
337 PACKAGE_BUGREPORT
='bug-bison@gnu.org'
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
349 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351 # Accept the important Cygnus configure options, so we can diagnose typos.
355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
360 -build | --build | --buil | --bui | --bu)
361 ac_prev
=build_alias
;;
362 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363 build_alias
=$ac_optarg ;;
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 ;;
373 cache_file
=config.cache
;;
375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 datadir
=$ac_optarg ;;
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" ;;
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'`
398 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
401 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
412 -gas | --gas | --ga | --g)
413 # Obsolete; use --with-gas.
416 -help | --help | --hel | --he | -h)
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
;;
423 -host | --host | --hos | --ho)
424 ac_prev
=host_alias
;;
425 -host=* | --host=* | --hos=* | --ho=*)
426 host_alias
=$ac_optarg ;;
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 ;;
435 -infodir | --infodir | --infodi | --infod | --info | --inf)
437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438 infodir
=$ac_optarg ;;
440 -libdir | --libdir | --libdi | --libd)
442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
461 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
467 # Obsolete; use --without-fp.
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524 | -silent | --silent | --silen | --sile | --sil)
527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531 sbindir
=$ac_optarg ;;
533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535 | --sharedst | --shareds | --shared | --share | --shar \
537 ac_prev
=sharedstatedir
;;
538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542 sharedstatedir
=$ac_optarg ;;
544 -site | --site | --sit)
546 -site=* | --site=* | --sit=*)
549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
566 -v | -verbose | --verbose | --verbos | --verbo | --verb)
569 -version | --version | --versio | --versi | --vers | -V)
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'`
580 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
595 # Obsolete; use --with-x.
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 ;;
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 ;;
612 -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
644 # Be sure to have absolute paths.
645 for ac_var
in exec_prefix prefix
647 eval ac_val
=$
`echo $ac_var`
649 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
650 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
651 { (exit 1); exit 1; }; };;
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
659 eval ac_val
=$
`echo $ac_var`
661 [\\/$
]* | ?
:[\\/]* ) ;;
662 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
667 # There might be people who depend on the old broken behavior: `$host'
668 # used to hold the argument of --host etc.
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
685 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
687 test "$silent" = yes && exec 6>/dev
/null
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 ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted
=no
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; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
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}
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
757 # Report the --help message.
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.
763 \`configure' configures GNU Bison 1.30e to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
770 Defaults for the options are specified in brackets.
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 \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
797 For better control, use the options below.
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]
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
822 --build=BUILD configure
for building on BUILD
[guessed
]
823 --host=HOST build programs to run on HOST
[BUILD
]
827 if test -n "$ac_init_help"; then
828 case $ac_init_help in
829 short
| recursive
) echo "Configuration of GNU Bison 1.30e:";;
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
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
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
>
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.
861 Report bugs to <bug-bison@gnu.org>.
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
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'`
877 ac_dir_suffix= ac_top_builddir=
881 .) # No --srcdir option. We are building in place.
883 if test -z "$ac_top_builddir"; then
886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
895 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
903 # Check for guested configure; otherwise get Cygnus style configure.
904 if test -f $ac_srcdir/configure.gnu; then
906 $SHELL $ac_srcdir/configure.gnu --help=recursive
907 elif test -f $ac_srcdir/configure; then
909 $SHELL $ac_srcdir/configure --help=recursive
910 elif test -f $ac_srcdir/configure.ac ||
911 test -f $ac_srcdir/configure.in; then
915 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
921 test -n "$ac_init_help" && exit 0
922 if $ac_init_version; then
924 GNU Bison configure 1.30e
925 generated by GNU Autoconf 2.52g
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.
936 This file contains any messages produced by compilers while
937 running configure, to aid debugging if configure makes a mistake.
939 It was created by GNU Bison $as_me 1.30e, which was
940 generated by GNU Autoconf 2.52g. Invocation command line was
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
`
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
`
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
`
970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974 test -z "$as_dir" && as_dir=.
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.
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'"
1006 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1009 # Get rid of the leading space.
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.
1022 ## ---------------- ##
1023 ## Cache variables. ##
1024 ## ---------------- ##
1027 # The following way of writing the cache mishandles newlines in values,
1030 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1033 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1038 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1043 if test -s confdefs.h
; then
1050 sed "/^$/d" confdefs.h
1053 test "$ac_signal" != 0 &&
1054 echo "$as_me: caught signal $ac_signal"
1055 echo "$as_me: exit $exit_status"
1057 rm -rf conftest
* confdefs
* core core.
* *.core conf$$
* $ac_clean_files &&
1060 for ac_signal in 1 2 13 15; do
1061 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
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"
1076 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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
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;}
1095 [\\/]* | ?:[\\/]* ) . $cache_file;;
1096 *) . ./$cache_file;;
1100 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1101 echo "$as_me: creating cache $cache_file" >&6;}
1105 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
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
1139 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1140 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1141 ac_configure_args="$ac_configure_args '$ac_arg'"
1143 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
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; }; }
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
1188 for ac_dir in config $srcdir/config; do
1189 if test -f $ac_dir/install-sh; then
1191 ac_install_sh="$ac_aux_dir/install-sh -c"
1193 elif test -f $ac_dir/install.sh; then
1195 ac_install_sh="$ac_aux_dir/install.sh -c"
1197 elif test -f $ac_dir/shtool; then
1199 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
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
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
1231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1235 test -z "$as_dir" && as_dir
=.
1236 # Account for people who put trailing slashes in PATH elements.
1238 .
/ | .
// | /cC
/* | \
1239 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
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
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.
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.
1257 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1269 if test "${ac_cv_path_install+set}" = set; then
1270 INSTALL
=$ac_cv_path_install
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
1279 echo "$as_me:$LINENO: result: $INSTALL" >&5
1280 echo "${ECHO_T}$INSTALL" >&6
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}'
1286 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1288 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
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
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
1301 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1302 if test "$*" = "X"; then
1304 set X
`ls -t $srcdir/configure conftest.file`
1307 if test "$*" != "X $srcdir/configure conftest.file" \
1308 && test "$*" != "X conftest.file $srcdir/configure"; then
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; }; }
1321 test "$2" = conftest.
file
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; }; }
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
,$
//
1345 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1349 # expand $ac_aux_dir to an absolute path
1350 am_aux_dir
=`cd $ac_aux_dir && pwd`
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 "
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;}
1363 for ac_prog
in gawk mawk nawk
awk
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
1372 if test -n "$AWK"; then
1373 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1392 if test -n "$AWK"; then
1393 echo "$as_me:$LINENO: result: $AWK" >&5
1394 echo "${ECHO_T}$AWK" >&6
1396 echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1400 test -n "$AWK" && break
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
1409 cat >conftest.
make <<\_ACEOF
1411 @
echo 'ac_maketemp="${MAKE}"'
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
1418 eval ac_cv_prog_make_
${ac_make}_set
=no
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
1427 echo "$as_me:$LINENO: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1429 SET_MAKE
="MAKE=${MAKE-make}"
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"
1437 if test "x$enable_dependency_tracking" != xno
; then
1438 am_depcomp
="$ac_aux_dir/depcomp"
1443 if test "x$enable_dependency_tracking" != xno; then
1452 rm -f .deps
2>/dev
/null
1453 mkdir .deps
2>/dev
/null
1454 if test -d .deps
; then
1457 # MS-DOS does not allow filenames that begin with a dot.
1460 rmdir .deps
2>/dev
/null
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; }; }
1471 # Define the identity of the package.
1475 cat >>confdefs.h
<<_ACEOF
1476 #define PACKAGE "$PACKAGE"
1480 cat >>confdefs.h
<<_ACEOF
1481 #define VERSION "$VERSION"
1486 # Some tools Automake needs.
1488 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1491 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1494 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1497 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1500 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1503 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1505 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1507 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1509 # We need awk for the "check" target. The system "awk" is bad on
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"
1519 # Initialize the test suite.
1520 ac_config_commands
="$ac_config_commands tests/package.m4"
1523 ac_config_commands
="$ac_config_commands tests/atconfig"
1526 ac_config_files
="$ac_config_files tests/bison"
1528 ac_config_files
="$ac_config_files tests/Makefile tests/atlocal"
1530 # Needed by tests/atlocal.in.
1533 # Checks for programs.
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
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC
="$CC" # Let the user override the test.
1550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1576 if test -z "$ac_cv_prog_CC"; then
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
1585 if test -n "$ac_ct_CC"; then
1586 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
1609 echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
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
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC
="$CC" # Let the user override the test.
1630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1656 if test -z "$ac_cv_prog_CC"; then
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
1665 if test -n "$ac_ct_CC"; then
1666 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
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
1707 if test -n "$CC"; then
1708 ac_cv_prog_CC
="$CC" # Let the user override the test.
1711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
1738 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1746 if test -n "$CC"; then
1747 echo "$as_me:$LINENO: result: $CC" >&5
1748 echo "${ECHO_T}$CC" >&6
1750 echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1755 if test -z "$CC"; then
1756 if test -n "$ac_tool_prefix"; then
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
1766 if test -n "$CC"; then
1767 ac_cv_prog_CC
="$CC" # Let the user override the test.
1769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1786 if test -n "$CC"; then
1787 echo "$as_me:$LINENO: result: $CC" >&5
1788 echo "${ECHO_T}$CC" >&6
1790 echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1794 test -n "$CC" && break
1797 if test -z "$CC"; then
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
1808 if test -n "$ac_ct_CC"; then
1809 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
1832 echo "$as_me:$LINENO: result: no" >&5
1833 echo "${ECHO_T}no" >&6
1836 test -n "$ac_ct_CC" && break
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; }; }
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
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
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
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); }
1869 cat >conftest.
$ac_ext <<_ACEOF
1870 #line $LINENO "configure"
1871 #include "confdefs.h"
1873 #ifdef F77_DUMMY_MAIN
1877 int F77_DUMMY_MAIN() { return 1; }
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
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
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
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
1907 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1908 a.out
) # We found the default executable, but exeext='' is most
1911 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1912 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
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; }; }
1926 ac_exeext
=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
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
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1945 if test "$cross_compiling" = maybe
; then
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; }; }
1956 echo "$as_me:$LINENO: result: yes" >&5
1957 echo "${ECHO_T}yes" >&6
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
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
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
1979 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1981 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1982 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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
1998 rm -f conftest.
$ac_ext
1999 EXEEXT
=$ac_cv_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
2006 cat >conftest.
$ac_ext <<_ACEOF
2007 #line $LINENO "configure"
2008 #include "confdefs.h"
2010 #ifdef F77_DUMMY_MAIN
2014 int F77_DUMMY_MAIN() { return 1; }
2024 rm -f conftest.o conftest.obj
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>&5
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
2032 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
2033 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
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; }; }
2045 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2047 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2048 echo "${ECHO_T}$ac_cv_objext" >&6
2049 OBJEXT
=$ac_cv_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
2056 cat >conftest.
$ac_ext <<_ACEOF
2057 #line $LINENO "configure"
2058 #include "confdefs.h"
2060 #ifdef F77_DUMMY_MAIN
2064 int F77_DUMMY_MAIN() { return 1; }
2077 rm -f conftest.
$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>&5
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
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; }; then
2091 echo "$as_me: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2095 rm -f conftest.
$ac_objext conftest.
$ac_ext
2096 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
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
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
2110 cat >conftest.
$ac_ext <<_ACEOF
2111 #line $LINENO "configure"
2112 #include "confdefs.h"
2114 #ifdef F77_DUMMY_MAIN
2118 int F77_DUMMY_MAIN() { return 1; }
2128 rm -f conftest.
$ac_objext
2129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2130 (eval $ac_compile) 2>&5
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
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; }; then
2142 echo "$as_me: failed program was:" >&5
2143 cat conftest.
$ac_ext >&5
2146 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
2159 if test "$GCC" = yes; then
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
2174 rm -f conftest.
$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>&5
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
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 for ac_declaration
in \
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);' \
2195 cat >conftest.
$ac_ext <<_ACEOF
2196 #line $LINENO "configure"
2197 #include "confdefs.h"
2200 #ifdef F77_DUMMY_MAIN
2204 int F77_DUMMY_MAIN() { return 1; }
2214 rm -f conftest.
$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>&5
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
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2228 echo "$as_me: failed program was:" >&5
2229 cat conftest.
$ac_ext >&5
2232 rm -f conftest.
$ac_objext conftest.
$ac_ext
2233 cat >conftest.
$ac_ext <<_ACEOF
2234 #line $LINENO "configure"
2235 #include "confdefs.h"
2237 #ifdef F77_DUMMY_MAIN
2241 int F77_DUMMY_MAIN() { return 1; }
2251 rm -f conftest.
$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
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
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 echo "$as_me: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2268 rm -f conftest.
$ac_objext conftest.
$ac_ext
2271 if test -n "$ac_declaration"; then
2272 echo '#ifdef __cplusplus' >>confdefs.h
2273 echo $ac_declaration >>confdefs.h
2274 echo '#endif' >>confdefs.h
2278 echo "$as_me: failed program was:" >&5
2279 cat conftest.
$ac_ext >&5
2281 rm -f conftest.
$ac_objext conftest.
$ac_ext
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"
2290 am_make
=${MAKE-make}
2291 cat > confinc
<< '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
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
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
2324 echo "$as_me:$LINENO: result: $_am_result" >&5
2325 echo "${ECHO_T}$_am_result" >&6
2326 rm -f confinc confmf
2329 depcc
="$CC" am_compiler_list
=
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
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
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
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`
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
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
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
2389 am_cv_CC_dependencies_compiler_type
=none
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
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
2410 if test -z "$CPP"; then
2411 if test "${ac_cv_prog_CPP+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 # Double quotes because CPP needs to be expanded
2415 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2418 for ac_c_preproc_warn_flag
in '' yes
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"
2430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2431 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2433 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2446 if test -z "$ac_cpp_err"; then
2449 echo "$as_me: failed program was:" >&5
2450 cat conftest.
$ac_ext >&5
2451 # Broken: fails on valid input.
2454 rm -f conftest.err conftest.
$ac_ext
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>
2463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2464 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2466 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2479 if test -z "$ac_cpp_err"; then
2480 # Broken: success on invalid input.
2483 echo "$as_me: failed program was:" >&5
2484 cat conftest.
$ac_ext >&5
2485 # Passes both tests.
2489 rm -f conftest.err conftest.
$ac_ext
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
2506 echo "$as_me:$LINENO: result: $CPP" >&5
2507 echo "${ECHO_T}$CPP" >&6
2509 for ac_c_preproc_warn_flag
in '' yes
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"
2521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2522 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2524 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2537 if test -z "$ac_cpp_err"; then
2540 echo "$as_me: failed program was:" >&5
2541 cat conftest.
$ac_ext >&5
2542 # Broken: fails on valid input.
2545 rm -f conftest.err conftest.
$ac_ext
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>
2554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2555 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2557 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2570 if test -z "$ac_cpp_err"; then
2571 # Broken: success on invalid input.
2574 echo "$as_me: failed program was:" >&5
2575 cat conftest.
$ac_ext >&5
2576 # Passes both tests.
2580 rm -f conftest.err conftest.
$ac_ext
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
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; }; }
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
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
2605 cat >conftest.
$ac_ext <<_ACEOF
2606 #line $LINENO "configure"
2607 #include "confdefs.h"
2614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2615 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2617 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2630 if test -z "$ac_cpp_err"; then
2631 ac_cv_header_stdc
=yes
2633 echo "$as_me: failed program was:" >&5
2634 cat conftest.
$ac_ext >&5
2635 ac_cv_header_stdc
=no
2637 rm -f conftest.err conftest.
$ac_ext
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"
2647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2648 egrep "memchr" >/dev
/null
2>&1; then
2651 ac_cv_header_stdc
=no
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"
2665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2666 egrep "free" >/dev
/null
2>&1; then
2669 ac_cv_header_stdc
=no
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
2680 cat >conftest.
$ac_ext <<_ACEOF
2681 #line $LINENO "configure"
2682 #include "confdefs.h"
2684 #if ((' ' & 0x0FF) == 0x020)
2685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
2694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2699 for (i = 0; i < 256; i++)
2700 if (XOR (islower (i), ISLOWER (i))
2701 || toupper (i) != TOUPPER (i))
2706 rm -f conftest
$ac_exeext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708 (eval $ac_link) 2>&5
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
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
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
2723 ac_cv_header_stdc
=no
2725 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
2733 cat >>confdefs.h
<<\_ACEOF
2734 #define STDC_HEADERS 1
2739 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
2758 cat >conftest.
$ac_ext <<_ACEOF
2759 #line $LINENO "configure"
2760 #include "confdefs.h"
2761 $ac_includes_default
2763 #include <$ac_header>
2765 rm -f conftest.
$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>&5
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
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 eval "$as_ac_Header=yes"
2779 echo "$as_me: failed program was:" >&5
2780 cat conftest.
$ac_ext >&5
2781 eval "$as_ac_Header=no"
2783 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
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
2803 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2804 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
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>
2815 rm -f conftest.
$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>&5
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
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_header_compiler
=yes
2829 echo "$as_me: failed program was:" >&5
2830 cat conftest.
$ac_ext >&5
2831 ac_header_compiler
=no
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
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>
2845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2846 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2848 egrep -v '^ *\+' conftest.er1
>conftest.err
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
2861 if test -z "$ac_cpp_err"; then
2862 ac_header_preproc
=yes
2864 echo "$as_me: failed program was:" >&5
2865 cat conftest.
$ac_ext >&5
2866 ac_header_preproc
=no
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
2872 # So? What about this header?
2873 case $ac_header_compiler:$ac_header_preproc in
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;};;
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;};;
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
2892 ac_cv_header_minix_config_h
=$ac_header_preproc
2894 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2895 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2898 if test $ac_cv_header_minix_config_h = yes; then
2905 if test "$MINIX" = yes; then
2907 cat >>confdefs.h
<<\_ACEOF
2908 #define _POSIX_SOURCE 1
2912 cat >>confdefs.h
<<\_ACEOF
2913 #define _POSIX_1_SOURCE 2
2917 cat >>confdefs.h
<<\_ACEOF
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
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"
2935 /* Override any gcc2 internal prototype to avoid an error. */
2939 /* We use char because int might match the return type of a gcc2
2940 builtin and then its argument prototype would still apply. */
2942 #ifdef F77_DUMMY_MAIN
2946 int F77_DUMMY_MAIN() { return 1; }
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
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
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 ac_cv_lib_cposix_strerror
=yes
2970 echo "$as_me: failed program was:" >&5
2971 cat conftest.
$ac_ext >&5
2972 ac_cv_lib_cposix_strerror
=no
2974 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2975 LIBS
=$ac_check_lib_save_LIBS
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"
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
2993 am_cv_prog_cc_stdc
=no
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__"
3004 CC
="$ac_save_CC $ac_arg"
3005 cat >conftest.
$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3007 #include "confdefs.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)
3021 static char *f (char * (*g) (char **, int), char **p, ...)
3026 s = g (p, va_arg (v,int));
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);
3037 #ifdef F77_DUMMY_MAIN
3041 int F77_DUMMY_MAIN() { return 1; }
3047 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3053 rm -f conftest.
$ac_objext
3054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3055 (eval $ac_compile) 2>&5
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
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 am_cv_prog_cc_stdc
="$ac_arg"; break
3067 echo "$as_me: failed program was:" >&5
3068 cat conftest.
$ac_ext >&5
3070 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
3080 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3081 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3083 case "x$am_cv_prog_cc_stdc" in
3085 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
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
3096 if test -n "$RANLIB"; then
3097 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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
3120 echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6
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
3134 if test -n "$ac_ct_RANLIB"; then
3135 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
3151 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
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
3159 echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3163 RANLIB
=$ac_ct_RANLIB
3165 RANLIB
="$ac_cv_prog_RANLIB"
3169 AUTOM4TE
=${AUTOM4TE-"${am_missing_run}autom4te"}
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
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; }; } ;;
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
3188 ac_save_CFLAGS
="$CFLAGS"
3189 CFLAGS
="$CFLAGS -Wall"
3190 cat >conftest.
$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3192 #include "confdefs.h"
3194 #ifdef F77_DUMMY_MAIN
3198 int F77_DUMMY_MAIN() { return 1; }
3208 rm -f conftest.
$ac_objext
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>&5
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
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
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
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
3234 ac_save_CFLAGS
="$CFLAGS"
3236 cat >conftest.
$ac_ext <<_ACEOF
3237 #line $LINENO "configure"
3238 #include "confdefs.h"
3240 #ifdef F77_DUMMY_MAIN
3244 int F77_DUMMY_MAIN() { return 1; }
3254 rm -f conftest.
$ac_objext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256 (eval $ac_compile) 2>&5
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
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
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
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
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"
3286 #ifdef F77_DUMMY_MAIN
3290 int F77_DUMMY_MAIN() { return 1; }
3300 rm -f conftest.
$ac_objext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3302 (eval $ac_compile) 2>&5
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
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
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
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
3326 ac_save_CFLAGS
="$CFLAGS"
3327 CFLAGS
="$CFLAGS -Wcast-align"
3328 cat >conftest.
$ac_ext <<_ACEOF
3329 #line $LINENO "configure"
3330 #include "confdefs.h"
3332 #ifdef F77_DUMMY_MAIN
3336 int F77_DUMMY_MAIN() { return 1; }
3346 rm -f conftest.
$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>&5
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
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
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
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
3372 ac_save_CFLAGS
="$CFLAGS"
3373 CFLAGS
="$CFLAGS -Wcast-qual"
3374 cat >conftest.
$ac_ext <<_ACEOF
3375 #line $LINENO "configure"
3376 #include "confdefs.h"
3378 #ifdef F77_DUMMY_MAIN
3382 int F77_DUMMY_MAIN() { return 1; }
3392 rm -f conftest.
$ac_objext
3393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3394 (eval $ac_compile) 2>&5
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
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
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
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
3418 ac_save_CFLAGS
="$CFLAGS"
3419 CFLAGS
="$CFLAGS -Wformat"
3420 cat >conftest.
$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3422 #include "confdefs.h"
3424 #ifdef F77_DUMMY_MAIN
3428 int F77_DUMMY_MAIN() { return 1; }
3438 rm -f conftest.
$ac_objext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440 (eval $ac_compile) 2>&5
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
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
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
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
3464 ac_save_CFLAGS
="$CFLAGS"
3465 CFLAGS
="$CFLAGS -Wmissing-declarations"
3466 cat >conftest.
$ac_ext <<_ACEOF
3467 #line $LINENO "configure"
3468 #include "confdefs.h"
3470 #ifdef F77_DUMMY_MAIN
3474 int F77_DUMMY_MAIN() { return 1; }
3484 rm -f conftest.
$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>&5
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
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
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
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
3510 ac_save_CFLAGS
="$CFLAGS"
3511 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3512 cat >conftest.
$ac_ext <<_ACEOF
3513 #line $LINENO "configure"
3514 #include "confdefs.h"
3516 #ifdef F77_DUMMY_MAIN
3520 int F77_DUMMY_MAIN() { return 1; }
3530 rm -f conftest.
$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>&5
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
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
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
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
3556 ac_save_CFLAGS
="$CFLAGS"
3557 CFLAGS
="$CFLAGS -Wnested-externs"
3558 cat >conftest.
$ac_ext <<_ACEOF
3559 #line $LINENO "configure"
3560 #include "confdefs.h"
3562 #ifdef F77_DUMMY_MAIN
3566 int F77_DUMMY_MAIN() { return 1; }
3576 rm -f conftest.
$ac_objext
3577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3578 (eval $ac_compile) 2>&5
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
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
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
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
3602 ac_save_CFLAGS
="$CFLAGS"
3603 CFLAGS
="$CFLAGS -Wshadow"
3604 cat >conftest.
$ac_ext <<_ACEOF
3605 #line $LINENO "configure"
3606 #include "confdefs.h"
3608 #ifdef F77_DUMMY_MAIN
3612 int F77_DUMMY_MAIN() { return 1; }
3622 rm -f conftest.
$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>&5
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
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
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
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
3648 ac_save_CFLAGS
="$CFLAGS"
3649 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3650 cat >conftest.
$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3652 #include "confdefs.h"
3654 #ifdef F77_DUMMY_MAIN
3658 int F77_DUMMY_MAIN() { return 1; }
3668 rm -f conftest.
$ac_objext
3669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670 (eval $ac_compile) 2>&5
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
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
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
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
3694 ac_save_CFLAGS
="$CFLAGS"
3695 CFLAGS
="$CFLAGS -Wwrite-strings"
3696 cat >conftest.
$ac_ext <<_ACEOF
3697 #line $LINENO "configure"
3698 #include "confdefs.h"
3700 #ifdef F77_DUMMY_MAIN
3704 int F77_DUMMY_MAIN() { return 1; }
3714 rm -f conftest.
$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716 (eval $ac_compile) 2>&5
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
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
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
3735 rm -f conftest.
$ac_objext conftest.
$ac_ext
3736 CFLAGS
="$ac_save_CFLAGS"
3737 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3740 # Checks for libraries.
3742 cat >>confdefs.h
<<\_ACEOF
3743 #define _GNU_SOURCE 1
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
3753 cat >conftest.
$ac_ext <<_ACEOF
3754 #line $LINENO "configure"
3755 #include "confdefs.h"
3762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3763 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3765 egrep -v '^ *\+' conftest.er1
>conftest.err
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
3778 if test -z "$ac_cpp_err"; then
3779 ac_cv_header_stdc
=yes
3781 echo "$as_me: failed program was:" >&5
3782 cat conftest.
$ac_ext >&5
3783 ac_cv_header_stdc
=no
3785 rm -f conftest.err conftest.
$ac_ext
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"
3795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3796 egrep "memchr" >/dev
/null
2>&1; then
3799 ac_cv_header_stdc
=no
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"
3813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3814 egrep "free" >/dev
/null
2>&1; then
3817 ac_cv_header_stdc
=no
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
3828 cat >conftest.
$ac_ext <<_ACEOF
3829 #line $LINENO "configure"
3830 #include "confdefs.h"
3832 #if ((' ' & 0x0FF) == 0x020)
3833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
3842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3847 for (i = 0; i < 256; i++)
3848 if (XOR (islower (i), ISLOWER (i))
3849 || toupper (i) != TOUPPER (i))
3854 rm -f conftest
$ac_exeext
3855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3856 (eval $ac_link) 2>&5
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
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
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
3871 ac_cv_header_stdc
=no
3873 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
3881 cat >>confdefs.h
<<\_ACEOF
3882 #define STDC_HEADERS 1
3893 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
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
3902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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>
3914 rm -f conftest.
$ac_objext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916 (eval $ac_compile) 2>&5
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
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 ac_header_compiler
=yes
3928 echo "$as_me: failed program was:" >&5
3929 cat conftest.
$ac_ext >&5
3930 ac_header_compiler
=no
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
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>
3944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3945 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3947 egrep -v '^ *\+' conftest.er1
>conftest.err
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
3960 if test -z "$ac_cpp_err"; then
3961 ac_header_preproc
=yes
3963 echo "$as_me: failed program was:" >&5
3964 cat conftest.
$ac_ext >&5
3965 ac_header_preproc
=no
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
3971 # So? What about this header?
3972 case $ac_header_compiler:$ac_header_preproc in
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;};;
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;};;
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
3991 eval "$as_ac_Header=$ac_header_preproc"
3993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
4007 # Checks for typedefs.
4009 # Checks for structures.
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
4017 ac_cv_prog_cc_stdc
=no
4019 cat >conftest.
$ac_ext <<_ACEOF
4020 #line $LINENO "configure"
4021 #include "confdefs.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)
4035 static char *f (char * (*g) (char **, int), char **p, ...)
4040 s = g (p, va_arg (v,int));
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);
4050 #ifdef F77_DUMMY_MAIN
4054 int F77_DUMMY_MAIN() { return 1; }
4059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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__"
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
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
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_cv_prog_cc_stdc
=$ac_arg
4089 echo "$as_me: failed program was:" >&5
4090 cat conftest.
$ac_ext >&5
4092 rm -f conftest.
$ac_objext
4094 rm -f conftest.
$ac_ext conftest.
$ac_objext
4099 case "x$ac_cv_prog_cc_stdc" in
4101 echo "$as_me:$LINENO: result: none needed" >&5
4102 echo "${ECHO_T}none needed" >&6 ;;
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" ;;
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
4114 cat >conftest.
$ac_ext <<_ACEOF
4115 #line $LINENO "configure"
4116 #include "confdefs.h"
4118 #ifdef F77_DUMMY_MAIN
4122 int F77_DUMMY_MAIN() { return 1; }
4127 /* FIXME: Include the comments suggested by Paul. */
4129 /* Ultrix mips cc rejects this. */
4130 typedef int charset[2];
4132 /* SunOS 4.1.1 cc rejects this. */
4133 char const *const *ccp;
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
4142 const char *g = "string";
4143 ccp = &g + (g ? g-g : 0);
4144 /* HPUX 7.0 cc rejects these. */
4147 ccp = (char const *const *) p;
4148 { /* SCO 3.2v4 cc rejects this. */
4150 char const *s = 0 ? (char *) 0 : (char const *) 0;
4154 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4156 const int *foo = &x[0];
4159 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4160 typedef const int *iptr;
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;
4169 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4178 rm -f conftest.
$ac_objext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>&5
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
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4192 echo "$as_me: failed program was:" >&5
4193 cat conftest.
$ac_ext >&5
4196 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4202 cat >>confdefs.h
<<\_ACEOF
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
4214 for ac_kw
in inline __inline__ __inline
; do
4215 cat >conftest.
$ac_ext <<_ACEOF
4216 #line $LINENO "configure"
4217 #include "confdefs.h"
4219 static $ac_kw int static_foo () {return 0; }
4220 $ac_kw int foo () {return 0; }
4224 rm -f conftest.
$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>&5
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
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 ac_cv_c_inline
=$ac_kw; break
4238 echo "$as_me: failed program was:" >&5
4239 cat conftest.
$ac_ext >&5
4241 rm -f conftest.
$ac_objext conftest.
$ac_ext
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
4250 cat >>confdefs.h
<<\_ACEOF
4254 *) cat >>confdefs.h
<<_ACEOF
4255 #define inline $ac_cv_c_inline
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
4268 cat >>confdefs.h
<<\_ACEOF
4269 #define PROTOTYPES 1
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4276 U
=_ ANSI2KNR
=.
/ansi2knr
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
4284 cat >conftest.
$ac_ext <<_ACEOF
4285 #line $LINENO "configure"
4286 #include "confdefs.h"
4293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4294 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4296 egrep -v '^ *\+' conftest.er1
>conftest.err
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
4309 if test -z "$ac_cpp_err"; then
4310 ac_cv_header_stdc
=yes
4312 echo "$as_me: failed program was:" >&5
4313 cat conftest.
$ac_ext >&5
4314 ac_cv_header_stdc
=no
4316 rm -f conftest.err conftest.
$ac_ext
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"
4326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4327 egrep "memchr" >/dev
/null
2>&1; then
4330 ac_cv_header_stdc
=no
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"
4344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 egrep "free" >/dev
/null
2>&1; then
4348 ac_cv_header_stdc
=no
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
4359 cat >conftest.
$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4361 #include "confdefs.h"
4363 #if ((' ' & 0x0FF) == 0x020)
4364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
4373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4378 for (i = 0; i < 256; i++)
4379 if (XOR (islower (i), ISLOWER (i))
4380 || toupper (i) != TOUPPER (i))
4385 rm -f conftest
$ac_exeext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387 (eval $ac_link) 2>&5
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
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
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
4402 ac_cv_header_stdc
=no
4404 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
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
4412 cat >>confdefs.h
<<\_ACEOF
4413 #define STDC_HEADERS 1
4419 for ac_header
in string.h
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
4428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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>
4440 rm -f conftest.
$ac_objext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442 (eval $ac_compile) 2>&5
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
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_header_compiler
=yes
4454 echo "$as_me: failed program was:" >&5
4455 cat conftest.
$ac_ext >&5
4456 ac_header_compiler
=no
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
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>
4470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4471 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4473 egrep -v '^ *\+' conftest.er1
>conftest.err
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
4486 if test -z "$ac_cpp_err"; then
4487 ac_header_preproc
=yes
4489 echo "$as_me: failed program was:" >&5
4490 cat conftest.
$ac_ext >&5
4491 ac_header_preproc
=no
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
4497 # So? What about this header?
4498 case $ac_header_compiler:$ac_header_preproc in
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;};;
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;};;
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
4517 eval "$as_ac_Header=$ac_header_preproc"
4519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
4542 cat >conftest.
$ac_ext <<_ACEOF
4543 #line $LINENO "configure"
4544 #include "confdefs.h"
4546 #ifdef F77_DUMMY_MAIN
4550 int F77_DUMMY_MAIN() { return 1; }
4555 char *p = (char *) alloca (2 * sizeof (int));
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
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
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 ac_cv_working_alloca_h
=yes
4574 echo "$as_me: failed program was:" >&5
4575 cat conftest.
$ac_ext >&5
4576 ac_cv_working_alloca_h
=no
4578 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
4584 cat >>confdefs.h
<<\_ACEOF
4585 #define HAVE_ALLOCA_H 1
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
4595 cat >conftest.
$ac_ext <<_ACEOF
4596 #line $LINENO "configure"
4597 #include "confdefs.h"
4599 # define alloca __builtin_alloca
4602 # include <malloc.h>
4603 # define alloca _alloca
4606 # include <alloca.h>
4611 # ifndef alloca /* predefined by HP cc +Olibcalls */
4619 #ifdef F77_DUMMY_MAIN
4623 int F77_DUMMY_MAIN() { return 1; }
4628 char *p = (char *) alloca (1);
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
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
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4645 ac_cv_func_alloca_works
=yes
4647 echo "$as_me: failed program was:" >&5
4648 cat conftest.
$ac_ext >&5
4649 ac_cv_func_alloca_works
=no
4651 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4653 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4654 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4656 if test $ac_cv_func_alloca_works = yes; then
4658 cat >>confdefs.h
<<\_ACEOF
4659 #define HAVE_ALLOCA 1
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.
4668 ALLOCA
=alloca.
$ac_objext
4670 cat >>confdefs.h
<<\_ACEOF
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
4680 cat >conftest.
$ac_ext <<_ACEOF
4681 #line $LINENO "configure"
4682 #include "confdefs.h"
4683 #if defined(CRAY) && ! defined(CRAY2)
4690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4691 egrep "webecray" >/dev
/null
2>&1; then
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
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. */
4715 /* Override any gcc2 internal prototype to avoid an error. */
4719 /* We use char because int might match the return type of a gcc2
4720 builtin and then its argument prototype would still apply. */
4724 #ifdef F77_DUMMY_MAIN
4728 int F77_DUMMY_MAIN() { return 1; }
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)
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
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
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 eval "$as_ac_var=yes"
4760 echo "$as_me: failed program was:" >&5
4761 cat conftest.
$ac_ext >&5
4762 eval "$as_ac_var=no"
4764 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
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
4770 cat >>confdefs.h
<<_ACEOF
4771 #define CRAY_STACKSEG_END $ac_func
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
4785 if test "$cross_compiling" = yes; then
4786 ac_cv_c_stack_direction
=0
4788 cat >conftest.
$ac_ext <<_ACEOF
4789 #line $LINENO "configure"
4790 #include "confdefs.h"
4792 find_stack_direction ()
4794 static char *addr = 0;
4799 return find_stack_direction ();
4802 return (&dummy > addr) ? 1 : -1;
4808 exit (find_stack_direction () < 0);
4811 rm -f conftest
$ac_exeext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813 (eval $ac_link) 2>&5
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
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_cv_c_stack_direction
=1
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
4828 ac_cv_c_stack_direction
=-1
4830 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4833 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4834 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4836 cat >>confdefs.h
<<_ACEOF
4837 #define STACK_DIRECTION $ac_cv_c_stack_direction
4845 for ac_func
in mkstemp setlocale
4847 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4848 echo "$as_me:$LINENO: checking for $ac_func" >&5
4849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4850 if eval "test \"\${$as_ac_var+set}\" = set"; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 cat >conftest.
$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 #include "confdefs.h"
4856 /* System header to define __stub macros and hopefully few prototypes,
4857 which can conflict with char $ac_func (); below. */
4859 /* Override any gcc2 internal prototype to avoid an error. */
4863 /* We use char because int might match the return type of a gcc2
4864 builtin and then its argument prototype would still apply. */
4868 #ifdef F77_DUMMY_MAIN
4872 int F77_DUMMY_MAIN() { return 1; }
4877 /* The GNU C library defines this for functions which it implements
4878 to always fail with ENOSYS. Some functions are actually named
4879 something starting with __ and the normal name is an alias. */
4880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4890 rm -f conftest.
$ac_objext conftest
$ac_exeext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4892 (eval $ac_link) 2>&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try
='test -s conftest$ac_exeext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 eval "$as_ac_var=yes"
4904 echo "$as_me: failed program was:" >&5
4905 cat conftest.
$ac_ext >&5
4906 eval "$as_ac_var=no"
4908 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4912 if test `eval echo '${'$as_ac_var'}'` = yes; then
4913 cat >>confdefs.h
<<_ACEOF
4914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4920 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4921 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4922 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 cat >conftest.
$ac_ext <<_ACEOF
4926 #line $LINENO "configure"
4927 #include "confdefs.h"
4928 $ac_includes_default
4929 #ifdef F77_DUMMY_MAIN
4933 int F77_DUMMY_MAIN() { return 1; }
4939 char *p = (char *) stpcpy;
4946 rm -f conftest.
$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948 (eval $ac_compile) 2>&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try
='test -s conftest.$ac_objext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 ac_cv_have_decl_stpcpy
=yes
4960 echo "$as_me: failed program was:" >&5
4961 cat conftest.
$ac_ext >&5
4962 ac_cv_have_decl_stpcpy
=no
4964 rm -f conftest.
$ac_objext conftest.
$ac_ext
4966 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4967 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4968 if test $ac_cv_have_decl_stpcpy = yes; then
4970 cat >>confdefs.h
<<_ACEOF
4971 #define HAVE_DECL_STPCPY 1
4976 cat >>confdefs.h
<<_ACEOF
4977 #define HAVE_DECL_STPCPY 0
4982 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4983 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4984 if test "${ac_cv_have_decl_strndup+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 cat >conftest.
$ac_ext <<_ACEOF
4988 #line $LINENO "configure"
4989 #include "confdefs.h"
4990 $ac_includes_default
4991 #ifdef F77_DUMMY_MAIN
4995 int F77_DUMMY_MAIN() { return 1; }
5001 char *p = (char *) strndup;
5008 rm -f conftest.
$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_have_decl_strndup
=yes
5022 echo "$as_me: failed program was:" >&5
5023 cat conftest.
$ac_ext >&5
5024 ac_cv_have_decl_strndup
=no
5026 rm -f conftest.
$ac_objext conftest.
$ac_ext
5028 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
5029 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
5030 if test $ac_cv_have_decl_strndup = yes; then
5032 cat >>confdefs.h
<<_ACEOF
5033 #define HAVE_DECL_STRNDUP 1
5038 cat >>confdefs.h
<<_ACEOF
5039 #define HAVE_DECL_STRNDUP 0
5044 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
5045 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
5046 if test "${ac_cv_have_decl_strnlen+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 cat >conftest.
$ac_ext <<_ACEOF
5050 #line $LINENO "configure"
5051 #include "confdefs.h"
5052 $ac_includes_default
5053 #ifdef F77_DUMMY_MAIN
5057 int F77_DUMMY_MAIN() { return 1; }
5063 char *p = (char *) strnlen;
5070 rm -f conftest.
$ac_objext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try
='test -s conftest.$ac_objext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 ac_cv_have_decl_strnlen
=yes
5084 echo "$as_me: failed program was:" >&5
5085 cat conftest.
$ac_ext >&5
5086 ac_cv_have_decl_strnlen
=no
5088 rm -f conftest.
$ac_objext conftest.
$ac_ext
5090 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
5091 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5092 if test $ac_cv_have_decl_strnlen = yes; then
5094 cat >>confdefs.h
<<_ACEOF
5095 #define HAVE_DECL_STRNLEN 1
5100 cat >>confdefs.h
<<_ACEOF
5101 #define HAVE_DECL_STRNLEN 0
5106 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5107 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5108 if test "${ac_cv_have_decl_memchr+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 cat >conftest.
$ac_ext <<_ACEOF
5112 #line $LINENO "configure"
5113 #include "confdefs.h"
5114 $ac_includes_default
5115 #ifdef F77_DUMMY_MAIN
5119 int F77_DUMMY_MAIN() { return 1; }
5125 char *p = (char *) memchr;
5132 rm -f conftest.
$ac_objext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try
='test -s conftest.$ac_objext'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; }; then
5144 ac_cv_have_decl_memchr
=yes
5146 echo "$as_me: failed program was:" >&5
5147 cat conftest.
$ac_ext >&5
5148 ac_cv_have_decl_memchr
=no
5150 rm -f conftest.
$ac_objext conftest.
$ac_ext
5152 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5153 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5154 if test $ac_cv_have_decl_memchr = yes; then
5156 cat >>confdefs.h
<<_ACEOF
5157 #define HAVE_DECL_MEMCHR 1
5162 cat >>confdefs.h
<<_ACEOF
5163 #define HAVE_DECL_MEMCHR 0
5175 for ac_func
in stpcpy strndup strnlen strspn memchr
5177 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5178 echo "$as_me:$LINENO: checking for $ac_func" >&5
5179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5180 if eval "test \"\${$as_ac_var+set}\" = set"; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 cat >conftest.
$ac_ext <<_ACEOF
5184 #line $LINENO "configure"
5185 #include "confdefs.h"
5186 /* System header to define __stub macros and hopefully few prototypes,
5187 which can conflict with char $ac_func (); below. */
5189 /* Override any gcc2 internal prototype to avoid an error. */
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
5198 #ifdef F77_DUMMY_MAIN
5202 int F77_DUMMY_MAIN() { return 1; }
5207 /* The GNU C library defines this for functions which it implements
5208 to always fail with ENOSYS. Some functions are actually named
5209 something starting with __ and the normal name is an alias. */
5210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5220 rm -f conftest.
$ac_objext conftest
$ac_exeext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5222 (eval $ac_link) 2>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try
='test -s conftest$ac_exeext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 eval "$as_ac_var=yes"
5234 echo "$as_me: failed program was:" >&5
5235 cat conftest.
$ac_ext >&5
5236 eval "$as_ac_var=no"
5238 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5242 if test `eval echo '${'$as_ac_var'}'` = yes; then
5243 cat >>confdefs.h
<<_ACEOF
5244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5248 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5255 cat >>confdefs.h
<<\_ACEOF
5256 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5260 echo "$as_me:$LINENO: checking for working malloc" >&5
5261 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5262 if test "${jm_cv_func_working_malloc+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 if test "$cross_compiling" = yes; then
5266 jm_cv_func_working_malloc
=no
5268 cat >conftest.
$ac_ext <<_ACEOF
5269 #line $LINENO "configure"
5270 #include "confdefs.h"
5276 exit (malloc (0) ? 0 : 1);
5280 rm -f conftest
$ac_exeext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 jm_cv_func_working_malloc
=yes
5293 echo "$as_me: program exited with status $ac_status" >&5
5294 echo "$as_me: failed program was:" >&5
5295 cat conftest.
$ac_ext >&5
5297 jm_cv_func_working_malloc
=no
5299 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5303 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5304 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5305 if test $jm_cv_func_working_malloc = no
; then
5306 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5308 cat >>confdefs.h
<<\_ACEOF
5309 #define malloc rpl_malloc
5316 cat >>confdefs.h
<<\_ACEOF
5317 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5321 echo "$as_me:$LINENO: checking for working realloc" >&5
5322 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5323 if test "${jm_cv_func_working_realloc+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 if test "$cross_compiling" = yes; then
5327 jm_cv_func_working_realloc
=no
5329 cat >conftest.
$ac_ext <<_ACEOF
5330 #line $LINENO "configure"
5331 #include "confdefs.h"
5337 exit (realloc (0, 0) ? 0 : 1);
5341 rm -f conftest
$ac_exeext
5342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5343 (eval $ac_link) 2>&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 jm_cv_func_working_realloc
=yes
5354 echo "$as_me: program exited with status $ac_status" >&5
5355 echo "$as_me: failed program was:" >&5
5356 cat conftest.
$ac_ext >&5
5358 jm_cv_func_working_realloc
=no
5360 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5364 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5365 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5366 if test $jm_cv_func_working_realloc = no
; then
5367 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5369 cat >>confdefs.h
<<\_ACEOF
5370 #define realloc rpl_realloc
5379 for ac_func
in isascii iswprint mbsinit
5381 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5382 echo "$as_me:$LINENO: checking for $ac_func" >&5
5383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5384 if eval "test \"\${$as_ac_var+set}\" = set"; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 cat >conftest.
$ac_ext <<_ACEOF
5388 #line $LINENO "configure"
5389 #include "confdefs.h"
5390 /* System header to define __stub macros and hopefully few prototypes,
5391 which can conflict with char $ac_func (); below. */
5393 /* Override any gcc2 internal prototype to avoid an error. */
5397 /* We use char because int might match the return type of a gcc2
5398 builtin and then its argument prototype would still apply. */
5402 #ifdef F77_DUMMY_MAIN
5406 int F77_DUMMY_MAIN() { return 1; }
5411 /* The GNU C library defines this for functions which it implements
5412 to always fail with ENOSYS. Some functions are actually named
5413 something starting with __ and the normal name is an alias. */
5414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5424 rm -f conftest.
$ac_objext conftest
$ac_exeext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5426 (eval $ac_link) 2>&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try
='test -s conftest$ac_exeext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 eval "$as_ac_var=yes"
5438 echo "$as_me: failed program was:" >&5
5439 cat conftest.
$ac_ext >&5
5440 eval "$as_ac_var=no"
5442 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5446 if test `eval echo '${'$as_ac_var'}'` = yes; then
5447 cat >>confdefs.h
<<_ACEOF
5448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5455 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5456 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5457 if test "${jm_cv_func_mbrtowc+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 cat >conftest.
$ac_ext <<_ACEOF
5461 #line $LINENO "configure"
5462 #include "confdefs.h"
5464 #ifdef F77_DUMMY_MAIN
5468 int F77_DUMMY_MAIN() { return 1; }
5473 mbstate_t state; return ! (sizeof state && mbrtowc);
5478 rm -f conftest.
$ac_objext conftest
$ac_exeext
5479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5480 (eval $ac_link) 2>&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try
='test -s conftest$ac_exeext'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; }; then
5490 jm_cv_func_mbrtowc
=yes
5492 echo "$as_me: failed program was:" >&5
5493 cat conftest.
$ac_ext >&5
5494 jm_cv_func_mbrtowc
=no
5496 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5498 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5499 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5500 if test $jm_cv_func_mbrtowc = yes; then
5502 cat >>confdefs.h
<<\_ACEOF
5503 #define HAVE_MBRTOWC 1
5514 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5518 echo "$as_me:$LINENO: checking for $ac_header" >&5
5519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5526 # Is the header compilable?
5527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5529 cat >conftest.
$ac_ext <<_ACEOF
5530 #line $LINENO "configure"
5531 #include "confdefs.h"
5532 $ac_includes_default
5533 #include <$ac_header>
5535 rm -f conftest.
$ac_objext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537 (eval $ac_compile) 2>&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try
='test -s conftest.$ac_objext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_header_compiler
=yes
5549 echo "$as_me: failed program was:" >&5
5550 cat conftest.
$ac_ext >&5
5551 ac_header_compiler
=no
5553 rm -f conftest.
$ac_objext conftest.
$ac_ext
5554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5555 echo "${ECHO_T}$ac_header_compiler" >&6
5557 # Is the header present?
5558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5560 cat >conftest.
$ac_ext <<_ACEOF
5561 #line $LINENO "configure"
5562 #include "confdefs.h"
5563 #include <$ac_header>
5565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5566 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5568 egrep -v '^ *\+' conftest.er1
>conftest.err
5570 cat conftest.err
>&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } >/dev
/null
; then
5573 if test -s conftest.err
; then
5574 ac_cpp_err
=$ac_c_preproc_warn_flag
5581 if test -z "$ac_cpp_err"; then
5582 ac_header_preproc
=yes
5584 echo "$as_me: failed program was:" >&5
5585 cat conftest.
$ac_ext >&5
5586 ac_header_preproc
=no
5588 rm -f conftest.err conftest.
$ac_ext
5589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5590 echo "${ECHO_T}$ac_header_preproc" >&6
5592 # So? What about this header?
5593 case $ac_header_compiler:$ac_header_preproc in
5595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5607 echo "$as_me:$LINENO: checking for $ac_header" >&5
5608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 eval "$as_ac_Header=$ac_header_preproc"
5614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5619 cat >>confdefs.h
<<_ACEOF
5620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5627 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5628 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5629 if test "${ac_cv_header_stdc+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 cat >conftest.
$ac_ext <<_ACEOF
5633 #line $LINENO "configure"
5634 #include "confdefs.h"
5641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5642 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5644 egrep -v '^ *\+' conftest.er1
>conftest.err
5646 cat conftest.err
>&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } >/dev
/null
; then
5649 if test -s conftest.err
; then
5650 ac_cpp_err
=$ac_c_preproc_warn_flag
5657 if test -z "$ac_cpp_err"; then
5658 ac_cv_header_stdc
=yes
5660 echo "$as_me: failed program was:" >&5
5661 cat conftest.
$ac_ext >&5
5662 ac_cv_header_stdc
=no
5664 rm -f conftest.err conftest.
$ac_ext
5666 if test $ac_cv_header_stdc = yes; then
5667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5668 cat >conftest.
$ac_ext <<_ACEOF
5669 #line $LINENO "configure"
5670 #include "confdefs.h"
5674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5675 egrep "memchr" >/dev
/null
2>&1; then
5678 ac_cv_header_stdc
=no
5684 if test $ac_cv_header_stdc = yes; then
5685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5686 cat >conftest.
$ac_ext <<_ACEOF
5687 #line $LINENO "configure"
5688 #include "confdefs.h"
5692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5693 egrep "free" >/dev
/null
2>&1; then
5696 ac_cv_header_stdc
=no
5702 if test $ac_cv_header_stdc = yes; then
5703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5704 if test "$cross_compiling" = yes; then
5707 cat >conftest.
$ac_ext <<_ACEOF
5708 #line $LINENO "configure"
5709 #include "confdefs.h"
5711 #if ((' ' & 0x0FF) == 0x020)
5712 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5713 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5715 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5716 || ('j' <= (c) && (c) <= 'r') \
5717 || ('s' <= (c) && (c) <= 'z'))
5718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5726 for (i = 0; i < 256; i++)
5727 if (XOR (islower (i), ISLOWER (i))
5728 || toupper (i) != TOUPPER (i))
5733 rm -f conftest
$ac_exeext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5735 (eval $ac_link) 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5746 echo "$as_me: program exited with status $ac_status" >&5
5747 echo "$as_me: failed program was:" >&5
5748 cat conftest.
$ac_ext >&5
5750 ac_cv_header_stdc
=no
5752 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5756 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5757 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5758 if test $ac_cv_header_stdc = yes; then
5760 cat >>confdefs.h
<<\_ACEOF
5761 #define STDC_HEADERS 1
5767 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5768 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5769 if test "${ac_cv_c_backslash_a+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 cat >conftest.
$ac_ext <<_ACEOF
5773 #line $LINENO "configure"
5774 #include "confdefs.h"
5776 #ifdef F77_DUMMY_MAIN
5780 int F77_DUMMY_MAIN() { return 1; }
5789 char buf['\a' == 'a' ? -1 : 1];
5791 return buf[0] != "\a"[0];
5797 rm -f conftest.
$ac_objext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799 (eval $ac_compile) 2>&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try
='test -s conftest.$ac_objext'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_cv_c_backslash_a
=yes
5811 echo "$as_me: failed program was:" >&5
5812 cat conftest.
$ac_ext >&5
5813 ac_cv_c_backslash_a
=no
5815 rm -f conftest.
$ac_objext conftest.
$ac_ext
5817 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5818 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5819 if test $ac_cv_c_backslash_a = yes; then
5821 cat >>confdefs.h
<<\_ACEOF
5822 #define HAVE_C_BACKSLASH_A 1
5829 for ac_header
in stdlib.h
5831 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5833 echo "$as_me:$LINENO: checking for $ac_header" >&5
5834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5841 # Is the header compilable?
5842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5844 cat >conftest.
$ac_ext <<_ACEOF
5845 #line $LINENO "configure"
5846 #include "confdefs.h"
5847 $ac_includes_default
5848 #include <$ac_header>
5850 rm -f conftest.
$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852 (eval $ac_compile) 2>&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try
='test -s conftest.$ac_objext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 ac_header_compiler
=yes
5864 echo "$as_me: failed program was:" >&5
5865 cat conftest.
$ac_ext >&5
5866 ac_header_compiler
=no
5868 rm -f conftest.
$ac_objext conftest.
$ac_ext
5869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5870 echo "${ECHO_T}$ac_header_compiler" >&6
5872 # Is the header present?
5873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5875 cat >conftest.
$ac_ext <<_ACEOF
5876 #line $LINENO "configure"
5877 #include "confdefs.h"
5878 #include <$ac_header>
5880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5881 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5883 egrep -v '^ *\+' conftest.er1
>conftest.err
5885 cat conftest.err
>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } >/dev
/null
; then
5888 if test -s conftest.err
; then
5889 ac_cpp_err
=$ac_c_preproc_warn_flag
5896 if test -z "$ac_cpp_err"; then
5897 ac_header_preproc
=yes
5899 echo "$as_me: failed program was:" >&5
5900 cat conftest.
$ac_ext >&5
5901 ac_header_preproc
=no
5903 rm -f conftest.err conftest.
$ac_ext
5904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5905 echo "${ECHO_T}$ac_header_preproc" >&6
5907 # So? What about this header?
5908 case $ac_header_compiler:$ac_header_preproc in
5910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5922 echo "$as_me:$LINENO: checking for $ac_header" >&5
5923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 eval "$as_ac_Header=$ac_header_preproc"
5929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5934 cat >>confdefs.h
<<_ACEOF
5935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5943 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5944 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5945 if test "${ac_cv_type_mbstate_t+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 cat >conftest.
$ac_ext <<_ACEOF
5949 #line $LINENO "configure"
5950 #include "confdefs.h"
5953 # include <stdlib.h>
5956 #ifdef F77_DUMMY_MAIN
5960 int F77_DUMMY_MAIN() { return 1; }
5965 mbstate_t x; return sizeof x;
5970 rm -f conftest.
$ac_objext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972 (eval $ac_compile) 2>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } &&
5976 { ac_try
='test -s conftest.$ac_objext'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5982 ac_cv_type_mbstate_t
=yes
5984 echo "$as_me: failed program was:" >&5
5985 cat conftest.
$ac_ext >&5
5986 ac_cv_type_mbstate_t
=no
5988 rm -f conftest.
$ac_objext conftest.
$ac_ext
5990 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5991 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5992 if test $ac_cv_type_mbstate_t = no
; then
5994 cat >>confdefs.h
<<\_ACEOF
5995 #define mbstate_t int
6001 echo "$as_me:$LINENO: checking for function prototypes" >&5
6002 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6003 if test "$am_cv_prog_cc_stdc" != no
; then
6004 echo "$as_me:$LINENO: result: yes" >&5
6005 echo "${ECHO_T}yes" >&6
6007 cat >>confdefs.h
<<\_ACEOF
6008 #define PROTOTYPES 1
6013 echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6
6015 U
=_ ANSI2KNR
=.
/ansi2knr
6017 # Ensure some checks needed by ansi2knr itself.
6018 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6019 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6020 if test "${ac_cv_header_stdc+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 cat >conftest.
$ac_ext <<_ACEOF
6024 #line $LINENO "configure"
6025 #include "confdefs.h"
6032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6033 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6035 egrep -v '^ *\+' conftest.er1
>conftest.err
6037 cat conftest.err
>&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } >/dev
/null
; then
6040 if test -s conftest.err
; then
6041 ac_cpp_err
=$ac_c_preproc_warn_flag
6048 if test -z "$ac_cpp_err"; then
6049 ac_cv_header_stdc
=yes
6051 echo "$as_me: failed program was:" >&5
6052 cat conftest.
$ac_ext >&5
6053 ac_cv_header_stdc
=no
6055 rm -f conftest.err conftest.
$ac_ext
6057 if test $ac_cv_header_stdc = yes; then
6058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6059 cat >conftest.
$ac_ext <<_ACEOF
6060 #line $LINENO "configure"
6061 #include "confdefs.h"
6065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6066 egrep "memchr" >/dev
/null
2>&1; then
6069 ac_cv_header_stdc
=no
6075 if test $ac_cv_header_stdc = yes; then
6076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6077 cat >conftest.
$ac_ext <<_ACEOF
6078 #line $LINENO "configure"
6079 #include "confdefs.h"
6083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6084 egrep "free" >/dev
/null
2>&1; then
6087 ac_cv_header_stdc
=no
6093 if test $ac_cv_header_stdc = yes; then
6094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6095 if test "$cross_compiling" = yes; then
6098 cat >conftest.
$ac_ext <<_ACEOF
6099 #line $LINENO "configure"
6100 #include "confdefs.h"
6102 #if ((' ' & 0x0FF) == 0x020)
6103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6106 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6107 || ('j' <= (c) && (c) <= 'r') \
6108 || ('s' <= (c) && (c) <= 'z'))
6109 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6112 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6117 for (i = 0; i < 256; i++)
6118 if (XOR (islower (i), ISLOWER (i))
6119 || toupper (i) != TOUPPER (i))
6124 rm -f conftest
$ac_exeext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126 (eval $ac_link) 2>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6137 echo "$as_me: program exited with status $ac_status" >&5
6138 echo "$as_me: failed program was:" >&5
6139 cat conftest.
$ac_ext >&5
6141 ac_cv_header_stdc
=no
6143 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6147 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6148 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6149 if test $ac_cv_header_stdc = yes; then
6151 cat >>confdefs.h
<<\_ACEOF
6152 #define STDC_HEADERS 1
6158 for ac_header
in string.h
6160 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6162 echo "$as_me:$LINENO: checking for $ac_header" >&5
6163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6170 # Is the header compilable?
6171 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6173 cat >conftest.
$ac_ext <<_ACEOF
6174 #line $LINENO "configure"
6175 #include "confdefs.h"
6176 $ac_includes_default
6177 #include <$ac_header>
6179 rm -f conftest.
$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try
='test -s conftest.$ac_objext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 ac_header_compiler
=yes
6193 echo "$as_me: failed program was:" >&5
6194 cat conftest.
$ac_ext >&5
6195 ac_header_compiler
=no
6197 rm -f conftest.
$ac_objext conftest.
$ac_ext
6198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6199 echo "${ECHO_T}$ac_header_compiler" >&6
6201 # Is the header present?
6202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6204 cat >conftest.
$ac_ext <<_ACEOF
6205 #line $LINENO "configure"
6206 #include "confdefs.h"
6207 #include <$ac_header>
6209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6210 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6212 egrep -v '^ *\+' conftest.er1
>conftest.err
6214 cat conftest.err
>&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } >/dev
/null
; then
6217 if test -s conftest.err
; then
6218 ac_cpp_err
=$ac_c_preproc_warn_flag
6225 if test -z "$ac_cpp_err"; then
6226 ac_header_preproc
=yes
6228 echo "$as_me: failed program was:" >&5
6229 cat conftest.
$ac_ext >&5
6230 ac_header_preproc
=no
6232 rm -f conftest.err conftest.
$ac_ext
6233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6234 echo "${ECHO_T}$ac_header_preproc" >&6
6236 # So? What about this header?
6237 case $ac_header_compiler:$ac_header_preproc in
6239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6247 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6251 echo "$as_me:$LINENO: checking for $ac_header" >&5
6252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 eval "$as_ac_Header=$ac_header_preproc"
6258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263 cat >>confdefs.h
<<_ACEOF
6264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6277 for ac_func
in strerror vprintf doprnt
6279 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6280 echo "$as_me:$LINENO: checking for $ac_func" >&5
6281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6282 if eval "test \"\${$as_ac_var+set}\" = set"; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 cat >conftest.
$ac_ext <<_ACEOF
6286 #line $LINENO "configure"
6287 #include "confdefs.h"
6288 /* System header to define __stub macros and hopefully few prototypes,
6289 which can conflict with char $ac_func (); below. */
6291 /* Override any gcc2 internal prototype to avoid an error. */
6295 /* We use char because int might match the return type of a gcc2
6296 builtin and then its argument prototype would still apply. */
6300 #ifdef F77_DUMMY_MAIN
6304 int F77_DUMMY_MAIN() { return 1; }
6309 /* The GNU C library defines this for functions which it implements
6310 to always fail with ENOSYS. Some functions are actually named
6311 something starting with __ and the normal name is an alias. */
6312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6322 rm -f conftest.
$ac_objext conftest
$ac_exeext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6324 (eval $ac_link) 2>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try
='test -s conftest$ac_exeext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6334 eval "$as_ac_var=yes"
6336 echo "$as_me: failed program was:" >&5
6337 cat conftest.
$ac_ext >&5
6338 eval "$as_ac_var=no"
6340 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6344 if test `eval echo '${'$as_ac_var'}'` = yes; then
6345 cat >>confdefs.h
<<_ACEOF
6346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6352 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
6353 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
6354 if test "${ac_cv_have_decl_strerror+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 cat >conftest.
$ac_ext <<_ACEOF
6358 #line $LINENO "configure"
6359 #include "confdefs.h"
6360 $ac_includes_default
6361 #ifdef F77_DUMMY_MAIN
6365 int F77_DUMMY_MAIN() { return 1; }
6371 char *p = (char *) strerror;
6378 rm -f conftest.
$ac_objext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try
='test -s conftest.$ac_objext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_cv_have_decl_strerror
=yes
6392 echo "$as_me: failed program was:" >&5
6393 cat conftest.
$ac_ext >&5
6394 ac_cv_have_decl_strerror
=no
6396 rm -f conftest.
$ac_objext conftest.
$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
6399 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
6400 if test $ac_cv_have_decl_strerror = yes; then
6402 cat >>confdefs.h
<<_ACEOF
6403 #define HAVE_DECL_STRERROR 1
6408 cat >>confdefs.h
<<_ACEOF
6409 #define HAVE_DECL_STRERROR 0
6416 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6417 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6418 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 cat >conftest.
$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6423 #include "confdefs.h"
6424 $ac_includes_default
6425 #ifdef F77_DUMMY_MAIN
6429 int F77_DUMMY_MAIN() { return 1; }
6435 char *p = (char *) strerror_r;
6442 rm -f conftest.
$ac_objext
6443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6444 (eval $ac_compile) 2>&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try
='test -s conftest.$ac_objext'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 ac_cv_have_decl_strerror_r
=yes
6456 echo "$as_me: failed program was:" >&5
6457 cat conftest.
$ac_ext >&5
6458 ac_cv_have_decl_strerror_r
=no
6460 rm -f conftest.
$ac_objext conftest.
$ac_ext
6462 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6463 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6464 if test $ac_cv_have_decl_strerror_r = yes; then
6466 cat >>confdefs.h
<<_ACEOF
6467 #define HAVE_DECL_STRERROR_R 1
6472 cat >>confdefs.h
<<_ACEOF
6473 #define HAVE_DECL_STRERROR_R 0
6481 for ac_func
in strerror_r
6483 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6484 echo "$as_me:$LINENO: checking for $ac_func" >&5
6485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6486 if eval "test \"\${$as_ac_var+set}\" = set"; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 cat >conftest.
$ac_ext <<_ACEOF
6490 #line $LINENO "configure"
6491 #include "confdefs.h"
6492 /* System header to define __stub macros and hopefully few prototypes,
6493 which can conflict with char $ac_func (); below. */
6495 /* Override any gcc2 internal prototype to avoid an error. */
6499 /* We use char because int might match the return type of a gcc2
6500 builtin and then its argument prototype would still apply. */
6504 #ifdef F77_DUMMY_MAIN
6508 int F77_DUMMY_MAIN() { return 1; }
6513 /* The GNU C library defines this for functions which it implements
6514 to always fail with ENOSYS. Some functions are actually named
6515 something starting with __ and the normal name is an alias. */
6516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6526 rm -f conftest.
$ac_objext conftest
$ac_exeext
6527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6528 (eval $ac_link) 2>&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } &&
6532 { ac_try
='test -s conftest$ac_exeext'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
6538 eval "$as_ac_var=yes"
6540 echo "$as_me: failed program was:" >&5
6541 cat conftest.
$ac_ext >&5
6542 eval "$as_ac_var=no"
6544 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6548 if test `eval echo '${'$as_ac_var'}'` = yes; then
6549 cat >>confdefs.h
<<_ACEOF
6550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6556 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6557 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
6558 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 ac_cv_func_strerror_r_char_p
=no
6563 if test $ac_cv_have_decl_strerror_r = yes; then
6564 cat >conftest.
$ac_ext <<_ACEOF
6565 #line $LINENO "configure"
6566 #include "confdefs.h"
6567 $ac_includes_default
6568 #ifdef F77_DUMMY_MAIN
6572 int F77_DUMMY_MAIN() { return 1; }
6579 char x = *strerror_r (0, buf, sizeof buf);
6580 char *p = strerror_r (0, buf, sizeof buf);
6586 rm -f conftest.
$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } &&
6592 { ac_try
='test -s conftest.$ac_objext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_func_strerror_r_char_p
=yes
6600 echo "$as_me: failed program was:" >&5
6601 cat conftest.
$ac_ext >&5
6603 rm -f conftest.
$ac_objext conftest.
$ac_ext
6605 # strerror_r is not declared. Choose between
6606 # systems that have relatively inaccessible declarations for the
6607 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6608 # former has a strerror_r that returns char*, while the latter
6609 # has a strerror_r that returns `int'.
6610 # This test should segfault on the DEC system.
6611 if test "$cross_compiling" = yes; then
6614 cat >conftest.
$ac_ext <<_ACEOF
6615 #line $LINENO "configure"
6616 #include "confdefs.h"
6617 $ac_includes_default
6618 extern char *strerror_r ();
6619 #ifdef F77_DUMMY_MAIN
6623 int F77_DUMMY_MAIN() { return 1; }
6629 char x = *strerror_r (0, buf, sizeof buf);
6630 exit (!isalpha (x));
6635 rm -f conftest
$ac_exeext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637 (eval $ac_link) 2>&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_func_strerror_r_char_p
=yes
6648 echo "$as_me: program exited with status $ac_status" >&5
6649 echo "$as_me: failed program was:" >&5
6650 cat conftest.
$ac_ext >&5
6652 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6657 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
6658 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
6659 if test $ac_cv_func_strerror_r_char_p = yes; then
6661 cat >>confdefs.h
<<\_ACEOF
6662 #define STRERROR_R_CHAR_P 1
6667 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6668 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6669 if test "${ac_cv_header_stdc+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 cat >conftest.
$ac_ext <<_ACEOF
6673 #line $LINENO "configure"
6674 #include "confdefs.h"
6681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6682 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6684 egrep -v '^ *\+' conftest.er1
>conftest.err
6686 cat conftest.err
>&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } >/dev
/null
; then
6689 if test -s conftest.err
; then
6690 ac_cpp_err
=$ac_c_preproc_warn_flag
6697 if test -z "$ac_cpp_err"; then
6698 ac_cv_header_stdc
=yes
6700 echo "$as_me: failed program was:" >&5
6701 cat conftest.
$ac_ext >&5
6702 ac_cv_header_stdc
=no
6704 rm -f conftest.err conftest.
$ac_ext
6706 if test $ac_cv_header_stdc = yes; then
6707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6708 cat >conftest.
$ac_ext <<_ACEOF
6709 #line $LINENO "configure"
6710 #include "confdefs.h"
6714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6715 egrep "memchr" >/dev
/null
2>&1; then
6718 ac_cv_header_stdc
=no
6724 if test $ac_cv_header_stdc = yes; then
6725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6726 cat >conftest.
$ac_ext <<_ACEOF
6727 #line $LINENO "configure"
6728 #include "confdefs.h"
6732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6733 egrep "free" >/dev
/null
2>&1; then
6736 ac_cv_header_stdc
=no
6742 if test $ac_cv_header_stdc = yes; then
6743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6744 if test "$cross_compiling" = yes; then
6747 cat >conftest.
$ac_ext <<_ACEOF
6748 #line $LINENO "configure"
6749 #include "confdefs.h"
6751 #if ((' ' & 0x0FF) == 0x020)
6752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6755 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6756 || ('j' <= (c) && (c) <= 'r') \
6757 || ('s' <= (c) && (c) <= 'z'))
6758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6766 for (i = 0; i < 256; i++)
6767 if (XOR (islower (i), ISLOWER (i))
6768 || toupper (i) != TOUPPER (i))
6773 rm -f conftest
$ac_exeext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6786 echo "$as_me: program exited with status $ac_status" >&5
6787 echo "$as_me: failed program was:" >&5
6788 cat conftest.
$ac_ext >&5
6790 ac_cv_header_stdc
=no
6792 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6796 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6797 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6798 if test $ac_cv_header_stdc = yes; then
6800 cat >>confdefs.h
<<\_ACEOF
6801 #define STDC_HEADERS 1
6807 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6808 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6810 # Check whether --with-dmalloc or --without-dmalloc was given.
6811 if test "${with_dmalloc+set}" = set; then
6812 withval
="$with_dmalloc"
6813 if test "$withval" = yes; then
6814 echo "$as_me:$LINENO: result: yes" >&5
6815 echo "${ECHO_T}yes" >&6
6817 cat >>confdefs.h
<<\_ACEOF
6818 #define WITH_DMALLOC 1
6821 LIBS
="$LIBS -ldmalloc"
6822 LDFLAGS
="$LDFLAGS -g"
6824 echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6
6828 echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6
6833 ALL_LINGUAS
="de es et fr ja nl ru sv tr"
6834 # Make sure we can run config.sub.
6835 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6836 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6837 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6838 { (exit 1); exit 1; }; }
6840 echo "$as_me:$LINENO: checking build system type" >&5
6841 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6842 if test "${ac_cv_build+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 ac_cv_build_alias
=$build_alias
6846 test -z "$ac_cv_build_alias" &&
6847 ac_cv_build_alias
=`$ac_config_guess`
6848 test -z "$ac_cv_build_alias" &&
6849 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6850 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6851 { (exit 1); exit 1; }; }
6852 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6853 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6854 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6855 { (exit 1); exit 1; }; }
6858 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6859 echo "${ECHO_T}$ac_cv_build" >&6
6861 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6862 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6863 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6866 echo "$as_me:$LINENO: checking host system type" >&5
6867 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6868 if test "${ac_cv_host+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 ac_cv_host_alias
=$host_alias
6872 test -z "$ac_cv_host_alias" &&
6873 ac_cv_host_alias
=$ac_cv_build_alias
6874 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6875 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6876 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6877 { (exit 1); exit 1; }; }
6880 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6881 echo "${ECHO_T}$ac_cv_host" >&6
6883 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6884 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6885 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6888 echo "$as_me:$LINENO: checking for off_t" >&5
6889 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6890 if test "${ac_cv_type_off_t+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 cat >conftest.
$ac_ext <<_ACEOF
6894 #line $LINENO "configure"
6895 #include "confdefs.h"
6896 $ac_includes_default
6897 #ifdef F77_DUMMY_MAIN
6901 int F77_DUMMY_MAIN() { return 1; }
6914 rm -f conftest.
$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try
='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_cv_type_off_t
=yes
6928 echo "$as_me: failed program was:" >&5
6929 cat conftest.
$ac_ext >&5
6932 rm -f conftest.
$ac_objext conftest.
$ac_ext
6934 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6935 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6936 if test $ac_cv_type_off_t = yes; then
6940 cat >>confdefs.h
<<_ACEOF
6946 echo "$as_me:$LINENO: checking for size_t" >&5
6947 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6948 if test "${ac_cv_type_size_t+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 cat >conftest.
$ac_ext <<_ACEOF
6952 #line $LINENO "configure"
6953 #include "confdefs.h"
6954 $ac_includes_default
6955 #ifdef F77_DUMMY_MAIN
6959 int F77_DUMMY_MAIN() { return 1; }
6966 if (sizeof (size_t))
6972 rm -f conftest.
$ac_objext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974 (eval $ac_compile) 2>&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try
='test -s conftest.$ac_objext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 ac_cv_type_size_t
=yes
6986 echo "$as_me: failed program was:" >&5
6987 cat conftest.
$ac_ext >&5
6988 ac_cv_type_size_t
=no
6990 rm -f conftest.
$ac_objext conftest.
$ac_ext
6992 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6993 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6994 if test $ac_cv_type_size_t = yes; then
6998 cat >>confdefs.h
<<_ACEOF
6999 #define size_t unsigned
7006 for ac_header
in stdlib.h unistd.h
7008 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7010 echo "$as_me:$LINENO: checking for $ac_header" >&5
7011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7018 # Is the header compilable?
7019 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7021 cat >conftest.
$ac_ext <<_ACEOF
7022 #line $LINENO "configure"
7023 #include "confdefs.h"
7024 $ac_includes_default
7025 #include <$ac_header>
7027 rm -f conftest.
$ac_objext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7029 (eval $ac_compile) 2>&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try
='test -s conftest.$ac_objext'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 ac_header_compiler
=yes
7041 echo "$as_me: failed program was:" >&5
7042 cat conftest.
$ac_ext >&5
7043 ac_header_compiler
=no
7045 rm -f conftest.
$ac_objext conftest.
$ac_ext
7046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7047 echo "${ECHO_T}$ac_header_compiler" >&6
7049 # Is the header present?
7050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7052 cat >conftest.
$ac_ext <<_ACEOF
7053 #line $LINENO "configure"
7054 #include "confdefs.h"
7055 #include <$ac_header>
7057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7058 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7060 egrep -v '^ *\+' conftest.er1
>conftest.err
7062 cat conftest.err
>&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } >/dev
/null
; then
7065 if test -s conftest.err
; then
7066 ac_cpp_err
=$ac_c_preproc_warn_flag
7073 if test -z "$ac_cpp_err"; then
7074 ac_header_preproc
=yes
7076 echo "$as_me: failed program was:" >&5
7077 cat conftest.
$ac_ext >&5
7078 ac_header_preproc
=no
7080 rm -f conftest.err conftest.
$ac_ext
7081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7082 echo "${ECHO_T}$ac_header_preproc" >&6
7084 # So? What about this header?
7085 case $ac_header_compiler:$ac_header_preproc in
7087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7099 echo "$as_me:$LINENO: checking for $ac_header" >&5
7100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 eval "$as_ac_Header=$ac_header_preproc"
7106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7111 cat >>confdefs.h
<<_ACEOF
7112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7120 for ac_func
in getpagesize
7122 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7123 echo "$as_me:$LINENO: checking for $ac_func" >&5
7124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7125 if eval "test \"\${$as_ac_var+set}\" = set"; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 cat >conftest.
$ac_ext <<_ACEOF
7129 #line $LINENO "configure"
7130 #include "confdefs.h"
7131 /* System header to define __stub macros and hopefully few prototypes,
7132 which can conflict with char $ac_func (); below. */
7134 /* Override any gcc2 internal prototype to avoid an error. */
7138 /* We use char because int might match the return type of a gcc2
7139 builtin and then its argument prototype would still apply. */
7143 #ifdef F77_DUMMY_MAIN
7147 int F77_DUMMY_MAIN() { return 1; }
7152 /* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7165 rm -f conftest.
$ac_objext conftest
$ac_exeext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7167 (eval $ac_link) 2>&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try
='test -s conftest$ac_exeext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 eval "$as_ac_var=yes"
7179 echo "$as_me: failed program was:" >&5
7180 cat conftest.
$ac_ext >&5
7181 eval "$as_ac_var=no"
7183 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7187 if test `eval echo '${'$as_ac_var'}'` = yes; then
7188 cat >>confdefs.h
<<_ACEOF
7189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7195 echo "$as_me:$LINENO: checking for working mmap" >&5
7196 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7197 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 if test "$cross_compiling" = yes; then
7201 ac_cv_func_mmap_fixed_mapped
=no
7203 cat >conftest.
$ac_ext <<_ACEOF
7204 #line $LINENO "configure"
7205 #include "confdefs.h"
7206 $ac_includes_default
7207 /* Thanks to Mike Haertel and Jim Avera for this test.
7208 Here is a matrix of mmap possibilities:
7209 mmap private not fixed
7210 mmap private fixed at somewhere currently unmapped
7211 mmap private fixed at somewhere already mapped
7212 mmap shared not fixed
7213 mmap shared fixed at somewhere currently unmapped
7214 mmap shared fixed at somewhere already mapped
7215 For private mappings, we should verify that changes cannot be read()
7216 back from the file, nor mmap's back from the file at a different
7217 address. (There have been systems where private was not correctly
7218 implemented like the infamous i386 svr4.0, and systems where the
7219 VM page cache was not coherent with the file system buffer cache
7220 like early versions of FreeBSD and possibly contemporary NetBSD.)
7221 For shared mappings, we should conversely verify that changes get
7222 propogated back to all the places they're supposed to be.
7224 Grep wants private fixed already mapped.
7225 The main things grep needs to know about mmap are:
7226 * does it exist and is it safe to write into the mmap'd area
7227 * how to use it (BSD variants) */
7230 #include <sys/mman.h>
7232 #if !STDC_HEADERS && !HAVE_STDLIB_H
7236 /* This mess was copied from the GNU getpagesize.h. */
7237 #if !HAVE_GETPAGESIZE
7238 /* Assume that all systems that can run configure have sys/param.h. */
7239 # if !HAVE_SYS_PARAM_H
7240 # define HAVE_SYS_PARAM_H 1
7243 # ifdef _SC_PAGESIZE
7244 # define getpagesize() sysconf(_SC_PAGESIZE)
7245 # else /* no _SC_PAGESIZE */
7246 # if HAVE_SYS_PARAM_H
7247 # include <sys/param.h>
7248 # ifdef EXEC_PAGESIZE
7249 # define getpagesize() EXEC_PAGESIZE
7250 # else /* no EXEC_PAGESIZE */
7252 # define getpagesize() NBPG * CLSIZE
7255 # endif /* no CLSIZE */
7256 # else /* no NBPG */
7258 # define getpagesize() NBPC
7259 # else /* no NBPC */
7261 # define getpagesize() PAGESIZE
7262 # endif /* PAGESIZE */
7263 # endif /* no NBPC */
7264 # endif /* no NBPG */
7265 # endif /* no EXEC_PAGESIZE */
7266 # else /* no HAVE_SYS_PARAM_H */
7267 # define getpagesize() 8192 /* punt totally */
7268 # endif /* no HAVE_SYS_PARAM_H */
7269 # endif /* no _SC_PAGESIZE */
7271 #endif /* no HAVE_GETPAGESIZE */
7276 char *data, *data2, *data3;
7280 pagesize = getpagesize ();
7282 /* First, make a file with some known garbage in it. */
7283 data = (char *) malloc (pagesize);
7286 for (i = 0; i < pagesize; ++i)
7287 *(data + i) = rand ();
7289 fd = creat ("conftest.mmap", 0600);
7292 if (write (fd, data, pagesize) != pagesize)
7296 /* Next, try to mmap the file at a fixed address which already has
7297 something else allocated at it. If we can, also make sure that
7298 we see the same garbage. */
7299 fd = open ("conftest.mmap", O_RDWR);
7302 data2 = (char *) malloc (2 * pagesize);
7305 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7306 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7307 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7309 for (i = 0; i < pagesize; ++i)
7310 if (*(data + i) != *(data2 + i))
7313 /* Finally, make sure that changes to the mapped area do not
7314 percolate back to the file as seen by read(). (This is a bug on
7315 some variants of i386 svr4.0.) */
7316 for (i = 0; i < pagesize; ++i)
7317 *(data2 + i) = *(data2 + i) + 1;
7318 data3 = (char *) malloc (pagesize);
7321 if (read (fd, data3, pagesize) != pagesize)
7323 for (i = 0; i < pagesize; ++i)
7324 if (*(data + i) != *(data3 + i))
7330 rm -f conftest
$ac_exeext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7332 (eval $ac_link) 2>&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 ac_cv_func_mmap_fixed_mapped
=yes
7343 echo "$as_me: program exited with status $ac_status" >&5
7344 echo "$as_me: failed program was:" >&5
7345 cat conftest.
$ac_ext >&5
7347 ac_cv_func_mmap_fixed_mapped
=no
7349 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7352 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7353 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7354 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7356 cat >>confdefs.h
<<\_ACEOF
7364 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7365 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7366 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 cat >conftest.
$ac_ext <<_ACEOF
7370 #line $LINENO "configure"
7371 #include "confdefs.h"
7373 #include <features.h>
7374 #ifdef __GNU_LIBRARY__
7375 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7382 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7383 ac_cv_gnu_library_2_1
=yes
7385 ac_cv_gnu_library_2_1
=no
7392 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7393 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7395 GLIBC21
="$ac_cv_gnu_library_2_1"
7409 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7410 stdlib.h string.h unistd.h sys
/param.h
7412 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7414 echo "$as_me:$LINENO: checking for $ac_header" >&5
7415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7422 # Is the header compilable?
7423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7425 cat >conftest.
$ac_ext <<_ACEOF
7426 #line $LINENO "configure"
7427 #include "confdefs.h"
7428 $ac_includes_default
7429 #include <$ac_header>
7431 rm -f conftest.
$ac_objext
7432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7433 (eval $ac_compile) 2>&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } &&
7437 { ac_try
='test -s conftest.$ac_objext'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; }; then
7443 ac_header_compiler
=yes
7445 echo "$as_me: failed program was:" >&5
7446 cat conftest.
$ac_ext >&5
7447 ac_header_compiler
=no
7449 rm -f conftest.
$ac_objext conftest.
$ac_ext
7450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7451 echo "${ECHO_T}$ac_header_compiler" >&6
7453 # Is the header present?
7454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7456 cat >conftest.
$ac_ext <<_ACEOF
7457 #line $LINENO "configure"
7458 #include "confdefs.h"
7459 #include <$ac_header>
7461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7464 egrep -v '^ *\+' conftest.er1
>conftest.err
7466 cat conftest.err
>&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } >/dev
/null
; then
7469 if test -s conftest.err
; then
7470 ac_cpp_err
=$ac_c_preproc_warn_flag
7477 if test -z "$ac_cpp_err"; then
7478 ac_header_preproc
=yes
7480 echo "$as_me: failed program was:" >&5
7481 cat conftest.
$ac_ext >&5
7482 ac_header_preproc
=no
7484 rm -f conftest.err conftest.
$ac_ext
7485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7486 echo "${ECHO_T}$ac_header_preproc" >&6
7488 # So? What about this header?
7489 case $ac_header_compiler:$ac_header_preproc in
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7503 echo "$as_me:$LINENO: checking for $ac_header" >&5
7504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 eval "$as_ac_Header=$ac_header_preproc"
7510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7515 cat >>confdefs.h
<<_ACEOF
7516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7544 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7545 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7546 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7548 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7549 echo "$as_me:$LINENO: checking for $ac_func" >&5
7550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7551 if eval "test \"\${$as_ac_var+set}\" = set"; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 cat >conftest.
$ac_ext <<_ACEOF
7555 #line $LINENO "configure"
7556 #include "confdefs.h"
7557 /* System header to define __stub macros and hopefully few prototypes,
7558 which can conflict with char $ac_func (); below. */
7560 /* Override any gcc2 internal prototype to avoid an error. */
7564 /* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7569 #ifdef F77_DUMMY_MAIN
7573 int F77_DUMMY_MAIN() { return 1; }
7578 /* The GNU C library defines this for functions which it implements
7579 to always fail with ENOSYS. Some functions are actually named
7580 something starting with __ and the normal name is an alias. */
7581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7591 rm -f conftest.
$ac_objext conftest
$ac_exeext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7593 (eval $ac_link) 2>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try
='test -s conftest$ac_exeext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 eval "$as_ac_var=yes"
7605 echo "$as_me: failed program was:" >&5
7606 cat conftest.
$ac_ext >&5
7607 eval "$as_ac_var=no"
7609 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7613 if test `eval echo '${'$as_ac_var'}'` = yes; then
7614 cat >>confdefs.h
<<_ACEOF
7615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7625 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7626 if test "${with_libiconv_prefix+set}" = set; then
7627 withval
="$with_libiconv_prefix"
7629 for dir
in `echo "$withval" | tr : ' '`; do
7630 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7631 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7636 echo "$as_me:$LINENO: checking for iconv" >&5
7637 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7638 if test "${am_cv_func_iconv+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 am_cv_func_iconv
="no, consider installing GNU libiconv"
7644 cat >conftest.
$ac_ext <<_ACEOF
7645 #line $LINENO "configure"
7646 #include "confdefs.h"
7649 #ifdef F77_DUMMY_MAIN
7653 int F77_DUMMY_MAIN() { return 1; }
7658 iconv_t cd = iconv_open("","");
7659 iconv(cd,NULL,NULL,NULL,NULL);
7665 rm -f conftest.
$ac_objext conftest
$ac_exeext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7667 (eval $ac_link) 2>&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try
='test -s conftest$ac_exeext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 am_cv_func_iconv
=yes
7679 echo "$as_me: failed program was:" >&5
7680 cat conftest.
$ac_ext >&5
7682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7683 if test "$am_cv_func_iconv" != yes; then
7684 am_save_LIBS
="$LIBS"
7685 LIBS
="$LIBS -liconv"
7686 cat >conftest.
$ac_ext <<_ACEOF
7687 #line $LINENO "configure"
7688 #include "confdefs.h"
7691 #ifdef F77_DUMMY_MAIN
7695 int F77_DUMMY_MAIN() { return 1; }
7700 iconv_t cd = iconv_open("","");
7701 iconv(cd,NULL,NULL,NULL,NULL);
7707 rm -f conftest.
$ac_objext conftest
$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try
='test -s conftest$ac_exeext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7720 am_cv_func_iconv
=yes
7722 echo "$as_me: failed program was:" >&5
7723 cat conftest.
$ac_ext >&5
7725 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7726 LIBS
="$am_save_LIBS"
7730 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7731 echo "${ECHO_T}$am_cv_func_iconv" >&6
7732 if test "$am_cv_func_iconv" = yes; then
7734 cat >>confdefs.h
<<\_ACEOF
7735 #define HAVE_ICONV 1
7738 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7739 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7740 if test "${am_cv_proto_iconv+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 cat >conftest.
$ac_ext <<_ACEOF
7745 #line $LINENO "configure"
7746 #include "confdefs.h"
7754 #if defined(__STDC__) || defined(__cplusplus)
7755 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7760 #ifdef F77_DUMMY_MAIN
7764 int F77_DUMMY_MAIN() { return 1; }
7774 rm -f conftest.
$ac_objext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776 (eval $ac_compile) 2>&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try
='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 am_cv_proto_iconv_arg1
=""
7788 echo "$as_me: failed program was:" >&5
7789 cat conftest.
$ac_ext >&5
7790 am_cv_proto_iconv_arg1
="const"
7792 rm -f conftest.
$ac_objext conftest.
$ac_ext
7793 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);"
7796 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7797 echo "$as_me:$LINENO: result: ${ac_t:-
7798 }$am_cv_proto_iconv" >&5
7799 echo "${ECHO_T}${ac_t:-
7800 }$am_cv_proto_iconv" >&6
7802 cat >>confdefs.h
<<_ACEOF
7803 #define ICONV_CONST $am_cv_proto_iconv_arg1
7808 if test "$am_cv_lib_iconv" = yes; then
7814 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7815 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7816 if test "${am_cv_langinfo_codeset+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 cat >conftest.
$ac_ext <<_ACEOF
7820 #line $LINENO "configure"
7821 #include "confdefs.h"
7822 #include <langinfo.h>
7823 #ifdef F77_DUMMY_MAIN
7827 int F77_DUMMY_MAIN() { return 1; }
7832 char* cs = nl_langinfo(CODESET);
7837 rm -f conftest.
$ac_objext conftest
$ac_exeext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839 (eval $ac_link) 2>&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try
='test -s conftest$ac_exeext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 am_cv_langinfo_codeset
=yes
7851 echo "$as_me: failed program was:" >&5
7852 cat conftest.
$ac_ext >&5
7853 am_cv_langinfo_codeset
=no
7855 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7858 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7859 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7860 if test $am_cv_langinfo_codeset = yes; then
7862 cat >>confdefs.h
<<\_ACEOF
7863 #define HAVE_LANGINFO_CODESET 1
7868 if test $ac_cv_header_locale_h = yes; then
7869 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7870 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7871 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 cat >conftest.
$ac_ext <<_ACEOF
7875 #line $LINENO "configure"
7876 #include "confdefs.h"
7878 #ifdef F77_DUMMY_MAIN
7882 int F77_DUMMY_MAIN() { return 1; }
7892 rm -f conftest.
$ac_objext conftest
$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try
='test -s conftest$ac_exeext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 am_cv_val_LC_MESSAGES
=yes
7906 echo "$as_me: failed program was:" >&5
7907 cat conftest.
$ac_ext >&5
7908 am_cv_val_LC_MESSAGES
=no
7910 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7912 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7913 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7914 if test $am_cv_val_LC_MESSAGES = yes; then
7916 cat >>confdefs.h
<<\_ACEOF
7917 #define HAVE_LC_MESSAGES 1
7922 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7923 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7924 # Check whether --enable-nls or --disable-nls was given.
7925 if test "${enable_nls+set}" = set; then
7926 enableval
="$enable_nls"
7931 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7932 echo "${ECHO_T}$USE_NLS" >&6
7935 BUILD_INCLUDED_LIBINTL
=no
7936 USE_INCLUDED_LIBINTL
=no
7939 if test "$USE_NLS" = "yes"; then
7941 cat >>confdefs.h
<<\_ACEOF
7942 #define ENABLE_NLS 1
7945 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7946 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7948 # Check whether --with-included-gettext or --without-included-gettext was given.
7949 if test "${with_included_gettext+set}" = set; then
7950 withval
="$with_included_gettext"
7951 nls_cv_force_use_gnu_gettext
=$withval
7953 nls_cv_force_use_gnu_gettext
=no
7955 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7956 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7958 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7959 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7965 if test "${ac_cv_header_libintl_h+set}" = set; then
7966 echo "$as_me:$LINENO: checking for libintl.h" >&5
7967 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7968 if test "${ac_cv_header_libintl_h+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7972 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7974 # Is the header compilable?
7975 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7976 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7977 cat >conftest.
$ac_ext <<_ACEOF
7978 #line $LINENO "configure"
7979 #include "confdefs.h"
7980 $ac_includes_default
7981 #include <libintl.h>
7983 rm -f conftest.
$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985 (eval $ac_compile) 2>&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } &&
7989 { ac_try
='test -s conftest.$ac_objext'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 ac_header_compiler
=yes
7997 echo "$as_me: failed program was:" >&5
7998 cat conftest.
$ac_ext >&5
7999 ac_header_compiler
=no
8001 rm -f conftest.
$ac_objext conftest.
$ac_ext
8002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8003 echo "${ECHO_T}$ac_header_compiler" >&6
8005 # Is the header present?
8006 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8007 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8008 cat >conftest.
$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8011 #include <libintl.h>
8013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8014 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8016 egrep -v '^ *\+' conftest.er1
>conftest.err
8018 cat conftest.err
>&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } >/dev
/null
; then
8021 if test -s conftest.err
; then
8022 ac_cpp_err
=$ac_c_preproc_warn_flag
8029 if test -z "$ac_cpp_err"; then
8030 ac_header_preproc
=yes
8032 echo "$as_me: failed program was:" >&5
8033 cat conftest.
$ac_ext >&5
8034 ac_header_preproc
=no
8036 rm -f conftest.err conftest.
$ac_ext
8037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8038 echo "${ECHO_T}$ac_header_preproc" >&6
8040 # So? What about this header?
8041 case $ac_header_compiler:$ac_header_preproc in
8043 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8044 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8046 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8048 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
8049 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
8050 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8051 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8053 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8055 echo "$as_me:$LINENO: checking for libintl.h" >&5
8056 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8057 if test "${ac_cv_header_libintl_h+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 ac_cv_header_libintl_h
=$ac_header_preproc
8062 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8063 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8066 if test $ac_cv_header_libintl_h = yes; then
8067 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8068 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8069 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 cat >conftest.
$ac_ext <<_ACEOF
8073 #line $LINENO "configure"
8074 #include "confdefs.h"
8075 #include <libintl.h>
8076 extern int _nl_msg_cat_cntr;
8077 #ifdef F77_DUMMY_MAIN
8081 int F77_DUMMY_MAIN() { return 1; }
8086 bindtextdomain ("", "");
8087 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8092 rm -f conftest.
$ac_objext conftest
$ac_exeext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8094 (eval $ac_link) 2>&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try
='test -s conftest$ac_exeext'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8104 gt_cv_func_gnugettext2_libc
=yes
8106 echo "$as_me: failed program was:" >&5
8107 cat conftest.
$ac_ext >&5
8108 gt_cv_func_gnugettext2_libc
=no
8110 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8112 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8113 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8115 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8116 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8117 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8118 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 gt_save_LIBS
="$LIBS"
8122 LIBS
="$LIBS -lintl $LIBICONV"
8123 cat >conftest.
$ac_ext <<_ACEOF
8124 #line $LINENO "configure"
8125 #include "confdefs.h"
8126 #include <libintl.h>
8127 extern int _nl_msg_cat_cntr;
8128 #ifdef F77_DUMMY_MAIN
8132 int F77_DUMMY_MAIN() { return 1; }
8137 bindtextdomain ("", "");
8138 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8143 rm -f conftest.
$ac_objext conftest
$ac_exeext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8145 (eval $ac_link) 2>&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try
='test -s conftest$ac_exeext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 gt_cv_func_gnugettext2_libintl
=yes
8157 echo "$as_me: failed program was:" >&5
8158 cat conftest.
$ac_ext >&5
8159 gt_cv_func_gnugettext2_libintl
=no
8161 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8162 LIBS
="$gt_save_LIBS"
8164 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8165 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8168 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8169 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8170 && test "$PACKAGE" != gettext; }; then
8172 cat >>confdefs.h
<<\_ACEOF
8173 #define HAVE_GETTEXT 1
8177 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8178 INTLLIBS
="-lintl $LIBICONV"
8181 gt_save_LIBS
="$LIBS"
8182 LIBS
="$LIBS $INTLLIBS"
8184 for ac_func
in dcgettext
8186 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8187 echo "$as_me:$LINENO: checking for $ac_func" >&5
8188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8189 if eval "test \"\${$as_ac_var+set}\" = set"; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 cat >conftest.
$ac_ext <<_ACEOF
8193 #line $LINENO "configure"
8194 #include "confdefs.h"
8195 /* System header to define __stub macros and hopefully few prototypes,
8196 which can conflict with char $ac_func (); below. */
8198 /* Override any gcc2 internal prototype to avoid an error. */
8202 /* We use char because int might match the return type of a gcc2
8203 builtin and then its argument prototype would still apply. */
8207 #ifdef F77_DUMMY_MAIN
8211 int F77_DUMMY_MAIN() { return 1; }
8216 /* The GNU C library defines this for functions which it implements
8217 to always fail with ENOSYS. Some functions are actually named
8218 something starting with __ and the normal name is an alias. */
8219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8229 rm -f conftest.
$ac_objext conftest
$ac_exeext
8230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8231 (eval $ac_link) 2>&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } &&
8235 { ac_try
='test -s conftest$ac_exeext'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 eval "$as_ac_var=yes"
8243 echo "$as_me: failed program was:" >&5
8244 cat conftest.
$ac_ext >&5
8245 eval "$as_ac_var=no"
8247 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8251 if test `eval echo '${'$as_ac_var'}'` = yes; then
8252 cat >>confdefs.h
<<_ACEOF
8253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8259 LIBS
="$gt_save_LIBS"
8261 # Extract the first word of "msgfmt", so it can be a program name with args.
8262 set dummy msgfmt
; ac_word
=$2
8263 echo "$as_me:$LINENO: checking for $ac_word" >&5
8264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8265 if test "${ac_cv_path_MSGFMT+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8273 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8274 for ac_dir
in $PATH; do
8275 test -z "$ac_dir" && ac_dir
=.
8276 if test -f $ac_dir/$ac_word; then
8277 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8278 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8284 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8288 MSGFMT
="$ac_cv_path_MSGFMT"
8289 if test "$MSGFMT" != ":"; then
8290 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8291 echo "${ECHO_T}$MSGFMT" >&6
8293 echo "$as_me:$LINENO: result: no" >&5
8294 echo "${ECHO_T}no" >&6
8297 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8298 set dummy gmsgfmt
; ac_word
=$2
8299 echo "$as_me:$LINENO: checking for $ac_word" >&5
8300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8301 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8313 test -z "$as_dir" && as_dir
=.
8314 for ac_exec_ext
in '' $ac_executable_extensions; do
8315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8327 GMSGFMT
=$ac_cv_path_GMSGFMT
8329 if test -n "$GMSGFMT"; then
8330 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8331 echo "${ECHO_T}$GMSGFMT" >&6
8333 echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6
8338 # Extract the first word of "xgettext", so it can be a program name with args.
8339 set dummy xgettext
; ac_word
=$2
8340 echo "$as_me:$LINENO: checking for $ac_word" >&5
8341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8342 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8350 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8351 for ac_dir
in $PATH; do
8352 test -z "$ac_dir" && ac_dir
=.
8353 if test -f $ac_dir/$ac_word; then
8354 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8355 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8361 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8365 XGETTEXT
="$ac_cv_path_XGETTEXT"
8366 if test "$XGETTEXT" != ":"; then
8367 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8368 echo "${ECHO_T}$XGETTEXT" >&6
8370 echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6
8382 if test "$CATOBJEXT" = "NONE"; then
8383 nls_cv_use_gnu_gettext
=yes
8387 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8388 INTLOBJS
="\$(GETTOBJS)"
8389 # Extract the first word of "msgfmt", so it can be a program name with args.
8390 set dummy msgfmt
; ac_word
=$2
8391 echo "$as_me:$LINENO: checking for $ac_word" >&5
8392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8393 if test "${ac_cv_path_MSGFMT+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8401 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8402 for ac_dir
in $PATH; do
8403 test -z "$ac_dir" && ac_dir
=.
8404 if test -f $ac_dir/$ac_word; then
8405 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8406 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8412 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8416 MSGFMT
="$ac_cv_path_MSGFMT"
8417 if test "$MSGFMT" != ":"; then
8418 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8419 echo "${ECHO_T}$MSGFMT" >&6
8421 echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6
8425 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8426 set dummy gmsgfmt
; ac_word
=$2
8427 echo "$as_me:$LINENO: checking for $ac_word" >&5
8428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8429 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8441 test -z "$as_dir" && as_dir
=.
8442 for ac_exec_ext
in '' $ac_executable_extensions; do
8443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8455 GMSGFMT
=$ac_cv_path_GMSGFMT
8457 if test -n "$GMSGFMT"; then
8458 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8459 echo "${ECHO_T}$GMSGFMT" >&6
8461 echo "$as_me:$LINENO: result: no" >&5
8462 echo "${ECHO_T}no" >&6
8465 # Extract the first word of "xgettext", so it can be a program name with args.
8466 set dummy xgettext
; ac_word
=$2
8467 echo "$as_me:$LINENO: checking for $ac_word" >&5
8468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8469 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8477 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8478 for ac_dir
in $PATH; do
8479 test -z "$ac_dir" && ac_dir
=.
8480 if test -f $ac_dir/$ac_word; then
8481 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8482 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8488 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8492 XGETTEXT
="$ac_cv_path_XGETTEXT"
8493 if test "$XGETTEXT" != ":"; then
8494 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8495 echo "${ECHO_T}$XGETTEXT" >&6
8497 echo "$as_me:$LINENO: result: no" >&5
8498 echo "${ECHO_T}no" >&6
8502 BUILD_INCLUDED_LIBINTL
=yes
8503 USE_INCLUDED_LIBINTL
=yes
8505 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8506 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8509 if test "$GMSGFMT" != ":"; then
8510 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8513 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8514 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8519 if test "$XGETTEXT" != ":"; then
8520 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8523 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8524 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8531 ac_config_commands
="$ac_config_commands default-1"
8535 if test "$PACKAGE" = gettext; then
8536 BUILD_INCLUDED_LIBINTL
=yes
8539 for ac_prog
in bison
8541 # Extract the first word of "$ac_prog", so it can be a program name with args.
8542 set dummy
$ac_prog; ac_word
=$2
8543 echo "$as_me:$LINENO: checking for $ac_word" >&5
8544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8545 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 if test -n "$INTLBISON"; then
8549 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8555 test -z "$as_dir" && as_dir
=.
8556 for ac_exec_ext
in '' $ac_executable_extensions; do
8557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8558 ac_cv_prog_INTLBISON
="$ac_prog"
8559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 INTLBISON
=$ac_cv_prog_INTLBISON
8568 if test -n "$INTLBISON"; then
8569 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8570 echo "${ECHO_T}$INTLBISON" >&6
8572 echo "$as_me:$LINENO: result: no" >&5
8573 echo "${ECHO_T}no" >&6
8576 test -n "$INTLBISON" && break
8579 if test -z "$INTLBISON"; then
8582 echo "$as_me:$LINENO: checking version of bison" >&5
8583 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8584 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8585 case $ac_prog_version in
8586 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8587 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8588 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8589 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8591 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8592 echo "${ECHO_T}$ac_prog_version" >&6
8594 if test $ac_verc_fail = yes; then
8598 for lang
in $ALL_LINGUAS; do
8599 GMOFILES
="$GMOFILES $lang.gmo"
8600 POFILES
="$POFILES $lang.po"
8614 nls_cv_header_libgt
=
8626 if test "x$CATOBJEXT" != "x"; then
8627 if test "x$ALL_LINGUAS" = "x"; then
8630 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8631 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8633 for presentlang
in $ALL_LINGUAS; do
8635 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8636 # Use the presentlang catalog if desiredlang is
8637 # a. equal to presentlang, or
8638 # b. a variant of presentlang (because in this case,
8639 # presentlang can be used as a fallback for messages
8640 # which are not translated in the desiredlang catalog).
8641 case "$desiredlang" in
8642 "$presentlang"*) useit
=yes;;
8645 if test $useit = yes; then
8646 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8649 LINGUAS
=$NEW_LINGUAS
8650 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8651 echo "${ECHO_T}$LINGUAS" >&6
8654 if test -n "$LINGUAS"; then
8655 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8660 if test -n "$ac_aux_dir"; then
8661 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8663 if test -z "$MKINSTALLDIRS"; then
8664 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8668 INTL_LIBTOOL_SUFFIX_PREFIX
=
8672 # This is necessary so that .o files in LIBOBJS are also built via
8673 # the ANSI2KNR-filtering rules.
8674 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8677 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile"
8678 cat >confcache
<<\_ACEOF
8679 # This file is a shell script that caches the results of configure
8680 # tests run on this system so they can be shared between configure
8681 # scripts and configure runs, see configure's option --config-cache.
8682 # It is not useful on other systems. If it contains results you don't
8683 # want to keep, you may remove or edit it.
8685 # config.status only pays attention to the cache file if you give it
8686 # the --recheck option to rerun configure.
8688 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8694 # The following way of writing the cache mishandles newlines in values,
8695 # but we know of no workaround that is simple, portable, and efficient.
8696 # So, don't put newlines in cache variables' values.
8697 # Ultrix sh set writes to stderr and can't be redirected directly,
8698 # and sets the high bit in the cache file unless we assign to the vars.
8701 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8703 # `set' does not quote correctly, so add quotes (double-quote
8704 # substitution turns \\\\ into \\, and sed turns \\ into \).
8707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8710 # `set' quotes correctly as required by POSIX, so do not add quotes.
8712 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8721 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8723 if cmp -s $cache_file confcache
; then :; else
8724 if test -w $cache_file; then
8725 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8726 cat confcache
>$cache_file
8728 echo "not updating unwritable cache $cache_file"
8733 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8734 # Let make expand exec_prefix.
8735 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8737 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8738 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8739 # trailing colons and then remove the whole line if VPATH becomes empty
8740 # (actually we leave an empty line to preserve line numbers).
8741 if test "x$srcdir" = x.
; then
8742 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8743 s/:*\$(srcdir):*/:/;
8744 s/:*\${srcdir}:*/:/;
8746 s/^\([^=]*=[ ]*\):*/\1/;
8752 DEFS
=-DHAVE_CONFIG_H
8755 : ${CONFIG_STATUS=./config.status}
8756 ac_clean_files_save
=$ac_clean_files
8757 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8760 cat >$CONFIG_STATUS <<_ACEOF
8762 # Generated by $as_me.
8763 # Run this file to recreate the current configuration.
8764 # Compiler output produced by configure, useful for debugging
8765 # configure, is in config.log if it exists.
8768 SHELL=\${CONFIG_SHELL-$SHELL}
8771 cat >>$CONFIG_STATUS <<\_ACEOF
8773 ## --------------------- ##
8774 ## M4sh Initialization. ##
8775 ## --------------------- ##
8777 # Be Bourne compatible
8778 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8781 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8786 # Support unset when possible.
8787 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8793 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
8794 { $as_unset LANG
|| test "${LANG+set}" != set; } ||
8795 { LANG
=C
; export LANG
; }
8796 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
8797 { $as_unset LC_ALL
|| test "${LC_ALL+set}" != set; } ||
8798 { LC_ALL
=C
; export LC_ALL
; }
8799 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
8800 { $as_unset LC_TIME
|| test "${LC_TIME+set}" != set; } ||
8801 { LC_TIME
=C
; export LC_TIME
; }
8802 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
8803 { $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set; } ||
8804 { LC_CTYPE
=C
; export LC_CTYPE
; }
8805 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
8806 { $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set; } ||
8807 { LANGUAGE
=C
; export LANGUAGE
; }
8808 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
8809 { $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set; } ||
8810 { LC_COLLATE
=C
; export LC_COLLATE
; }
8811 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
8812 { $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set; } ||
8813 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
8814 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
8815 { $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set; } ||
8816 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
8819 # Name of the executable.
8820 as_me
=`(basename "$0") 2>/dev/null ||
8821 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8822 X"$0" : 'X\(//\)$' \| \
8823 X"$0" : 'X\(/\)$' \| \
8824 . : '\(.\)' 2>/dev/null ||
8826 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8827 /^X\/\(\/\/\)$/{ s//\1/; q; }
8828 /^X\/\(\/\).*/{ s//\1/; q; }
8831 # PATH needs CR, and LINENO needs CR and PATH.
8832 # Avoid depending upon Character Ranges.
8833 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8834 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8835 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8836 as_cr_digits
='0123456789'
8837 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8839 # The user is always right.
8840 if test "${PATH_SEPARATOR+set}" != set; then
8841 echo "#! $SHELL" >conftest.sh
8842 echo "exit 0" >>conftest.sh
8843 chmod +x conftest.sh
8844 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
8855 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8856 test "x$as_lineno_1" != "x$as_lineno_2" &&
8857 test "x$as_lineno_3" = "x$as_lineno_2" || {
8858 # Find who we are. Look in the path if we contain no path at all
8861 *[\\/]* ) as_myself
=$0 ;;
8862 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8866 test -z "$as_dir" && as_dir
=.
8867 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8872 # We did not find ourselves, most probably we were run as `sh COMMAND'
8873 # in which case we are not to be found in the path.
8874 if test "x$as_myself" = x
; then
8877 if test ! -f "$as_myself"; then
8878 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8879 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8880 { (exit 1); exit 1; }; }
8882 case $CONFIG_SHELL in
8884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8885 for as_dir
in /bin
:/usr
/bin
:$PATH
8888 test -z "$as_dir" && as_dir
=.
8889 for as_base
in sh bash ksh sh5
; do
8892 if ("$as_dir/$as_base" -c '
8895 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8896 test "x$as_lineno_1" != "x$as_lineno_2" &&
8897 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8898 CONFIG_SHELL
=$as_dir/$as_base
8900 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8908 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8909 # uniformly replaced by the line number. The first 'sed' inserts a
8910 # line-number line before each line; the second 'sed' does the real
8911 # work. The second script uses 'N' to pair each line-number line
8912 # with the numbered line, and appends trailing '-' during
8913 # substitution so that $LINENO is not a special case at line end.
8914 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8915 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8916 sed '=' <$as_myself |
8921 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8924 s,^['$as_cr_digits']*\n,,
8926 chmod +x
$as_me.lineno
||
8927 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8928 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8929 { (exit 1); exit 1; }; }
8931 # Don't try to exec as it changes $[0], causing all sort of problems
8932 # (the dirname of $[0] is not the place where we might find the
8933 # original and so on. Autoconf is especially sensible to this).
8935 # Exit status is that of the last command.
8940 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8941 *c
*,-n*) ECHO_N
= ECHO_C
='
8943 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8944 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8947 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8953 rm -f conf$$ conf$$.exe conf$$.
file
8955 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8956 # We could just check for DJGPP; but this test a) works b) is more generic
8957 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8958 if test -f conf$$.exe
; then
8959 # Don't use ln at all; we don't have any links
8964 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8969 rm -f conf$$ conf$$.exe conf$$.
file
8971 as_executable_p
="test -f"
8973 # Sed expression to map a string onto a valid CPP name.
8974 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8976 # Sed expression to map a string onto a valid variable name.
8977 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8981 # We need space, tab and new line, in precisely that order.
8987 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
8991 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8992 # report actual input values of CONFIG_FILES etc. instead of their
8993 # values after options handling. Logging --version etc. is OK.
8997 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8998 ## Running $as_me. ##
9003 This file was extended by GNU Bison $as_me 1.30e, which was
9004 generated by GNU Autoconf 2.52g. Invocation command line was
9006 CONFIG_FILES = $CONFIG_FILES
9007 CONFIG_HEADERS = $CONFIG_HEADERS
9008 CONFIG_LINKS = $CONFIG_LINKS
9009 CONFIG_COMMANDS = $CONFIG_COMMANDS
9013 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9017 # Files that config.status was made for.
9018 if test -n "$ac_config_files"; then
9019 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9022 if test -n "$ac_config_headers"; then
9023 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9026 if test -n "$ac_config_links"; then
9027 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9030 if test -n "$ac_config_commands"; then
9031 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9034 cat >>$CONFIG_STATUS <<\_ACEOF
9037 \`$as_me' instantiates files from templates according to the
9038 current configuration.
9040 Usage: $0 [OPTIONS] [FILE]...
9042 -h, --help print this help, then exit
9043 -V, --version print version number, then exit
9044 -d, --debug don't remove temporary files
9045 --recheck update $as_me by reconfiguring in the same conditions
9046 --file=FILE[:TEMPLATE]
9047 instantiate the configuration file FILE
9048 --header=FILE[:TEMPLATE]
9049 instantiate the configuration header FILE
9051 Configuration files:
9054 Configuration headers:
9057 Configuration commands:
9060 Report bugs to <bug-autoconf@gnu.org>."
9063 cat >>$CONFIG_STATUS <<_ACEOF
9065 GNU Bison config.status 1.30e
9066 configured by $0, generated by GNU Autoconf 2.52g,
9067 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9069 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9070 Free Software Foundation, Inc.
9071 This config.status script is free software; the Free Software Foundation
9072 gives unlimited permission to copy, distribute and modify it."
9077 cat >>$CONFIG_STATUS <<\_ACEOF
9078 # If no file are specified by the user, then we need to provide default
9079 # value. By we need to know if files were specified by the user.
9085 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9086 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9088 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
9092 *) # This is not an option, so the user has probably given explicit
9094 ac_need_defaults
=false
;;
9098 # Handling of the options.
9100 cat >>$CONFIG_STATUS <<_ACEOF
9101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9102 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9103 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9105 cat >>$CONFIG_STATUS <<\_ACEOF
9106 --version | --vers* | -V )
9107 echo "$ac_cs_version"; exit 0 ;;
9109 # Conflict between --help and --header
9110 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9111 Try \`$0 --help' for more information." >&5
9112 echo "$as_me: error: ambiguous option: $1
9113 Try \`$0 --help' for more information." >&2;}
9114 { (exit 1); exit 1; }; };;
9115 --help | --hel | -h )
9116 echo "$ac_cs_usage"; exit 0 ;;
9117 --debug | --d* | -d )
9119 --file | --fil | --fi | --f )
9121 CONFIG_FILES
="$CONFIG_FILES $1"
9122 ac_need_defaults
=false
;;
9123 --header | --heade | --head | --hea )
9125 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
9126 ac_need_defaults
=false
;;
9129 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9130 Try \`$0 --help' for more information." >&5
9131 echo "$as_me: error: unrecognized option: $1
9132 Try \`$0 --help' for more information." >&2;}
9133 { (exit 1); exit 1; }; } ;;
9135 *) ac_config_targets
="$ac_config_targets $1" ;;
9143 cat >>$CONFIG_STATUS <<_ACEOF
9145 # INIT-COMMANDS section.
9148 PACKAGE_NAME='$PACKAGE_NAME'
9149 PACKAGE_TARNAME='$PACKAGE_TARNAME'
9150 PACKAGE_VERSION='$PACKAGE_VERSION'
9151 PACKAGE_STRING='$PACKAGE_STRING'
9152 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
9154 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9161 cat >>$CONFIG_STATUS <<\_ACEOF
9162 for ac_config_target
in $ac_config_targets
9164 case "$ac_config_target" in
9165 # Handling of arguments.
9166 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
9167 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
9168 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
9169 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9170 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
9171 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
9172 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
9173 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
9174 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
9175 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
9176 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
9177 "tests/package.m4" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/package.m4" ;;
9178 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
9179 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
9180 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9181 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
9182 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9183 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9184 { (exit 1); exit 1; }; };;
9188 # If the user did not use the arguments to specify the items to instantiate,
9189 # then the envvar interface is used. Set only those that are not.
9190 # We use the long form for the default assignment because of an extremely
9191 # bizarre bug on SunOS 4.1.3.
9192 if $ac_need_defaults; then
9193 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9194 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9195 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9198 # Create a temporary directory, and hook for its removal unless debugging.
9201 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9202 trap '{ (exit 1); exit 1; }' 1 2 13 15
9205 # Create a (secure) tmp directory for tmp files.
9208 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9209 test -n "$tmp" && test -d "$tmp"
9212 tmp
=$TMPDIR/cs$$
-$RANDOM
9213 (umask 077 && mkdir $tmp)
9216 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9217 { (exit 1); exit 1; }
9222 cat >>$CONFIG_STATUS <<_ACEOF
9225 # CONFIG_FILES section.
9228 # No need to generate the scripts if there are no CONFIG_FILES.
9229 # This happens for instance when ./config.status config.h
9230 if test -n "\$CONFIG_FILES"; then
9231 # Protect against being on the right side of a sed subst in config.status.
9232 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9233 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9234 s,@SHELL@,$SHELL,;t t
9235 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9236 s,@exec_prefix@,$exec_prefix,;t t
9237 s,@prefix@,$prefix,;t t
9238 s,@program_transform_name@,$program_transform_name,;t t
9239 s,@bindir@,$bindir,;t t
9240 s,@sbindir@,$sbindir,;t t
9241 s,@libexecdir@,$libexecdir,;t t
9242 s,@datadir@,$datadir,;t t
9243 s,@sysconfdir@,$sysconfdir,;t t
9244 s,@sharedstatedir@,$sharedstatedir,;t t
9245 s,@localstatedir@,$localstatedir,;t t
9246 s,@libdir@,$libdir,;t t
9247 s,@includedir@,$includedir,;t t
9248 s,@oldincludedir@,$oldincludedir,;t t
9249 s,@infodir@,$infodir,;t t
9250 s,@mandir@,$mandir,;t t
9251 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9252 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9253 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9254 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9255 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9256 s,@build_alias@,$build_alias,;t t
9257 s,@host_alias@,$host_alias,;t t
9258 s,@target_alias@,$target_alias,;t t
9260 s,@ECHO_C@,$ECHO_C,;t t
9261 s,@ECHO_N@,$ECHO_N,;t t
9262 s,@ECHO_T@,$ECHO_T,;t t
9264 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9265 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9266 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9267 s,@PACKAGE@,$PACKAGE,;t t
9268 s,@VERSION@,$VERSION,;t t
9269 s,@ACLOCAL@,$ACLOCAL,;t t
9270 s,@AUTOCONF@,$AUTOCONF,;t t
9271 s,@AUTOMAKE@,$AUTOMAKE,;t t
9272 s,@AUTOHEADER@,$AUTOHEADER,;t t
9273 s,@MAKEINFO@,$MAKEINFO,;t t
9274 s,@AMTAR@,$AMTAR,;t t
9275 s,@install_sh@,$install_sh,;t t
9276 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9278 s,@SET_MAKE@,$SET_MAKE,;t t
9279 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9280 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9281 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9282 s,@DEPDIR@,$DEPDIR,;t t
9285 s,@CFLAGS@,$CFLAGS,;t t
9286 s,@LDFLAGS@,$LDFLAGS,;t t
9287 s,@CPPFLAGS@,$CPPFLAGS,;t t
9288 s,@ac_ct_CC@,$ac_ct_CC,;t t
9289 s,@EXEEXT@,$EXEEXT,;t t
9290 s,@OBJEXT@,$OBJEXT,;t t
9291 s,@am__include@,$am__include,;t t
9292 s,@am__quote@,$am__quote,;t t
9293 s,@CCDEPMODE@,$CCDEPMODE,;t t
9295 s,@RANLIB@,$RANLIB,;t t
9296 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9297 s,@AUTOM4TE@,$AUTOM4TE,;t t
9298 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9300 s,@ANSI2KNR@,$ANSI2KNR,;t t
9301 s,@ALLOCA@,$ALLOCA,;t t
9302 s,@LIBOBJS@,$LIBOBJS,;t t
9303 s,@build@,$build,;t t
9304 s,@build_cpu@,$build_cpu,;t t
9305 s,@build_vendor@,$build_vendor,;t t
9306 s,@build_os@,$build_os,;t t
9308 s,@host_cpu@,$host_cpu,;t t
9309 s,@host_vendor@,$host_vendor,;t t
9310 s,@host_os@,$host_os,;t t
9311 s,@GLIBC21@,$GLIBC21,;t t
9312 s,@LIBICONV@,$LIBICONV,;t t
9313 s,@USE_NLS@,$USE_NLS,;t t
9314 s,@MSGFMT@,$MSGFMT,;t t
9315 s,@GMSGFMT@,$GMSGFMT,;t t
9316 s,@XGETTEXT@,$XGETTEXT,;t t
9317 s,@INTLBISON@,$INTLBISON,;t t
9318 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9319 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9320 s,@CATALOGS@,$CATALOGS,;t t
9321 s,@CATOBJEXT@,$CATOBJEXT,;t t
9322 s,@GMOFILES@,$GMOFILES,;t t
9323 s,@INTLLIBS@,$INTLLIBS,;t t
9324 s,@INTLOBJS@,$INTLOBJS,;t t
9325 s,@POFILES@,$POFILES,;t t
9326 s,@POSUB@,$POSUB,;t t
9327 s,@DATADIRNAME@,$DATADIRNAME,;t t
9328 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9329 s,@GENCAT@,$GENCAT,;t t
9330 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9331 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9336 cat >>$CONFIG_STATUS <<\_ACEOF
9337 # Split the substitutions into bite-sized pieces for seds with
9338 # small command number limits, like on Digital OSF/1 and HP-UX.
9340 ac_sed_frag
=1 # Number of current file.
9341 ac_beg
=1 # First line for current file.
9342 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9345 while $ac_more_lines; do
9346 if test $ac_beg -gt 1; then
9347 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9349 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9351 if test ! -s $tmp/subs.frag
; then
9354 # The purpose of the label and of the branching condition is to
9355 # speed up the sed processing (if there are no `@' at all, there
9356 # is no need to browse any of the substitutions).
9357 # These are the two extra sed commands mentioned above.
9359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9360 if test -z "$ac_sed_cmds"; then
9361 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9363 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9365 ac_sed_frag
=`expr $ac_sed_frag + 1`
9367 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9370 if test -z "$ac_sed_cmds"; then
9373 fi # test -n "$CONFIG_FILES"
9376 cat >>$CONFIG_STATUS <<\_ACEOF
9377 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9378 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9380 - | *:- | *:-:* ) # input from stdin
9382 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9383 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9384 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9385 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9386 * ) ac_file_in
=$ac_file.
in ;;
9389 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9390 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9391 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9392 X"$ac_file" : 'X\(//\)[^/]' \| \
9393 X"$ac_file" : 'X\(//\)$' \| \
9394 X"$ac_file" : 'X\(/\)' \| \
9395 . : '\(.\)' 2>/dev/null ||
9397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9399 /^X\(\/\/\)$/{ s//\1/; q; }
9400 /^X\(\/\).*/{ s//\1/; q; }
9403 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9407 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9408 case $as_mkdir_dir in
9409 # Skip DOS drivespec
9410 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9412 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9413 test -d "$as_incr_dir" ||
9414 mkdir "$as_incr_dir" ||
9415 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9416 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9417 { (exit 1); exit 1; }; }
9424 if test "$ac_dir" != .
; then
9425 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9426 # A "../" for each directory in $ac_dir_suffix.
9427 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9429 ac_dir_suffix
= ac_top_builddir
=
9433 .
) # No --srcdir option. We are building in place.
9435 if test -z "$ac_top_builddir"; then
9438 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9440 [\\/]* | ?
:[\\/]* ) # Absolute path.
9441 ac_srcdir
=$srcdir$ac_dir_suffix;
9442 ac_top_srcdir
=$srcdir ;;
9444 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9445 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9447 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9449 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9450 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9451 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9452 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9456 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9457 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9460 if test x
"$ac_file" != x
-; then
9461 { echo "$as_me:$LINENO: creating $ac_file" >&5
9462 echo "$as_me: creating $ac_file" >&6;}
9465 # Let's still pretend it is `configure' which instantiates (i.e., don't
9466 # use $as_me), people would be surprised to read:
9467 # /* config.h. Generated by config.status. */
9468 if test x
"$ac_file" = x
-; then
9471 configure_input
="$ac_file. "
9473 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9474 sed 's,.*/,,'` by configure."
9476 # First look for the input files in the build tree, otherwise in the
9478 ac_file_inputs
=`IFS=:
9479 for f in $ac_file_in; do
9481 -) echo $tmp/stdin ;;
9483 # Absolute (can't be DOS-style, as IFS=:)
9484 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9485 echo "$as_me: error: cannot find input file: $f" >&2;}
9486 { (exit 1); exit 1; }; }
9489 if test -f "$f"; then
9492 elif test -f "$srcdir/$f"; then
9497 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9498 echo "$as_me: error: cannot find input file: $f" >&2;}
9499 { (exit 1); exit 1; }; }
9502 done` || { (exit 1); exit 1; }
9504 cat >>$CONFIG_STATUS <<_ACEOF
9508 cat >>$CONFIG_STATUS <<\_ACEOF
9510 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9511 s
,@configure_input@
,$configure_input,;t t
9512 s
,@srcdir@
,$ac_srcdir,;t t
9513 s
,@srcpath@
,$ac_srcpath,;t t
9514 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9515 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9516 s
,@builddir@
,$ac_builddir,;t t
9517 s
,@buildpath@
,$ac_buildpath,;t t
9518 s
,@top_builddir@
,$ac_top_builddir,;t t
9519 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9520 s
,@INSTALL@
,$ac_INSTALL,;t t
9521 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9523 if test x"$ac_file" != x-; then
9524 mv $tmp/out $ac_file
9530 # Run the commands associated with the file.
9532 tests/bison ) chmod +x tests/bison ;;
9536 cat >>$CONFIG_STATUS <<\_ACEOF
9539 # CONFIG_HEADER section.
9542 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9543 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9545 # ac_d sets the value in "#define NAME VALUE" lines.
9546 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9547 ac_dB
='[ ].*$,\1#\2'
9550 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9551 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9552 ac_uB
='$,\1#\2define\3'
9556 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9557 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9559 - | *:- | *:-:* ) # input from stdin
9561 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9562 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9563 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9564 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9565 * ) ac_file_in
=$ac_file.
in ;;
9568 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9569 echo "$as_me: creating $ac_file" >&6;}
9571 # First look for the input files in the build tree, otherwise in the
9573 ac_file_inputs
=`IFS=:
9574 for f in $ac_file_in; do
9576 -) echo $tmp/stdin ;;
9578 # Absolute (can't be DOS-style, as IFS=:)
9579 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9580 echo "$as_me: error: cannot find input file: $f" >&2;}
9581 { (exit 1); exit 1; }; }
9584 if test -f "$f"; then
9587 elif test -f "$srcdir/$f"; then
9592 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9593 echo "$as_me: error: cannot find input file: $f" >&2;}
9594 { (exit 1); exit 1; }; }
9597 done` || { (exit 1); exit 1; }
9598 # Remove the trailing spaces.
9599 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9603 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9604 # `conftest.undefs', that substitutes the proper values into
9605 # config.h.in to produce config.h. The first handles `#define'
9606 # templates, and the second `#undef' templates.
9607 # And first: Protect against being on the right side of a sed subst in
9608 # config.status. Protect against being in an unquoted here document
9610 rm -f conftest.defines conftest.undefs
9611 # Using a here document instead of a string reduces the quoting nightmare.
9612 # Putting comments in sed scripts is not portable.
9614 # `end' is used to avoid that the second main sed command (meant for
9615 # 0-ary CPP macros) applies to n-ary macro definitions.
9616 # See the Autoconf documentation for `clear'.
9617 cat >confdef2sed.
sed <<\_ACEOF
9622 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9624 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9627 # If some macros were called several times there might be several times
9628 # the same #defines, which is useless. Nevertheless, we may not want to
9629 # sort them, since we want the *last* AC-DEFINE to be honored.
9630 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9631 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9632 rm -f confdef2sed.sed
9634 # This sed command replaces #undef with comments. This is necessary, for
9635 # example, in the case of _POSIX_SOURCE, which is predefined and required
9636 # on some systems where configure will not decide to define it.
9637 cat >>conftest.undefs <<\_ACEOF
9638 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9641 # Break up conftest.defines because some shells have a limit on the size
9642 # of here documents, and old seds have small limits too (100 cmds).
9643 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9644 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9645 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9646 echo ' :' >>$CONFIG_STATUS
9648 while grep . conftest.defines >/dev/null
9650 # Write a limited-size here document to $tmp/defines.sed.
9651 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9652 # Speed up: don't consider the non `#define' lines.
9653 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9654 # Work around the forget-to-reset-the-flag bug.
9655 echo 't clr' >>$CONFIG_STATUS
9656 echo ': clr' >>$CONFIG_STATUS
9657 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9659 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9663 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9664 rm -f conftest.defines
9665 mv conftest.
tail conftest.defines
9667 rm -f conftest.defines
9668 echo ' fi # egrep' >>$CONFIG_STATUS
9669 echo >>$CONFIG_STATUS
9671 # Break up conftest.undefs because some shells have a limit on the size
9672 # of here documents, and old seds have small limits too (100 cmds).
9673 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9675 while grep . conftest.undefs
>/dev
/null
9677 # Write a limited-size here document to $tmp/undefs.sed.
9678 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9679 # Speed up: don't consider the non
`#undef'
9680 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9681 # Work around the forget-to-reset-the-flag bug.
9682 echo 't clr' >>$CONFIG_STATUS
9683 echo ': clr' >>$CONFIG_STATUS
9684 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9686 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9690 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9691 rm -f conftest.undefs
9692 mv conftest.tail conftest.undefs
9694 rm -f conftest.undefs
9696 cat >>$CONFIG_STATUS <<\_ACEOF
9697 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9698 # use $as_me), people would be surprised to read:
9699 # /* config.h. Generated by config.status. */
9700 if test x
"$ac_file" = x
-; then
9701 echo "/* Generated by configure. */" >$tmp/config.h
9703 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9705 cat $tmp/in >>$tmp/config.h
9707 if test x
"$ac_file" != x
-; then
9708 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9709 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9710 echo "$as_me: $ac_file is unchanged" >&6;}
9712 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9713 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9714 X"$ac_file" : 'X\(//\)[^/]' \| \
9715 X"$ac_file" : 'X\(//\)$' \| \
9716 X"$ac_file" : 'X\(/\)' \| \
9717 . : '\(.\)' 2>/dev/null ||
9719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9721 /^X\(\/\/\)$/{ s//\1/; q; }
9722 /^X\(\/\).*/{ s//\1/; q; }
9725 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9729 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9730 case $as_mkdir_dir in
9731 # Skip DOS drivespec
9732 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9734 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9735 test -d "$as_incr_dir" ||
9736 mkdir "$as_incr_dir" ||
9737 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9738 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9739 { (exit 1); exit 1; }; }
9745 mv $tmp/config.h
$ac_file
9751 # Run the commands associated with the file.
9753 config.h
) # update the timestamp
9754 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
9759 cat >>$CONFIG_STATUS <<\_ACEOF
9762 # CONFIG_COMMANDS section.
9764 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9765 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9766 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9767 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9768 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9769 X"$ac_dest" : 'X\(//\)[^/]' \| \
9770 X"$ac_dest" : 'X\(//\)$' \| \
9771 X"$ac_dest" : 'X\(/\)' \| \
9772 . : '\(.\)' 2>/dev/null ||
9774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9776 /^X\(\/\/\)$/{ s//\1/; q; }
9777 /^X\(\/\).*/{ s//\1/; q; }
9781 if test "$ac_dir" != .
; then
9782 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9783 # A "../" for each directory in $ac_dir_suffix.
9784 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9786 ac_dir_suffix
= ac_top_builddir
=
9790 .
) # No --srcdir option. We are building in place.
9792 if test -z "$ac_top_builddir"; then
9795 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9797 [\\/]* | ?
:[\\/]* ) # Absolute path.
9798 ac_srcdir
=$srcdir$ac_dir_suffix;
9799 ac_top_srcdir
=$srcdir ;;
9801 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9802 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9804 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9806 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9807 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9808 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9809 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9812 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9813 echo "$as_me: executing $ac_dest commands" >&6;}
9815 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9816 # Signature of the current package.
9817 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9818 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9819 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9820 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9821 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9824 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9825 # Configurable variable values for building test suites.
9827 # Copyright 2000, 2001 Free Software Foundation, Inc.
9830 buildpath='$ac_buildpath'
9832 srcpath='$ac_srcpath'
9833 top_srcdir='$ac_top_srcdir'
9834 top_srcpath='$ac_top_srcpath'
9835 top_builddir='$ac_top_builddir'
9836 top_buildpath='$ac_top_buildpath'
9838 AUTOTEST_PATH='tests'
9840 SHELL=\${CONFIG_SHELL-'$SHELL'}
9843 depfiles
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
9845 Makefile
) dirpart
=.
;;
9846 */Makefile
) dirpart
=`(dirname "$mf") 2>/dev/null ||
9847 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9848 X"$mf" : 'X\(//\)[^/]' \| \
9849 X"$mf" : 'X\(//\)$' \| \
9850 X"$mf" : 'X\(/\)' \| \
9851 . : '\(.\)' 2>/dev/null ||
9853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9855 /^X\(\/\/\)$/{ s//\1/; q; }
9856 /^X\(\/\).*/{ s//\1/; q; }
9860 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9861 # Extract the definition of DEP_FILES from the Makefile without
9863 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9864 test -z "$DEPDIR" && continue
9865 # When using ansi2knr, U may be empty or an underscore; expand it
9866 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9867 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9868 # We invoke sed twice because it is the simplest approach to
9869 # changing $(DEPDIR) to its actual value in the expansion.
9870 for file in `sed -n -e '
9871 /^DEP_FILES = .*\\\\$/ {
9880 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9881 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9882 # Make sure the directory exists.
9883 test -f "$dirpart/$file" && continue
9884 fdir
=`(dirname "$file") 2>/dev/null ||
9885 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9886 X"$file" : 'X\(//\)[^/]' \| \
9887 X"$file" : 'X\(//\)$' \| \
9888 X"$file" : 'X\(/\)' \| \
9889 . : '\(.\)' 2>/dev/null ||
9891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9893 /^X\(\/\/\)$/{ s//\1/; q; }
9894 /^X\(\/\).*/{ s//\1/; q; }
9896 { case $dirpart/$fdir in
9897 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9900 as_dummy
=$dirpart/$fdir
9901 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9902 case $as_mkdir_dir in
9903 # Skip DOS drivespec
9904 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9906 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9907 test -d "$as_incr_dir" ||
9908 mkdir "$as_incr_dir" ||
9909 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
9910 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
9911 { (exit 1); exit 1; }; }
9916 # echo "creating $dirpart/$file"
9917 echo '# dummy' > "$dirpart/$file"
9921 default
-1 ) for ac_file
in $CONFIG_FILES; do
9922 # Support "outfile[:infile[:infile...]]"
9924 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9926 # PO directories have a Makefile.in generated from Makefile.in.in.
9927 case "$ac_file" in */Makefile.
in)
9928 # Adjust a relative srcdir.
9929 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9930 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9931 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9932 # In autoconf-2.13 it is called $ac_given_srcdir.
9933 # In autoconf-2.50 it is called $srcdir.
9934 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9935 case "$ac_given_srcdir" in
9936 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9937 /*) top_srcdir
="$ac_given_srcdir" ;;
9938 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9940 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9941 rm -f "$ac_dir/POTFILES"
9942 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9943 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9944 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9945 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9954 cat >>$CONFIG_STATUS <<\_ACEOF
9956 { (exit 0); exit 0; }
9958 chmod +x
$CONFIG_STATUS
9959 ac_clean_files
=$ac_clean_files_save
9962 # configure is writing to config.log, and then calls config.status.
9963 # config.status does its own redirection, appending to config.log.
9964 # Unfortunately, on DOS this fails, as config.log is still kept open
9965 # by configure, so config.status won't be able to write to it; its
9966 # output is simply discarded. So we exec the FD to /dev/null,
9967 # effectively closing config.log, so it can be properly (re)opened and
9968 # appended to by config.status. When coming back to configure, we
9969 # need to make the FD available again.
9970 if test "$no_create" != yes; then
9973 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9975 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9976 # would make configure fail if this is the last instruction.
9977 $ac_cs_success || { (exit 1); exit 1; }