2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52g for GNU Bison 1.30j.
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.30j'
336 PACKAGE_STRING
='GNU Bison 1.30j'
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.30j 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.30j:";;
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_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
898 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
899 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
900 ac_abs_top_srcdir=`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.30j
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.30j, 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) continue ;;
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1004 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1006 case " $ac_configure_args " in
1007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1008 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1011 # Get rid of the leading space.
1014 # When interrupted or exit'd, cleanup temporary files, and complete
1015 # config.log. We remove comments because anyway the quotes in there
1016 # would cause problems or look ugly.
1017 # WARNING: Be sure not to use single quotes in there, as some shells,
1018 # such as our DU 5.0 friend, will then `close
' the trap.
1019 trap 'exit_status
=$?
1020 # Save into config.log some information that might help in debugging.
1024 ## ---------------- ##
1025 ## Cache variables. ##
1026 ## ---------------- ##
1029 # The following way of writing the cache mishandles newlines in values,
1032 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1035 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1040 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1045 if test -s confdefs.h
; then
1052 sed "/^$/d" confdefs.h
1055 test "$ac_signal" != 0 &&
1056 echo "$as_me: caught signal $ac_signal"
1057 echo "$as_me: exit $exit_status"
1059 rm -f core core.
* *.core
&&
1060 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1063 for ac_signal in 1 2 13 15; do
1064 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1068 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1069 rm -rf conftest* confdefs.h
1070 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1073 # Let the site file select an alternate cache file if it wants to.
1074 # Prefer explicitly selected file to automatically selected ones.
1075 if test -z "$CONFIG_SITE"; then
1076 if test "x$prefix" != xNONE; then
1077 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1079 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1082 for ac_site_file in $CONFIG_SITE; do
1083 if test -r "$ac_site_file"; then
1084 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1085 echo "$as_me: loading site script $ac_site_file" >&6;}
1086 sed 's
/^
/| /' "$ac_site_file" >&5
1091 if test -r "$cache_file"; then
1092 # Some versions of bash will fail to source /dev/null (special
1093 # files actually), so we avoid doing that.
1094 if test -f "$cache_file"; then
1095 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1096 echo "$as_me: loading cache $cache_file" >&6;}
1098 [\\/]* | ?:[\\/]* ) . $cache_file;;
1099 *) . ./$cache_file;;
1103 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1104 echo "$as_me: creating cache $cache_file" >&6;}
1108 # Check that the precious variables saved in the cache have kept the same
1110 ac_cache_corrupted=false
1111 for ac_var in `(set) 2>&1 |
1112 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1113 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1114 eval ac_new_set=\$ac_env_${ac_var}_set
1115 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1116 eval ac_new_val="\$ac_env_${ac_var}_value"
1117 case $ac_old_set,$ac_new_set in
1119 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1120 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1121 ac_cache_corrupted=: ;;
1123 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1124 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1125 ac_cache_corrupted=: ;;
1128 if test "x$ac_old_val" != "x$ac_new_val"; then
1129 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1130 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1131 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1132 echo "$as_me: former value: $ac_old_val" >&2;}
1133 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1134 echo "$as_me: current value: $ac_new_val" >&2;}
1135 ac_cache_corrupted=:
1138 # Pass precious variables to config.status.
1139 if test "$ac_new_set" = set; then
1141 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1142 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1143 *) ac_arg=$ac_var=$ac_new_val ;;
1145 case " $ac_configure_args " in
1146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1147 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1151 if $ac_cache_corrupted; then
1152 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1153 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1154 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1155 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1156 { (exit 1); exit 1; }; }
1160 ac_cpp='$CPP $CPPFLAGS'
1161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1162 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1191 for ac_dir in config $srcdir/config; do
1192 if test -f $ac_dir/install-sh; then
1194 ac_install_sh="$ac_aux_dir/install-sh -c"
1196 elif test -f $ac_dir/install.sh; then
1198 ac_install_sh="$ac_aux_dir/install.sh -c"
1200 elif test -f $ac_dir/shtool; then
1202 ac_install_sh="$ac_aux_dir/shtool install -c"
1206 if test -z "$ac_aux_dir"; then
1207 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1208 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1209 { (exit 1); exit 1; }; }
1211 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1212 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1213 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1216 # Find a good install program. We prefer a C program (faster),
1217 # so one script is as good as another. But avoid the broken or
1218 # incompatible versions:
1219 # SysV /etc/install, /usr/sbin/install
1220 # SunOS /usr/etc/install
1221 # IRIX /sbin/install
1223 # AmigaOS /C/install, which installs bootblocks on floppy discs
1224 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1225 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1226 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1227 # ./install, which can be erroneously created by make from ./install.sh.
1228 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1229 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1230 if test -z "$INSTALL"; then
1231 if test "${ac_cv_path_install+set}" = set; then
1232 echo $ECHO_N "(cached) $ECHO_C" >&6
1234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1238 test -z "$as_dir" && as_dir
=.
1239 # Account for people who put trailing slashes in PATH elements.
1241 .
/ | .
// | /cC
/* | \
1242 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1245 # OSF1 and SCO ODT 3.0 have their own names for install.
1246 # Don't use installbsd from OSF since it installs stuff as root
1248 for ac_prog
in ginstall scoinst
install; do
1249 for ac_exec_ext
in '' $ac_executable_extensions; do
1250 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1251 if test $ac_prog = install &&
1252 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1253 # AIX install. It has an incompatible calling convention.
1255 elif test $ac_prog = install &&
1256 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1257 # program-specific install script used by HP pwplus--don't use.
1260 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1272 if test "${ac_cv_path_install+set}" = set; then
1273 INSTALL
=$ac_cv_path_install
1275 # As a last resort, use the slow shell script. We don't cache a
1276 # path for INSTALL within a source directory, because that will
1277 # break other packages using the cache if that directory is
1278 # removed, or if the path is relative.
1279 INSTALL
=$ac_install_sh
1282 echo "$as_me:$LINENO: result: $INSTALL" >&5
1283 echo "${ECHO_T}$INSTALL" >&6
1285 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1286 # It thinks the first close brace ends the variable substitution.
1287 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1289 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1291 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1293 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1294 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1297 echo timestamp
> conftest.
file
1298 # Do `set' in a subshell so we don't clobber the current shell's
1299 # arguments. Must try -L first in case configure is actually a
1300 # symlink; some systems play weird games with the mod time of symlinks
1301 # (eg FreeBSD returns the mod time of the symlink's containing
1304 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1305 if test "$*" = "X"; then
1307 set X
`ls -t $srcdir/configure conftest.file`
1310 if test "$*" != "X $srcdir/configure conftest.file" \
1311 && test "$*" != "X conftest.file $srcdir/configure"; then
1313 # If neither matched, then we have a broken ls. This can happen
1314 # if, for instance, CONFIG_SHELL is bash and it inherits a
1315 # broken ls alias from the environment. This has actually
1316 # happened. Such a system could not be considered "sane".
1317 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1318 alias in your environment" >&5
1319 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1320 alias in your environment" >&2;}
1321 { (exit 1); exit 1; }; }
1324 test "$2" = conftest.
file
1330 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1331 Check your system clock" >&5
1332 echo "$as_me: error: newly created file is older than distributed files!
1333 Check your system clock" >&2;}
1334 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: result: yes" >&5
1337 echo "${ECHO_T}yes" >&6
1338 test "$program_prefix" != NONE
&&
1339 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1340 # Use a double $ so make ignores it.
1341 test "$program_suffix" != NONE
&&
1342 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1343 # Double any \ or $. echo might interpret backslashes.
1344 # By default was `s,x,x', remove it if useless.
1345 cat <<\_ACEOF
>conftest.
sed
1346 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1348 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1352 # expand $ac_aux_dir to an absolute path
1353 am_aux_dir
=`cd $ac_aux_dir && pwd`
1355 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1356 # Use eval to expand $SHELL
1357 if eval "$MISSING --run true"; then
1358 am_missing_run
="$MISSING --run "
1361 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1362 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1365 for ac_prog
in gawk mawk nawk
awk
1367 # Extract the first word of "$ac_prog", so it can be a program name with args.
1368 set dummy
$ac_prog; ac_word
=$2
1369 echo "$as_me:$LINENO: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_prog_AWK+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 if test -n "$AWK"; then
1375 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1381 test -z "$as_dir" && as_dir
=.
1382 for ac_exec_ext
in '' $ac_executable_extensions; do
1383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1384 ac_cv_prog_AWK
="$ac_prog"
1385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1394 if test -n "$AWK"; then
1395 echo "$as_me:$LINENO: result: $AWK" >&5
1396 echo "${ECHO_T}$AWK" >&6
1398 echo "$as_me:$LINENO: result: no" >&5
1399 echo "${ECHO_T}no" >&6
1402 test -n "$AWK" && break
1405 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1406 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1407 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1408 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 cat >conftest.
make <<\_ACEOF
1413 @
echo 'ac_maketemp="${MAKE}"'
1415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1416 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1417 if test -n "$ac_maketemp"; then
1418 eval ac_cv_prog_make_
${ac_make}_set
=yes
1420 eval ac_cv_prog_make_
${ac_make}_set
=no
1424 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1425 echo "$as_me:$LINENO: result: yes" >&5
1426 echo "${ECHO_T}yes" >&6
1429 echo "$as_me:$LINENO: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1431 SET_MAKE
="MAKE=${MAKE-make}"
1434 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1435 if test "${enable_dependency_tracking+set}" = set; then
1436 enableval
="$enable_dependency_tracking"
1439 if test "x$enable_dependency_tracking" != xno
; then
1440 am_depcomp
="$ac_aux_dir/depcomp"
1445 if test "x$enable_dependency_tracking" != xno; then
1455 rm -f .deps
2>/dev
/null
1456 mkdir .deps
2>/dev
/null
1457 if test -d .deps
; then
1460 # MS-DOS does not allow filenames that begin with a dot.
1463 rmdir .deps
2>/dev
/null
1466 # test to see if srcdir already configured
1467 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1468 test -f $srcdir/config.status
; then
1469 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1470 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1471 { (exit 1); exit 1; }; }
1474 # Define the identity of the package.
1478 cat >>confdefs.h
<<_ACEOF
1479 #define PACKAGE "$PACKAGE"
1483 cat >>confdefs.h
<<_ACEOF
1484 #define VERSION "$VERSION"
1489 # Some tools Automake needs.
1491 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1494 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1497 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1500 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1503 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1506 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1508 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1510 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1512 # We need awk for the "check" target. The system "awk" is bad on
1515 # Add the stamp file to the list of files AC keeps track of,
1516 # along with our hook.
1517 ac_config_headers
="$ac_config_headers config.h:config.hin"
1522 # Initialize the test suite.
1523 ac_config_commands
="$ac_config_commands tests/package.m4"
1526 ac_config_commands
="$ac_config_commands tests/atconfig"
1529 ac_config_files
="$ac_config_files tests/bison"
1531 ac_config_files
="$ac_config_files tests/Makefile tests/atlocal"
1533 # Needed by tests/atlocal.in.
1536 # Checks for programs.
1538 ac_cpp
='$CPP $CPPFLAGS'
1539 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1540 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1541 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1542 if test -n "$ac_tool_prefix"; then
1543 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1544 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 if test -n "$CC"; then
1551 ac_cv_prog_CC
="$CC" # Let the user override the test.
1553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1557 test -z "$as_dir" && as_dir
=.
1558 for ac_exec_ext
in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 if test -n "$CC"; then
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572 echo "${ECHO_T}$CC" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1579 if test -z "$ac_cv_prog_CC"; then
1581 # Extract the first word of "gcc", so it can be a program name with args.
1582 set dummy gcc
; ac_word
=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 if test -n "$ac_ct_CC"; then
1589 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1595 test -z "$as_dir" && as_dir
=.
1596 for ac_exec_ext
in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_ac_ct_CC
="gcc"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1608 if test -n "$ac_ct_CC"; then
1609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1610 echo "${ECHO_T}$ac_ct_CC" >&6
1612 echo "$as_me:$LINENO: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1621 if test -z "$CC"; then
1622 if test -n "$ac_tool_prefix"; then
1623 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1624 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC
="$CC" # Let the user override the test.
1633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1637 test -z "$as_dir" && as_dir
=.
1638 for ac_exec_ext
in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 if test -n "$CC"; then
1651 echo "$as_me:$LINENO: result: $CC" >&5
1652 echo "${ECHO_T}$CC" >&6
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1659 if test -z "$ac_cv_prog_CC"; then
1661 # Extract the first word of "cc", so it can be a program name with args.
1662 set dummy cc
; ac_word
=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 if test -n "$ac_ct_CC"; then
1669 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1675 test -z "$as_dir" && as_dir
=.
1676 for ac_exec_ext
in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_ac_ct_CC
="cc"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1688 if test -n "$ac_ct_CC"; then
1689 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1690 echo "${ECHO_T}$ac_ct_CC" >&6
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1702 if test -z "$CC"; then
1703 # Extract the first word of "cc", so it can be a program name with args.
1704 set dummy cc
; ac_word
=$2
1705 echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_CC+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 if test -n "$CC"; then
1711 ac_cv_prog_CC
="$CC" # Let the user override the test.
1714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir
=.
1719 for ac_exec_ext
in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1722 ac_prog_rejected
=yes
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 if test $ac_prog_rejected = yes; then
1733 # We found a bogon in the path, so make sure we never use it.
1734 set dummy
$ac_cv_prog_CC
1736 if test $# != 0; then
1737 # We chose a different compiler from the bogus one.
1738 # However, it has the same basename, so the bogon will be chosen
1739 # first if we set CC to just the basename; use the full file name.
1741 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1749 if test -n "$CC"; then
1750 echo "$as_me:$LINENO: result: $CC" >&5
1751 echo "${ECHO_T}$CC" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1758 if test -z "$CC"; then
1759 if test -n "$ac_tool_prefix"; then
1762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1763 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1764 echo "$as_me:$LINENO: checking for $ac_word" >&5
1765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766 if test "${ac_cv_prog_CC+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1769 if test -n "$CC"; then
1770 ac_cv_prog_CC
="$CC" # Let the user override the test.
1772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1776 test -z "$as_dir" && as_dir
=.
1777 for ac_exec_ext
in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 if test -n "$CC"; then
1790 echo "$as_me:$LINENO: result: $CC" >&5
1791 echo "${ECHO_T}$CC" >&6
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1797 test -n "$CC" && break
1800 if test -z "$CC"; then
1804 # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy
$ac_prog; ac_word
=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 if test -n "$ac_ct_CC"; then
1812 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1818 test -z "$as_dir" && as_dir
=.
1819 for ac_exec_ext
in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_ac_ct_CC
="$ac_prog"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1831 if test -n "$ac_ct_CC"; then
1832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833 echo "${ECHO_T}$ac_ct_CC" >&6
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1839 test -n "$ac_ct_CC" && break
1848 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1849 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1850 { (exit 1); exit 1; }; }
1852 # Provide some information about the compiler.
1853 echo "$as_me:$LINENO:" \
1854 "checking for C compiler version" >&5
1855 ac_compiler
=`set X $ac_compile; echo $2`
1856 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1857 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }
1861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1862 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 (exit $ac_status); }
1866 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1867 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); }
1872 cat >conftest.
$ac_ext <<_ACEOF
1873 #line $LINENO "configure"
1874 #include "confdefs.h"
1876 #ifdef F77_DUMMY_MAIN
1880 int F77_DUMMY_MAIN() { return 1; }
1890 ac_clean_files_save
=$ac_clean_files
1891 ac_clean_files
="$ac_clean_files a.out a.exe"
1892 # Try to create an executable without -o first, disregard a.out.
1893 # It will help us diagnose broken compilers, and finding out an intuition
1895 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1896 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1897 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1898 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1899 (eval $ac_link_default) 2>&5
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }; then
1903 # Find the output, starting from the most likely. This scheme is
1904 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1906 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1907 ls a.out conftest 2>/dev/null;
1908 ls a.* conftest.* 2>/dev/null`; do
1910 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1911 a.out
) # We found the default executable, but exeext='' is most
1914 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1915 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1922 echo "$as_me: failed program was:" >&5
1923 cat conftest.
$ac_ext >&5
1924 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1925 echo "$as_me: error: C compiler cannot create executables" >&2;}
1926 { (exit 77); exit 77; }; }
1929 ac_exeext
=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1933 # Check the compiler produces executables we can run. If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940 if { ac_try
='./$ac_file'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1948 if test "$cross_compiling" = maybe
; then
1951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'." >&5
1953 echo "$as_me: error: cannot run C compiled programs.
1954 If you meant to cross compile, use \`--host'." >&2;}
1955 { (exit 1); exit 1; }; }
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1962 rm -f a.out a.exe conftest
$ac_cv_exeext
1963 ac_clean_files
=$ac_clean_files_save
1964 # Check the compiler produces executables we can run. If not, either
1965 # the compiler is broken, or we cross compile.
1966 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 echo "${ECHO_T}$cross_compiling" >&6
1971 echo "$as_me:$LINENO: checking for executable suffix" >&5
1972 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974 (eval $ac_link) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; then
1978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1980 # work properly (i.e., refer to `conftest.exe'), while it won't with
1982 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1984 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1985 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1992 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1993 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1994 { (exit 1); exit 1; }; }
1997 rm -f conftest
$ac_cv_exeext
1998 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1999 echo "${ECHO_T}$ac_cv_exeext" >&6
2001 rm -f conftest.
$ac_ext
2002 EXEEXT
=$ac_cv_exeext
2004 echo "$as_me:$LINENO: checking for object suffix" >&5
2005 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2006 if test "${ac_cv_objext+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 cat >conftest.
$ac_ext <<_ACEOF
2010 #line $LINENO "configure"
2011 #include "confdefs.h"
2013 #ifdef F77_DUMMY_MAIN
2017 int F77_DUMMY_MAIN() { return 1; }
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2035 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
2036 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2041 echo "$as_me: failed program was:" >&5
2042 cat conftest.
$ac_ext >&5
2043 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
2044 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2045 { (exit 1); exit 1; }; }
2048 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2050 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2051 echo "${ECHO_T}$ac_cv_objext" >&6
2052 OBJEXT
=$ac_cv_objext
2054 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2055 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 cat >conftest.
$ac_ext <<_ACEOF
2060 #line $LINENO "configure"
2061 #include "confdefs.h"
2063 #ifdef F77_DUMMY_MAIN
2067 int F77_DUMMY_MAIN() { return 1; }
2080 rm -f conftest.
$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try
='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2094 echo "$as_me: failed program was:" >&5
2095 cat conftest.
$ac_ext >&5
2098 rm -f conftest.
$ac_objext conftest.
$ac_ext
2099 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2102 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2103 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2104 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2105 ac_test_CFLAGS
=${CFLAGS+set}
2106 ac_save_CFLAGS
=$CFLAGS
2108 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2109 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2110 if test "${ac_cv_prog_cc_g+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 cat >conftest.
$ac_ext <<_ACEOF
2114 #line $LINENO "configure"
2115 #include "confdefs.h"
2117 #ifdef F77_DUMMY_MAIN
2121 int F77_DUMMY_MAIN() { return 1; }
2131 rm -f conftest.
$ac_objext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); } &&
2137 { ac_try
='test -s conftest.$ac_objext'
2138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; }; then
2145 echo "$as_me: failed program was:" >&5
2146 cat conftest.
$ac_ext >&5
2149 rm -f conftest.
$ac_objext conftest.
$ac_ext
2151 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2152 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2153 if test "$ac_test_CFLAGS" = set; then
2154 CFLAGS
=$ac_save_CFLAGS
2155 elif test $ac_cv_prog_cc_g = yes; then
2156 if test "$GCC" = yes; then
2162 if test "$GCC" = yes; then
2168 # Some people use a C++ compiler to compile C. Since we use `exit',
2169 # in C++ we need to declare it. In case someone uses the same compiler
2170 # for both compiling C and C++ we need to have the C++ compiler decide
2171 # the declaration of exit, since it's the most demanding environment.
2172 cat >conftest.
$ac_ext <<_ACEOF
2177 rm -f conftest.
$ac_objext
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); } &&
2183 { ac_try
='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 for ac_declaration
in \
2191 '#include <stdlib.h>' \
2192 'extern "C" void std::exit (int) throw (); using std::exit;' \
2193 'extern "C" void std::exit (int); using std::exit;' \
2194 'extern "C" void exit (int) throw ();' \
2195 'extern "C" void exit (int);' \
2198 cat >conftest.
$ac_ext <<_ACEOF
2199 #line $LINENO "configure"
2200 #include "confdefs.h"
2203 #ifdef F77_DUMMY_MAIN
2207 int F77_DUMMY_MAIN() { return 1; }
2217 rm -f conftest.
$ac_objext
2218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2219 (eval $ac_compile) 2>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try
='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2231 echo "$as_me: failed program was:" >&5
2232 cat conftest.
$ac_ext >&5
2235 rm -f conftest.
$ac_objext conftest.
$ac_ext
2236 cat >conftest.
$ac_ext <<_ACEOF
2237 #line $LINENO "configure"
2238 #include "confdefs.h"
2240 #ifdef F77_DUMMY_MAIN
2244 int F77_DUMMY_MAIN() { return 1; }
2254 rm -f conftest.
$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try
='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2268 echo "$as_me: failed program was:" >&5
2269 cat conftest.
$ac_ext >&5
2271 rm -f conftest.
$ac_objext conftest.
$ac_ext
2274 if test -n "$ac_declaration"; then
2275 echo '#ifdef __cplusplus' >>confdefs.h
2276 echo $ac_declaration >>confdefs.h
2277 echo '#endif' >>confdefs.h
2281 echo "$as_me: failed program was:" >&5
2282 cat conftest.
$ac_ext >&5
2284 rm -f conftest.
$ac_objext conftest.
$ac_ext
2286 ac_cpp
='$CPP $CPPFLAGS'
2287 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2290 ac_config_commands
="$ac_config_commands depfiles"
2293 am_make
=${MAKE-make}
2294 cat > confinc
<< 'END'
2298 # If we don't find an include directive, just comment out the code.
2299 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2300 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2304 # First try GNU make style include.
2305 echo "include confinc" > confmf
2306 # We grep out `Entering directory' and `Leaving directory'
2307 # messages which can occur if `w' ends up in MAKEFLAGS.
2308 # In particular we don't look at `^make:' because GNU make might
2309 # be invoked under some other name (usually "gmake"), in which
2310 # case it prints its new name instead of `make'.
2311 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2316 # Now try BSD make style include.
2317 if test "$am__include" = "#"; then
2318 echo '.include "confinc"' > confmf
2319 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2320 am__include
=.include
2327 echo "$as_me:$LINENO: result: $_am_result" >&5
2328 echo "${ECHO_T}$_am_result" >&6
2329 rm -f confinc confmf
2332 depcc
="$CC" am_compiler_list
=
2334 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2335 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2336 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2340 # We make a subdir and do the tests there. Otherwise we can end up
2341 # making bogus files that we don't know about and never remove. For
2342 # instance it was reported that on HP-UX the gcc test will end up
2343 # making a dummy file named `D' -- because `-MD' means `put the output
2346 # Copy depcomp to subdir because otherwise we won't find it if we're
2347 # using a relative directory.
2348 cp "$am_depcomp" conftest.dir
2351 am_cv_CC_dependencies_compiler_type
=none
2352 if test "$am_compiler_list" = ""; then
2353 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2355 for depmode
in $am_compiler_list; do
2356 # We need to recreate these files for each test, as the compiler may
2357 # overwrite some of them when testing with obscure command lines.
2358 # This happens at least with the AIX C compiler.
2359 echo '#include "conftest.h"' > conftest.c
2360 echo 'int i;' > conftest.h
2361 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2365 # after this tag, mechanisms are not by side-effect, so they'll
2366 # only be used when explicitly requested
2367 if test "x$enable_dependency_tracking" = xyes
; then
2375 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2376 # mode. It turns out that the SunPro C++ compiler does not properly
2377 # handle `-M -o', and we need to detect this.
2378 if depmode
=$depmode \
2379 source=conftest.c object
=conftest.o \
2380 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2381 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2382 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2383 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2384 am_cv_CC_dependencies_compiler_type
=$depmode
2392 am_cv_CC_dependencies_compiler_type
=none
2396 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2397 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2398 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2403 ac_cpp
='$CPP $CPPFLAGS'
2404 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2405 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2406 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2407 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2408 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2409 # On Suns, sometimes $CPP names a directory.
2410 if test -n "$CPP" && test -d "$CPP"; then
2413 if test -z "$CPP"; then
2414 if test "${ac_cv_prog_CPP+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 # Double quotes because CPP needs to be expanded
2418 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2421 for ac_c_preproc_warn_flag
in '' yes
2423 # Use a header file that comes with gcc, so configuring glibc
2424 # with a fresh cross-compiler works.
2425 # On the NeXT, cc -E runs the code through the compiler's parser,
2426 # not just through cpp. "Syntax error" is here to catch this case.
2427 cat >conftest.
$ac_ext <<_ACEOF
2428 #line $LINENO "configure"
2429 #include "confdefs.h"
2433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2434 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2436 egrep -v '^ *\+' conftest.er1
>conftest.err
2438 cat conftest.err
>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } >/dev
/null
; then
2441 if test -s conftest.err
; then
2442 ac_cpp_err
=$ac_c_preproc_warn_flag
2449 if test -z "$ac_cpp_err"; then
2452 echo "$as_me: failed program was:" >&5
2453 cat conftest.
$ac_ext >&5
2454 # Broken: fails on valid input.
2457 rm -f conftest.err conftest.
$ac_ext
2459 # OK, works on sane cases. Now check whether non-existent headers
2460 # can be detected and how.
2461 cat >conftest.
$ac_ext <<_ACEOF
2462 #line $LINENO "configure"
2463 #include "confdefs.h"
2464 #include <ac_nonexistent.h>
2466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2467 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2469 egrep -v '^ *\+' conftest.er1
>conftest.err
2471 cat conftest.err
>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } >/dev
/null
; then
2474 if test -s conftest.err
; then
2475 ac_cpp_err
=$ac_c_preproc_warn_flag
2482 if test -z "$ac_cpp_err"; then
2483 # Broken: success on invalid input.
2486 echo "$as_me: failed program was:" >&5
2487 cat conftest.
$ac_ext >&5
2488 # Passes both tests.
2492 rm -f conftest.err conftest.
$ac_ext
2495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2496 rm -f conftest.err conftest.
$ac_ext
2497 if $ac_preproc_ok; then
2509 echo "$as_me:$LINENO: result: $CPP" >&5
2510 echo "${ECHO_T}$CPP" >&6
2512 for ac_c_preproc_warn_flag
in '' yes
2514 # Use a header file that comes with gcc, so configuring glibc
2515 # with a fresh cross-compiler works.
2516 # On the NeXT, cc -E runs the code through the compiler's parser,
2517 # not just through cpp. "Syntax error" is here to catch this case.
2518 cat >conftest.
$ac_ext <<_ACEOF
2519 #line $LINENO "configure"
2520 #include "confdefs.h"
2524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2525 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2527 egrep -v '^ *\+' conftest.er1
>conftest.err
2529 cat conftest.err
>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } >/dev
/null
; then
2532 if test -s conftest.err
; then
2533 ac_cpp_err
=$ac_c_preproc_warn_flag
2540 if test -z "$ac_cpp_err"; then
2543 echo "$as_me: failed program was:" >&5
2544 cat conftest.
$ac_ext >&5
2545 # Broken: fails on valid input.
2548 rm -f conftest.err conftest.
$ac_ext
2550 # OK, works on sane cases. Now check whether non-existent headers
2551 # can be detected and how.
2552 cat >conftest.
$ac_ext <<_ACEOF
2553 #line $LINENO "configure"
2554 #include "confdefs.h"
2555 #include <ac_nonexistent.h>
2557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2558 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2560 egrep -v '^ *\+' conftest.er1
>conftest.err
2562 cat conftest.err
>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } >/dev
/null
; then
2565 if test -s conftest.err
; then
2566 ac_cpp_err
=$ac_c_preproc_warn_flag
2573 if test -z "$ac_cpp_err"; then
2574 # Broken: success on invalid input.
2577 echo "$as_me: failed program was:" >&5
2578 cat conftest.
$ac_ext >&5
2579 # Passes both tests.
2583 rm -f conftest.err conftest.
$ac_ext
2586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2587 rm -f conftest.err conftest.
$ac_ext
2588 if $ac_preproc_ok; then
2591 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2592 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2593 { (exit 1); exit 1; }; }
2597 ac_cpp
='$CPP $CPPFLAGS'
2598 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2603 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2604 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2605 if test "${ac_cv_header_stdc+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 cat >conftest.
$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2610 #include "confdefs.h"
2617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2618 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2620 egrep -v '^ *\+' conftest.er1
>conftest.err
2622 cat conftest.err
>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } >/dev
/null
; then
2625 if test -s conftest.err
; then
2626 ac_cpp_err
=$ac_c_preproc_warn_flag
2633 if test -z "$ac_cpp_err"; then
2634 ac_cv_header_stdc
=yes
2636 echo "$as_me: failed program was:" >&5
2637 cat conftest.
$ac_ext >&5
2638 ac_cv_header_stdc
=no
2640 rm -f conftest.err conftest.
$ac_ext
2642 if test $ac_cv_header_stdc = yes; then
2643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2644 cat >conftest.
$ac_ext <<_ACEOF
2645 #line $LINENO "configure"
2646 #include "confdefs.h"
2650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2651 egrep "memchr" >/dev
/null
2>&1; then
2654 ac_cv_header_stdc
=no
2660 if test $ac_cv_header_stdc = yes; then
2661 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2662 cat >conftest.
$ac_ext <<_ACEOF
2663 #line $LINENO "configure"
2664 #include "confdefs.h"
2668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2669 egrep "free" >/dev
/null
2>&1; then
2672 ac_cv_header_stdc
=no
2678 if test $ac_cv_header_stdc = yes; then
2679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2680 if test "$cross_compiling" = yes; then
2683 cat >conftest.
$ac_ext <<_ACEOF
2684 #line $LINENO "configure"
2685 #include "confdefs.h"
2687 #if ((' ' & 0x0FF) == 0x020)
2688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2691 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2692 || ('j' <= (c) && (c) <= 'r') \
2693 || ('s' <= (c) && (c) <= 'z'))
2694 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2702 for (i = 0; i < 256; i++)
2703 if (XOR (islower (i), ISLOWER (i))
2704 || toupper (i) != TOUPPER (i))
2709 rm -f conftest
$ac_exeext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2711 (eval $ac_link) 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2722 echo "$as_me: program exited with status $ac_status" >&5
2723 echo "$as_me: failed program was:" >&5
2724 cat conftest.
$ac_ext >&5
2726 ac_cv_header_stdc
=no
2728 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2732 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2733 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2734 if test $ac_cv_header_stdc = yes; then
2736 cat >>confdefs.h
<<\_ACEOF
2737 #define STDC_HEADERS 1
2742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2752 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2753 inttypes.h stdint.h unistd.h
2755 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2756 echo "$as_me:$LINENO: checking for $ac_header" >&5
2757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 cat >conftest.
$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 #include "confdefs.h"
2764 $ac_includes_default
2766 #include <$ac_header>
2768 rm -f conftest.
$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try
='test -s conftest.$ac_objext'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 eval "$as_ac_Header=yes"
2782 echo "$as_me: failed program was:" >&5
2783 cat conftest.
$ac_ext >&5
2784 eval "$as_ac_Header=no"
2786 rm -f conftest.
$ac_objext conftest.
$ac_ext
2788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2791 cat >>confdefs.h
<<_ACEOF
2792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2800 if test "${ac_cv_header_minix_config_h+set}" = set; then
2801 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2802 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2803 if test "${ac_cv_header_minix_config_h+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2807 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2809 # Is the header compilable?
2810 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2811 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2812 cat >conftest.
$ac_ext <<_ACEOF
2813 #line $LINENO "configure"
2814 #include "confdefs.h"
2815 $ac_includes_default
2816 #include <minix/config.h>
2818 rm -f conftest.
$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try
='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 ac_header_compiler
=yes
2832 echo "$as_me: failed program was:" >&5
2833 cat conftest.
$ac_ext >&5
2834 ac_header_compiler
=no
2836 rm -f conftest.
$ac_objext conftest.
$ac_ext
2837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2838 echo "${ECHO_T}$ac_header_compiler" >&6
2840 # Is the header present?
2841 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2842 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2843 cat >conftest.
$ac_ext <<_ACEOF
2844 #line $LINENO "configure"
2845 #include "confdefs.h"
2846 #include <minix/config.h>
2848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2849 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2851 egrep -v '^ *\+' conftest.er1
>conftest.err
2853 cat conftest.err
>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } >/dev
/null
; then
2856 if test -s conftest.err
; then
2857 ac_cpp_err
=$ac_c_preproc_warn_flag
2864 if test -z "$ac_cpp_err"; then
2865 ac_header_preproc
=yes
2867 echo "$as_me: failed program was:" >&5
2868 cat conftest.
$ac_ext >&5
2869 ac_header_preproc
=no
2871 rm -f conftest.err conftest.
$ac_ext
2872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2873 echo "${ECHO_T}$ac_header_preproc" >&6
2875 # So? What about this header?
2876 case $ac_header_compiler:$ac_header_preproc in
2878 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2879 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2880 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2881 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2883 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2884 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2885 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2886 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2887 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2888 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2890 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2891 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2892 if test "${ac_cv_header_minix_config_h+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 ac_cv_header_minix_config_h
=$ac_header_preproc
2897 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2898 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2901 if test $ac_cv_header_minix_config_h = yes; then
2908 if test "$MINIX" = yes; then
2910 cat >>confdefs.h
<<\_ACEOF
2911 #define _POSIX_SOURCE 1
2915 cat >>confdefs.h
<<\_ACEOF
2916 #define _POSIX_1_SOURCE 2
2920 cat >>confdefs.h
<<\_ACEOF
2927 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2928 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2929 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 ac_check_lib_save_LIBS
=$LIBS
2933 LIBS
="-lcposix $LIBS"
2934 cat >conftest.
$ac_ext <<_ACEOF
2935 #line $LINENO "configure"
2936 #include "confdefs.h"
2938 /* Override any gcc2 internal prototype to avoid an error. */
2942 /* We use char because int might match the return type of a gcc2
2943 builtin and then its argument prototype would still apply. */
2945 #ifdef F77_DUMMY_MAIN
2949 int F77_DUMMY_MAIN() { return 1; }
2959 rm -f conftest.
$ac_objext conftest
$ac_exeext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2961 (eval $ac_link) 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try
='test -s conftest$ac_exeext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_cv_lib_cposix_strerror
=yes
2973 echo "$as_me: failed program was:" >&5
2974 cat conftest.
$ac_ext >&5
2975 ac_cv_lib_cposix_strerror
=no
2977 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2978 LIBS
=$ac_check_lib_save_LIBS
2980 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2981 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2982 if test $ac_cv_lib_cposix_strerror = yes; then
2983 LIBS
="$LIBS -lcposix"
2991 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2992 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2993 if test "${am_cv_prog_cc_stdc+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 am_cv_prog_cc_stdc
=no
2998 # Don't try gcc -ansi; that turns off useful extensions and
2999 # breaks some systems' header files.
3000 # AIX -qlanglvl=ansi
3001 # Ultrix and OSF/1 -std1
3002 # HP-UX 10.20 and later -Ae
3003 # HP-UX older versions -Aa -D_HPUX_SOURCE
3004 # SVR4 -Xc -D__EXTENSIONS__
3005 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3007 CC
="$ac_save_CC $ac_arg"
3008 cat >conftest.
$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3010 #include "confdefs.h"
3013 #include <sys/types.h>
3014 #include <sys/stat.h>
3015 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3016 struct buf { int x; };
3017 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3018 static char *e (p, i)
3024 static char *f (char * (*g) (char **, int), char **p, ...)
3029 s = g (p, va_arg (v,int));
3033 int test (int i, double x);
3034 struct s1 {int (*f) (int a);};
3035 struct s2 {int (*f) (double a);};
3036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3040 #ifdef F77_DUMMY_MAIN
3044 int F77_DUMMY_MAIN() { return 1; }
3050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3056 rm -f conftest.
$ac_objext
3057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058 (eval $ac_compile) 2>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } &&
3062 { ac_try
='test -s conftest.$ac_objext'
3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; }; then
3068 am_cv_prog_cc_stdc
="$ac_arg"; break
3070 echo "$as_me: failed program was:" >&5
3071 cat conftest.
$ac_ext >&5
3073 rm -f conftest.
$ac_objext conftest.
$ac_ext
3079 if test -z "$am_cv_prog_cc_stdc"; then
3080 echo "$as_me:$LINENO: result: none needed" >&5
3081 echo "${ECHO_T}none needed" >&6
3083 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3084 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3086 case "x$am_cv_prog_cc_stdc" in
3088 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
3091 if test -n "$ac_tool_prefix"; then
3092 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3093 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3094 echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3096 if test "${ac_cv_prog_RANLIB+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 if test -n "$RANLIB"; then
3100 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3106 test -z "$as_dir" && as_dir
=.
3107 for ac_exec_ext
in '' $ac_executable_extensions; do
3108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 RANLIB
=$ac_cv_prog_RANLIB
3119 if test -n "$RANLIB"; then
3120 echo "$as_me:$LINENO: result: $RANLIB" >&5
3121 echo "${ECHO_T}$RANLIB" >&6
3123 echo "$as_me:$LINENO: result: no" >&5
3124 echo "${ECHO_T}no" >&6
3128 if test -z "$ac_cv_prog_RANLIB"; then
3129 ac_ct_RANLIB
=$RANLIB
3130 # Extract the first word of "ranlib", so it can be a program name with args.
3131 set dummy ranlib
; ac_word
=$2
3132 echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3134 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 if test -n "$ac_ct_RANLIB"; then
3138 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir
=.
3145 for ac_exec_ext
in '' $ac_executable_extensions; do
3146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3157 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3158 if test -n "$ac_ct_RANLIB"; then
3159 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3160 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3162 echo "$as_me:$LINENO: result: no" >&5
3163 echo "${ECHO_T}no" >&6
3166 RANLIB
=$ac_ct_RANLIB
3168 RANLIB
="$ac_cv_prog_RANLIB"
3172 AUTOM4TE
=${AUTOM4TE-"${am_missing_run}autom4te"}
3175 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3176 if test "${enable_gcc_warnings+set}" = set; then
3177 enableval
="$enable_gcc_warnings"
3178 case "${enableval}" in
3180 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3181 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3182 { (exit 1); exit 1; }; } ;;
3187 if test "${enableval}" = yes; then
3188 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3189 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3191 ac_save_CFLAGS
="$CFLAGS"
3192 CFLAGS
="$CFLAGS -Wall"
3193 cat >conftest.
$ac_ext <<_ACEOF
3194 #line $LINENO "configure"
3195 #include "confdefs.h"
3197 #ifdef F77_DUMMY_MAIN
3201 int F77_DUMMY_MAIN() { return 1; }
3211 rm -f conftest.
$ac_objext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213 (eval $ac_compile) 2>&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try
='test -s conftest.$ac_objext'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3223 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3224 echo "$as_me:$LINENO: result: yes" >&5
3225 echo "${ECHO_T}yes" >&6
3227 echo "$as_me: failed program was:" >&5
3228 cat conftest.
$ac_ext >&5
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3232 rm -f conftest.
$ac_objext conftest.
$ac_ext
3233 CFLAGS
="$ac_save_CFLAGS"
3234 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3235 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3237 ac_save_CFLAGS
="$CFLAGS"
3239 cat >conftest.
$ac_ext <<_ACEOF
3240 #line $LINENO "configure"
3241 #include "confdefs.h"
3243 #ifdef F77_DUMMY_MAIN
3247 int F77_DUMMY_MAIN() { return 1; }
3257 rm -f conftest.
$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try
='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3270 echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6
3273 echo "$as_me: failed program was:" >&5
3274 cat conftest.
$ac_ext >&5
3275 echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3278 rm -f conftest.
$ac_objext conftest.
$ac_ext
3279 CFLAGS
="$ac_save_CFLAGS"
3280 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3281 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3283 ac_save_CFLAGS
="$CFLAGS"
3284 CFLAGS
="$CFLAGS -Wbad-function-cast"
3285 cat >conftest.
$ac_ext <<_ACEOF
3286 #line $LINENO "configure"
3287 #include "confdefs.h"
3289 #ifdef F77_DUMMY_MAIN
3293 int F77_DUMMY_MAIN() { return 1; }
3303 rm -f conftest.
$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try
='test -s conftest.$ac_objext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3316 echo "$as_me:$LINENO: result: yes" >&5
3317 echo "${ECHO_T}yes" >&6
3319 echo "$as_me: failed program was:" >&5
3320 cat conftest.
$ac_ext >&5
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3324 rm -f conftest.
$ac_objext conftest.
$ac_ext
3325 CFLAGS
="$ac_save_CFLAGS"
3326 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3327 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3329 ac_save_CFLAGS
="$CFLAGS"
3330 CFLAGS
="$CFLAGS -Wcast-align"
3331 cat >conftest.
$ac_ext <<_ACEOF
3332 #line $LINENO "configure"
3333 #include "confdefs.h"
3335 #ifdef F77_DUMMY_MAIN
3339 int F77_DUMMY_MAIN() { return 1; }
3349 rm -f conftest.
$ac_objext
3350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3351 (eval $ac_compile) 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } &&
3355 { ac_try
='test -s conftest.$ac_objext'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3362 echo "$as_me:$LINENO: result: yes" >&5
3363 echo "${ECHO_T}yes" >&6
3365 echo "$as_me: failed program was:" >&5
3366 cat conftest.
$ac_ext >&5
3367 echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3370 rm -f conftest.
$ac_objext conftest.
$ac_ext
3371 CFLAGS
="$ac_save_CFLAGS"
3372 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3373 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3375 ac_save_CFLAGS
="$CFLAGS"
3376 CFLAGS
="$CFLAGS -Wcast-qual"
3377 cat >conftest.
$ac_ext <<_ACEOF
3378 #line $LINENO "configure"
3379 #include "confdefs.h"
3381 #ifdef F77_DUMMY_MAIN
3385 int F77_DUMMY_MAIN() { return 1; }
3395 rm -f conftest.
$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try
='test -s conftest.$ac_objext'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3408 echo "$as_me:$LINENO: result: yes" >&5
3409 echo "${ECHO_T}yes" >&6
3411 echo "$as_me: failed program was:" >&5
3412 cat conftest.
$ac_ext >&5
3413 echo "$as_me:$LINENO: result: no" >&5
3414 echo "${ECHO_T}no" >&6
3416 rm -f conftest.
$ac_objext conftest.
$ac_ext
3417 CFLAGS
="$ac_save_CFLAGS"
3418 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3419 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3421 ac_save_CFLAGS
="$CFLAGS"
3422 CFLAGS
="$CFLAGS -Wformat"
3423 cat >conftest.
$ac_ext <<_ACEOF
3424 #line $LINENO "configure"
3425 #include "confdefs.h"
3427 #ifdef F77_DUMMY_MAIN
3431 int F77_DUMMY_MAIN() { return 1; }
3441 rm -f conftest.
$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
3447 { ac_try
='test -s conftest.$ac_objext'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3453 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3454 echo "$as_me:$LINENO: result: yes" >&5
3455 echo "${ECHO_T}yes" >&6
3457 echo "$as_me: failed program was:" >&5
3458 cat conftest.
$ac_ext >&5
3459 echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3462 rm -f conftest.
$ac_objext conftest.
$ac_ext
3463 CFLAGS
="$ac_save_CFLAGS"
3464 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3465 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3467 ac_save_CFLAGS
="$CFLAGS"
3468 CFLAGS
="$CFLAGS -Wmissing-declarations"
3469 cat >conftest.
$ac_ext <<_ACEOF
3470 #line $LINENO "configure"
3471 #include "confdefs.h"
3473 #ifdef F77_DUMMY_MAIN
3477 int F77_DUMMY_MAIN() { return 1; }
3487 rm -f conftest.
$ac_objext
3488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3489 (eval $ac_compile) 2>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try
='test -s conftest.$ac_objext'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; }; then
3499 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3500 echo "$as_me:$LINENO: result: yes" >&5
3501 echo "${ECHO_T}yes" >&6
3503 echo "$as_me: failed program was:" >&5
3504 cat conftest.
$ac_ext >&5
3505 echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3508 rm -f conftest.
$ac_objext conftest.
$ac_ext
3509 CFLAGS
="$ac_save_CFLAGS"
3510 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3511 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3513 ac_save_CFLAGS
="$CFLAGS"
3514 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3515 cat >conftest.
$ac_ext <<_ACEOF
3516 #line $LINENO "configure"
3517 #include "confdefs.h"
3519 #ifdef F77_DUMMY_MAIN
3523 int F77_DUMMY_MAIN() { return 1; }
3533 rm -f conftest.
$ac_objext
3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try
='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3546 echo "$as_me:$LINENO: result: yes" >&5
3547 echo "${ECHO_T}yes" >&6
3549 echo "$as_me: failed program was:" >&5
3550 cat conftest.
$ac_ext >&5
3551 echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3554 rm -f conftest.
$ac_objext conftest.
$ac_ext
3555 CFLAGS
="$ac_save_CFLAGS"
3556 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3557 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3559 ac_save_CFLAGS
="$CFLAGS"
3560 CFLAGS
="$CFLAGS -Wnested-externs"
3561 cat >conftest.
$ac_ext <<_ACEOF
3562 #line $LINENO "configure"
3563 #include "confdefs.h"
3565 #ifdef F77_DUMMY_MAIN
3569 int F77_DUMMY_MAIN() { return 1; }
3579 rm -f conftest.
$ac_objext
3580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3581 (eval $ac_compile) 2>&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try
='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3592 echo "$as_me:$LINENO: result: yes" >&5
3593 echo "${ECHO_T}yes" >&6
3595 echo "$as_me: failed program was:" >&5
3596 cat conftest.
$ac_ext >&5
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3600 rm -f conftest.
$ac_objext conftest.
$ac_ext
3601 CFLAGS
="$ac_save_CFLAGS"
3602 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3603 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3605 ac_save_CFLAGS
="$CFLAGS"
3606 CFLAGS
="$CFLAGS -Wshadow"
3607 cat >conftest.
$ac_ext <<_ACEOF
3608 #line $LINENO "configure"
3609 #include "confdefs.h"
3611 #ifdef F77_DUMMY_MAIN
3615 int F77_DUMMY_MAIN() { return 1; }
3625 rm -f conftest.
$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try
='test -s conftest.$ac_objext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3638 echo "$as_me:$LINENO: result: yes" >&5
3639 echo "${ECHO_T}yes" >&6
3641 echo "$as_me: failed program was:" >&5
3642 cat conftest.
$ac_ext >&5
3643 echo "$as_me:$LINENO: result: no" >&5
3644 echo "${ECHO_T}no" >&6
3646 rm -f conftest.
$ac_objext conftest.
$ac_ext
3647 CFLAGS
="$ac_save_CFLAGS"
3648 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3649 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3651 ac_save_CFLAGS
="$CFLAGS"
3652 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3653 cat >conftest.
$ac_ext <<_ACEOF
3654 #line $LINENO "configure"
3655 #include "confdefs.h"
3657 #ifdef F77_DUMMY_MAIN
3661 int F77_DUMMY_MAIN() { return 1; }
3671 rm -f conftest.
$ac_objext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3673 (eval $ac_compile) 2>&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try
='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3684 echo "$as_me:$LINENO: result: yes" >&5
3685 echo "${ECHO_T}yes" >&6
3687 echo "$as_me: failed program was:" >&5
3688 cat conftest.
$ac_ext >&5
3689 echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6
3692 rm -f conftest.
$ac_objext conftest.
$ac_ext
3693 CFLAGS
="$ac_save_CFLAGS"
3694 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3695 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3697 ac_save_CFLAGS
="$CFLAGS"
3698 CFLAGS
="$CFLAGS -Wwrite-strings"
3699 cat >conftest.
$ac_ext <<_ACEOF
3700 #line $LINENO "configure"
3701 #include "confdefs.h"
3703 #ifdef F77_DUMMY_MAIN
3707 int F77_DUMMY_MAIN() { return 1; }
3717 rm -f conftest.
$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try
='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3730 echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6
3733 echo "$as_me: failed program was:" >&5
3734 cat conftest.
$ac_ext >&5
3735 echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6
3738 rm -f conftest.
$ac_objext conftest.
$ac_ext
3739 CFLAGS
="$ac_save_CFLAGS"
3740 echo "$as_me:$LINENO: checking whether compiler accepts -Werror" >&5
3741 echo $ECHO_N "checking whether compiler accepts -Werror... $ECHO_C" >&6
3743 ac_save_CFLAGS
="$CFLAGS"
3744 CFLAGS
="$CFLAGS -Werror"
3745 cat >conftest.
$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3747 #include "confdefs.h"
3749 #ifdef F77_DUMMY_MAIN
3753 int F77_DUMMY_MAIN() { return 1; }
3763 rm -f conftest.
$ac_objext
3764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3765 (eval $ac_compile) 2>&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try
='test -s conftest.$ac_objext'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; }; then
3775 WARNING_CFLAGS
="$WARNING_CFLAGS -Werror"
3776 echo "$as_me:$LINENO: result: yes" >&5
3777 echo "${ECHO_T}yes" >&6
3779 echo "$as_me: failed program was:" >&5
3780 cat conftest.
$ac_ext >&5
3781 echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3784 rm -f conftest.
$ac_objext conftest.
$ac_ext
3785 CFLAGS
="$ac_save_CFLAGS"
3788 # Checks for libraries.
3790 cat >>confdefs.h
<<\_ACEOF
3791 #define _GNU_SOURCE 1
3795 # Checks for header files.
3796 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3798 if test "${ac_cv_header_stdc+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 cat >conftest.
$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3803 #include "confdefs.h"
3810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3811 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3813 egrep -v '^ *\+' conftest.er1
>conftest.err
3815 cat conftest.err
>&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev
/null
; then
3818 if test -s conftest.err
; then
3819 ac_cpp_err
=$ac_c_preproc_warn_flag
3826 if test -z "$ac_cpp_err"; then
3827 ac_cv_header_stdc
=yes
3829 echo "$as_me: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3831 ac_cv_header_stdc
=no
3833 rm -f conftest.err conftest.
$ac_ext
3835 if test $ac_cv_header_stdc = yes; then
3836 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3837 cat >conftest.
$ac_ext <<_ACEOF
3838 #line $LINENO "configure"
3839 #include "confdefs.h"
3843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844 egrep "memchr" >/dev
/null
2>&1; then
3847 ac_cv_header_stdc
=no
3853 if test $ac_cv_header_stdc = yes; then
3854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3855 cat >conftest.
$ac_ext <<_ACEOF
3856 #line $LINENO "configure"
3857 #include "confdefs.h"
3861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862 egrep "free" >/dev
/null
2>&1; then
3865 ac_cv_header_stdc
=no
3871 if test $ac_cv_header_stdc = yes; then
3872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3873 if test "$cross_compiling" = yes; then
3876 cat >conftest.
$ac_ext <<_ACEOF
3877 #line $LINENO "configure"
3878 #include "confdefs.h"
3880 #if ((' ' & 0x0FF) == 0x020)
3881 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3882 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3884 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3885 || ('j' <= (c) && (c) <= 'r') \
3886 || ('s' <= (c) && (c) <= 'z'))
3887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3895 for (i = 0; i < 256; i++)
3896 if (XOR (islower (i), ISLOWER (i))
3897 || toupper (i) != TOUPPER (i))
3902 rm -f conftest
$ac_exeext
3903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3904 (eval $ac_link) 2>&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3915 echo "$as_me: program exited with status $ac_status" >&5
3916 echo "$as_me: failed program was:" >&5
3917 cat conftest.
$ac_ext >&5
3919 ac_cv_header_stdc
=no
3921 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3925 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3926 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3927 if test $ac_cv_header_stdc = yes; then
3929 cat >>confdefs.h
<<\_ACEOF
3930 #define STDC_HEADERS 1
3941 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3943 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3945 echo "$as_me:$LINENO: checking for $ac_header" >&5
3946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3953 # Is the header compilable?
3954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3956 cat >conftest.
$ac_ext <<_ACEOF
3957 #line $LINENO "configure"
3958 #include "confdefs.h"
3959 $ac_includes_default
3960 #include <$ac_header>
3962 rm -f conftest.
$ac_objext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try
='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 ac_header_compiler
=yes
3976 echo "$as_me: failed program was:" >&5
3977 cat conftest.
$ac_ext >&5
3978 ac_header_compiler
=no
3980 rm -f conftest.
$ac_objext conftest.
$ac_ext
3981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3982 echo "${ECHO_T}$ac_header_compiler" >&6
3984 # Is the header present?
3985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3987 cat >conftest.
$ac_ext <<_ACEOF
3988 #line $LINENO "configure"
3989 #include "confdefs.h"
3990 #include <$ac_header>
3992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3993 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3995 egrep -v '^ *\+' conftest.er1
>conftest.err
3997 cat conftest.err
>&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } >/dev
/null
; then
4000 if test -s conftest.err
; then
4001 ac_cpp_err
=$ac_c_preproc_warn_flag
4008 if test -z "$ac_cpp_err"; then
4009 ac_header_preproc
=yes
4011 echo "$as_me: failed program was:" >&5
4012 cat conftest.
$ac_ext >&5
4013 ac_header_preproc
=no
4015 rm -f conftest.err conftest.
$ac_ext
4016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4017 echo "${ECHO_T}$ac_header_preproc" >&6
4019 # So? What about this header?
4020 case $ac_header_compiler:$ac_header_preproc in
4022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4034 echo "$as_me:$LINENO: checking for $ac_header" >&5
4035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 eval "$as_ac_Header=$ac_header_preproc"
4041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4046 cat >>confdefs.h
<<_ACEOF
4047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055 # Checks for typedefs.
4057 # Checks for structures.
4059 # Checks for compiler characteristics.
4060 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4061 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4062 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 ac_cv_prog_cc_stdc
=no
4067 cat >conftest.
$ac_ext <<_ACEOF
4068 #line $LINENO "configure"
4069 #include "confdefs.h"
4072 #include <sys/types.h>
4073 #include <sys/stat.h>
4074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4075 struct buf { int x; };
4076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4077 static char *e (p, i)
4083 static char *f (char * (*g) (char **, int), char **p, ...)
4088 s = g (p, va_arg (v,int));
4092 int test (int i, double x);
4093 struct s1 {int (*f) (int a);};
4094 struct s2 {int (*f) (double a);};
4095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4098 #ifdef F77_DUMMY_MAIN
4102 int F77_DUMMY_MAIN() { return 1; }
4107 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4112 # Don't try gcc -ansi; that turns off useful extensions and
4113 # breaks some systems' header files.
4114 # AIX -qlanglvl=ansi
4115 # Ultrix and OSF/1 -std1
4116 # HP-UX 10.20 and later -Ae
4117 # HP-UX older versions -Aa -D_HPUX_SOURCE
4118 # SVR4 -Xc -D__EXTENSIONS__
4119 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4121 CC
="$ac_save_CC $ac_arg"
4122 rm -f conftest.
$ac_objext
4123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124 (eval $ac_compile) 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try
='test -s conftest.$ac_objext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4134 ac_cv_prog_cc_stdc
=$ac_arg
4137 echo "$as_me: failed program was:" >&5
4138 cat conftest.
$ac_ext >&5
4140 rm -f conftest.
$ac_objext
4142 rm -f conftest.
$ac_ext conftest.
$ac_objext
4147 case "x$ac_cv_prog_cc_stdc" in
4149 echo "$as_me:$LINENO: result: none needed" >&5
4150 echo "${ECHO_T}none needed" >&6 ;;
4152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4153 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4154 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4157 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4158 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4159 if test "${ac_cv_c_const+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 cat >conftest.
$ac_ext <<_ACEOF
4163 #line $LINENO "configure"
4164 #include "confdefs.h"
4166 #ifdef F77_DUMMY_MAIN
4170 int F77_DUMMY_MAIN() { return 1; }
4175 /* FIXME: Include the comments suggested by Paul. */
4177 /* Ultrix mips cc rejects this. */
4178 typedef int charset[2];
4180 /* SunOS 4.1.1 cc rejects this. */
4181 char const *const *ccp;
4183 /* NEC SVR4.0.2 mips cc rejects this. */
4184 struct point {int x, y;};
4185 static struct point const zero = {0,0};
4186 /* AIX XL C 1.02.0.0 rejects this.
4187 It does not let you subtract one const X* pointer from another in
4188 an arm of an if-expression whose if-part is not a constant
4190 const char *g = "string";
4191 ccp = &g + (g ? g-g : 0);
4192 /* HPUX 7.0 cc rejects these. */
4195 ccp = (char const *const *) p;
4196 { /* SCO 3.2v4 cc rejects this. */
4198 char const *s = 0 ? (char *) 0 : (char const *) 0;
4202 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4204 const int *foo = &x[0];
4207 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4208 typedef const int *iptr;
4212 { /* AIX XL C 1.02.0.0 rejects this saying
4213 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4214 struct s { int j; const int *ap[3]; };
4215 struct s *b; b->j = 5;
4217 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4226 rm -f conftest.
$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try
='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4240 echo "$as_me: failed program was:" >&5
4241 cat conftest.
$ac_ext >&5
4244 rm -f conftest.
$ac_objext conftest.
$ac_ext
4246 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4247 echo "${ECHO_T}$ac_cv_c_const" >&6
4248 if test $ac_cv_c_const = no
; then
4250 cat >>confdefs.h
<<\_ACEOF
4256 echo "$as_me:$LINENO: checking for inline" >&5
4257 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4258 if test "${ac_cv_c_inline+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 for ac_kw
in inline __inline__ __inline
; do
4263 cat >conftest.
$ac_ext <<_ACEOF
4264 #line $LINENO "configure"
4265 #include "confdefs.h"
4267 static $ac_kw int static_foo () {return 0; }
4268 $ac_kw int foo () {return 0; }
4272 rm -f conftest.
$ac_objext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4274 (eval $ac_compile) 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } &&
4278 { ac_try
='test -s conftest.$ac_objext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_c_inline
=$ac_kw; break
4286 echo "$as_me: failed program was:" >&5
4287 cat conftest.
$ac_ext >&5
4289 rm -f conftest.
$ac_objext conftest.
$ac_ext
4293 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4294 echo "${ECHO_T}$ac_cv_c_inline" >&6
4295 case $ac_cv_c_inline in
4298 cat >>confdefs.h
<<\_ACEOF
4302 *) cat >>confdefs.h
<<_ACEOF
4303 #define inline $ac_cv_c_inline
4310 echo "$as_me:$LINENO: checking for function prototypes" >&5
4311 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4312 if test "$am_cv_prog_cc_stdc" != no
; then
4313 echo "$as_me:$LINENO: result: yes" >&5
4314 echo "${ECHO_T}yes" >&6
4316 cat >>confdefs.h
<<\_ACEOF
4317 #define PROTOTYPES 1
4322 echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4324 U
=_ ANSI2KNR
=.
/ansi2knr
4326 # Ensure some checks needed by ansi2knr itself.
4327 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4328 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4329 if test "${ac_cv_header_stdc+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 cat >conftest.
$ac_ext <<_ACEOF
4333 #line $LINENO "configure"
4334 #include "confdefs.h"
4341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4342 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4344 egrep -v '^ *\+' conftest.er1
>conftest.err
4346 cat conftest.err
>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } >/dev
/null
; then
4349 if test -s conftest.err
; then
4350 ac_cpp_err
=$ac_c_preproc_warn_flag
4357 if test -z "$ac_cpp_err"; then
4358 ac_cv_header_stdc
=yes
4360 echo "$as_me: failed program was:" >&5
4361 cat conftest.
$ac_ext >&5
4362 ac_cv_header_stdc
=no
4364 rm -f conftest.err conftest.
$ac_ext
4366 if test $ac_cv_header_stdc = yes; then
4367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4368 cat >conftest.
$ac_ext <<_ACEOF
4369 #line $LINENO "configure"
4370 #include "confdefs.h"
4374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4375 egrep "memchr" >/dev
/null
2>&1; then
4378 ac_cv_header_stdc
=no
4384 if test $ac_cv_header_stdc = yes; then
4385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4386 cat >conftest.
$ac_ext <<_ACEOF
4387 #line $LINENO "configure"
4388 #include "confdefs.h"
4392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4393 egrep "free" >/dev
/null
2>&1; then
4396 ac_cv_header_stdc
=no
4402 if test $ac_cv_header_stdc = yes; then
4403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4404 if test "$cross_compiling" = yes; then
4407 cat >conftest.
$ac_ext <<_ACEOF
4408 #line $LINENO "configure"
4409 #include "confdefs.h"
4411 #if ((' ' & 0x0FF) == 0x020)
4412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4415 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4416 || ('j' <= (c) && (c) <= 'r') \
4417 || ('s' <= (c) && (c) <= 'z'))
4418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4426 for (i = 0; i < 256; i++)
4427 if (XOR (islower (i), ISLOWER (i))
4428 || toupper (i) != TOUPPER (i))
4433 rm -f conftest
$ac_exeext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4435 (eval $ac_link) 2>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then
4446 echo "$as_me: program exited with status $ac_status" >&5
4447 echo "$as_me: failed program was:" >&5
4448 cat conftest.
$ac_ext >&5
4450 ac_cv_header_stdc
=no
4452 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4456 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4457 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4458 if test $ac_cv_header_stdc = yes; then
4460 cat >>confdefs.h
<<\_ACEOF
4461 #define STDC_HEADERS 1
4467 for ac_header
in string.h
4469 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4471 echo "$as_me:$LINENO: checking for $ac_header" >&5
4472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4479 # Is the header compilable?
4480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4482 cat >conftest.
$ac_ext <<_ACEOF
4483 #line $LINENO "configure"
4484 #include "confdefs.h"
4485 $ac_includes_default
4486 #include <$ac_header>
4488 rm -f conftest.
$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } &&
4494 { ac_try
='test -s conftest.$ac_objext'
4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 ac_header_compiler
=yes
4502 echo "$as_me: failed program was:" >&5
4503 cat conftest.
$ac_ext >&5
4504 ac_header_compiler
=no
4506 rm -f conftest.
$ac_objext conftest.
$ac_ext
4507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4508 echo "${ECHO_T}$ac_header_compiler" >&6
4510 # Is the header present?
4511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4513 cat >conftest.
$ac_ext <<_ACEOF
4514 #line $LINENO "configure"
4515 #include "confdefs.h"
4516 #include <$ac_header>
4518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4519 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4521 egrep -v '^ *\+' conftest.er1
>conftest.err
4523 cat conftest.err
>&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } >/dev
/null
; then
4526 if test -s conftest.err
; then
4527 ac_cpp_err
=$ac_c_preproc_warn_flag
4534 if test -z "$ac_cpp_err"; then
4535 ac_header_preproc
=yes
4537 echo "$as_me: failed program was:" >&5
4538 cat conftest.
$ac_ext >&5
4539 ac_header_preproc
=no
4541 rm -f conftest.err conftest.
$ac_ext
4542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4543 echo "${ECHO_T}$ac_header_preproc" >&6
4545 # So? What about this header?
4546 case $ac_header_compiler:$ac_header_preproc in
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4560 echo "$as_me:$LINENO: checking for $ac_header" >&5
4561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 eval "$as_ac_Header=$ac_header_preproc"
4567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4572 cat >>confdefs.h
<<_ACEOF
4573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4582 # Checks for library functions.
4583 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4584 # for constant arguments. Useless!
4585 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4586 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4587 if test "${ac_cv_working_alloca_h+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 cat >conftest.
$ac_ext <<_ACEOF
4591 #line $LINENO "configure"
4592 #include "confdefs.h"
4594 #ifdef F77_DUMMY_MAIN
4598 int F77_DUMMY_MAIN() { return 1; }
4603 char *p = (char *) alloca (2 * sizeof (int));
4608 rm -f conftest.
$ac_objext conftest
$ac_exeext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4610 (eval $ac_link) 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try
='test -s conftest$ac_exeext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_working_alloca_h
=yes
4622 echo "$as_me: failed program was:" >&5
4623 cat conftest.
$ac_ext >&5
4624 ac_cv_working_alloca_h
=no
4626 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4628 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4629 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4630 if test $ac_cv_working_alloca_h = yes; then
4632 cat >>confdefs.h
<<\_ACEOF
4633 #define HAVE_ALLOCA_H 1
4638 echo "$as_me:$LINENO: checking for alloca" >&5
4639 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4640 if test "${ac_cv_func_alloca_works+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 cat >conftest.
$ac_ext <<_ACEOF
4644 #line $LINENO "configure"
4645 #include "confdefs.h"
4647 # define alloca __builtin_alloca
4650 # include <malloc.h>
4651 # define alloca _alloca
4654 # include <alloca.h>
4659 # ifndef alloca /* predefined by HP cc +Olibcalls */
4667 #ifdef F77_DUMMY_MAIN
4671 int F77_DUMMY_MAIN() { return 1; }
4676 char *p = (char *) alloca (1);
4681 rm -f conftest.
$ac_objext conftest
$ac_exeext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4683 (eval $ac_link) 2>&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } &&
4687 { ac_try
='test -s conftest$ac_exeext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 ac_cv_func_alloca_works
=yes
4695 echo "$as_me: failed program was:" >&5
4696 cat conftest.
$ac_ext >&5
4697 ac_cv_func_alloca_works
=no
4699 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4701 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4702 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4704 if test $ac_cv_func_alloca_works = yes; then
4706 cat >>confdefs.h
<<\_ACEOF
4707 #define HAVE_ALLOCA 1
4711 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4712 # that cause trouble. Some versions do not even contain alloca or
4713 # contain a buggy version. If you still want to use their alloca,
4714 # use ar to extract alloca.o from them instead of compiling alloca.c.
4716 ALLOCA
=alloca.
$ac_objext
4718 cat >>confdefs.h
<<\_ACEOF
4723 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4724 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4725 if test "${ac_cv_os_cray+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 cat >conftest.
$ac_ext <<_ACEOF
4729 #line $LINENO "configure"
4730 #include "confdefs.h"
4731 #if defined(CRAY) && ! defined(CRAY2)
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739 egrep "webecray" >/dev
/null
2>&1; then
4747 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4748 echo "${ECHO_T}$ac_cv_os_cray" >&6
4749 if test $ac_cv_os_cray = yes; then
4750 for ac_func
in _getb67 GETB67 getb67
; do
4751 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4752 echo "$as_me:$LINENO: checking for $ac_func" >&5
4753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4754 if eval "test \"\${$as_ac_var+set}\" = set"; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 cat >conftest.
$ac_ext <<_ACEOF
4758 #line $LINENO "configure"
4759 #include "confdefs.h"
4760 /* System header to define __stub macros and hopefully few prototypes,
4761 which can conflict with char $ac_func (); below. */
4763 /* Override any gcc2 internal prototype to avoid an error. */
4767 /* We use char because int might match the return type of a gcc2
4768 builtin and then its argument prototype would still apply. */
4772 #ifdef F77_DUMMY_MAIN
4776 int F77_DUMMY_MAIN() { return 1; }
4781 /* The GNU C library defines this for functions which it implements
4782 to always fail with ENOSYS. Some functions are actually named
4783 something starting with __ and the normal name is an alias. */
4784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4794 rm -f conftest.
$ac_objext conftest
$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796 (eval $ac_link) 2>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try
='test -s conftest$ac_exeext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 eval "$as_ac_var=yes"
4808 echo "$as_me: failed program was:" >&5
4809 cat conftest.
$ac_ext >&5
4810 eval "$as_ac_var=no"
4812 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4816 if test `eval echo '${'$as_ac_var'}'` = yes; then
4818 cat >>confdefs.h
<<_ACEOF
4819 #define CRAY_STACKSEG_END $ac_func
4828 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4829 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4830 if test "${ac_cv_c_stack_direction+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 if test "$cross_compiling" = yes; then
4834 ac_cv_c_stack_direction
=0
4836 cat >conftest.
$ac_ext <<_ACEOF
4837 #line $LINENO "configure"
4838 #include "confdefs.h"
4840 find_stack_direction ()
4842 static char *addr = 0;
4847 return find_stack_direction ();
4850 return (&dummy > addr) ? 1 : -1;
4856 exit (find_stack_direction () < 0);
4859 rm -f conftest
$ac_exeext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4861 (eval $ac_link) 2>&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 ac_cv_c_stack_direction
=1
4872 echo "$as_me: program exited with status $ac_status" >&5
4873 echo "$as_me: failed program was:" >&5
4874 cat conftest.
$ac_ext >&5
4876 ac_cv_c_stack_direction
=-1
4878 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4881 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4882 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4884 cat >>confdefs.h
<<_ACEOF
4885 #define STACK_DIRECTION $ac_cv_c_stack_direction
4891 echo "$as_me:$LINENO: checking for obstacks" >&5
4892 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
4893 if test "${ac_cv_func_obstack+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 cat >conftest.
$ac_ext <<_ACEOF
4897 #line $LINENO "configure"
4898 #include "confdefs.h"
4899 #include "obstack.h"
4900 #ifdef F77_DUMMY_MAIN
4904 int F77_DUMMY_MAIN() { return 1; }
4909 struct obstack *mem; obstack_free(mem,(char *) 0)
4914 rm -f conftest.
$ac_objext conftest
$ac_exeext
4915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4916 (eval $ac_link) 2>&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try
='test -s conftest$ac_exeext'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 ac_cv_func_obstack
=yes
4928 echo "$as_me: failed program was:" >&5
4929 cat conftest.
$ac_ext >&5
4930 ac_cv_func_obstack
=no
4932 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4934 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
4935 echo "${ECHO_T}$ac_cv_func_obstack" >&6
4936 if test $ac_cv_func_obstack = yes; then
4938 cat >>confdefs.h
<<\_ACEOF
4939 #define HAVE_OBSTACK 1
4943 LIBOBJS
="$LIBOBJS obstack.$ac_objext"
4946 echo "$as_me:$LINENO: checking for error_at_line" >&5
4947 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
4948 if test "${ac_cv_lib_error_at_line+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 cat >conftest.
$ac_ext <<_ACEOF
4952 #line $LINENO "configure"
4953 #include "confdefs.h"
4955 #ifdef F77_DUMMY_MAIN
4959 int F77_DUMMY_MAIN() { return 1; }
4964 error_at_line (0, 0, "", 0, "");
4969 rm -f conftest.
$ac_objext conftest
$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971 (eval $ac_link) 2>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try
='test -s conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_lib_error_at_line
=yes
4983 echo "$as_me: failed program was:" >&5
4984 cat conftest.
$ac_ext >&5
4985 ac_cv_lib_error_at_line
=no
4987 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4989 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
4990 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
4991 if test $ac_cv_lib_error_at_line = no
; then
4992 LIBOBJS
="$LIBOBJS error.$ac_objext"
4997 for ac_func
in mkstemp setlocale
4999 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5000 echo "$as_me:$LINENO: checking for $ac_func" >&5
5001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5002 if eval "test \"\${$as_ac_var+set}\" = set"; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 cat >conftest.
$ac_ext <<_ACEOF
5006 #line $LINENO "configure"
5007 #include "confdefs.h"
5008 /* System header to define __stub macros and hopefully few prototypes,
5009 which can conflict with char $ac_func (); below. */
5011 /* Override any gcc2 internal prototype to avoid an error. */
5015 /* We use char because int might match the return type of a gcc2
5016 builtin and then its argument prototype would still apply. */
5020 #ifdef F77_DUMMY_MAIN
5024 int F77_DUMMY_MAIN() { return 1; }
5029 /* The GNU C library defines this for functions which it implements
5030 to always fail with ENOSYS. Some functions are actually named
5031 something starting with __ and the normal name is an alias. */
5032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5042 rm -f conftest.
$ac_objext conftest
$ac_exeext
5043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5044 (eval $ac_link) 2>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try
='test -s conftest$ac_exeext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 eval "$as_ac_var=yes"
5056 echo "$as_me: failed program was:" >&5
5057 cat conftest.
$ac_ext >&5
5058 eval "$as_ac_var=no"
5060 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5064 if test `eval echo '${'$as_ac_var'}'` = yes; then
5065 cat >>confdefs.h
<<_ACEOF
5066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5072 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
5073 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
5074 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 cat >conftest.
$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5079 #include "confdefs.h"
5080 $ac_includes_default
5081 #ifdef F77_DUMMY_MAIN
5085 int F77_DUMMY_MAIN() { return 1; }
5091 char *p = (char *) stpcpy;
5098 rm -f conftest.
$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
5104 { ac_try
='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 ac_cv_have_decl_stpcpy
=yes
5112 echo "$as_me: failed program was:" >&5
5113 cat conftest.
$ac_ext >&5
5114 ac_cv_have_decl_stpcpy
=no
5116 rm -f conftest.
$ac_objext conftest.
$ac_ext
5118 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
5119 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
5120 if test $ac_cv_have_decl_stpcpy = yes; then
5122 cat >>confdefs.h
<<_ACEOF
5123 #define HAVE_DECL_STPCPY 1
5128 cat >>confdefs.h
<<_ACEOF
5129 #define HAVE_DECL_STPCPY 0
5134 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
5135 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
5136 if test "${ac_cv_have_decl_strndup+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 cat >conftest.
$ac_ext <<_ACEOF
5140 #line $LINENO "configure"
5141 #include "confdefs.h"
5142 $ac_includes_default
5143 #ifdef F77_DUMMY_MAIN
5147 int F77_DUMMY_MAIN() { return 1; }
5153 char *p = (char *) strndup;
5160 rm -f conftest.
$ac_objext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try
='test -s conftest.$ac_objext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_have_decl_strndup
=yes
5174 echo "$as_me: failed program was:" >&5
5175 cat conftest.
$ac_ext >&5
5176 ac_cv_have_decl_strndup
=no
5178 rm -f conftest.
$ac_objext conftest.
$ac_ext
5180 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
5181 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
5182 if test $ac_cv_have_decl_strndup = yes; then
5184 cat >>confdefs.h
<<_ACEOF
5185 #define HAVE_DECL_STRNDUP 1
5190 cat >>confdefs.h
<<_ACEOF
5191 #define HAVE_DECL_STRNDUP 0
5196 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
5197 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
5198 if test "${ac_cv_have_decl_strnlen+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 cat >conftest.
$ac_ext <<_ACEOF
5202 #line $LINENO "configure"
5203 #include "confdefs.h"
5204 $ac_includes_default
5205 #ifdef F77_DUMMY_MAIN
5209 int F77_DUMMY_MAIN() { return 1; }
5215 char *p = (char *) strnlen;
5222 rm -f conftest.
$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224 (eval $ac_compile) 2>&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try
='test -s conftest.$ac_objext'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 ac_cv_have_decl_strnlen
=yes
5236 echo "$as_me: failed program was:" >&5
5237 cat conftest.
$ac_ext >&5
5238 ac_cv_have_decl_strnlen
=no
5240 rm -f conftest.
$ac_objext conftest.
$ac_ext
5242 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
5243 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5244 if test $ac_cv_have_decl_strnlen = yes; then
5246 cat >>confdefs.h
<<_ACEOF
5247 #define HAVE_DECL_STRNLEN 1
5252 cat >>confdefs.h
<<_ACEOF
5253 #define HAVE_DECL_STRNLEN 0
5258 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5259 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5260 if test "${ac_cv_have_decl_memchr+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 cat >conftest.
$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5265 #include "confdefs.h"
5266 $ac_includes_default
5267 #ifdef F77_DUMMY_MAIN
5271 int F77_DUMMY_MAIN() { return 1; }
5277 char *p = (char *) memchr;
5284 rm -f conftest.
$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try
='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 ac_cv_have_decl_memchr
=yes
5298 echo "$as_me: failed program was:" >&5
5299 cat conftest.
$ac_ext >&5
5300 ac_cv_have_decl_memchr
=no
5302 rm -f conftest.
$ac_objext conftest.
$ac_ext
5304 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5305 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5306 if test $ac_cv_have_decl_memchr = yes; then
5308 cat >>confdefs.h
<<_ACEOF
5309 #define HAVE_DECL_MEMCHR 1
5314 cat >>confdefs.h
<<_ACEOF
5315 #define HAVE_DECL_MEMCHR 0
5327 for ac_func
in stpcpy strndup strnlen strspn memchr
5329 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5330 echo "$as_me:$LINENO: checking for $ac_func" >&5
5331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5332 if eval "test \"\${$as_ac_var+set}\" = set"; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 cat >conftest.
$ac_ext <<_ACEOF
5336 #line $LINENO "configure"
5337 #include "confdefs.h"
5338 /* System header to define __stub macros and hopefully few prototypes,
5339 which can conflict with char $ac_func (); below. */
5341 /* Override any gcc2 internal prototype to avoid an error. */
5345 /* We use char because int might match the return type of a gcc2
5346 builtin and then its argument prototype would still apply. */
5350 #ifdef F77_DUMMY_MAIN
5354 int F77_DUMMY_MAIN() { return 1; }
5359 /* The GNU C library defines this for functions which it implements
5360 to always fail with ENOSYS. Some functions are actually named
5361 something starting with __ and the normal name is an alias. */
5362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5372 rm -f conftest.
$ac_objext conftest
$ac_exeext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374 (eval $ac_link) 2>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try
='test -s conftest$ac_exeext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 eval "$as_ac_var=yes"
5386 echo "$as_me: failed program was:" >&5
5387 cat conftest.
$ac_ext >&5
5388 eval "$as_ac_var=no"
5390 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5394 if test `eval echo '${'$as_ac_var'}'` = yes; then
5395 cat >>confdefs.h
<<_ACEOF
5396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5400 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5407 cat >>confdefs.h
<<\_ACEOF
5408 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5412 echo "$as_me:$LINENO: checking for working malloc" >&5
5413 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5414 if test "${jm_cv_func_working_malloc+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 if test "$cross_compiling" = yes; then
5418 jm_cv_func_working_malloc
=no
5420 cat >conftest.
$ac_ext <<_ACEOF
5421 #line $LINENO "configure"
5422 #include "confdefs.h"
5428 exit (malloc (0) ? 0 : 1);
5432 rm -f conftest
$ac_exeext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5434 (eval $ac_link) 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 jm_cv_func_working_malloc
=yes
5445 echo "$as_me: program exited with status $ac_status" >&5
5446 echo "$as_me: failed program was:" >&5
5447 cat conftest.
$ac_ext >&5
5449 jm_cv_func_working_malloc
=no
5451 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5455 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5456 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5457 if test $jm_cv_func_working_malloc = no
; then
5458 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5460 cat >>confdefs.h
<<\_ACEOF
5461 #define malloc rpl_malloc
5468 cat >>confdefs.h
<<\_ACEOF
5469 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5473 echo "$as_me:$LINENO: checking for working realloc" >&5
5474 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5475 if test "${jm_cv_func_working_realloc+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 if test "$cross_compiling" = yes; then
5479 jm_cv_func_working_realloc
=no
5481 cat >conftest.
$ac_ext <<_ACEOF
5482 #line $LINENO "configure"
5483 #include "confdefs.h"
5489 exit (realloc (0, 0) ? 0 : 1);
5493 rm -f conftest
$ac_exeext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5495 (eval $ac_link) 2>&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
5504 jm_cv_func_working_realloc
=yes
5506 echo "$as_me: program exited with status $ac_status" >&5
5507 echo "$as_me: failed program was:" >&5
5508 cat conftest.
$ac_ext >&5
5510 jm_cv_func_working_realloc
=no
5512 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5516 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5517 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5518 if test $jm_cv_func_working_realloc = no
; then
5519 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5521 cat >>confdefs.h
<<\_ACEOF
5522 #define realloc rpl_realloc
5531 for ac_func
in isascii iswprint mbsinit
5533 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5534 echo "$as_me:$LINENO: checking for $ac_func" >&5
5535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5536 if eval "test \"\${$as_ac_var+set}\" = set"; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 cat >conftest.
$ac_ext <<_ACEOF
5540 #line $LINENO "configure"
5541 #include "confdefs.h"
5542 /* System header to define __stub macros and hopefully few prototypes,
5543 which can conflict with char $ac_func (); below. */
5545 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5554 #ifdef F77_DUMMY_MAIN
5558 int F77_DUMMY_MAIN() { return 1; }
5563 /* The GNU C library defines this for functions which it implements
5564 to always fail with ENOSYS. Some functions are actually named
5565 something starting with __ and the normal name is an alias. */
5566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5576 rm -f conftest.
$ac_objext conftest
$ac_exeext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5578 (eval $ac_link) 2>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } &&
5582 { ac_try
='test -s conftest$ac_exeext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5588 eval "$as_ac_var=yes"
5590 echo "$as_me: failed program was:" >&5
5591 cat conftest.
$ac_ext >&5
5592 eval "$as_ac_var=no"
5594 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5598 if test `eval echo '${'$as_ac_var'}'` = yes; then
5599 cat >>confdefs.h
<<_ACEOF
5600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5607 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5608 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5609 if test "${jm_cv_func_mbrtowc+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 cat >conftest.
$ac_ext <<_ACEOF
5613 #line $LINENO "configure"
5614 #include "confdefs.h"
5616 #ifdef F77_DUMMY_MAIN
5620 int F77_DUMMY_MAIN() { return 1; }
5625 mbstate_t state; return ! (sizeof state && mbrtowc);
5630 rm -f conftest.
$ac_objext conftest
$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try
='test -s conftest$ac_exeext'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; }; then
5642 jm_cv_func_mbrtowc
=yes
5644 echo "$as_me: failed program was:" >&5
5645 cat conftest.
$ac_ext >&5
5646 jm_cv_func_mbrtowc
=no
5648 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5650 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5651 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5652 if test $jm_cv_func_mbrtowc = yes; then
5654 cat >>confdefs.h
<<\_ACEOF
5655 #define HAVE_MBRTOWC 1
5666 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5668 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5670 echo "$as_me:$LINENO: checking for $ac_header" >&5
5671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5678 # Is the header compilable?
5679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5681 cat >conftest.
$ac_ext <<_ACEOF
5682 #line $LINENO "configure"
5683 #include "confdefs.h"
5684 $ac_includes_default
5685 #include <$ac_header>
5687 rm -f conftest.
$ac_objext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689 (eval $ac_compile) 2>&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try
='test -s conftest.$ac_objext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_header_compiler
=yes
5701 echo "$as_me: failed program was:" >&5
5702 cat conftest.
$ac_ext >&5
5703 ac_header_compiler
=no
5705 rm -f conftest.
$ac_objext conftest.
$ac_ext
5706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5707 echo "${ECHO_T}$ac_header_compiler" >&6
5709 # Is the header present?
5710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5712 cat >conftest.
$ac_ext <<_ACEOF
5713 #line $LINENO "configure"
5714 #include "confdefs.h"
5715 #include <$ac_header>
5717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5718 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5720 egrep -v '^ *\+' conftest.er1
>conftest.err
5722 cat conftest.err
>&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } >/dev
/null
; then
5725 if test -s conftest.err
; then
5726 ac_cpp_err
=$ac_c_preproc_warn_flag
5733 if test -z "$ac_cpp_err"; then
5734 ac_header_preproc
=yes
5736 echo "$as_me: failed program was:" >&5
5737 cat conftest.
$ac_ext >&5
5738 ac_header_preproc
=no
5740 rm -f conftest.err conftest.
$ac_ext
5741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5742 echo "${ECHO_T}$ac_header_preproc" >&6
5744 # So? What about this header?
5745 case $ac_header_compiler:$ac_header_preproc in
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5759 echo "$as_me:$LINENO: checking for $ac_header" >&5
5760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 eval "$as_ac_Header=$ac_header_preproc"
5766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5771 cat >>confdefs.h
<<_ACEOF
5772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5779 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5780 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5781 if test "${ac_cv_header_stdc+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 cat >conftest.
$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5786 #include "confdefs.h"
5793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5794 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5796 egrep -v '^ *\+' conftest.er1
>conftest.err
5798 cat conftest.err
>&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } >/dev
/null
; then
5801 if test -s conftest.err
; then
5802 ac_cpp_err
=$ac_c_preproc_warn_flag
5809 if test -z "$ac_cpp_err"; then
5810 ac_cv_header_stdc
=yes
5812 echo "$as_me: failed program was:" >&5
5813 cat conftest.
$ac_ext >&5
5814 ac_cv_header_stdc
=no
5816 rm -f conftest.err conftest.
$ac_ext
5818 if test $ac_cv_header_stdc = yes; then
5819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5820 cat >conftest.
$ac_ext <<_ACEOF
5821 #line $LINENO "configure"
5822 #include "confdefs.h"
5826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5827 egrep "memchr" >/dev
/null
2>&1; then
5830 ac_cv_header_stdc
=no
5836 if test $ac_cv_header_stdc = yes; then
5837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5838 cat >conftest.
$ac_ext <<_ACEOF
5839 #line $LINENO "configure"
5840 #include "confdefs.h"
5844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5845 egrep "free" >/dev
/null
2>&1; then
5848 ac_cv_header_stdc
=no
5854 if test $ac_cv_header_stdc = yes; then
5855 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5856 if test "$cross_compiling" = yes; then
5859 cat >conftest.
$ac_ext <<_ACEOF
5860 #line $LINENO "configure"
5861 #include "confdefs.h"
5863 #if ((' ' & 0x0FF) == 0x020)
5864 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5865 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5867 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5868 || ('j' <= (c) && (c) <= 'r') \
5869 || ('s' <= (c) && (c) <= 'z'))
5870 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5873 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5878 for (i = 0; i < 256; i++)
5879 if (XOR (islower (i), ISLOWER (i))
5880 || toupper (i) != TOUPPER (i))
5885 rm -f conftest
$ac_exeext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5887 (eval $ac_link) 2>&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5898 echo "$as_me: program exited with status $ac_status" >&5
5899 echo "$as_me: failed program was:" >&5
5900 cat conftest.
$ac_ext >&5
5902 ac_cv_header_stdc
=no
5904 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5908 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5909 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5910 if test $ac_cv_header_stdc = yes; then
5912 cat >>confdefs.h
<<\_ACEOF
5913 #define STDC_HEADERS 1
5919 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5920 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5921 if test "${ac_cv_c_backslash_a+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 cat >conftest.
$ac_ext <<_ACEOF
5925 #line $LINENO "configure"
5926 #include "confdefs.h"
5928 #ifdef F77_DUMMY_MAIN
5932 int F77_DUMMY_MAIN() { return 1; }
5941 char buf['\a' == 'a' ? -1 : 1];
5943 return buf[0] != "\a"[0];
5949 rm -f conftest.
$ac_objext
5950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951 (eval $ac_compile) 2>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try
='test -s conftest.$ac_objext'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5961 ac_cv_c_backslash_a
=yes
5963 echo "$as_me: failed program was:" >&5
5964 cat conftest.
$ac_ext >&5
5965 ac_cv_c_backslash_a
=no
5967 rm -f conftest.
$ac_objext conftest.
$ac_ext
5969 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5970 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5971 if test $ac_cv_c_backslash_a = yes; then
5973 cat >>confdefs.h
<<\_ACEOF
5974 #define HAVE_C_BACKSLASH_A 1
5981 for ac_header
in stdlib.h
5983 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5985 echo "$as_me:$LINENO: checking for $ac_header" >&5
5986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5993 # Is the header compilable?
5994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5996 cat >conftest.
$ac_ext <<_ACEOF
5997 #line $LINENO "configure"
5998 #include "confdefs.h"
5999 $ac_includes_default
6000 #include <$ac_header>
6002 rm -f conftest.
$ac_objext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004 (eval $ac_compile) 2>&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try
='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 ac_header_compiler
=yes
6016 echo "$as_me: failed program was:" >&5
6017 cat conftest.
$ac_ext >&5
6018 ac_header_compiler
=no
6020 rm -f conftest.
$ac_objext conftest.
$ac_ext
6021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6022 echo "${ECHO_T}$ac_header_compiler" >&6
6024 # Is the header present?
6025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6027 cat >conftest.
$ac_ext <<_ACEOF
6028 #line $LINENO "configure"
6029 #include "confdefs.h"
6030 #include <$ac_header>
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_header_preproc
=yes
6051 echo "$as_me: failed program was:" >&5
6052 cat conftest.
$ac_ext >&5
6053 ac_header_preproc
=no
6055 rm -f conftest.err conftest.
$ac_ext
6056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6057 echo "${ECHO_T}$ac_header_preproc" >&6
6059 # So? What about this header?
6060 case $ac_header_compiler:$ac_header_preproc in
6062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6074 echo "$as_me:$LINENO: checking for $ac_header" >&5
6075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 eval "$as_ac_Header=$ac_header_preproc"
6081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6086 cat >>confdefs.h
<<_ACEOF
6087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6095 echo "$as_me:$LINENO: checking for mbstate_t" >&5
6096 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6097 if test "${ac_cv_type_mbstate_t+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 cat >conftest.
$ac_ext <<_ACEOF
6101 #line $LINENO "configure"
6102 #include "confdefs.h"
6105 # include <stdlib.h>
6108 #ifdef F77_DUMMY_MAIN
6112 int F77_DUMMY_MAIN() { return 1; }
6117 mbstate_t x; return sizeof x;
6122 rm -f conftest.
$ac_objext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6124 (eval $ac_compile) 2>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try
='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_type_mbstate_t
=yes
6136 echo "$as_me: failed program was:" >&5
6137 cat conftest.
$ac_ext >&5
6138 ac_cv_type_mbstate_t
=no
6140 rm -f conftest.
$ac_objext conftest.
$ac_ext
6142 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
6143 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
6144 if test $ac_cv_type_mbstate_t = no
; then
6146 cat >>confdefs.h
<<\_ACEOF
6147 #define mbstate_t int
6153 echo "$as_me:$LINENO: checking for function prototypes" >&5
6154 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6155 if test "$am_cv_prog_cc_stdc" != no
; then
6156 echo "$as_me:$LINENO: result: yes" >&5
6157 echo "${ECHO_T}yes" >&6
6159 cat >>confdefs.h
<<\_ACEOF
6160 #define PROTOTYPES 1
6165 echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6167 U
=_ ANSI2KNR
=.
/ansi2knr
6169 # Ensure some checks needed by ansi2knr itself.
6170 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6171 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6172 if test "${ac_cv_header_stdc+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 cat >conftest.
$ac_ext <<_ACEOF
6176 #line $LINENO "configure"
6177 #include "confdefs.h"
6184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6185 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6187 egrep -v '^ *\+' conftest.er1
>conftest.err
6189 cat conftest.err
>&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } >/dev
/null
; then
6192 if test -s conftest.err
; then
6193 ac_cpp_err
=$ac_c_preproc_warn_flag
6200 if test -z "$ac_cpp_err"; then
6201 ac_cv_header_stdc
=yes
6203 echo "$as_me: failed program was:" >&5
6204 cat conftest.
$ac_ext >&5
6205 ac_cv_header_stdc
=no
6207 rm -f conftest.err conftest.
$ac_ext
6209 if test $ac_cv_header_stdc = yes; then
6210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6211 cat >conftest.
$ac_ext <<_ACEOF
6212 #line $LINENO "configure"
6213 #include "confdefs.h"
6217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6218 egrep "memchr" >/dev
/null
2>&1; then
6221 ac_cv_header_stdc
=no
6227 if test $ac_cv_header_stdc = yes; then
6228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6229 cat >conftest.
$ac_ext <<_ACEOF
6230 #line $LINENO "configure"
6231 #include "confdefs.h"
6235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6236 egrep "free" >/dev
/null
2>&1; then
6239 ac_cv_header_stdc
=no
6245 if test $ac_cv_header_stdc = yes; then
6246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6247 if test "$cross_compiling" = yes; then
6250 cat >conftest.
$ac_ext <<_ACEOF
6251 #line $LINENO "configure"
6252 #include "confdefs.h"
6254 #if ((' ' & 0x0FF) == 0x020)
6255 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6256 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6258 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6259 || ('j' <= (c) && (c) <= 'r') \
6260 || ('s' <= (c) && (c) <= 'z'))
6261 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6269 for (i = 0; i < 256; i++)
6270 if (XOR (islower (i), ISLOWER (i))
6271 || toupper (i) != TOUPPER (i))
6276 rm -f conftest
$ac_exeext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6278 (eval $ac_link) 2>&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6289 echo "$as_me: program exited with status $ac_status" >&5
6290 echo "$as_me: failed program was:" >&5
6291 cat conftest.
$ac_ext >&5
6293 ac_cv_header_stdc
=no
6295 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6299 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6300 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6301 if test $ac_cv_header_stdc = yes; then
6303 cat >>confdefs.h
<<\_ACEOF
6304 #define STDC_HEADERS 1
6310 for ac_header
in string.h
6312 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6314 echo "$as_me:$LINENO: checking for $ac_header" >&5
6315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6322 # Is the header compilable?
6323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6325 cat >conftest.
$ac_ext <<_ACEOF
6326 #line $LINENO "configure"
6327 #include "confdefs.h"
6328 $ac_includes_default
6329 #include <$ac_header>
6331 rm -f conftest.
$ac_objext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333 (eval $ac_compile) 2>&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try
='test -s conftest.$ac_objext'
6338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }; }; then
6343 ac_header_compiler
=yes
6345 echo "$as_me: failed program was:" >&5
6346 cat conftest.
$ac_ext >&5
6347 ac_header_compiler
=no
6349 rm -f conftest.
$ac_objext conftest.
$ac_ext
6350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6351 echo "${ECHO_T}$ac_header_compiler" >&6
6353 # Is the header present?
6354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6356 cat >conftest.
$ac_ext <<_ACEOF
6357 #line $LINENO "configure"
6358 #include "confdefs.h"
6359 #include <$ac_header>
6361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6362 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6364 egrep -v '^ *\+' conftest.er1
>conftest.err
6366 cat conftest.err
>&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } >/dev
/null
; then
6369 if test -s conftest.err
; then
6370 ac_cpp_err
=$ac_c_preproc_warn_flag
6377 if test -z "$ac_cpp_err"; then
6378 ac_header_preproc
=yes
6380 echo "$as_me: failed program was:" >&5
6381 cat conftest.
$ac_ext >&5
6382 ac_header_preproc
=no
6384 rm -f conftest.err conftest.
$ac_ext
6385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6386 echo "${ECHO_T}$ac_header_preproc" >&6
6388 # So? What about this header?
6389 case $ac_header_compiler:$ac_header_preproc in
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6403 echo "$as_me:$LINENO: checking for $ac_header" >&5
6404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 eval "$as_ac_Header=$ac_header_preproc"
6410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6415 cat >>confdefs.h
<<_ACEOF
6416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6429 for ac_func
in strerror vprintf doprnt
6431 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6432 echo "$as_me:$LINENO: checking for $ac_func" >&5
6433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6434 if eval "test \"\${$as_ac_var+set}\" = set"; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 cat >conftest.
$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6439 #include "confdefs.h"
6440 /* System header to define __stub macros and hopefully few prototypes,
6441 which can conflict with char $ac_func (); below. */
6443 /* Override any gcc2 internal prototype to avoid an error. */
6447 /* We use char because int might match the return type of a gcc2
6448 builtin and then its argument prototype would still apply. */
6452 #ifdef F77_DUMMY_MAIN
6456 int F77_DUMMY_MAIN() { return 1; }
6461 /* The GNU C library defines this for functions which it implements
6462 to always fail with ENOSYS. Some functions are actually named
6463 something starting with __ and the normal name is an alias. */
6464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6474 rm -f conftest.
$ac_objext conftest
$ac_exeext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try
='test -s conftest$ac_exeext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 eval "$as_ac_var=yes"
6488 echo "$as_me: failed program was:" >&5
6489 cat conftest.
$ac_ext >&5
6490 eval "$as_ac_var=no"
6492 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6496 if test `eval echo '${'$as_ac_var'}'` = yes; then
6497 cat >>confdefs.h
<<_ACEOF
6498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6504 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
6505 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
6506 if test "${ac_cv_have_decl_strerror+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 cat >conftest.
$ac_ext <<_ACEOF
6510 #line $LINENO "configure"
6511 #include "confdefs.h"
6512 $ac_includes_default
6513 #ifdef F77_DUMMY_MAIN
6517 int F77_DUMMY_MAIN() { return 1; }
6523 char *p = (char *) strerror;
6530 rm -f conftest.
$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532 (eval $ac_compile) 2>&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } &&
6536 { ac_try
='test -s conftest.$ac_objext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_cv_have_decl_strerror
=yes
6544 echo "$as_me: failed program was:" >&5
6545 cat conftest.
$ac_ext >&5
6546 ac_cv_have_decl_strerror
=no
6548 rm -f conftest.
$ac_objext conftest.
$ac_ext
6550 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
6551 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
6552 if test $ac_cv_have_decl_strerror = yes; then
6554 cat >>confdefs.h
<<_ACEOF
6555 #define HAVE_DECL_STRERROR 1
6560 cat >>confdefs.h
<<_ACEOF
6561 #define HAVE_DECL_STRERROR 0
6568 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6569 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6570 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 cat >conftest.
$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 #include "confdefs.h"
6576 $ac_includes_default
6577 #ifdef F77_DUMMY_MAIN
6581 int F77_DUMMY_MAIN() { return 1; }
6587 char *p = (char *) strerror_r;
6594 rm -f conftest.
$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try
='test -s conftest.$ac_objext'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6606 ac_cv_have_decl_strerror_r
=yes
6608 echo "$as_me: failed program was:" >&5
6609 cat conftest.
$ac_ext >&5
6610 ac_cv_have_decl_strerror_r
=no
6612 rm -f conftest.
$ac_objext conftest.
$ac_ext
6614 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6615 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6616 if test $ac_cv_have_decl_strerror_r = yes; then
6618 cat >>confdefs.h
<<_ACEOF
6619 #define HAVE_DECL_STRERROR_R 1
6624 cat >>confdefs.h
<<_ACEOF
6625 #define HAVE_DECL_STRERROR_R 0
6633 for ac_func
in strerror_r
6635 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6636 echo "$as_me:$LINENO: checking for $ac_func" >&5
6637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6638 if eval "test \"\${$as_ac_var+set}\" = set"; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 cat >conftest.
$ac_ext <<_ACEOF
6642 #line $LINENO "configure"
6643 #include "confdefs.h"
6644 /* System header to define __stub macros and hopefully few prototypes,
6645 which can conflict with char $ac_func (); below. */
6647 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6656 #ifdef F77_DUMMY_MAIN
6660 int F77_DUMMY_MAIN() { return 1; }
6665 /* The GNU C library defines this for functions which it implements
6666 to always fail with ENOSYS. Some functions are actually named
6667 something starting with __ and the normal name is an alias. */
6668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6678 rm -f conftest.
$ac_objext conftest
$ac_exeext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6680 (eval $ac_link) 2>&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try
='test -s conftest$ac_exeext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 eval "$as_ac_var=yes"
6692 echo "$as_me: failed program was:" >&5
6693 cat conftest.
$ac_ext >&5
6694 eval "$as_ac_var=no"
6696 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6700 if test `eval echo '${'$as_ac_var'}'` = yes; then
6701 cat >>confdefs.h
<<_ACEOF
6702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6708 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6709 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
6710 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 ac_cv_func_strerror_r_char_p
=no
6715 if test $ac_cv_have_decl_strerror_r = yes; then
6716 cat >conftest.
$ac_ext <<_ACEOF
6717 #line $LINENO "configure"
6718 #include "confdefs.h"
6719 $ac_includes_default
6720 #ifdef F77_DUMMY_MAIN
6724 int F77_DUMMY_MAIN() { return 1; }
6731 char x = *strerror_r (0, buf, sizeof buf);
6732 char *p = strerror_r (0, buf, sizeof buf);
6738 rm -f conftest.
$ac_objext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6740 (eval $ac_compile) 2>&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try
='test -s conftest.$ac_objext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 ac_cv_func_strerror_r_char_p
=yes
6752 echo "$as_me: failed program was:" >&5
6753 cat conftest.
$ac_ext >&5
6755 rm -f conftest.
$ac_objext conftest.
$ac_ext
6757 # strerror_r is not declared. Choose between
6758 # systems that have relatively inaccessible declarations for the
6759 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6760 # former has a strerror_r that returns char*, while the latter
6761 # has a strerror_r that returns `int'.
6762 # This test should segfault on the DEC system.
6763 if test "$cross_compiling" = yes; then
6766 cat >conftest.
$ac_ext <<_ACEOF
6767 #line $LINENO "configure"
6768 #include "confdefs.h"
6769 $ac_includes_default
6770 extern char *strerror_r ();
6771 #ifdef F77_DUMMY_MAIN
6775 int F77_DUMMY_MAIN() { return 1; }
6781 char x = *strerror_r (0, buf, sizeof buf);
6782 exit (!isalpha (x));
6787 rm -f conftest
$ac_exeext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789 (eval $ac_link) 2>&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }; then
6798 ac_cv_func_strerror_r_char_p
=yes
6800 echo "$as_me: program exited with status $ac_status" >&5
6801 echo "$as_me: failed program was:" >&5
6802 cat conftest.
$ac_ext >&5
6804 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6809 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
6810 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
6811 if test $ac_cv_func_strerror_r_char_p = yes; then
6813 cat >>confdefs.h
<<\_ACEOF
6814 #define STRERROR_R_CHAR_P 1
6819 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6820 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6821 if test "${ac_cv_header_stdc+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 cat >conftest.
$ac_ext <<_ACEOF
6825 #line $LINENO "configure"
6826 #include "confdefs.h"
6833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6834 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6836 egrep -v '^ *\+' conftest.er1
>conftest.err
6838 cat conftest.err
>&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } >/dev
/null
; then
6841 if test -s conftest.err
; then
6842 ac_cpp_err
=$ac_c_preproc_warn_flag
6849 if test -z "$ac_cpp_err"; then
6850 ac_cv_header_stdc
=yes
6852 echo "$as_me: failed program was:" >&5
6853 cat conftest.
$ac_ext >&5
6854 ac_cv_header_stdc
=no
6856 rm -f conftest.err conftest.
$ac_ext
6858 if test $ac_cv_header_stdc = yes; then
6859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6860 cat >conftest.
$ac_ext <<_ACEOF
6861 #line $LINENO "configure"
6862 #include "confdefs.h"
6866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6867 egrep "memchr" >/dev
/null
2>&1; then
6870 ac_cv_header_stdc
=no
6876 if test $ac_cv_header_stdc = yes; then
6877 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6878 cat >conftest.
$ac_ext <<_ACEOF
6879 #line $LINENO "configure"
6880 #include "confdefs.h"
6884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6885 egrep "free" >/dev
/null
2>&1; then
6888 ac_cv_header_stdc
=no
6894 if test $ac_cv_header_stdc = yes; then
6895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6896 if test "$cross_compiling" = yes; then
6899 cat >conftest.
$ac_ext <<_ACEOF
6900 #line $LINENO "configure"
6901 #include "confdefs.h"
6903 #if ((' ' & 0x0FF) == 0x020)
6904 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6905 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6907 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6908 || ('j' <= (c) && (c) <= 'r') \
6909 || ('s' <= (c) && (c) <= 'z'))
6910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6918 for (i = 0; i < 256; i++)
6919 if (XOR (islower (i), ISLOWER (i))
6920 || toupper (i) != TOUPPER (i))
6925 rm -f conftest
$ac_exeext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6927 (eval $ac_link) 2>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; }; then
6938 echo "$as_me: program exited with status $ac_status" >&5
6939 echo "$as_me: failed program was:" >&5
6940 cat conftest.
$ac_ext >&5
6942 ac_cv_header_stdc
=no
6944 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6948 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6949 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6950 if test $ac_cv_header_stdc = yes; then
6952 cat >>confdefs.h
<<\_ACEOF
6953 #define STDC_HEADERS 1
6959 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6960 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6962 # Check whether --with-dmalloc or --without-dmalloc was given.
6963 if test "${with_dmalloc+set}" = set; then
6964 withval
="$with_dmalloc"
6965 if test "$withval" = yes; then
6966 echo "$as_me:$LINENO: result: yes" >&5
6967 echo "${ECHO_T}yes" >&6
6969 cat >>confdefs.h
<<\_ACEOF
6970 #define WITH_DMALLOC 1
6973 LIBS
="$LIBS -ldmalloc"
6974 LDFLAGS
="$LDFLAGS -g"
6976 echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6
6980 echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6
6985 ALL_LINGUAS
="de es et fr ja nl ru sv tr"
6986 # Make sure we can run config.sub.
6987 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6988 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6989 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6990 { (exit 1); exit 1; }; }
6992 echo "$as_me:$LINENO: checking build system type" >&5
6993 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6994 if test "${ac_cv_build+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 ac_cv_build_alias
=$build_alias
6998 test -z "$ac_cv_build_alias" &&
6999 ac_cv_build_alias
=`$ac_config_guess`
7000 test -z "$ac_cv_build_alias" &&
7001 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7002 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7003 { (exit 1); exit 1; }; }
7004 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
7005 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
7006 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
7007 { (exit 1); exit 1; }; }
7010 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7011 echo "${ECHO_T}$ac_cv_build" >&6
7013 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7014 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7015 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7018 echo "$as_me:$LINENO: checking host system type" >&5
7019 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7020 if test "${ac_cv_host+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 ac_cv_host_alias
=$host_alias
7024 test -z "$ac_cv_host_alias" &&
7025 ac_cv_host_alias
=$ac_cv_build_alias
7026 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
7027 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7028 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7029 { (exit 1); exit 1; }; }
7032 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7033 echo "${ECHO_T}$ac_cv_host" >&6
7035 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7036 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7037 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7040 echo "$as_me:$LINENO: checking for off_t" >&5
7041 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7042 if test "${ac_cv_type_off_t+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 cat >conftest.
$ac_ext <<_ACEOF
7046 #line $LINENO "configure"
7047 #include "confdefs.h"
7048 $ac_includes_default
7049 #ifdef F77_DUMMY_MAIN
7053 int F77_DUMMY_MAIN() { return 1; }
7066 rm -f conftest.
$ac_objext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try
='test -s conftest.$ac_objext'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 ac_cv_type_off_t
=yes
7080 echo "$as_me: failed program was:" >&5
7081 cat conftest.
$ac_ext >&5
7084 rm -f conftest.
$ac_objext conftest.
$ac_ext
7086 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7087 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7088 if test $ac_cv_type_off_t = yes; then
7092 cat >>confdefs.h
<<_ACEOF
7098 echo "$as_me:$LINENO: checking for size_t" >&5
7099 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7100 if test "${ac_cv_type_size_t+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 cat >conftest.
$ac_ext <<_ACEOF
7104 #line $LINENO "configure"
7105 #include "confdefs.h"
7106 $ac_includes_default
7107 #ifdef F77_DUMMY_MAIN
7111 int F77_DUMMY_MAIN() { return 1; }
7118 if (sizeof (size_t))
7124 rm -f conftest.
$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126 (eval $ac_compile) 2>&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try
='test -s conftest.$ac_objext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_cv_type_size_t
=yes
7138 echo "$as_me: failed program was:" >&5
7139 cat conftest.
$ac_ext >&5
7140 ac_cv_type_size_t
=no
7142 rm -f conftest.
$ac_objext conftest.
$ac_ext
7144 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7145 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7146 if test $ac_cv_type_size_t = yes; then
7150 cat >>confdefs.h
<<_ACEOF
7151 #define size_t unsigned
7158 for ac_header
in stdlib.h unistd.h
7160 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7162 echo "$as_me:$LINENO: checking for $ac_header" >&5
7163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7170 # Is the header compilable?
7171 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7173 cat >conftest.
$ac_ext <<_ACEOF
7174 #line $LINENO "configure"
7175 #include "confdefs.h"
7176 $ac_includes_default
7177 #include <$ac_header>
7179 rm -f conftest.
$ac_objext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181 (eval $ac_compile) 2>&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try
='test -s conftest.$ac_objext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_header_compiler
=yes
7193 echo "$as_me: failed program was:" >&5
7194 cat conftest.
$ac_ext >&5
7195 ac_header_compiler
=no
7197 rm -f conftest.
$ac_objext conftest.
$ac_ext
7198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7199 echo "${ECHO_T}$ac_header_compiler" >&6
7201 # Is the header present?
7202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7204 cat >conftest.
$ac_ext <<_ACEOF
7205 #line $LINENO "configure"
7206 #include "confdefs.h"
7207 #include <$ac_header>
7209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7210 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7212 egrep -v '^ *\+' conftest.er1
>conftest.err
7214 cat conftest.err
>&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } >/dev
/null
; then
7217 if test -s conftest.err
; then
7218 ac_cpp_err
=$ac_c_preproc_warn_flag
7225 if test -z "$ac_cpp_err"; then
7226 ac_header_preproc
=yes
7228 echo "$as_me: failed program was:" >&5
7229 cat conftest.
$ac_ext >&5
7230 ac_header_preproc
=no
7232 rm -f conftest.err conftest.
$ac_ext
7233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7234 echo "${ECHO_T}$ac_header_preproc" >&6
7236 # So? What about this header?
7237 case $ac_header_compiler:$ac_header_preproc in
7239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7247 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7251 echo "$as_me:$LINENO: checking for $ac_header" >&5
7252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 eval "$as_ac_Header=$ac_header_preproc"
7258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7263 cat >>confdefs.h
<<_ACEOF
7264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7272 for ac_func
in getpagesize
7274 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7275 echo "$as_me:$LINENO: checking for $ac_func" >&5
7276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7277 if eval "test \"\${$as_ac_var+set}\" = set"; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 cat >conftest.
$ac_ext <<_ACEOF
7281 #line $LINENO "configure"
7282 #include "confdefs.h"
7283 /* System header to define __stub macros and hopefully few prototypes,
7284 which can conflict with char $ac_func (); below. */
7286 /* Override any gcc2 internal prototype to avoid an error. */
7290 /* We use char because int might match the return type of a gcc2
7291 builtin and then its argument prototype would still apply. */
7295 #ifdef F77_DUMMY_MAIN
7299 int F77_DUMMY_MAIN() { return 1; }
7304 /* The GNU C library defines this for functions which it implements
7305 to always fail with ENOSYS. Some functions are actually named
7306 something starting with __ and the normal name is an alias. */
7307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7317 rm -f conftest.
$ac_objext conftest
$ac_exeext
7318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7319 (eval $ac_link) 2>&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try
='test -s conftest$ac_exeext'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7329 eval "$as_ac_var=yes"
7331 echo "$as_me: failed program was:" >&5
7332 cat conftest.
$ac_ext >&5
7333 eval "$as_ac_var=no"
7335 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7339 if test `eval echo '${'$as_ac_var'}'` = yes; then
7340 cat >>confdefs.h
<<_ACEOF
7341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7347 echo "$as_me:$LINENO: checking for working mmap" >&5
7348 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7349 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 if test "$cross_compiling" = yes; then
7353 ac_cv_func_mmap_fixed_mapped
=no
7355 cat >conftest.
$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7357 #include "confdefs.h"
7358 $ac_includes_default
7359 /* Thanks to Mike Haertel and Jim Avera for this test.
7360 Here is a matrix of mmap possibilities:
7361 mmap private not fixed
7362 mmap private fixed at somewhere currently unmapped
7363 mmap private fixed at somewhere already mapped
7364 mmap shared not fixed
7365 mmap shared fixed at somewhere currently unmapped
7366 mmap shared fixed at somewhere already mapped
7367 For private mappings, we should verify that changes cannot be read()
7368 back from the file, nor mmap's back from the file at a different
7369 address. (There have been systems where private was not correctly
7370 implemented like the infamous i386 svr4.0, and systems where the
7371 VM page cache was not coherent with the file system buffer cache
7372 like early versions of FreeBSD and possibly contemporary NetBSD.)
7373 For shared mappings, we should conversely verify that changes get
7374 propagated back to all the places they're supposed to be.
7376 Grep wants private fixed already mapped.
7377 The main things grep needs to know about mmap are:
7378 * does it exist and is it safe to write into the mmap'd area
7379 * how to use it (BSD variants) */
7382 #include <sys/mman.h>
7384 #if !STDC_HEADERS && !HAVE_STDLIB_H
7388 /* This mess was copied from the GNU getpagesize.h. */
7389 #if !HAVE_GETPAGESIZE
7390 /* Assume that all systems that can run configure have sys/param.h. */
7391 # if !HAVE_SYS_PARAM_H
7392 # define HAVE_SYS_PARAM_H 1
7395 # ifdef _SC_PAGESIZE
7396 # define getpagesize() sysconf(_SC_PAGESIZE)
7397 # else /* no _SC_PAGESIZE */
7398 # if HAVE_SYS_PARAM_H
7399 # include <sys/param.h>
7400 # ifdef EXEC_PAGESIZE
7401 # define getpagesize() EXEC_PAGESIZE
7402 # else /* no EXEC_PAGESIZE */
7404 # define getpagesize() NBPG * CLSIZE
7407 # endif /* no CLSIZE */
7408 # else /* no NBPG */
7410 # define getpagesize() NBPC
7411 # else /* no NBPC */
7413 # define getpagesize() PAGESIZE
7414 # endif /* PAGESIZE */
7415 # endif /* no NBPC */
7416 # endif /* no NBPG */
7417 # endif /* no EXEC_PAGESIZE */
7418 # else /* no HAVE_SYS_PARAM_H */
7419 # define getpagesize() 8192 /* punt totally */
7420 # endif /* no HAVE_SYS_PARAM_H */
7421 # endif /* no _SC_PAGESIZE */
7423 #endif /* no HAVE_GETPAGESIZE */
7428 char *data, *data2, *data3;
7432 pagesize = getpagesize ();
7434 /* First, make a file with some known garbage in it. */
7435 data = (char *) malloc (pagesize);
7438 for (i = 0; i < pagesize; ++i)
7439 *(data + i) = rand ();
7441 fd = creat ("conftest.mmap", 0600);
7444 if (write (fd, data, pagesize) != pagesize)
7448 /* Next, try to mmap the file at a fixed address which already has
7449 something else allocated at it. If we can, also make sure that
7450 we see the same garbage. */
7451 fd = open ("conftest.mmap", O_RDWR);
7454 data2 = (char *) malloc (2 * pagesize);
7457 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7458 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7459 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7461 for (i = 0; i < pagesize; ++i)
7462 if (*(data + i) != *(data2 + i))
7465 /* Finally, make sure that changes to the mapped area do not
7466 percolate back to the file as seen by read(). (This is a bug on
7467 some variants of i386 svr4.0.) */
7468 for (i = 0; i < pagesize; ++i)
7469 *(data2 + i) = *(data2 + i) + 1;
7470 data3 = (char *) malloc (pagesize);
7473 if (read (fd, data3, pagesize) != pagesize)
7475 for (i = 0; i < pagesize; ++i)
7476 if (*(data + i) != *(data3 + i))
7482 rm -f conftest
$ac_exeext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484 (eval $ac_link) 2>&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 ac_cv_func_mmap_fixed_mapped
=yes
7495 echo "$as_me: program exited with status $ac_status" >&5
7496 echo "$as_me: failed program was:" >&5
7497 cat conftest.
$ac_ext >&5
7499 ac_cv_func_mmap_fixed_mapped
=no
7501 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7504 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7505 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7506 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7508 cat >>confdefs.h
<<\_ACEOF
7516 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7517 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7518 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 cat >conftest.
$ac_ext <<_ACEOF
7522 #line $LINENO "configure"
7523 #include "confdefs.h"
7525 #include <features.h>
7526 #ifdef __GNU_LIBRARY__
7527 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7534 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7535 ac_cv_gnu_library_2_1
=yes
7537 ac_cv_gnu_library_2_1
=no
7544 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7545 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7547 GLIBC21
="$ac_cv_gnu_library_2_1"
7561 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7562 stdlib.h string.h unistd.h sys
/param.h
7564 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7566 echo "$as_me:$LINENO: checking for $ac_header" >&5
7567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7574 # Is the header compilable?
7575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7577 cat >conftest.
$ac_ext <<_ACEOF
7578 #line $LINENO "configure"
7579 #include "confdefs.h"
7580 $ac_includes_default
7581 #include <$ac_header>
7583 rm -f conftest.
$ac_objext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585 (eval $ac_compile) 2>&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try
='test -s conftest.$ac_objext'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; }; then
7595 ac_header_compiler
=yes
7597 echo "$as_me: failed program was:" >&5
7598 cat conftest.
$ac_ext >&5
7599 ac_header_compiler
=no
7601 rm -f conftest.
$ac_objext conftest.
$ac_ext
7602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7603 echo "${ECHO_T}$ac_header_compiler" >&6
7605 # Is the header present?
7606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7608 cat >conftest.
$ac_ext <<_ACEOF
7609 #line $LINENO "configure"
7610 #include "confdefs.h"
7611 #include <$ac_header>
7613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7614 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7616 egrep -v '^ *\+' conftest.er1
>conftest.err
7618 cat conftest.err
>&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } >/dev
/null
; then
7621 if test -s conftest.err
; then
7622 ac_cpp_err
=$ac_c_preproc_warn_flag
7629 if test -z "$ac_cpp_err"; then
7630 ac_header_preproc
=yes
7632 echo "$as_me: failed program was:" >&5
7633 cat conftest.
$ac_ext >&5
7634 ac_header_preproc
=no
7636 rm -f conftest.err conftest.
$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7638 echo "${ECHO_T}$ac_header_preproc" >&6
7640 # So? What about this header?
7641 case $ac_header_compiler:$ac_header_preproc in
7643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7655 echo "$as_me:$LINENO: checking for $ac_header" >&5
7656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 eval "$as_ac_Header=$ac_header_preproc"
7662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7667 cat >>confdefs.h
<<_ACEOF
7668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7696 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7697 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7698 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7700 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7701 echo "$as_me:$LINENO: checking for $ac_func" >&5
7702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7703 if eval "test \"\${$as_ac_var+set}\" = set"; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 cat >conftest.
$ac_ext <<_ACEOF
7707 #line $LINENO "configure"
7708 #include "confdefs.h"
7709 /* System header to define __stub macros and hopefully few prototypes,
7710 which can conflict with char $ac_func (); below. */
7712 /* Override any gcc2 internal prototype to avoid an error. */
7716 /* We use char because int might match the return type of a gcc2
7717 builtin and then its argument prototype would still apply. */
7721 #ifdef F77_DUMMY_MAIN
7725 int F77_DUMMY_MAIN() { return 1; }
7730 /* The GNU C library defines this for functions which it implements
7731 to always fail with ENOSYS. Some functions are actually named
7732 something starting with __ and the normal name is an alias. */
7733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7743 rm -f conftest.
$ac_objext conftest
$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try
='test -s conftest$ac_exeext'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 eval "$as_ac_var=yes"
7757 echo "$as_me: failed program was:" >&5
7758 cat conftest.
$ac_ext >&5
7759 eval "$as_ac_var=no"
7761 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7765 if test `eval echo '${'$as_ac_var'}'` = yes; then
7766 cat >>confdefs.h
<<_ACEOF
7767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7777 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7778 if test "${with_libiconv_prefix+set}" = set; then
7779 withval
="$with_libiconv_prefix"
7781 for dir
in `echo "$withval" | tr : ' '`; do
7782 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7783 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7788 echo "$as_me:$LINENO: checking for iconv" >&5
7789 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7790 if test "${am_cv_func_iconv+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 am_cv_func_iconv
="no, consider installing GNU libiconv"
7796 cat >conftest.
$ac_ext <<_ACEOF
7797 #line $LINENO "configure"
7798 #include "confdefs.h"
7801 #ifdef F77_DUMMY_MAIN
7805 int F77_DUMMY_MAIN() { return 1; }
7810 iconv_t cd = iconv_open("","");
7811 iconv(cd,NULL,NULL,NULL,NULL);
7817 rm -f conftest.
$ac_objext conftest
$ac_exeext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819 (eval $ac_link) 2>&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } &&
7823 { ac_try
='test -s conftest$ac_exeext'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; }; then
7829 am_cv_func_iconv
=yes
7831 echo "$as_me: failed program was:" >&5
7832 cat conftest.
$ac_ext >&5
7834 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7835 if test "$am_cv_func_iconv" != yes; then
7836 am_save_LIBS
="$LIBS"
7837 LIBS
="$LIBS -liconv"
7838 cat >conftest.
$ac_ext <<_ACEOF
7839 #line $LINENO "configure"
7840 #include "confdefs.h"
7843 #ifdef F77_DUMMY_MAIN
7847 int F77_DUMMY_MAIN() { return 1; }
7852 iconv_t cd = iconv_open("","");
7853 iconv(cd,NULL,NULL,NULL,NULL);
7859 rm -f conftest.
$ac_objext conftest
$ac_exeext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7861 (eval $ac_link) 2>&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try
='test -s conftest$ac_exeext'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7872 am_cv_func_iconv
=yes
7874 echo "$as_me: failed program was:" >&5
7875 cat conftest.
$ac_ext >&5
7877 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7878 LIBS
="$am_save_LIBS"
7882 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7883 echo "${ECHO_T}$am_cv_func_iconv" >&6
7884 if test "$am_cv_func_iconv" = yes; then
7886 cat >>confdefs.h
<<\_ACEOF
7887 #define HAVE_ICONV 1
7890 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7891 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7892 if test "${am_cv_proto_iconv+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 cat >conftest.
$ac_ext <<_ACEOF
7897 #line $LINENO "configure"
7898 #include "confdefs.h"
7906 #if defined(__STDC__) || defined(__cplusplus)
7907 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7912 #ifdef F77_DUMMY_MAIN
7916 int F77_DUMMY_MAIN() { return 1; }
7926 rm -f conftest.
$ac_objext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7928 (eval $ac_compile) 2>&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } &&
7932 { ac_try
='test -s conftest.$ac_objext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 am_cv_proto_iconv_arg1
=""
7940 echo "$as_me: failed program was:" >&5
7941 cat conftest.
$ac_ext >&5
7942 am_cv_proto_iconv_arg1
="const"
7944 rm -f conftest.
$ac_objext conftest.
$ac_ext
7945 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);"
7948 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7949 echo "$as_me:$LINENO: result: ${ac_t:-
7950 }$am_cv_proto_iconv" >&5
7951 echo "${ECHO_T}${ac_t:-
7952 }$am_cv_proto_iconv" >&6
7954 cat >>confdefs.h
<<_ACEOF
7955 #define ICONV_CONST $am_cv_proto_iconv_arg1
7960 if test "$am_cv_lib_iconv" = yes; then
7966 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7967 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7968 if test "${am_cv_langinfo_codeset+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 cat >conftest.
$ac_ext <<_ACEOF
7972 #line $LINENO "configure"
7973 #include "confdefs.h"
7974 #include <langinfo.h>
7975 #ifdef F77_DUMMY_MAIN
7979 int F77_DUMMY_MAIN() { return 1; }
7984 char* cs = nl_langinfo(CODESET);
7989 rm -f conftest.
$ac_objext conftest
$ac_exeext
7990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7991 (eval $ac_link) 2>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try
='test -s conftest$ac_exeext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 am_cv_langinfo_codeset
=yes
8003 echo "$as_me: failed program was:" >&5
8004 cat conftest.
$ac_ext >&5
8005 am_cv_langinfo_codeset
=no
8007 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8010 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8011 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8012 if test $am_cv_langinfo_codeset = yes; then
8014 cat >>confdefs.h
<<\_ACEOF
8015 #define HAVE_LANGINFO_CODESET 1
8020 if test $ac_cv_header_locale_h = yes; then
8021 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8022 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8023 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 cat >conftest.
$ac_ext <<_ACEOF
8027 #line $LINENO "configure"
8028 #include "confdefs.h"
8030 #ifdef F77_DUMMY_MAIN
8034 int F77_DUMMY_MAIN() { return 1; }
8044 rm -f conftest.
$ac_objext conftest
$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } &&
8050 { ac_try
='test -s conftest$ac_exeext'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8056 am_cv_val_LC_MESSAGES
=yes
8058 echo "$as_me: failed program was:" >&5
8059 cat conftest.
$ac_ext >&5
8060 am_cv_val_LC_MESSAGES
=no
8062 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8064 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8065 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8066 if test $am_cv_val_LC_MESSAGES = yes; then
8068 cat >>confdefs.h
<<\_ACEOF
8069 #define HAVE_LC_MESSAGES 1
8074 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8075 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8076 # Check whether --enable-nls or --disable-nls was given.
8077 if test "${enable_nls+set}" = set; then
8078 enableval
="$enable_nls"
8083 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8084 echo "${ECHO_T}$USE_NLS" >&6
8087 BUILD_INCLUDED_LIBINTL
=no
8088 USE_INCLUDED_LIBINTL
=no
8091 if test "$USE_NLS" = "yes"; then
8093 cat >>confdefs.h
<<\_ACEOF
8094 #define ENABLE_NLS 1
8097 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8098 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8100 # Check whether --with-included-gettext or --without-included-gettext was given.
8101 if test "${with_included_gettext+set}" = set; then
8102 withval
="$with_included_gettext"
8103 nls_cv_force_use_gnu_gettext
=$withval
8105 nls_cv_force_use_gnu_gettext
=no
8107 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8108 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8110 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
8111 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8117 if test "${ac_cv_header_libintl_h+set}" = set; then
8118 echo "$as_me:$LINENO: checking for libintl.h" >&5
8119 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8120 if test "${ac_cv_header_libintl_h+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8124 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8126 # Is the header compilable?
8127 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8128 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8129 cat >conftest.
$ac_ext <<_ACEOF
8130 #line $LINENO "configure"
8131 #include "confdefs.h"
8132 $ac_includes_default
8133 #include <libintl.h>
8135 rm -f conftest.
$ac_objext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137 (eval $ac_compile) 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try
='test -s conftest.$ac_objext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 ac_header_compiler
=yes
8149 echo "$as_me: failed program was:" >&5
8150 cat conftest.
$ac_ext >&5
8151 ac_header_compiler
=no
8153 rm -f conftest.
$ac_objext conftest.
$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155 echo "${ECHO_T}$ac_header_compiler" >&6
8157 # Is the header present?
8158 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8159 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8160 cat >conftest.
$ac_ext <<_ACEOF
8161 #line $LINENO "configure"
8162 #include "confdefs.h"
8163 #include <libintl.h>
8165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8166 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8168 egrep -v '^ *\+' conftest.er1
>conftest.err
8170 cat conftest.err
>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } >/dev
/null
; then
8173 if test -s conftest.err
; then
8174 ac_cpp_err
=$ac_c_preproc_warn_flag
8181 if test -z "$ac_cpp_err"; then
8182 ac_header_preproc
=yes
8184 echo "$as_me: failed program was:" >&5
8185 cat conftest.
$ac_ext >&5
8186 ac_header_preproc
=no
8188 rm -f conftest.err conftest.
$ac_ext
8189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8190 echo "${ECHO_T}$ac_header_preproc" >&6
8192 # So? What about this header?
8193 case $ac_header_compiler:$ac_header_preproc in
8195 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8196 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8198 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8200 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
8201 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
8202 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8203 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8204 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8205 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8207 echo "$as_me:$LINENO: checking for libintl.h" >&5
8208 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8209 if test "${ac_cv_header_libintl_h+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 ac_cv_header_libintl_h
=$ac_header_preproc
8214 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8215 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8218 if test $ac_cv_header_libintl_h = yes; then
8219 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8220 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8221 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 cat >conftest.
$ac_ext <<_ACEOF
8225 #line $LINENO "configure"
8226 #include "confdefs.h"
8227 #include <libintl.h>
8228 extern int _nl_msg_cat_cntr;
8229 #ifdef F77_DUMMY_MAIN
8233 int F77_DUMMY_MAIN() { return 1; }
8238 bindtextdomain ("", "");
8239 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8244 rm -f conftest.
$ac_objext conftest
$ac_exeext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246 (eval $ac_link) 2>&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try
='test -s conftest$ac_exeext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 gt_cv_func_gnugettext2_libc
=yes
8258 echo "$as_me: failed program was:" >&5
8259 cat conftest.
$ac_ext >&5
8260 gt_cv_func_gnugettext2_libc
=no
8262 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8264 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8265 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8267 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8268 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8269 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8270 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 gt_save_LIBS
="$LIBS"
8274 LIBS
="$LIBS -lintl $LIBICONV"
8275 cat >conftest.
$ac_ext <<_ACEOF
8276 #line $LINENO "configure"
8277 #include "confdefs.h"
8278 #include <libintl.h>
8279 extern int _nl_msg_cat_cntr;
8280 #ifdef F77_DUMMY_MAIN
8284 int F77_DUMMY_MAIN() { return 1; }
8289 bindtextdomain ("", "");
8290 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8295 rm -f conftest.
$ac_objext conftest
$ac_exeext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297 (eval $ac_link) 2>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try
='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 gt_cv_func_gnugettext2_libintl
=yes
8309 echo "$as_me: failed program was:" >&5
8310 cat conftest.
$ac_ext >&5
8311 gt_cv_func_gnugettext2_libintl
=no
8313 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8314 LIBS
="$gt_save_LIBS"
8316 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8317 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8320 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8321 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8322 && test "$PACKAGE" != gettext; }; then
8324 cat >>confdefs.h
<<\_ACEOF
8325 #define HAVE_GETTEXT 1
8329 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8330 INTLLIBS
="-lintl $LIBICONV"
8333 gt_save_LIBS
="$LIBS"
8334 LIBS
="$LIBS $INTLLIBS"
8336 for ac_func
in dcgettext
8338 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8339 echo "$as_me:$LINENO: checking for $ac_func" >&5
8340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8341 if eval "test \"\${$as_ac_var+set}\" = set"; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 cat >conftest.
$ac_ext <<_ACEOF
8345 #line $LINENO "configure"
8346 #include "confdefs.h"
8347 /* System header to define __stub macros and hopefully few prototypes,
8348 which can conflict with char $ac_func (); below. */
8350 /* Override any gcc2 internal prototype to avoid an error. */
8354 /* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8359 #ifdef F77_DUMMY_MAIN
8363 int F77_DUMMY_MAIN() { return 1; }
8368 /* The GNU C library defines this for functions which it implements
8369 to always fail with ENOSYS. Some functions are actually named
8370 something starting with __ and the normal name is an alias. */
8371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8381 rm -f conftest.
$ac_objext conftest
$ac_exeext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8383 (eval $ac_link) 2>&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try
='test -s conftest$ac_exeext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 eval "$as_ac_var=yes"
8395 echo "$as_me: failed program was:" >&5
8396 cat conftest.
$ac_ext >&5
8397 eval "$as_ac_var=no"
8399 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8403 if test `eval echo '${'$as_ac_var'}'` = yes; then
8404 cat >>confdefs.h
<<_ACEOF
8405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8411 LIBS
="$gt_save_LIBS"
8413 # Extract the first word of "msgfmt", so it can be a program name with args.
8414 set dummy msgfmt
; ac_word
=$2
8415 echo "$as_me:$LINENO: checking for $ac_word" >&5
8416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8417 if test "${ac_cv_path_MSGFMT+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8425 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8426 for ac_dir
in $PATH; do
8427 test -z "$ac_dir" && ac_dir
=.
8428 if test -f $ac_dir/$ac_word; then
8429 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8430 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8436 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8440 MSGFMT
="$ac_cv_path_MSGFMT"
8441 if test "$MSGFMT" != ":"; then
8442 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8443 echo "${ECHO_T}$MSGFMT" >&6
8445 echo "$as_me:$LINENO: result: no" >&5
8446 echo "${ECHO_T}no" >&6
8449 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8450 set dummy gmsgfmt
; ac_word
=$2
8451 echo "$as_me:$LINENO: checking for $ac_word" >&5
8452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8453 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8465 test -z "$as_dir" && as_dir
=.
8466 for ac_exec_ext
in '' $ac_executable_extensions; do
8467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8468 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8475 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8479 GMSGFMT
=$ac_cv_path_GMSGFMT
8481 if test -n "$GMSGFMT"; then
8482 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8483 echo "${ECHO_T}$GMSGFMT" >&6
8485 echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6
8490 # Extract the first word of "xgettext", so it can be a program name with args.
8491 set dummy xgettext
; ac_word
=$2
8492 echo "$as_me:$LINENO: checking for $ac_word" >&5
8493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8494 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8502 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8503 for ac_dir
in $PATH; do
8504 test -z "$ac_dir" && ac_dir
=.
8505 if test -f $ac_dir/$ac_word; then
8506 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8507 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8513 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8517 XGETTEXT
="$ac_cv_path_XGETTEXT"
8518 if test "$XGETTEXT" != ":"; then
8519 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8520 echo "${ECHO_T}$XGETTEXT" >&6
8522 echo "$as_me:$LINENO: result: no" >&5
8523 echo "${ECHO_T}no" >&6
8534 if test "$CATOBJEXT" = "NONE"; then
8535 nls_cv_use_gnu_gettext
=yes
8539 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8540 INTLOBJS
="\$(GETTOBJS)"
8541 # Extract the first word of "msgfmt", so it can be a program name with args.
8542 set dummy msgfmt
; 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_path_MSGFMT+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8553 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8554 for ac_dir
in $PATH; do
8555 test -z "$ac_dir" && ac_dir
=.
8556 if test -f $ac_dir/$ac_word; then
8557 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8558 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8564 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8568 MSGFMT
="$ac_cv_path_MSGFMT"
8569 if test "$MSGFMT" != ":"; then
8570 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8571 echo "${ECHO_T}$MSGFMT" >&6
8573 echo "$as_me:$LINENO: result: no" >&5
8574 echo "${ECHO_T}no" >&6
8577 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8578 set dummy gmsgfmt
; ac_word
=$2
8579 echo "$as_me:$LINENO: checking for $ac_word" >&5
8580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8581 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8593 test -z "$as_dir" && as_dir
=.
8594 for ac_exec_ext
in '' $ac_executable_extensions; do
8595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8607 GMSGFMT
=$ac_cv_path_GMSGFMT
8609 if test -n "$GMSGFMT"; then
8610 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8611 echo "${ECHO_T}$GMSGFMT" >&6
8613 echo "$as_me:$LINENO: result: no" >&5
8614 echo "${ECHO_T}no" >&6
8617 # Extract the first word of "xgettext", so it can be a program name with args.
8618 set dummy xgettext
; ac_word
=$2
8619 echo "$as_me:$LINENO: checking for $ac_word" >&5
8620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8621 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8629 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8630 for ac_dir
in $PATH; do
8631 test -z "$ac_dir" && ac_dir
=.
8632 if test -f $ac_dir/$ac_word; then
8633 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8634 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8640 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8644 XGETTEXT
="$ac_cv_path_XGETTEXT"
8645 if test "$XGETTEXT" != ":"; then
8646 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8647 echo "${ECHO_T}$XGETTEXT" >&6
8649 echo "$as_me:$LINENO: result: no" >&5
8650 echo "${ECHO_T}no" >&6
8654 BUILD_INCLUDED_LIBINTL
=yes
8655 USE_INCLUDED_LIBINTL
=yes
8657 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8658 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8661 if test "$GMSGFMT" != ":"; then
8662 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8665 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8666 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8671 if test "$XGETTEXT" != ":"; then
8672 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8675 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8676 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8683 ac_config_commands
="$ac_config_commands default-1"
8687 if test "$PACKAGE" = gettext; then
8688 BUILD_INCLUDED_LIBINTL
=yes
8691 for ac_prog
in bison
8693 # Extract the first word of "$ac_prog", so it can be a program name with args.
8694 set dummy
$ac_prog; ac_word
=$2
8695 echo "$as_me:$LINENO: checking for $ac_word" >&5
8696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8697 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 if test -n "$INTLBISON"; then
8701 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8707 test -z "$as_dir" && as_dir
=.
8708 for ac_exec_ext
in '' $ac_executable_extensions; do
8709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8710 ac_cv_prog_INTLBISON
="$ac_prog"
8711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 INTLBISON
=$ac_cv_prog_INTLBISON
8720 if test -n "$INTLBISON"; then
8721 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8722 echo "${ECHO_T}$INTLBISON" >&6
8724 echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6
8728 test -n "$INTLBISON" && break
8731 if test -z "$INTLBISON"; then
8734 echo "$as_me:$LINENO: checking version of bison" >&5
8735 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8736 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8737 case $ac_prog_version in
8738 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8739 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8740 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8741 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8743 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8744 echo "${ECHO_T}$ac_prog_version" >&6
8746 if test $ac_verc_fail = yes; then
8750 for lang
in $ALL_LINGUAS; do
8751 GMOFILES
="$GMOFILES $lang.gmo"
8752 POFILES
="$POFILES $lang.po"
8766 nls_cv_header_libgt
=
8778 if test "x$CATOBJEXT" != "x"; then
8779 if test "x$ALL_LINGUAS" = "x"; then
8782 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8783 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8785 for presentlang
in $ALL_LINGUAS; do
8787 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8788 # Use the presentlang catalog if desiredlang is
8789 # a. equal to presentlang, or
8790 # b. a variant of presentlang (because in this case,
8791 # presentlang can be used as a fallback for messages
8792 # which are not translated in the desiredlang catalog).
8793 case "$desiredlang" in
8794 "$presentlang"*) useit
=yes;;
8797 if test $useit = yes; then
8798 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8801 LINGUAS
=$NEW_LINGUAS
8802 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8803 echo "${ECHO_T}$LINGUAS" >&6
8806 if test -n "$LINGUAS"; then
8807 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8812 if test -n "$ac_aux_dir"; then
8813 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8815 if test -z "$MKINSTALLDIRS"; then
8816 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8820 INTL_LIBTOOL_SUFFIX_PREFIX
=
8824 # This is necessary so that .o files in LIBOBJS are also built via
8825 # the ANSI2KNR-filtering rules.
8826 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8829 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile"
8830 cat >confcache
<<\_ACEOF
8831 # This file is a shell script that caches the results of configure
8832 # tests run on this system so they can be shared between configure
8833 # scripts and configure runs, see configure's option --config-cache.
8834 # It is not useful on other systems. If it contains results you don't
8835 # want to keep, you may remove or edit it.
8837 # config.status only pays attention to the cache file if you give it
8838 # the --recheck option to rerun configure.
8840 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8846 # The following way of writing the cache mishandles newlines in values,
8847 # but we know of no workaround that is simple, portable, and efficient.
8848 # So, don't put newlines in cache variables' values.
8849 # Ultrix sh set writes to stderr and can't be redirected directly,
8850 # and sets the high bit in the cache file unless we assign to the vars.
8853 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8855 # `set' does not quote correctly, so add quotes (double-quote
8856 # substitution turns \\\\ into \\, and sed turns \\ into \).
8859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8862 # `set' quotes correctly as required by POSIX, so do not add quotes.
8864 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8873 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8875 if cmp -s $cache_file confcache
; then :; else
8876 if test -w $cache_file; then
8877 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8878 cat confcache
>$cache_file
8880 echo "not updating unwritable cache $cache_file"
8885 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8886 # Let make expand exec_prefix.
8887 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8889 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8890 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8891 # trailing colons and then remove the whole line if VPATH becomes empty
8892 # (actually we leave an empty line to preserve line numbers).
8893 if test "x$srcdir" = x.
; then
8894 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8895 s/:*\$(srcdir):*/:/;
8896 s/:*\${srcdir}:*/:/;
8898 s/^\([^=]*=[ ]*\):*/\1/;
8904 DEFS
=-DHAVE_CONFIG_H
8906 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8907 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8908 Usually this means the macro was only invoked conditionally." >&5
8909 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8910 Usually this means the macro was only invoked conditionally." >&2;}
8911 { (exit 1); exit 1; }; }
8914 : ${CONFIG_STATUS=./config.status}
8915 ac_clean_files_save
=$ac_clean_files
8916 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8917 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8918 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8919 cat >$CONFIG_STATUS <<_ACEOF
8921 # Generated by $as_me.
8922 # Run this file to recreate the current configuration.
8923 # Compiler output produced by configure, useful for debugging
8924 # configure, is in config.log if it exists.
8927 SHELL=\${CONFIG_SHELL-$SHELL}
8930 cat >>$CONFIG_STATUS <<\_ACEOF
8932 ## --------------------- ##
8933 ## M4sh Initialization. ##
8934 ## --------------------- ##
8936 # Be Bourne compatible
8937 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8940 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8945 # Support unset when possible.
8946 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8952 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
8953 { $as_unset LANG
|| test "${LANG+set}" != set; } ||
8954 { LANG
=C
; export LANG
; }
8955 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
8956 { $as_unset LC_ALL
|| test "${LC_ALL+set}" != set; } ||
8957 { LC_ALL
=C
; export LC_ALL
; }
8958 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
8959 { $as_unset LC_TIME
|| test "${LC_TIME+set}" != set; } ||
8960 { LC_TIME
=C
; export LC_TIME
; }
8961 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
8962 { $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set; } ||
8963 { LC_CTYPE
=C
; export LC_CTYPE
; }
8964 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
8965 { $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set; } ||
8966 { LANGUAGE
=C
; export LANGUAGE
; }
8967 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
8968 { $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set; } ||
8969 { LC_COLLATE
=C
; export LC_COLLATE
; }
8970 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
8971 { $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set; } ||
8972 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
8973 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
8974 { $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set; } ||
8975 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
8978 # Name of the executable.
8979 as_me
=`(basename "$0") 2>/dev/null ||
8980 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8981 X"$0" : 'X\(//\)$' \| \
8982 X"$0" : 'X\(/\)$' \| \
8983 . : '\(.\)' 2>/dev/null ||
8985 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8986 /^X\/\(\/\/\)$/{ s//\1/; q; }
8987 /^X\/\(\/\).*/{ s//\1/; q; }
8990 # PATH needs CR, and LINENO needs CR and PATH.
8991 # Avoid depending upon Character Ranges.
8992 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8993 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8994 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8995 as_cr_digits
='0123456789'
8996 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8998 # The user is always right.
8999 if test "${PATH_SEPARATOR+set}" != set; then
9000 echo "#! $SHELL" >conftest.sh
9001 echo "exit 0" >>conftest.sh
9002 chmod +x conftest.sh
9003 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
9014 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9015 test "x$as_lineno_1" != "x$as_lineno_2" &&
9016 test "x$as_lineno_3" = "x$as_lineno_2" || {
9017 # Find who we are. Look in the path if we contain no path at all
9020 *[\\/]* ) as_myself
=$0 ;;
9021 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9025 test -z "$as_dir" && as_dir
=.
9026 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9031 # We did not find ourselves, most probably we were run as `sh COMMAND'
9032 # in which case we are not to be found in the path.
9033 if test "x$as_myself" = x
; then
9036 if test ! -f "$as_myself"; then
9037 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9038 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9039 { (exit 1); exit 1; }; }
9041 case $CONFIG_SHELL in
9043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9044 for as_dir
in /bin
:/usr
/bin
:$PATH
9047 test -z "$as_dir" && as_dir
=.
9048 for as_base
in sh bash ksh sh5
; do
9051 if ("$as_dir/$as_base" -c '
9054 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9055 test "x$as_lineno_1" != "x$as_lineno_2" &&
9056 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9057 CONFIG_SHELL
=$as_dir/$as_base
9059 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9067 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9068 # uniformly replaced by the line number. The first 'sed' inserts a
9069 # line-number line before each line; the second 'sed' does the real
9070 # work. The second script uses 'N' to pair each line-number line
9071 # with the numbered line, and appends trailing '-' during
9072 # substitution so that $LINENO is not a special case at line end.
9073 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9074 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9075 sed '=' <$as_myself |
9080 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9083 s,^['$as_cr_digits']*\n,,
9085 chmod +x
$as_me.lineno
||
9086 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9087 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9088 { (exit 1); exit 1; }; }
9090 # Don't try to exec as it changes $[0], causing all sort of problems
9091 # (the dirname of $[0] is not the place where we might find the
9092 # original and so on. Autoconf is especially sensible to this).
9094 # Exit status is that of the last command.
9099 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9100 *c
*,-n*) ECHO_N
= ECHO_C
='
9102 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9103 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9106 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9112 rm -f conf$$ conf$$.exe conf$$.
file
9114 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9115 # We could just check for DJGPP; but this test a) works b) is more generic
9116 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9117 if test -f conf$$.exe
; then
9118 # Don't use ln at all; we don't have any links
9123 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9128 rm -f conf$$ conf$$.exe conf$$.
file
9130 as_executable_p
="test -f"
9132 # Sed expression to map a string onto a valid CPP name.
9133 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9135 # Sed expression to map a string onto a valid variable name.
9136 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9140 # We need space, tab and new line, in precisely that order.
9146 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
9150 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9151 # report actual input values of CONFIG_FILES etc. instead of their
9152 # values after options handling. Logging --version etc. is OK.
9156 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9157 ## Running $as_me. ##
9162 This file was extended by GNU Bison $as_me 1.30j, which was
9163 generated by GNU Autoconf 2.52g. Invocation command line was
9165 CONFIG_FILES = $CONFIG_FILES
9166 CONFIG_HEADERS = $CONFIG_HEADERS
9167 CONFIG_LINKS = $CONFIG_LINKS
9168 CONFIG_COMMANDS = $CONFIG_COMMANDS
9172 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9176 # Files that config.status was made for.
9177 if test -n "$ac_config_files"; then
9178 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9181 if test -n "$ac_config_headers"; then
9182 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9185 if test -n "$ac_config_links"; then
9186 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9189 if test -n "$ac_config_commands"; then
9190 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9193 cat >>$CONFIG_STATUS <<\_ACEOF
9196 \`$as_me' instantiates files from templates according to the
9197 current configuration.
9199 Usage: $0 [OPTIONS] [FILE]...
9201 -h, --help print this help, then exit
9202 -V, --version print version number, then exit
9203 -d, --debug don't remove temporary files
9204 --recheck update $as_me by reconfiguring in the same conditions
9205 --file=FILE[:TEMPLATE]
9206 instantiate the configuration file FILE
9207 --header=FILE[:TEMPLATE]
9208 instantiate the configuration header FILE
9210 Configuration files:
9213 Configuration headers:
9216 Configuration commands:
9219 Report bugs to <bug-autoconf@gnu.org>."
9222 cat >>$CONFIG_STATUS <<_ACEOF
9224 GNU Bison config.status 1.30j
9225 configured by $0, generated by GNU Autoconf 2.52g,
9226 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9228 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9229 Free Software Foundation, Inc.
9230 This config.status script is free software; the Free Software Foundation
9231 gives unlimited permission to copy, distribute and modify it."
9236 cat >>$CONFIG_STATUS <<\_ACEOF
9237 # If no file are specified by the user, then we need to provide default
9238 # value. By we need to know if files were specified by the user.
9244 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9245 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9247 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
9251 *) # This is not an option, so the user has probably given explicit
9253 ac_need_defaults
=false
;;
9257 # Handling of the options.
9259 cat >>$CONFIG_STATUS <<_ACEOF
9260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9261 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9262 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9264 cat >>$CONFIG_STATUS <<\_ACEOF
9265 --version | --vers* | -V )
9266 echo "$ac_cs_version"; exit 0 ;;
9268 # Conflict between --help and --header
9269 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9270 Try \`$0 --help' for more information." >&5
9271 echo "$as_me: error: ambiguous option: $1
9272 Try \`$0 --help' for more information." >&2;}
9273 { (exit 1); exit 1; }; };;
9274 --help | --hel | -h )
9275 echo "$ac_cs_usage"; exit 0 ;;
9276 --debug | --d* | -d )
9278 --file | --fil | --fi | --f )
9280 CONFIG_FILES
="$CONFIG_FILES $1"
9281 ac_need_defaults
=false
;;
9282 --header | --heade | --head | --hea )
9284 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
9285 ac_need_defaults
=false
;;
9288 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9289 Try \`$0 --help' for more information." >&5
9290 echo "$as_me: error: unrecognized option: $1
9291 Try \`$0 --help' for more information." >&2;}
9292 { (exit 1); exit 1; }; } ;;
9294 *) ac_config_targets
="$ac_config_targets $1" ;;
9302 cat >>$CONFIG_STATUS <<_ACEOF
9304 # INIT-COMMANDS section.
9307 PACKAGE_NAME='$PACKAGE_NAME'
9308 PACKAGE_TARNAME='$PACKAGE_TARNAME'
9309 PACKAGE_VERSION='$PACKAGE_VERSION'
9310 PACKAGE_STRING='$PACKAGE_STRING'
9311 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
9313 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9320 cat >>$CONFIG_STATUS <<\_ACEOF
9321 for ac_config_target
in $ac_config_targets
9323 case "$ac_config_target" in
9324 # Handling of arguments.
9325 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
9326 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
9327 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
9328 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9329 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
9330 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
9331 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
9332 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
9333 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
9334 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
9335 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
9336 "tests/package.m4" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/package.m4" ;;
9337 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
9338 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
9339 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9340 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
9341 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9342 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9343 { (exit 1); exit 1; }; };;
9347 # If the user did not use the arguments to specify the items to instantiate,
9348 # then the envvar interface is used. Set only those that are not.
9349 # We use the long form for the default assignment because of an extremely
9350 # bizarre bug on SunOS 4.1.3.
9351 if $ac_need_defaults; then
9352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9357 # Create a temporary directory, and hook for its removal unless debugging.
9360 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9361 trap '{ (exit 1); exit 1; }' 1 2 13 15
9364 # Create a (secure) tmp directory for tmp files.
9367 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9368 test -n "$tmp" && test -d "$tmp"
9371 tmp
=$TMPDIR/cs$$
-$RANDOM
9372 (umask 077 && mkdir $tmp)
9375 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9376 { (exit 1); exit 1; }
9381 cat >>$CONFIG_STATUS <<_ACEOF
9384 # CONFIG_FILES section.
9387 # No need to generate the scripts if there are no CONFIG_FILES.
9388 # This happens for instance when ./config.status config.h
9389 if test -n "\$CONFIG_FILES"; then
9390 # Protect against being on the right side of a sed subst in config.status.
9391 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9392 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9393 s,@SHELL@,$SHELL,;t t
9394 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9395 s,@exec_prefix@,$exec_prefix,;t t
9396 s,@prefix@,$prefix,;t t
9397 s,@program_transform_name@,$program_transform_name,;t t
9398 s,@bindir@,$bindir,;t t
9399 s,@sbindir@,$sbindir,;t t
9400 s,@libexecdir@,$libexecdir,;t t
9401 s,@datadir@,$datadir,;t t
9402 s,@sysconfdir@,$sysconfdir,;t t
9403 s,@sharedstatedir@,$sharedstatedir,;t t
9404 s,@localstatedir@,$localstatedir,;t t
9405 s,@libdir@,$libdir,;t t
9406 s,@includedir@,$includedir,;t t
9407 s,@oldincludedir@,$oldincludedir,;t t
9408 s,@infodir@,$infodir,;t t
9409 s,@mandir@,$mandir,;t t
9410 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9411 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9412 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9413 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9414 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9415 s,@build_alias@,$build_alias,;t t
9416 s,@host_alias@,$host_alias,;t t
9417 s,@target_alias@,$target_alias,;t t
9419 s,@ECHO_C@,$ECHO_C,;t t
9420 s,@ECHO_N@,$ECHO_N,;t t
9421 s,@ECHO_T@,$ECHO_T,;t t
9423 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9424 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9425 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9426 s,@PACKAGE@,$PACKAGE,;t t
9427 s,@VERSION@,$VERSION,;t t
9428 s,@ACLOCAL@,$ACLOCAL,;t t
9429 s,@AUTOCONF@,$AUTOCONF,;t t
9430 s,@AUTOMAKE@,$AUTOMAKE,;t t
9431 s,@AUTOHEADER@,$AUTOHEADER,;t t
9432 s,@MAKEINFO@,$MAKEINFO,;t t
9433 s,@AMTAR@,$AMTAR,;t t
9434 s,@install_sh@,$install_sh,;t t
9435 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9437 s,@SET_MAKE@,$SET_MAKE,;t t
9438 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9439 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9440 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9441 s,@DEPDIR@,$DEPDIR,;t t
9444 s,@CFLAGS@,$CFLAGS,;t t
9445 s,@LDFLAGS@,$LDFLAGS,;t t
9446 s,@CPPFLAGS@,$CPPFLAGS,;t t
9447 s,@ac_ct_CC@,$ac_ct_CC,;t t
9448 s,@EXEEXT@,$EXEEXT,;t t
9449 s,@OBJEXT@,$OBJEXT,;t t
9450 s,@am__include@,$am__include,;t t
9451 s,@am__quote@,$am__quote,;t t
9452 s,@CCDEPMODE@,$CCDEPMODE,;t t
9454 s,@RANLIB@,$RANLIB,;t t
9455 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9456 s,@AUTOM4TE@,$AUTOM4TE,;t t
9457 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9459 s,@ANSI2KNR@,$ANSI2KNR,;t t
9460 s,@ALLOCA@,$ALLOCA,;t t
9461 s,@LIBOBJS@,$LIBOBJS,;t t
9462 s,@build@,$build,;t t
9463 s,@build_cpu@,$build_cpu,;t t
9464 s,@build_vendor@,$build_vendor,;t t
9465 s,@build_os@,$build_os,;t t
9467 s,@host_cpu@,$host_cpu,;t t
9468 s,@host_vendor@,$host_vendor,;t t
9469 s,@host_os@,$host_os,;t t
9470 s,@GLIBC21@,$GLIBC21,;t t
9471 s,@LIBICONV@,$LIBICONV,;t t
9472 s,@USE_NLS@,$USE_NLS,;t t
9473 s,@MSGFMT@,$MSGFMT,;t t
9474 s,@GMSGFMT@,$GMSGFMT,;t t
9475 s,@XGETTEXT@,$XGETTEXT,;t t
9476 s,@INTLBISON@,$INTLBISON,;t t
9477 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9478 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9479 s,@CATALOGS@,$CATALOGS,;t t
9480 s,@CATOBJEXT@,$CATOBJEXT,;t t
9481 s,@GMOFILES@,$GMOFILES,;t t
9482 s,@INTLLIBS@,$INTLLIBS,;t t
9483 s,@INTLOBJS@,$INTLOBJS,;t t
9484 s,@POFILES@,$POFILES,;t t
9485 s,@POSUB@,$POSUB,;t t
9486 s,@DATADIRNAME@,$DATADIRNAME,;t t
9487 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9488 s,@GENCAT@,$GENCAT,;t t
9489 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9490 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9495 cat >>$CONFIG_STATUS <<\_ACEOF
9496 # Split the substitutions into bite-sized pieces for seds with
9497 # small command number limits, like on Digital OSF/1 and HP-UX.
9499 ac_sed_frag
=1 # Number of current file.
9500 ac_beg
=1 # First line for current file.
9501 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9504 while $ac_more_lines; do
9505 if test $ac_beg -gt 1; then
9506 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9508 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9510 if test ! -s $tmp/subs.frag
; then
9513 # The purpose of the label and of the branching condition is to
9514 # speed up the sed processing (if there are no `@' at all, there
9515 # is no need to browse any of the substitutions).
9516 # These are the two extra sed commands mentioned above.
9518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9519 if test -z "$ac_sed_cmds"; then
9520 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9522 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9524 ac_sed_frag
=`expr $ac_sed_frag + 1`
9526 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9529 if test -z "$ac_sed_cmds"; then
9532 fi # test -n "$CONFIG_FILES"
9535 cat >>$CONFIG_STATUS <<\_ACEOF
9536 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9537 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9539 - | *:- | *:-:* ) # input from stdin
9541 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9542 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9543 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9544 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9545 * ) ac_file_in
=$ac_file.
in ;;
9548 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9549 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9550 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9551 X"$ac_file" : 'X\(//\)[^/]' \| \
9552 X"$ac_file" : 'X\(//\)$' \| \
9553 X"$ac_file" : 'X\(/\)' \| \
9554 . : '\(.\)' 2>/dev/null ||
9556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9558 /^X\(\/\/\)$/{ s//\1/; q; }
9559 /^X\(\/\).*/{ s//\1/; q; }
9562 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9566 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9567 case $as_mkdir_dir in
9568 # Skip DOS drivespec
9569 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9571 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9572 test -d "$as_incr_dir" ||
9573 mkdir "$as_incr_dir" ||
9574 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9575 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9576 { (exit 1); exit 1; }; }
9583 if test "$ac_dir" != .
; then
9584 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9585 # A "../" for each directory in $ac_dir_suffix.
9586 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9588 ac_dir_suffix
= ac_top_builddir
=
9592 .
) # No --srcdir option. We are building in place.
9594 if test -z "$ac_top_builddir"; then
9597 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9599 [\\/]* | ?
:[\\/]* ) # Absolute path.
9600 ac_srcdir
=$srcdir$ac_dir_suffix;
9601 ac_top_srcdir
=$srcdir ;;
9603 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9604 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9606 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9608 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9609 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9610 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9611 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9615 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9616 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9619 if test x
"$ac_file" != x
-; then
9620 { echo "$as_me:$LINENO: creating $ac_file" >&5
9621 echo "$as_me: creating $ac_file" >&6;}
9624 # Let's still pretend it is `configure' which instantiates (i.e., don't
9625 # use $as_me), people would be surprised to read:
9626 # /* config.h. Generated by config.status. */
9627 if test x
"$ac_file" = x
-; then
9630 configure_input
="$ac_file. "
9632 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9633 sed 's,.*/,,'` by configure."
9635 # First look for the input files in the build tree, otherwise in the
9637 ac_file_inputs
=`IFS=:
9638 for f in $ac_file_in; do
9640 -) echo $tmp/stdin ;;
9642 # Absolute (can't be DOS-style, as IFS=:)
9643 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9644 echo "$as_me: error: cannot find input file: $f" >&2;}
9645 { (exit 1); exit 1; }; }
9648 if test -f "$f"; then
9651 elif test -f "$srcdir/$f"; then
9656 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9657 echo "$as_me: error: cannot find input file: $f" >&2;}
9658 { (exit 1); exit 1; }; }
9661 done` || { (exit 1); exit 1; }
9663 cat >>$CONFIG_STATUS <<_ACEOF
9667 cat >>$CONFIG_STATUS <<\_ACEOF
9669 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9670 s
,@configure_input@
,$configure_input,;t t
9671 s
,@srcdir@
,$ac_srcdir,;t t
9672 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9673 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9674 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9675 s
,@builddir@
,$ac_builddir,;t t
9676 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9677 s
,@top_builddir@
,$ac_top_builddir,;t t
9678 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9679 s
,@INSTALL@
,$ac_INSTALL,;t t
9680 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9682 if test x"$ac_file" != x-; then
9683 mv $tmp/out $ac_file
9689 # Run the commands associated with the file.
9691 tests/bison ) chmod +x tests/bison ;;
9695 cat >>$CONFIG_STATUS <<\_ACEOF
9698 # CONFIG_HEADER section.
9701 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9702 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9704 # ac_d sets the value in "#define NAME VALUE" lines.
9705 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9706 ac_dB
='[ ].*$,\1#\2'
9709 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9710 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9711 ac_uB
='$,\1#\2define\3'
9715 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9718 - | *:- | *:-:* ) # input from stdin
9720 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9721 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9722 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9723 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9724 * ) ac_file_in
=$ac_file.
in ;;
9727 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9728 echo "$as_me: creating $ac_file" >&6;}
9730 # First look for the input files in the build tree, otherwise in the
9732 ac_file_inputs
=`IFS=:
9733 for f in $ac_file_in; do
9735 -) echo $tmp/stdin ;;
9737 # Absolute (can't be DOS-style, as IFS=:)
9738 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9739 echo "$as_me: error: cannot find input file: $f" >&2;}
9740 { (exit 1); exit 1; }; }
9743 if test -f "$f"; then
9746 elif test -f "$srcdir/$f"; then
9751 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9752 echo "$as_me: error: cannot find input file: $f" >&2;}
9753 { (exit 1); exit 1; }; }
9756 done` || { (exit 1); exit 1; }
9757 # Remove the trailing spaces.
9758 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9762 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9763 # `conftest.undefs', that substitutes the proper values into
9764 # config.h.in to produce config.h. The first handles `#define'
9765 # templates, and the second `#undef' templates.
9766 # And first: Protect against being on the right side of a sed subst in
9767 # config.status. Protect against being in an unquoted here document
9769 rm -f conftest.defines conftest.undefs
9770 # Using a here document instead of a string reduces the quoting nightmare.
9771 # Putting comments in sed scripts is not portable.
9773 # `end' is used to avoid that the second main sed command (meant for
9774 # 0-ary CPP macros) applies to n-ary macro definitions.
9775 # See the Autoconf documentation for `clear'.
9776 cat >confdef2sed.
sed <<\_ACEOF
9781 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9783 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9786 # If some macros were called several times there might be several times
9787 # the same #defines, which is useless. Nevertheless, we may not want to
9788 # sort them, since we want the *last* AC-DEFINE to be honored.
9789 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9790 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9791 rm -f confdef2sed.sed
9793 # This sed command replaces #undef with comments. This is necessary, for
9794 # example, in the case of _POSIX_SOURCE, which is predefined and required
9795 # on some systems where configure will not decide to define it.
9796 cat >>conftest.undefs <<\_ACEOF
9797 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9800 # Break up conftest.defines because some shells have a limit on the size
9801 # of here documents, and old seds have small limits too (100 cmds).
9802 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9803 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9804 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9805 echo ' :' >>$CONFIG_STATUS
9807 while grep . conftest.defines >/dev/null
9809 # Write a limited-size here document to $tmp/defines.sed.
9810 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9811 # Speed up: don't consider the non `#define' lines.
9812 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9813 # Work around the forget-to-reset-the-flag bug.
9814 echo 't clr' >>$CONFIG_STATUS
9815 echo ': clr' >>$CONFIG_STATUS
9816 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9818 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9822 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9823 rm -f conftest.defines
9824 mv conftest.
tail conftest.defines
9826 rm -f conftest.defines
9827 echo ' fi # egrep' >>$CONFIG_STATUS
9828 echo >>$CONFIG_STATUS
9830 # Break up conftest.undefs because some shells have a limit on the size
9831 # of here documents, and old seds have small limits too (100 cmds).
9832 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9834 while grep . conftest.undefs
>/dev
/null
9836 # Write a limited-size here document to $tmp/undefs.sed.
9837 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9838 # Speed up: don't consider the non
`#undef'
9839 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9840 # Work around the forget-to-reset-the-flag bug.
9841 echo 't clr' >>$CONFIG_STATUS
9842 echo ': clr' >>$CONFIG_STATUS
9843 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9845 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9849 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9850 rm -f conftest.undefs
9851 mv conftest.tail conftest.undefs
9853 rm -f conftest.undefs
9855 cat >>$CONFIG_STATUS <<\_ACEOF
9856 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9857 # use $as_me), people would be surprised to read:
9858 # /* config.h. Generated by config.status. */
9859 if test x
"$ac_file" = x
-; then
9860 echo "/* Generated by configure. */" >$tmp/config.h
9862 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9864 cat $tmp/in >>$tmp/config.h
9866 if test x
"$ac_file" != x
-; then
9867 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9868 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9869 echo "$as_me: $ac_file is unchanged" >&6;}
9871 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9872 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9873 X"$ac_file" : 'X\(//\)[^/]' \| \
9874 X"$ac_file" : 'X\(//\)$' \| \
9875 X"$ac_file" : 'X\(/\)' \| \
9876 . : '\(.\)' 2>/dev/null ||
9878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9880 /^X\(\/\/\)$/{ s//\1/; q; }
9881 /^X\(\/\).*/{ s//\1/; q; }
9884 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9888 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9889 case $as_mkdir_dir in
9890 # Skip DOS drivespec
9891 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9893 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9894 test -d "$as_incr_dir" ||
9895 mkdir "$as_incr_dir" ||
9896 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9897 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9898 { (exit 1); exit 1; }; }
9904 mv $tmp/config.h
$ac_file
9910 # Run the commands associated with the file.
9912 config.h
) # update the timestamp
9913 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
9918 cat >>$CONFIG_STATUS <<\_ACEOF
9921 # CONFIG_COMMANDS section.
9923 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9924 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9925 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9926 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9927 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9928 X"$ac_dest" : 'X\(//\)[^/]' \| \
9929 X"$ac_dest" : 'X\(//\)$' \| \
9930 X"$ac_dest" : 'X\(/\)' \| \
9931 . : '\(.\)' 2>/dev/null ||
9933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9935 /^X\(\/\/\)$/{ s//\1/; q; }
9936 /^X\(\/\).*/{ s//\1/; q; }
9940 if test "$ac_dir" != .
; then
9941 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9942 # A "../" for each directory in $ac_dir_suffix.
9943 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9945 ac_dir_suffix
= ac_top_builddir
=
9949 .
) # No --srcdir option. We are building in place.
9951 if test -z "$ac_top_builddir"; then
9954 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9956 [\\/]* | ?
:[\\/]* ) # Absolute path.
9957 ac_srcdir
=$srcdir$ac_dir_suffix;
9958 ac_top_srcdir
=$srcdir ;;
9960 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9961 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9965 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9966 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9967 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9968 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9971 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9972 echo "$as_me: executing $ac_dest commands" >&6;}
9974 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9975 # Signature of the current package.
9976 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9977 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9978 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9979 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9980 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9983 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9984 # Configurable variable values for building test suites.
9986 # Copyright 2000, 2001 Free Software Foundation, Inc.
9988 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
9990 abs_builddir='$ac_abs_builddir'
9991 at_srcdir='$ac_srcdir'
9992 abs_srcdir='$ac_abs_srcdir'
9993 at_top_srcdir='$ac_top_srcdir'
9994 abs_top_srcdir='$ac_abs_top_srcdir'
9995 at_top_builddir='$ac_top_builddir'
9996 abs_top_builddir='$ac_abs_top_builddir'
9998 AUTOTEST_PATH='tests'
10000 SHELL=\${CONFIG_SHELL-'$SHELL'}
10003 depfiles
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
10004 # Strip MF so we end up with the name of the file.
10005 mf
=`echo "$mf" | sed -e 's/:.*$//'`
10006 if (head -1 $mf | fgrep
'generated by automake') > /dev
/null
2>&1; then
10007 dirpart
=`(dirname "$mf") 2>/dev/null ||
10008 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10009 X"$mf" : 'X\(//\)[^/]' \| \
10010 X"$mf" : 'X\(//\)$' \| \
10011 X"$mf" : 'X\(/\)' \| \
10012 . : '\(.\)' 2>/dev/null ||
10014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10016 /^X\(\/\/\)$/{ s//\1/; q; }
10017 /^X\(\/\).*/{ s//\1/; q; }
10022 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
10023 # Extract the definition of DEP_FILES from the Makefile without
10025 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10026 test -z "$DEPDIR" && continue
10027 # When using ansi2knr, U may be empty or an underscore; expand it
10028 U
=`sed -n -e '/^U = / s///p' < "$mf"`
10029 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10030 # We invoke sed twice because it is the simplest approach to
10031 # changing $(DEPDIR) to its actual value in the expansion.
10032 for file in `sed -n -e '
10033 /^DEP_FILES = .*\\\\$/ {
10042 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10043 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10044 # Make sure the directory exists.
10045 test -f "$dirpart/$file" && continue
10046 fdir
=`(dirname "$file") 2>/dev/null ||
10047 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10048 X"$file" : 'X\(//\)[^/]' \| \
10049 X"$file" : 'X\(//\)$' \| \
10050 X"$file" : 'X\(/\)' \| \
10051 . : '\(.\)' 2>/dev/null ||
10053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10055 /^X\(\/\/\)$/{ s//\1/; q; }
10056 /^X\(\/\).*/{ s//\1/; q; }
10058 { case $dirpart/$fdir in
10059 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
10062 as_dummy
=$dirpart/$fdir
10063 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10064 case $as_mkdir_dir in
10065 # Skip DOS drivespec
10066 ?
:) as_incr_dir
=$as_mkdir_dir ;;
10068 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
10069 test -d "$as_incr_dir" ||
10070 mkdir "$as_incr_dir" ||
10071 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
10072 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
10073 { (exit 1); exit 1; }; }
10078 # echo "creating $dirpart/$file"
10079 echo '# dummy' > "$dirpart/$file"
10083 default
-1 ) for ac_file
in $CONFIG_FILES; do
10084 # Support "outfile[:infile[:infile...]]"
10086 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10088 # PO directories have a Makefile.in generated from Makefile.in.in.
10089 case "$ac_file" in */Makefile.
in)
10090 # Adjust a relative srcdir.
10091 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10092 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
10093 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10094 # In autoconf-2.13 it is called $ac_given_srcdir.
10095 # In autoconf-2.50 it is called $srcdir.
10096 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
10097 case "$ac_given_srcdir" in
10098 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
10099 /*) top_srcdir
="$ac_given_srcdir" ;;
10100 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10102 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10103 rm -f "$ac_dir/POTFILES"
10104 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10105 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10106 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10107 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10116 cat >>$CONFIG_STATUS <<\_ACEOF
10118 { (exit 0); exit 0; }
10120 chmod +x
$CONFIG_STATUS
10121 ac_clean_files
=$ac_clean_files_save
10124 # configure is writing to config.log, and then calls config.status.
10125 # config.status does its own redirection, appending to config.log.
10126 # Unfortunately, on DOS this fails, as config.log is still kept open
10127 # by configure, so config.status won't be able to write to it; its
10128 # output is simply discarded. So we exec the FD to /dev/null,
10129 # effectively closing config.log, so it can be properly (re)opened and
10130 # appended to by config.status. When coming back to configure, we
10131 # need to make the FD available again.
10132 if test "$no_create" != yes; then
10135 $SHELL $CONFIG_STATUS || ac_cs_success
=false
10137 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10138 # would make configure fail if this is the last instruction.
10139 $ac_cs_success || { (exit 1); exit 1; }