2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52e for GNU Bison 1.29e.
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 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Name of the executable.
25 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
27 # Rewrite early, but we need PATH_SEPARATOR.
28 # The user is always right.
29 if test "${PATH_SEPARATOR+set}" != set; then
30 echo "#! $SHELL" >conftest.sh
31 echo "exit 0" >>conftest.sh
33 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
44 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
45 test "x$as_lineno_1" != "x$as_lineno_2" &&
46 test "x$as_lineno_3" = "x$as_lineno_2"
48 if eval "$as_command"; then
51 # Find who we are. Look in the path if we contain no path at all
54 *[\\/]* ) as_myself=$0 ;;
55 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59 test -z "$as_dir" && as_dir=.
60 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
65 # We did not find ourselves, most probably we were run as `sh COMMAND
'
66 # in which case we are not to be found in the path.
67 if test "x$as_myself" = x; then
70 if test ! -f "$as_myself"; then
71 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
72 { (exit 1); exit 1; }; }
76 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in /bin:/usr/bin:$PATH
80 test -z "$as_dir" && as_dir=.
81 for as_base in sh bash ksh sh5; do
84 if ("$as_dir/$as_base" -c "$as_command") 2>/dev/null; then
85 CONFIG_SHELL=$as_dir/$as_base
87 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
94 if test ! -f "$as_me.lineno" ||
95 test x`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \
96 != x"$as_me.lineno"; then
97 # Be sure to write the pattern so that it doesn't replace itself
:
98 # it must not match itself.
100 /[$]LINENO/ { printf "%d:", NR }
103 sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \
105 chmod +x
$as_me.lineno
108 # Don't try to exec as it changes $[0], causing all sort of problems
109 # (the dirname of $[0] is not the place where we might find the
110 # original and so on. Autoconf is especially sensible to this).
112 # Exit status is that of the last command.
116 # Avoid depending upon Character Ranges.
117 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
118 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
119 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
120 as_cr_digits
='0123456789'
121 as_cr_alnum
=$as_cr_Letters$as_cr_digits
123 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
124 *c
*,-n*) ECHO_N
= ECHO_C
='
126 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
127 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
130 if expr a
: '\(a\)' >/dev
/null
2>&1; then
136 rm -f conf$$ conf$$.exe conf$$.
file
138 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
139 # We could just check for DJGPP; but this test a) works b) is more generic
140 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
141 if test -f conf$$.exe
; then
142 # Don't use ln at all; we don't have any links
147 elif ln conf$$.
file conf$$
2>/dev
/null
; then
152 rm -f conf$$ conf$$.exe conf$$.
file
154 as_executable_p
="test -f"
156 # Sed expression to map a string onto a valid CPP name.
157 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
159 # Sed expression to map a string onto a valid variable name.
160 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
162 # Support unset when possible.
163 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
170 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
171 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
172 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
173 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
174 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
175 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
176 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
177 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
180 # We need space, tab and new line, in precisely that order.
186 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
189 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
190 # so uname gets run too.
191 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
198 ac_default_prefix
=/usr
/local
203 SHELL
=${CONFIG_SHELL-/bin/sh}
205 # Maximum number of lines to put in a shell here document.
206 # This variable seems obsolete. It should probably be removed, and
207 # only ac_max_sed_lines should be used.
208 : ${ac_max_here_lines=38}
210 # Factoring default headers for most tests.
211 ac_includes_default
="\
214 # include <sys/types.h>
217 # include <sys/stat.h>
228 # if !STDC_HEADERS && HAVE_MEMORY_H
234 # include <strings.h>
237 # include <inttypes.h>
247 # Initialize some variables set by options.
249 ac_init_version
=false
250 # The variables have the same names as the options, with
251 # dashes changed to underlines.
259 program_transform_name
=s
,x
,x
,
267 # Installation directory options.
268 # These are left unexpanded so users can "make install exec_prefix=/foo"
269 # and all the variables that are supposed to be based on exec_prefix
270 # by default will actually change.
271 # Use braces instead of parens because sh, perl, etc. also accept them.
272 bindir
='${exec_prefix}/bin'
273 sbindir
='${exec_prefix}/sbin'
274 libexecdir
='${exec_prefix}/libexec'
275 datadir
='${prefix}/share'
276 sysconfdir
='${prefix}/etc'
277 sharedstatedir
='${prefix}/com'
278 localstatedir
='${prefix}/var'
279 libdir
='${exec_prefix}/lib'
280 includedir
='${prefix}/include'
281 oldincludedir
='/usr/include'
282 infodir
='${prefix}/info'
283 mandir
='${prefix}/man'
285 # Identity of this package.
286 PACKAGE_NAME
='GNU Bison'
287 PACKAGE_TARNAME
='bison'
288 PACKAGE_VERSION
='1.29e'
289 PACKAGE_STRING
='GNU Bison 1.29e'
290 PACKAGE_BUGREPORT
='bug-bison@gnu.org'
295 # If the previous option needs an argument, assign it.
296 if test -n "$ac_prev"; then
297 eval "$ac_prev=\$ac_option"
302 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
304 # Accept the important Cygnus configure options, so we can diagnose typos.
308 -bindir | --bindir | --bindi | --bind | --bin | --bi)
310 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
313 -build | --build | --buil | --bui | --bu)
314 ac_prev
=build_alias
;;
315 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
316 build_alias
=$ac_optarg ;;
318 -cache-file | --cache-file | --cache-fil | --cache-fi \
319 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
320 ac_prev
=cache_file
;;
321 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
322 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
323 cache_file
=$ac_optarg ;;
326 cache_file
=config.cache
;;
328 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
330 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
332 datadir
=$ac_optarg ;;
334 -disable-* | --disable-*)
335 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
336 # Reject names that are not valid shell variable names.
337 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
338 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
339 { (exit 1); exit 1; }; }
340 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
341 eval "enable_$ac_feature=no" ;;
343 -enable-* | --enable-*)
344 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
345 # Reject names that are not valid shell variable names.
346 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
347 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
348 { (exit 1); exit 1; }; }
349 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
351 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
354 eval "enable_$ac_feature='$ac_optarg'" ;;
356 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
357 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
358 | --exec | --exe | --ex)
359 ac_prev
=exec_prefix
;;
360 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
361 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
362 | --exec=* | --exe=* | --ex=*)
363 exec_prefix
=$ac_optarg ;;
365 -gas | --gas | --ga | --g)
366 # Obsolete; use --with-gas.
369 -help | --help | --hel | --he | -h)
371 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
372 ac_init_help
=recursive
;;
373 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
374 ac_init_help
=short
;;
376 -host | --host | --hos | --ho)
377 ac_prev
=host_alias
;;
378 -host=* | --host=* | --hos=* | --ho=*)
379 host_alias
=$ac_optarg ;;
381 -includedir | --includedir | --includedi | --included | --include \
382 | --includ | --inclu | --incl | --inc)
383 ac_prev
=includedir
;;
384 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
385 | --includ=* | --inclu=* | --incl=* | --inc=*)
386 includedir
=$ac_optarg ;;
388 -infodir | --infodir | --infodi | --infod | --info | --inf)
390 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
391 infodir
=$ac_optarg ;;
393 -libdir | --libdir | --libdi | --libd)
395 -libdir=* | --libdir=* | --libdi=* | --libd=*)
398 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
399 | --libexe | --libex | --libe)
400 ac_prev
=libexecdir
;;
401 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
402 | --libexe=* | --libex=* | --libe=*)
403 libexecdir
=$ac_optarg ;;
405 -localstatedir | --localstatedir | --localstatedi | --localstated \
406 | --localstate | --localstat | --localsta | --localst \
407 | --locals | --local | --loca | --loc | --lo)
408 ac_prev
=localstatedir
;;
409 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
410 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
411 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
412 localstatedir
=$ac_optarg ;;
414 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
416 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
420 # Obsolete; use --without-fp.
423 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
428 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
431 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
432 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
433 | --oldin | --oldi | --old | --ol | --o)
434 ac_prev
=oldincludedir
;;
435 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
436 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
437 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
438 oldincludedir
=$ac_optarg ;;
440 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
442 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
445 -program-prefix | --program-prefix | --program-prefi | --program-pref \
446 | --program-pre | --program-pr | --program-p)
447 ac_prev
=program_prefix
;;
448 -program-prefix=* | --program-prefix=* | --program-prefi=* \
449 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
450 program_prefix
=$ac_optarg ;;
452 -program-suffix | --program-suffix | --program-suffi | --program-suff \
453 | --program-suf | --program-su | --program-s)
454 ac_prev
=program_suffix
;;
455 -program-suffix=* | --program-suffix=* | --program-suffi=* \
456 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
457 program_suffix
=$ac_optarg ;;
459 -program-transform-name | --program-transform-name \
460 | --program-transform-nam | --program-transform-na \
461 | --program-transform-n | --program-transform- \
462 | --program-transform | --program-transfor \
463 | --program-transfo | --program-transf \
464 | --program-trans | --program-tran \
465 | --progr-tra | --program-tr | --program-t)
466 ac_prev
=program_transform_name
;;
467 -program-transform-name=* | --program-transform-name=* \
468 | --program-transform-nam=* | --program-transform-na=* \
469 | --program-transform-n=* | --program-transform-=* \
470 | --program-transform=* | --program-transfor=* \
471 | --program-transfo=* | --program-transf=* \
472 | --program-trans=* | --program-tran=* \
473 | --progr-tra=* | --program-tr=* | --program-t=*)
474 program_transform_name
=$ac_optarg ;;
476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
477 | -silent | --silent | --silen | --sile | --sil)
480 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
482 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
484 sbindir
=$ac_optarg ;;
486 -sharedstatedir | --sharedstatedir | --sharedstatedi \
487 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
488 | --sharedst | --shareds | --shared | --share | --shar \
490 ac_prev
=sharedstatedir
;;
491 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
492 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
493 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
495 sharedstatedir
=$ac_optarg ;;
497 -site | --site | --sit)
499 -site=* | --site=* | --sit=*)
502 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
504 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
507 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
508 | --syscon | --sysco | --sysc | --sys | --sy)
509 ac_prev
=sysconfdir
;;
510 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
511 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
512 sysconfdir
=$ac_optarg ;;
514 -target | --target | --targe | --targ | --tar | --ta | --t)
515 ac_prev
=target_alias
;;
516 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
517 target_alias
=$ac_optarg ;;
519 -v | -verbose | --verbose | --verbos | --verbo | --verb)
522 -version | --version | --versio | --versi | --vers | -V)
526 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
527 # Reject names that are not valid shell variable names.
528 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
529 { echo "$as_me: error: invalid package name: $ac_package" >&2
530 { (exit 1); exit 1; }; }
531 ac_package
=`echo $ac_package| sed 's/-/_/g'`
533 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
536 eval "with_$ac_package='$ac_optarg'" ;;
538 -without-* | --without-*)
539 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
540 # Reject names that are not valid shell variable names.
541 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
542 { echo "$as_me: error: invalid package name: $ac_package" >&2
543 { (exit 1); exit 1; }; }
544 ac_package
=`echo $ac_package | sed 's/-/_/g'`
545 eval "with_$ac_package=no" ;;
548 # Obsolete; use --with-x.
551 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
552 | --x-incl | --x-inc | --x-in | --x-i)
553 ac_prev
=x_includes
;;
554 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
555 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
556 x_includes
=$ac_optarg ;;
558 -x-libraries | --x-libraries | --x-librarie | --x-librari \
559 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
560 ac_prev
=x_libraries
;;
561 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
562 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
563 x_libraries
=$ac_optarg ;;
565 -*) { echo "$as_me: error: unrecognized option: $ac_option
566 Try \`$0 --help' for more information." >&2
567 { (exit 1); exit 1; }; }
571 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
574 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
575 { (exit 1); exit 1; }; }
576 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
577 eval "$ac_envvar='$ac_optarg'"
581 # FIXME: should be removed in autoconf 3.0.
582 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
583 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
584 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
585 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
591 if test -n "$ac_prev"; then
592 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
593 { echo "$as_me: error: missing argument to $ac_option" >&2
594 { (exit 1); exit 1; }; }
597 # Be sure to have absolute paths.
598 for ac_var
in exec_prefix prefix
600 eval ac_val
=$
`echo $ac_var`
602 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
603 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
604 { (exit 1); exit 1; }; };;
608 # Be sure to have absolute paths.
609 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
610 localstatedir libdir includedir oldincludedir infodir mandir
612 eval ac_val
=$
`echo $ac_var`
614 [\\/$
]* | ?
:[\\/]* ) ;;
615 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
616 { (exit 1); exit 1; }; };;
620 # There might be people who depend on the old broken behavior: `$host'
621 # used to hold the argument of --host etc.
626 # FIXME: should be removed in autoconf 3.0.
627 if test "x$host_alias" != x
; then
628 if test "x$build_alias" = x
; then
629 cross_compiling
=maybe
630 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
631 If a cross compiler is detected then cross compile mode will be used." >&2
632 elif test "x$build_alias" != "x$host_alias"; then
638 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
640 test "$silent" = yes && exec 6>/dev
/null
642 # Find the source files, if location was not specified.
643 if test -z "$srcdir"; then
644 ac_srcdir_defaulted
=yes
645 # Try the directory containing this script, then its parent.
647 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
648 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
650 if test ! -r $srcdir/$ac_unique_file; then
654 ac_srcdir_defaulted
=no
656 if test ! -r $srcdir/$ac_unique_file; then
657 if test "$ac_srcdir_defaulted" = yes; then
658 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
659 { (exit 1); exit 1; }; }
661 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
662 { (exit 1); exit 1; }; }
665 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
666 ac_env_build_alias_set
=${build_alias+set}
667 ac_env_build_alias_value
=$build_alias
668 ac_cv_env_build_alias_set
=${build_alias+set}
669 ac_cv_env_build_alias_value
=$build_alias
670 ac_env_host_alias_set
=${host_alias+set}
671 ac_env_host_alias_value
=$host_alias
672 ac_cv_env_host_alias_set
=${host_alias+set}
673 ac_cv_env_host_alias_value
=$host_alias
674 ac_env_target_alias_set
=${target_alias+set}
675 ac_env_target_alias_value
=$target_alias
676 ac_cv_env_target_alias_set
=${target_alias+set}
677 ac_cv_env_target_alias_value
=$target_alias
678 ac_env_CC_set
=${CC+set}
680 ac_cv_env_CC_set
=${CC+set}
681 ac_cv_env_CC_value
=$CC
682 ac_env_CFLAGS_set
=${CFLAGS+set}
683 ac_env_CFLAGS_value
=$CFLAGS
684 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
685 ac_cv_env_CFLAGS_value
=$CFLAGS
686 ac_env_LDFLAGS_set
=${LDFLAGS+set}
687 ac_env_LDFLAGS_value
=$LDFLAGS
688 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
689 ac_cv_env_LDFLAGS_value
=$LDFLAGS
690 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
691 ac_env_CPPFLAGS_value
=$CPPFLAGS
692 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
693 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
694 ac_env_CPP_set
=${CPP+set}
695 ac_env_CPP_value
=$CPP
696 ac_cv_env_CPP_set
=${CPP+set}
697 ac_cv_env_CPP_value
=$CPP
700 # Report the --help message.
702 if test "$ac_init_help" = "long"; then
703 # Omit some internal or obsolete options to make the list less imposing.
704 # This message is too long to be a string in the A/UX 3.1 sh.
706 \`configure' configures GNU Bison 1.29e to adapt to many kinds of systems.
708 Usage: $0 [OPTION]... [VAR=VALUE]...
710 To assign environment variables (e.g., CC, CFLAGS...), specify them as
711 VAR=VALUE. See below for descriptions of some of the useful variables.
713 Defaults for the options are specified in brackets.
716 -h, --help display this help and exit
717 --help=short display options specific to this package
718 --help=recursive display the short help of all the included packages
719 -V, --version display version information and exit
720 -q, --quiet, --silent do not print \`checking...' messages
721 --cache-file=FILE cache test results in FILE [disabled]
722 -C, --config-cache alias for \`--cache-file=config.cache'
723 -n, --no-create do not create output files
724 --srcdir=DIR find the sources in DIR [configure dir or \`..']
729 Installation directories:
730 --prefix=PREFIX install architecture-independent files in PREFIX
732 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
735 By default, \`make install' will install all the files in
736 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
737 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
738 for instance \`--prefix=\$HOME'.
740 For better control, use the options below.
742 Fine tuning of the installation directories:
743 --bindir=DIR user executables [EPREFIX/bin]
744 --sbindir=DIR system admin executables [EPREFIX/sbin]
745 --libexecdir=DIR program executables [EPREFIX/libexec]
746 --datadir=DIR read-only architecture-independent data [PREFIX/share]
747 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
748 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
749 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
750 --libdir=DIR object code libraries [EPREFIX/lib]
751 --includedir=DIR C header files [PREFIX/include]
752 --oldincludedir=DIR C header files for non-gcc [/usr/include]
753 --infodir=DIR info documentation [PREFIX/info]
754 --mandir=DIR man documentation [PREFIX/man]
760 --program-prefix=PREFIX prepend PREFIX to installed program names
761 --program-suffix=SUFFIX append SUFFIX to installed program names
762 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
765 --build=BUILD configure
for building on BUILD
[guessed
]
766 --host=HOST build programs to run on HOST
[BUILD
]
770 if test -n "$ac_init_help"; then
771 case $ac_init_help in
772 short
| recursive
) echo "Configuration of GNU Bison 1.29e:";;
777 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
778 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
779 --disable-dependency-tracking Speeds up one
-time builds
780 --enable-dependency-tracking Do not reject slow dependency extractors
781 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
782 --disable-nls do not use Native Language Support
785 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
786 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
787 --with-dmalloc use dmalloc
, as
in
788 http
://www.dmalloc.com
/dmalloc.
tar.gz
789 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
790 --with-included-gettext use the GNU
gettext library included here
792 Some influential environment variables
:
793 CC C compiler
command
794 CFLAGS C compiler flags
795 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
796 nonstandard directory
<lib dir
>
797 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
798 headers
in a nonstandard directory
<include dir
>
801 Use these variables to override the choices made by
`configure' or to help
802 it to find libraries and programs with nonstandard names/locations.
804 Report bugs to <bug-bison@gnu.org>.
808 if test "$ac_init_help" = "recursive"; then
809 # If there are subdirs, report their specific --help.
811 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
812 test -d $ac_dir || continue
815 if test "$ac_dir" != .; then
816 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
817 # A "../" for each directory in $ac_dir_suffix.
818 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
820 ac_dir_suffix= ac_top_builddir=
824 .) # No --srcdir option. We are building in place.
826 if test -z "$ac_top_builddir"; then
829 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
831 [\\/]* | ?:[\\/]* ) # Absolute path.
832 ac_srcdir=$srcdir$ac_dir_suffix;
833 ac_top_srcdir=$srcdir ;;
835 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
836 ac_top_srcdir=$ac_top_builddir$srcdir ;;
838 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
840 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
841 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
842 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
843 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
846 # Check for guested configure; otherwise get Cygnus style configure.
847 if test -f $ac_srcdir/configure.gnu; then
849 $SHELL $ac_srcdir/configure.gnu --help=recursive
850 elif test -f $ac_srcdir/configure; then
852 $SHELL $ac_srcdir/configure --help=recursive
853 elif test -f $ac_srcdir/configure.ac ||
854 test -f $ac_srcdir/configure.in; then
858 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
864 test -n "$ac_init_help" && exit 0
865 if $ac_init_version; then
867 GNU Bison configure 1.29e
868 generated by GNU Autoconf 2.52e
870 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
871 Free Software Foundation, Inc.
872 This configure script is free software; the Free Software Foundation
873 gives unlimited permission to copy, distribute and modify it.
879 This file contains any messages produced by compilers while
880 running configure, to aid debugging if configure makes a mistake.
882 It was created by GNU Bison $as_me 1.29e, which was
883 generated by GNU Autoconf 2.52e. Invocation command line was
894 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
895 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
896 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
897 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
898 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
900 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
901 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
903 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
904 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
905 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
906 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
907 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
908 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
909 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
917 test -z "$as_dir" && as_dir=.
931 # Keep a trace of the command line.
932 # Strip out --no-create and --no-recursion so they do not pile up.
933 # Also quote any args containing shell meta-characters.
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c) ;;
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
943 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
944 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
945 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
947 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
950 # Get rid of the leading space.
953 # When interrupted or exit'd, cleanup temporary files, and complete
954 # config.log. We remove comments because anyway the quotes in there
955 # would cause problems or look ugly.
956 # WARNING: Be sure not to use single quotes in there, as some shells,
957 # such as our DU 5.0 friend, will then `close
' the trap.
959 # Save into config.log some information that might help in debugging.
963 ## ---------------- ##
964 ## Cache variables. ##
965 ## ---------------- ##
968 # The following way of writing the cache mishandles newlines in values,
971 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
974 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
979 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
984 if test -s confdefs.h
; then
991 sed "/^$/d" confdefs.h
994 test "$ac_signal" != 0 &&
995 echo "$as_me: caught signal $ac_signal"
996 echo "$as_me: exit $exit_status"
998 rm -rf conftest
* confdefs
* core core.
* *.core conf$$
* $ac_clean_files &&
1001 for ac_signal in 1 2 13 15; do
1002 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1007 rm -rf conftest* confdefs.h
1008 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1011 # Let the site file select an alternate cache file if it wants to.
1012 # Prefer explicitly selected file to automatically selected ones.
1013 if test -z "$CONFIG_SITE"; then
1014 if test "x$prefix" != xNONE; then
1015 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1017 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1020 for ac_site_file in $CONFIG_SITE; do
1021 if test -r "$ac_site_file"; then
1022 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1023 echo "$as_me: loading site script $ac_site_file" >&6;}
1024 sed 's
/^
/| /' "$ac_site_file" >&5
1029 if test -r "$cache_file"; then
1030 # Some versions of bash will fail to source /dev/null (special
1031 # files actually), so we avoid doing that.
1032 if test -f "$cache_file"; then
1033 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1034 echo "$as_me: loading cache $cache_file" >&6;}
1036 [\\/]* | ?:[\\/]* ) . $cache_file;;
1037 *) . ./$cache_file;;
1041 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1042 echo "$as_me: creating cache $cache_file" >&6;}
1046 # Check that the precious variables saved in the cache have kept the same
1048 ac_cache_corrupted=false
1049 for ac_var in `(set) 2>&1 |
1050 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1051 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1052 eval ac_new_set=\$ac_env_${ac_var}_set
1053 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1054 eval ac_new_val="\$ac_env_${ac_var}_value"
1055 case $ac_old_set,$ac_new_set in
1057 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1058 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1059 ac_cache_corrupted=: ;;
1061 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1062 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1063 ac_cache_corrupted=: ;;
1066 if test "x$ac_old_val" != "x$ac_new_val"; then
1067 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1068 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1069 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1070 echo "$as_me: former value: $ac_old_val" >&2;}
1071 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1072 echo "$as_me: current value: $ac_new_val" >&2;}
1073 ac_cache_corrupted=:
1076 # Pass precious variables to config.status. It doesn't matter if
1077 # we pass some twice (in addition to the command line arguments).
1078 if test "$ac_new_set" = set; then
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1082 ac_configure_args="$ac_configure_args '$ac_arg'"
1084 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1089 if $ac_cache_corrupted; then
1090 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1091 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1092 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1093 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1094 { (exit 1); exit 1; }; }
1098 ac_cpp='$CPP $CPPFLAGS'
1099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1100 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1104 for ac_dir in config $srcdir/config; do
1105 if test -f $ac_dir/install-sh; then
1107 ac_install_sh="$ac_aux_dir/install-sh -c"
1109 elif test -f $ac_dir/install.sh; then
1111 ac_install_sh="$ac_aux_dir/install.sh -c"
1113 elif test -f $ac_dir/shtool; then
1115 ac_install_sh="$ac_aux_dir/shtool install -c"
1119 if test -z "$ac_aux_dir"; then
1120 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1121 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1122 { (exit 1); exit 1; }; }
1124 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1125 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1126 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1128 # Find a good install program. We prefer a C program (faster),
1129 # so one script is as good as another. But avoid the broken or
1130 # incompatible versions:
1131 # SysV /etc/install, /usr/sbin/install
1132 # SunOS /usr/etc/install
1133 # IRIX /sbin/install
1135 # AmigaOS /C/install, which installs bootblocks on floppy discs
1136 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1139 # ./install, which can be erroneously created by make from ./install.sh.
1140 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1141 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1142 if test -z "$INSTALL"; then
1143 if test "${ac_cv_path_install+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1150 test -z "$as_dir" && as_dir
=.
1151 # Account for people who put trailing slashes in PATH elements.
1153 .
/ | .
// | /cC
/* | \
1154 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1157 # OSF1 and SCO ODT 3.0 have their own names for install.
1158 # Don't use installbsd from OSF since it installs stuff as root
1160 for ac_prog
in ginstall scoinst
install; do
1161 for ac_exec_ext
in '' $ac_executable_extensions; do
1162 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1163 if test $ac_prog = install &&
1164 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1165 # AIX install. It has an incompatible calling convention.
1167 elif test $ac_prog = install &&
1168 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1169 # program-specific install script used by HP pwplus--don't use.
1172 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1183 if test "${ac_cv_path_install+set}" = set; then
1184 INSTALL
=$ac_cv_path_install
1186 # As a last resort, use the slow shell script. We don't cache a
1187 # path for INSTALL within a source directory, because that will
1188 # break other packages using the cache if that directory is
1189 # removed, or if the path is relative.
1190 INSTALL
=$ac_install_sh
1193 echo "$as_me:$LINENO: result: $INSTALL" >&5
1194 echo "${ECHO_T}$INSTALL" >&6
1196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1197 # It thinks the first close brace ends the variable substitution.
1198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1202 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1204 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1205 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1208 echo timestamp
> conftest.
file
1209 # Do `set' in a subshell so we don't clobber the current shell's
1210 # arguments. Must try -L first in case configure is actually a
1211 # symlink; some systems play weird games with the mod time of symlinks
1212 # (eg FreeBSD returns the mod time of the symlink's containing
1215 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1216 if test "$*" = "X"; then
1218 set X
`ls -t $srcdir/configure conftest.file`
1221 if test "$*" != "X $srcdir/configure conftest.file" \
1222 && test "$*" != "X conftest.file $srcdir/configure"; then
1224 # If neither matched, then we have a broken ls. This can happen
1225 # if, for instance, CONFIG_SHELL is bash and it inherits a
1226 # broken ls alias from the environment. This has actually
1227 # happened. Such a system could not be considered "sane".
1228 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1229 alias in your environment" >&5
1230 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1231 alias in your environment" >&2;}
1232 { (exit 1); exit 1; }; }
1235 test "$2" = conftest.
file
1241 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1242 Check your system clock" >&5
1243 echo "$as_me: error: newly created file is older than distributed files!
1244 Check your system clock" >&2;}
1245 { (exit 1); exit 1; }; }
1247 echo "$as_me:$LINENO: result: yes" >&5
1248 echo "${ECHO_T}yes" >&6
1249 test "$program_prefix" != NONE
&&
1250 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1251 # Use a double $ so make ignores it.
1252 test "$program_suffix" != NONE
&&
1253 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1254 # Double any \ or $. echo might interpret backslashes.
1255 # By default was `s,x,x', remove it if useless.
1256 cat <<\_ACEOF
>conftest.
sed
1257 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1259 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1262 # expand $ac_aux_dir to an absolute path
1263 am_aux_dir
=`cd $ac_aux_dir && pwd`
1265 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1266 # Use eval to expand $SHELL
1267 if eval "$MISSING --run true"; then
1268 am_missing_run
="$MISSING --run "
1272 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1273 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1276 for ac_prog
in mawk gawk nawk
awk
1278 # Extract the first word of "$ac_prog", so it can be a program name with args.
1279 set dummy
$ac_prog; ac_word
=$2
1280 echo "$as_me:$LINENO: checking for $ac_word" >&5
1281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1282 if test "${ac_cv_prog_AWK+set}" = set; then
1283 echo $ECHO_N "(cached) $ECHO_C" >&6
1285 if test -n "$AWK"; then
1286 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1292 test -z "$as_dir" && as_dir
=.
1293 for ac_exec_ext
in '' $ac_executable_extensions; do
1294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1295 ac_cv_prog_AWK
="$ac_prog"
1296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1305 if test -n "$AWK"; then
1306 echo "$as_me:$LINENO: result: $AWK" >&5
1307 echo "${ECHO_T}$AWK" >&6
1309 echo "$as_me:$LINENO: result: no" >&5
1310 echo "${ECHO_T}no" >&6
1313 test -n "$AWK" && break
1316 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1317 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1318 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1319 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1320 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 cat >conftest.
make <<\_ACEOF
1324 @
echo 'ac_maketemp="${MAKE}"'
1326 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1327 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1328 if test -n "$ac_maketemp"; then
1329 eval ac_cv_prog_make_
${ac_make}_set
=yes
1331 eval ac_cv_prog_make_
${ac_make}_set
=no
1335 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1336 echo "$as_me:$LINENO: result: yes" >&5
1337 echo "${ECHO_T}yes" >&6
1340 echo "$as_me:$LINENO: result: no" >&5
1341 echo "${ECHO_T}no" >&6
1342 SET_MAKE
="MAKE=${MAKE-make}"
1345 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1346 if test "${enable_dependency_tracking+set}" = set; then
1347 enableval
="$enable_dependency_tracking"
1350 if test "x$enable_dependency_tracking" != xno
; then
1351 am_depcomp
="$ac_aux_dir/depcomp"
1355 if test "x$enable_dependency_tracking" != xno; then
1363 rm -f .deps
2>/dev
/null
1364 mkdir .deps
2>/dev
/null
1365 if test -d .deps
; then
1368 # MS-DOS does not allow filenames that begin with a dot.
1371 rmdir .deps
2>/dev
/null
1373 # test to see if srcdir already configured
1374 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1375 test -f $srcdir/config.status
; then
1376 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1377 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1378 { (exit 1); exit 1; }; }
1381 # Define the identity of the package.
1385 cat >>confdefs.h
<<_ACEOF
1386 #define PACKAGE "$PACKAGE"
1389 cat >>confdefs.h
<<_ACEOF
1390 #define VERSION "$VERSION"
1393 # Some tools Automake needs.
1395 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1397 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1399 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1401 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1403 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1405 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1407 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1409 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1411 # We need awk for the "check" target. The system "awk" is bad on
1414 ac_config_headers
="$ac_config_headers config.h:config.hin"
1416 # Initialize the test suite.
1417 ac_config_commands
="$ac_config_commands tests/package.m4"
1419 ac_config_commands
="$ac_config_commands tests/atconfig"
1421 if test -f $srcdir/tests
/atlocal.
in; then
1422 ac_config_files
="$ac_config_files tests/atlocal"
1426 ac_config_files
="$ac_config_files tests/bison"
1428 # Checks for programs.
1430 ac_cpp
='$CPP $CPPFLAGS'
1431 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC
="$CC" # Let the user override the test.
1445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir
=.
1450 for ac_exec_ext
in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1471 if test -z "$ac_cv_prog_CC"; then
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc
; ac_word
=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir
=.
1488 for ac_exec_ext
in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC
="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1513 if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC
="$CC" # Let the user override the test.
1525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1529 test -z "$as_dir" && as_dir
=.
1530 for ac_exec_ext
in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1551 if test -z "$ac_cv_prog_CC"; then
1553 # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc
; ac_word
=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir
=.
1568 for ac_exec_ext
in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC
="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1594 if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc
; ac_word
=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC
="$CC" # Let the user override the test.
1606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir
=.
1611 for ac_exec_ext
in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected
=yes
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy
$ac_cv_prog_CC
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1633 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1650 if test -z "$CC"; then
1651 if test -n "$ac_tool_prefix"; then
1654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1655 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$CC"; then
1662 ac_cv_prog_CC
="$CC" # Let the user override the test.
1664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir
=.
1669 for ac_exec_ext
in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 if test -n "$CC"; then
1682 echo "$as_me:$LINENO: result: $CC" >&5
1683 echo "${ECHO_T}$CC" >&6
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 test -n "$CC" && break
1692 if test -z "$CC"; then
1696 # Extract the first word of "$ac_prog", so it can be a program name with args.
1697 set dummy
$ac_prog; ac_word
=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 if test -n "$ac_ct_CC"; then
1704 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir
=.
1711 for ac_exec_ext
in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_ac_ct_CC
="$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1723 if test -n "$ac_ct_CC"; then
1724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725 echo "${ECHO_T}$ac_ct_CC" >&6
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1731 test -n "$ac_ct_CC" && break
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1740 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1741 { (exit 1); exit 1; }; }
1743 # Provide some information about the compiler.
1744 echo "$as_me:$LINENO:" \
1745 "checking for C compiler version" >&5
1746 ac_compiler
=`set X $ac_compile; echo $2`
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1763 cat >conftest.
$ac_ext <<_ACEOF
1764 #line $LINENO "configure"
1765 #include "confdefs.h"
1767 #ifdef F77_DUMMY_MAIN
1771 int F77_DUMMY_MAIN() { return 1; }
1781 ac_clean_files_save
=$ac_clean_files
1782 ac_clean_files
="$ac_clean_files a.out a.exe"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1786 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1787 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1788 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790 (eval $ac_link_default) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # Find the output, starting from the most likely. This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1798 ls a.out conftest 2>/dev/null;
1799 ls a.* conftest.* 2>/dev/null`; do
1801 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1802 a.out
) # We found the default executable, but exeext='' is most
1805 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1806 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1813 echo "$as_me: failed program was:" >&5
1814 cat conftest.
$ac_ext >&5
1815 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1816 echo "$as_me: error: C compiler cannot create executables" >&2;}
1817 { (exit 77); exit 77; }; }
1820 ac_exeext
=$ac_cv_exeext
1821 echo "$as_me:$LINENO: result: $ac_file" >&5
1822 echo "${ECHO_T}$ac_file" >&6
1824 # Check the compiler produces executables we can run. If not, either
1825 # the compiler is broken, or we cross compile.
1826 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1827 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1828 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1829 # If not cross compiling, check that we can run a simple program.
1830 if test "$cross_compiling" != yes; then
1831 if { ac_try
='./$ac_file'
1832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1839 if test "$cross_compiling" = maybe
; then
1842 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1843 If you meant to cross compile, use \`--host'." >&5
1844 echo "$as_me: error: cannot run C compiled programs.
1845 If you meant to cross compile, use \`--host'." >&2;}
1846 { (exit 1); exit 1; }; }
1850 echo "$as_me:$LINENO: result: yes" >&5
1851 echo "${ECHO_T}yes" >&6
1853 rm -f a.out a.exe conftest
$ac_cv_exeext
1854 ac_clean_files
=$ac_clean_files_save
1855 # Check the compiler produces executables we can run. If not, either
1856 # the compiler is broken, or we cross compile.
1857 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1858 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1859 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1860 echo "${ECHO_T}$cross_compiling" >&6
1862 echo "$as_me:$LINENO: checking for executable suffix" >&5
1863 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1865 (eval $ac_link) 2>&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }; then
1869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1870 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1871 # work properly (i.e., refer to `conftest.exe'), while it won't with
1873 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1875 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1876 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1883 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1884 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1885 { (exit 1); exit 1; }; }
1888 rm -f conftest
$ac_cv_exeext
1889 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1890 echo "${ECHO_T}$ac_cv_exeext" >&6
1892 rm -f conftest.
$ac_ext
1893 EXEEXT
=$ac_cv_exeext
1895 echo "$as_me:$LINENO: checking for object suffix" >&5
1896 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1897 if test "${ac_cv_objext+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 cat >conftest.
$ac_ext <<_ACEOF
1901 #line $LINENO "configure"
1902 #include "confdefs.h"
1904 #ifdef F77_DUMMY_MAIN
1908 int F77_DUMMY_MAIN() { return 1; }
1918 rm -f conftest.o conftest.obj
1919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1920 (eval $ac_compile) 2>&5
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; then
1924 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1926 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1927 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1932 echo "$as_me: failed program was:" >&5
1933 cat conftest.
$ac_ext >&5
1934 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1935 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1936 { (exit 1); exit 1; }; }
1939 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1941 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1942 echo "${ECHO_T}$ac_cv_objext" >&6
1943 OBJEXT
=$ac_cv_objext
1945 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1946 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1947 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 cat >conftest.
$ac_ext <<_ACEOF
1951 #line $LINENO "configure"
1952 #include "confdefs.h"
1954 #ifdef F77_DUMMY_MAIN
1958 int F77_DUMMY_MAIN() { return 1; }
1971 rm -f conftest.
$ac_objext
1972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973 (eval $ac_compile) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); } &&
1977 { ac_try
='test -s conftest.$ac_objext'
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; }; then
1985 echo "$as_me: failed program was:" >&5
1986 cat conftest.
$ac_ext >&5
1989 rm -f conftest.
$ac_objext conftest.
$ac_ext
1990 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1993 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1994 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1995 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1996 ac_test_CFLAGS
=${CFLAGS+set}
1997 ac_save_CFLAGS
=$CFLAGS
1999 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2000 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2001 if test "${ac_cv_prog_cc_g+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 cat >conftest.
$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2006 #include "confdefs.h"
2008 #ifdef F77_DUMMY_MAIN
2012 int F77_DUMMY_MAIN() { return 1; }
2022 rm -f conftest.
$ac_objext
2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); } &&
2028 { ac_try
='test -s conftest.$ac_objext'
2029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; }; then
2036 echo "$as_me: failed program was:" >&5
2037 cat conftest.
$ac_ext >&5
2040 rm -f conftest.
$ac_objext conftest.
$ac_ext
2042 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2043 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2044 if test "$ac_test_CFLAGS" = set; then
2045 CFLAGS
=$ac_save_CFLAGS
2046 elif test $ac_cv_prog_cc_g = yes; then
2047 if test "$GCC" = yes; then
2053 if test "$GCC" = yes; then
2059 # Some people use a C++ compiler to compile C. Since we use `exit',
2060 # in C++ we need to declare it. In case someone uses the same compiler
2061 # for both compiling C and C++ we need to have the C++ compiler decide
2062 # the declaration of exit, since it's the most demanding environment.
2063 cat >conftest.
$ac_ext <<_ACEOF
2068 rm -f conftest.
$ac_objext
2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
2074 { ac_try
='test -s conftest.$ac_objext'
2075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; }; then
2080 for ac_declaration
in \
2082 '#include <stdlib.h>' \
2083 'extern "C" void std::exit (int) throw (); using std::exit;' \
2084 'extern "C" void std::exit (int); using std::exit;' \
2085 'extern "C" void exit (int) throw ();' \
2086 'extern "C" void exit (int);' \
2089 cat >conftest.
$ac_ext <<_ACEOF
2090 #line $LINENO "configure"
2091 #include "confdefs.h"
2094 #ifdef F77_DUMMY_MAIN
2098 int F77_DUMMY_MAIN() { return 1; }
2108 rm -f conftest.
$ac_objext
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try
='test -s conftest.$ac_objext'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2122 echo "$as_me: failed program was:" >&5
2123 cat conftest.
$ac_ext >&5
2126 rm -f conftest.
$ac_objext conftest.
$ac_ext
2127 cat >conftest.
$ac_ext <<_ACEOF
2128 #line $LINENO "configure"
2129 #include "confdefs.h"
2131 #ifdef F77_DUMMY_MAIN
2135 int F77_DUMMY_MAIN() { return 1; }
2145 rm -f conftest.
$ac_objext
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try
='test -s conftest.$ac_objext'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
2159 echo "$as_me: failed program was:" >&5
2160 cat conftest.
$ac_ext >&5
2162 rm -f conftest.
$ac_objext conftest.
$ac_ext
2165 if test -n "$ac_declaration"; then
2166 echo '#ifdef __cplusplus' >>confdefs.h
2167 echo $ac_declaration >>confdefs.h
2168 echo '#endif' >>confdefs.h
2172 echo "$as_me: failed program was:" >&5
2173 cat conftest.
$ac_ext >&5
2175 rm -f conftest.
$ac_objext conftest.
$ac_ext
2177 ac_cpp
='$CPP $CPPFLAGS'
2178 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2182 ac_config_commands
="$ac_config_commands default-1"
2184 am_make
=${MAKE-make}
2185 cat > confinc
<< 'END'
2189 # If we don't find an include directive, just comment out the code.
2190 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2191 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2195 # First try GNU make style include.
2196 echo "include confinc" > confmf
2197 # We grep out `Entering directory' and `Leaving directory'
2198 # messages which can occur if `w' ends up in MAKEFLAGS.
2199 # In particular we don't look at `^make:' because GNU make might
2200 # be invoked under some other name (usually "gmake"), in which
2201 # case it prints its new name instead of `make'.
2202 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2207 # Now try BSD make style include.
2208 if test "$am__include" = "#"; then
2209 echo '.include "confinc"' > confmf
2210 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2211 am__include
=.include
2217 echo "$as_me:$LINENO: result: $_am_result" >&5
2218 echo "${ECHO_T}$_am_result" >&6
2219 rm -f confinc confmf
2221 depcc
="$CC" am_compiler_list
=
2223 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2224 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2225 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2229 # We make a subdir and do the tests there. Otherwise we can end up
2230 # making bogus files that we don't know about and never remove. For
2231 # instance it was reported that on HP-UX the gcc test will end up
2232 # making a dummy file named `D' -- because `-MD' means `put the output
2235 # Copy depcomp to subdir because otherwise we won't find it if we're
2236 # using a relative directory.
2237 cp "$am_depcomp" conftest.dir
2240 am_cv_CC_dependencies_compiler_type
=none
2241 if test "$am_compiler_list" = ""; then
2242 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2244 for depmode
in $am_compiler_list; do
2245 # We need to recreate these files for each test, as the compiler may
2246 # overwrite some of them when testing with obscure command lines.
2247 # This happens at least with the AIX C compiler.
2248 echo '#include "conftest.h"' > conftest.c
2249 echo 'int i;' > conftest.h
2250 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2254 # after this tag, mechanisms are not by side-effect, so they'll
2255 # only be used when explicitly requested
2256 if test "x$enable_dependency_tracking" = xyes
; then
2264 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2265 # mode. It turns out that the SunPro C++ compiler does not properly
2266 # handle `-M -o', and we need to detect this.
2267 if depmode
=$depmode \
2268 source=conftest.c object
=conftest.o \
2269 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2270 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2271 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2272 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2273 am_cv_CC_dependencies_compiler_type
=$depmode
2281 am_cv_CC_dependencies_compiler_type
=none
2285 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2286 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2287 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2290 ac_cpp
='$CPP $CPPFLAGS'
2291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2294 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2295 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2296 # On Suns, sometimes $CPP names a directory.
2297 if test -n "$CPP" && test -d "$CPP"; then
2300 if test -z "$CPP"; then
2301 if test "${ac_cv_prog_CPP+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 # Double quotes because CPP needs to be expanded
2305 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2308 for ac_c_preproc_warn_flag
in '' yes
2310 # Use a header file that comes with gcc, so configuring glibc
2311 # with a fresh cross-compiler works.
2312 # On the NeXT, cc -E runs the code through the compiler's parser,
2313 # not just through cpp. "Syntax error" is here to catch this case.
2314 cat >conftest.
$ac_ext <<_ACEOF
2315 #line $LINENO "configure"
2316 #include "confdefs.h"
2320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2321 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2323 egrep -v '^ *\+' conftest.er1
>conftest.err
2325 cat conftest.err
>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } >/dev
/null
; then
2328 if test -s conftest.err
; then
2329 ac_cpp_err
=$ac_c_preproc_warn_flag
2336 if test -z "$ac_cpp_err"; then
2339 echo "$as_me: failed program was:" >&5
2340 cat conftest.
$ac_ext >&5
2341 # Broken: fails on valid input.
2344 rm -f conftest.err conftest.
$ac_ext
2346 # OK, works on sane cases. Now check whether non-existent headers
2347 # can be detected and how.
2348 cat >conftest.
$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 #include "confdefs.h"
2351 #include <ac_nonexistent.h>
2353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2354 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2356 egrep -v '^ *\+' conftest.er1
>conftest.err
2358 cat conftest.err
>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } >/dev
/null
; then
2361 if test -s conftest.err
; then
2362 ac_cpp_err
=$ac_c_preproc_warn_flag
2369 if test -z "$ac_cpp_err"; then
2370 # Broken: success on invalid input.
2373 echo "$as_me: failed program was:" >&5
2374 cat conftest.
$ac_ext >&5
2375 # Passes both tests.
2379 rm -f conftest.err conftest.
$ac_ext
2382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2383 rm -f conftest.err conftest.
$ac_ext
2384 if $ac_preproc_ok; then
2396 echo "$as_me:$LINENO: result: $CPP" >&5
2397 echo "${ECHO_T}$CPP" >&6
2399 for ac_c_preproc_warn_flag
in '' yes
2401 # Use a header file that comes with gcc, so configuring glibc
2402 # with a fresh cross-compiler works.
2403 # On the NeXT, cc -E runs the code through the compiler's parser,
2404 # not just through cpp. "Syntax error" is here to catch this case.
2405 cat >conftest.
$ac_ext <<_ACEOF
2406 #line $LINENO "configure"
2407 #include "confdefs.h"
2411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2412 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2414 egrep -v '^ *\+' conftest.er1
>conftest.err
2416 cat conftest.err
>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } >/dev
/null
; then
2419 if test -s conftest.err
; then
2420 ac_cpp_err
=$ac_c_preproc_warn_flag
2427 if test -z "$ac_cpp_err"; then
2430 echo "$as_me: failed program was:" >&5
2431 cat conftest.
$ac_ext >&5
2432 # Broken: fails on valid input.
2435 rm -f conftest.err conftest.
$ac_ext
2437 # OK, works on sane cases. Now check whether non-existent headers
2438 # can be detected and how.
2439 cat >conftest.
$ac_ext <<_ACEOF
2440 #line $LINENO "configure"
2441 #include "confdefs.h"
2442 #include <ac_nonexistent.h>
2444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2445 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2447 egrep -v '^ *\+' conftest.er1
>conftest.err
2449 cat conftest.err
>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } >/dev
/null
; then
2452 if test -s conftest.err
; then
2453 ac_cpp_err
=$ac_c_preproc_warn_flag
2460 if test -z "$ac_cpp_err"; then
2461 # Broken: success on invalid input.
2464 echo "$as_me: failed program was:" >&5
2465 cat conftest.
$ac_ext >&5
2466 # Passes both tests.
2470 rm -f conftest.err conftest.
$ac_ext
2473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2474 rm -f conftest.err conftest.
$ac_ext
2475 if $ac_preproc_ok; then
2478 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2479 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2480 { (exit 1); exit 1; }; }
2484 ac_cpp
='$CPP $CPPFLAGS'
2485 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2489 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2490 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2491 if test "${ac_cv_header_stdc+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 cat >conftest.
$ac_ext <<_ACEOF
2495 #line $LINENO "configure"
2496 #include "confdefs.h"
2503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2504 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2506 egrep -v '^ *\+' conftest.er1
>conftest.err
2508 cat conftest.err
>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } >/dev
/null
; then
2511 if test -s conftest.err
; then
2512 ac_cpp_err
=$ac_c_preproc_warn_flag
2519 if test -z "$ac_cpp_err"; then
2520 ac_cv_header_stdc
=yes
2522 echo "$as_me: failed program was:" >&5
2523 cat conftest.
$ac_ext >&5
2524 ac_cv_header_stdc
=no
2526 rm -f conftest.err conftest.
$ac_ext
2528 if test $ac_cv_header_stdc = yes; then
2529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2530 cat >conftest.
$ac_ext <<_ACEOF
2531 #line $LINENO "configure"
2532 #include "confdefs.h"
2536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2537 egrep "memchr" >/dev
/null
2>&1; then
2540 ac_cv_header_stdc
=no
2546 if test $ac_cv_header_stdc = yes; then
2547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2548 cat >conftest.
$ac_ext <<_ACEOF
2549 #line $LINENO "configure"
2550 #include "confdefs.h"
2554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2555 egrep "free" >/dev
/null
2>&1; then
2558 ac_cv_header_stdc
=no
2564 if test $ac_cv_header_stdc = yes; then
2565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2566 if test "$cross_compiling" = yes; then
2569 cat >conftest.
$ac_ext <<_ACEOF
2570 #line $LINENO "configure"
2571 #include "confdefs.h"
2573 #if ((' ' & 0x0FF) == 0x020)
2574 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2575 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2577 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2578 || ('j' <= (c) && (c) <= 'r') \
2579 || ('s' <= (c) && (c) <= 'z'))
2580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2588 for (i = 0; i < 256; i++)
2589 if (XOR (islower (i), ISLOWER (i))
2590 || toupper (i) != TOUPPER (i))
2595 rm -f conftest
$ac_exeext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2597 (eval $ac_link) 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 echo "$as_me: program exited with status $ac_status" >&5
2609 echo "$as_me: failed program was:" >&5
2610 cat conftest.
$ac_ext >&5
2612 ac_cv_header_stdc
=no
2614 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2618 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2619 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2620 if test $ac_cv_header_stdc = yes; then
2622 cat >>confdefs.h
<<\_ACEOF
2623 #define STDC_HEADERS 1
2628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2630 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2631 inttypes.h stdint.h unistd.h
2633 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2634 echo "$as_me:$LINENO: checking for $ac_header" >&5
2635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 cat >conftest.
$ac_ext <<_ACEOF
2640 #line $LINENO "configure"
2641 #include "confdefs.h"
2642 $ac_includes_default
2644 #include <$ac_header>
2646 rm -f conftest.
$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try
='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 eval "$as_ac_Header=yes"
2660 echo "$as_me: failed program was:" >&5
2661 cat conftest.
$ac_ext >&5
2662 eval "$as_ac_Header=no"
2664 rm -f conftest.
$ac_objext conftest.
$ac_ext
2666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2669 cat >>confdefs.h
<<_ACEOF
2670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2677 if test "${ac_cv_header_minix_config_h+set}" = set; then
2678 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2679 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2680 if test "${ac_cv_header_minix_config_h+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2684 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2686 # Is the header compilable?
2687 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2688 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2689 cat >conftest.
$ac_ext <<_ACEOF
2690 #line $LINENO "configure"
2691 #include "confdefs.h"
2692 $ac_includes_default
2693 #include <minix/config.h>
2695 rm -f conftest.
$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try
='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 ac_header_compiler
=yes
2709 echo "$as_me: failed program was:" >&5
2710 cat conftest.
$ac_ext >&5
2711 ac_header_compiler
=no
2713 rm -f conftest.
$ac_objext conftest.
$ac_ext
2714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2715 echo "${ECHO_T}$ac_header_compiler" >&6
2717 # Is the header present?
2718 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2719 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2720 cat >conftest.
$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2722 #include "confdefs.h"
2723 #include <minix/config.h>
2725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2726 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2728 egrep -v '^ *\+' conftest.er1
>conftest.err
2730 cat conftest.err
>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } >/dev
/null
; then
2733 if test -s conftest.err
; then
2734 ac_cpp_err
=$ac_c_preproc_warn_flag
2741 if test -z "$ac_cpp_err"; then
2742 ac_header_preproc
=yes
2744 echo "$as_me: failed program was:" >&5
2745 cat conftest.
$ac_ext >&5
2746 ac_header_preproc
=no
2748 rm -f conftest.err conftest.
$ac_ext
2749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2750 echo "${ECHO_T}$ac_header_preproc" >&6
2752 # So? What about this header?
2753 case $ac_header_compiler:$ac_header_preproc in
2755 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2756 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2757 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2758 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2760 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2761 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2762 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2763 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2764 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2765 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2767 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2768 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2769 if test "${ac_cv_header_minix_config_h+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 ac_cv_header_minix_config_h
=$ac_header_preproc
2774 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2775 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2778 if test $ac_cv_header_minix_config_h = yes; then
2784 if test "$MINIX" = yes; then
2786 cat >>confdefs.h
<<\_ACEOF
2787 #define _POSIX_SOURCE 1
2790 cat >>confdefs.h
<<\_ACEOF
2791 #define _POSIX_1_SOURCE 2
2794 cat >>confdefs.h
<<\_ACEOF
2800 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2801 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2802 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 ac_check_lib_save_LIBS
=$LIBS
2806 LIBS
="-lcposix $LIBS"
2807 cat >conftest.
$ac_ext <<_ACEOF
2808 #line $LINENO "configure"
2809 #include "confdefs.h"
2811 /* Override any gcc2 internal prototype to avoid an error. */
2815 /* We use char because int might match the return type of a gcc2
2816 builtin and then its argument prototype would still apply. */
2818 #ifdef F77_DUMMY_MAIN
2822 int F77_DUMMY_MAIN() { return 1; }
2832 rm -f conftest.
$ac_objext conftest
$ac_exeext
2833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834 (eval $ac_link) 2>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } &&
2838 { ac_try
='test -s conftest$ac_exeext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 ac_cv_lib_cposix_strerror
=yes
2846 echo "$as_me: failed program was:" >&5
2847 cat conftest.
$ac_ext >&5
2848 ac_cv_lib_cposix_strerror
=no
2850 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2851 LIBS
=$ac_check_lib_save_LIBS
2853 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2854 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2855 if test $ac_cv_lib_cposix_strerror = yes; then
2856 LIBS
="$LIBS -lcposix"
2859 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2860 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2861 if test "${am_cv_prog_cc_stdc+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 am_cv_prog_cc_stdc
=no
2866 # Don't try gcc -ansi; that turns off useful extensions and
2867 # breaks some systems' header files.
2868 # AIX -qlanglvl=ansi
2869 # Ultrix and OSF/1 -std1
2870 # HP-UX 10.20 and later -Ae
2871 # HP-UX older versions -Aa -D_HPUX_SOURCE
2872 # SVR4 -Xc -D__EXTENSIONS__
2873 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2875 CC
="$ac_save_CC $ac_arg"
2876 cat >conftest.
$ac_ext <<_ACEOF
2877 #line $LINENO "configure"
2878 #include "confdefs.h"
2881 #include <sys/types.h>
2882 #include <sys/stat.h>
2883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2884 struct buf { int x; };
2885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2886 static char *e (p, i)
2892 static char *f (char * (*g) (char **, int), char **p, ...)
2897 s = g (p, va_arg (v,int));
2901 int test (int i, double x);
2902 struct s1 {int (*f) (int a);};
2903 struct s2 {int (*f) (double a);};
2904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2908 #ifdef F77_DUMMY_MAIN
2912 int F77_DUMMY_MAIN() { return 1; }
2918 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2924 rm -f conftest.
$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try
='test -s conftest.$ac_objext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 am_cv_prog_cc_stdc
="$ac_arg"; break
2938 echo "$as_me: failed program was:" >&5
2939 cat conftest.
$ac_ext >&5
2941 rm -f conftest.
$ac_objext conftest.
$ac_ext
2947 if test -z "$am_cv_prog_cc_stdc"; then
2948 echo "$as_me:$LINENO: result: none needed" >&5
2949 echo "${ECHO_T}none needed" >&6
2951 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2952 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2954 case "x$am_cv_prog_cc_stdc" in
2956 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2959 if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2961 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2962 echo "$as_me:$LINENO: checking for $ac_word" >&5
2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2964 if test "${ac_cv_prog_RANLIB+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 if test -n "$RANLIB"; then
2968 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir
=.
2975 for ac_exec_ext
in '' $ac_executable_extensions; do
2976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 RANLIB
=$ac_cv_prog_RANLIB
2987 if test -n "$RANLIB"; then
2988 echo "$as_me:$LINENO: result: $RANLIB" >&5
2989 echo "${ECHO_T}$RANLIB" >&6
2991 echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6
2996 if test -z "$ac_cv_prog_RANLIB"; then
2997 ac_ct_RANLIB
=$RANLIB
2998 # Extract the first word of "ranlib", so it can be a program name with args.
2999 set dummy ranlib
; ac_word
=$2
3000 echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3002 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 if test -n "$ac_ct_RANLIB"; then
3006 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir
=.
3013 for ac_exec_ext
in '' $ac_executable_extensions; do
3014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3025 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3026 if test -n "$ac_ct_RANLIB"; then
3027 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3028 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3030 echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6
3034 RANLIB
=$ac_ct_RANLIB
3036 RANLIB
="$ac_cv_prog_RANLIB"
3039 AUTOM4TE
=${AUTOM4TE-"${am_missing_run}autom4te"}
3041 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3042 if test "${enable_gcc_warnings+set}" = set; then
3043 enableval
="$enable_gcc_warnings"
3044 case "${enableval}" in
3046 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3047 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3048 { (exit 1); exit 1; }; } ;;
3053 if test "${enableval}" = yes; then
3054 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3055 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3057 ac_save_CFLAGS
="$CFLAGS"
3058 CFLAGS
="$CFLAGS -Wall"
3059 cat >conftest.
$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3061 #include "confdefs.h"
3063 #ifdef F77_DUMMY_MAIN
3067 int F77_DUMMY_MAIN() { return 1; }
3077 rm -f conftest.
$ac_objext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3079 (eval $ac_compile) 2>&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try
='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3090 echo "$as_me:$LINENO: result: yes" >&5
3091 echo "${ECHO_T}yes" >&6
3093 echo "$as_me: failed program was:" >&5
3094 cat conftest.
$ac_ext >&5
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3098 rm -f conftest.
$ac_objext conftest.
$ac_ext
3099 CFLAGS
="$ac_save_CFLAGS"
3100 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3101 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3103 ac_save_CFLAGS
="$CFLAGS"
3105 cat >conftest.
$ac_ext <<_ACEOF
3106 #line $LINENO "configure"
3107 #include "confdefs.h"
3109 #ifdef F77_DUMMY_MAIN
3113 int F77_DUMMY_MAIN() { return 1; }
3123 rm -f conftest.
$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125 (eval $ac_compile) 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try
='test -s conftest.$ac_objext'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3136 echo "$as_me:$LINENO: result: yes" >&5
3137 echo "${ECHO_T}yes" >&6
3139 echo "$as_me: failed program was:" >&5
3140 cat conftest.
$ac_ext >&5
3141 echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6
3144 rm -f conftest.
$ac_objext conftest.
$ac_ext
3145 CFLAGS
="$ac_save_CFLAGS"
3146 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3147 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3149 ac_save_CFLAGS
="$CFLAGS"
3150 CFLAGS
="$CFLAGS -Wbad-function-cast"
3151 cat >conftest.
$ac_ext <<_ACEOF
3152 #line $LINENO "configure"
3153 #include "confdefs.h"
3155 #ifdef F77_DUMMY_MAIN
3159 int F77_DUMMY_MAIN() { return 1; }
3169 rm -f conftest.
$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try
='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3182 echo "$as_me:$LINENO: result: yes" >&5
3183 echo "${ECHO_T}yes" >&6
3185 echo "$as_me: failed program was:" >&5
3186 cat conftest.
$ac_ext >&5
3187 echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3190 rm -f conftest.
$ac_objext conftest.
$ac_ext
3191 CFLAGS
="$ac_save_CFLAGS"
3192 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3193 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3195 ac_save_CFLAGS
="$CFLAGS"
3196 CFLAGS
="$CFLAGS -Wcast-align"
3197 cat >conftest.
$ac_ext <<_ACEOF
3198 #line $LINENO "configure"
3199 #include "confdefs.h"
3201 #ifdef F77_DUMMY_MAIN
3205 int F77_DUMMY_MAIN() { return 1; }
3215 rm -f conftest.
$ac_objext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3217 (eval $ac_compile) 2>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try
='test -s conftest.$ac_objext'
3222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; }; then
3227 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3228 echo "$as_me:$LINENO: result: yes" >&5
3229 echo "${ECHO_T}yes" >&6
3231 echo "$as_me: failed program was:" >&5
3232 cat conftest.
$ac_ext >&5
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3236 rm -f conftest.
$ac_objext conftest.
$ac_ext
3237 CFLAGS
="$ac_save_CFLAGS"
3238 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3239 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3241 ac_save_CFLAGS
="$CFLAGS"
3242 CFLAGS
="$CFLAGS -Wcast-qual"
3243 cat >conftest.
$ac_ext <<_ACEOF
3244 #line $LINENO "configure"
3245 #include "confdefs.h"
3247 #ifdef F77_DUMMY_MAIN
3251 int F77_DUMMY_MAIN() { return 1; }
3261 rm -f conftest.
$ac_objext
3262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try
='test -s conftest.$ac_objext'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3274 echo "$as_me:$LINENO: result: yes" >&5
3275 echo "${ECHO_T}yes" >&6
3277 echo "$as_me: failed program was:" >&5
3278 cat conftest.
$ac_ext >&5
3279 echo "$as_me:$LINENO: result: no" >&5
3280 echo "${ECHO_T}no" >&6
3282 rm -f conftest.
$ac_objext conftest.
$ac_ext
3283 CFLAGS
="$ac_save_CFLAGS"
3284 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3285 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3287 ac_save_CFLAGS
="$CFLAGS"
3288 CFLAGS
="$CFLAGS -Wformat"
3289 cat >conftest.
$ac_ext <<_ACEOF
3290 #line $LINENO "configure"
3291 #include "confdefs.h"
3293 #ifdef F77_DUMMY_MAIN
3297 int F77_DUMMY_MAIN() { return 1; }
3307 rm -f conftest.
$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try
='test -s conftest.$ac_objext'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3320 echo "$as_me:$LINENO: result: yes" >&5
3321 echo "${ECHO_T}yes" >&6
3323 echo "$as_me: failed program was:" >&5
3324 cat conftest.
$ac_ext >&5
3325 echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6
3328 rm -f conftest.
$ac_objext conftest.
$ac_ext
3329 CFLAGS
="$ac_save_CFLAGS"
3330 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3331 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3333 ac_save_CFLAGS
="$CFLAGS"
3334 CFLAGS
="$CFLAGS -Wmissing-declarations"
3335 cat >conftest.
$ac_ext <<_ACEOF
3336 #line $LINENO "configure"
3337 #include "confdefs.h"
3339 #ifdef F77_DUMMY_MAIN
3343 int F77_DUMMY_MAIN() { return 1; }
3353 rm -f conftest.
$ac_objext
3354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355 (eval $ac_compile) 2>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
3359 { ac_try
='test -s conftest.$ac_objext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3365 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3366 echo "$as_me:$LINENO: result: yes" >&5
3367 echo "${ECHO_T}yes" >&6
3369 echo "$as_me: failed program was:" >&5
3370 cat conftest.
$ac_ext >&5
3371 echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3374 rm -f conftest.
$ac_objext conftest.
$ac_ext
3375 CFLAGS
="$ac_save_CFLAGS"
3376 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3377 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3379 ac_save_CFLAGS
="$CFLAGS"
3380 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3381 cat >conftest.
$ac_ext <<_ACEOF
3382 #line $LINENO "configure"
3383 #include "confdefs.h"
3385 #ifdef F77_DUMMY_MAIN
3389 int F77_DUMMY_MAIN() { return 1; }
3399 rm -f conftest.
$ac_objext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try
='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3412 echo "$as_me:$LINENO: result: yes" >&5
3413 echo "${ECHO_T}yes" >&6
3415 echo "$as_me: failed program was:" >&5
3416 cat conftest.
$ac_ext >&5
3417 echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6
3420 rm -f conftest.
$ac_objext conftest.
$ac_ext
3421 CFLAGS
="$ac_save_CFLAGS"
3422 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3423 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3425 ac_save_CFLAGS
="$CFLAGS"
3426 CFLAGS
="$CFLAGS -Wnested-externs"
3427 cat >conftest.
$ac_ext <<_ACEOF
3428 #line $LINENO "configure"
3429 #include "confdefs.h"
3431 #ifdef F77_DUMMY_MAIN
3435 int F77_DUMMY_MAIN() { return 1; }
3445 rm -f conftest.
$ac_objext
3446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3447 (eval $ac_compile) 2>&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try
='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3458 echo "$as_me:$LINENO: result: yes" >&5
3459 echo "${ECHO_T}yes" >&6
3461 echo "$as_me: failed program was:" >&5
3462 cat conftest.
$ac_ext >&5
3463 echo "$as_me:$LINENO: result: no" >&5
3464 echo "${ECHO_T}no" >&6
3466 rm -f conftest.
$ac_objext conftest.
$ac_ext
3467 CFLAGS
="$ac_save_CFLAGS"
3468 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3469 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3471 ac_save_CFLAGS
="$CFLAGS"
3472 CFLAGS
="$CFLAGS -Wshadow"
3473 cat >conftest.
$ac_ext <<_ACEOF
3474 #line $LINENO "configure"
3475 #include "confdefs.h"
3477 #ifdef F77_DUMMY_MAIN
3481 int F77_DUMMY_MAIN() { return 1; }
3491 rm -f conftest.
$ac_objext
3492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3493 (eval $ac_compile) 2>&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try
='test -s conftest.$ac_objext'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3503 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3504 echo "$as_me:$LINENO: result: yes" >&5
3505 echo "${ECHO_T}yes" >&6
3507 echo "$as_me: failed program was:" >&5
3508 cat conftest.
$ac_ext >&5
3509 echo "$as_me:$LINENO: result: no" >&5
3510 echo "${ECHO_T}no" >&6
3512 rm -f conftest.
$ac_objext conftest.
$ac_ext
3513 CFLAGS
="$ac_save_CFLAGS"
3514 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3515 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3517 ac_save_CFLAGS
="$CFLAGS"
3518 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3519 cat >conftest.
$ac_ext <<_ACEOF
3520 #line $LINENO "configure"
3521 #include "confdefs.h"
3523 #ifdef F77_DUMMY_MAIN
3527 int F77_DUMMY_MAIN() { return 1; }
3537 rm -f conftest.
$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try
='test -s conftest.$ac_objext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3550 echo "$as_me:$LINENO: result: yes" >&5
3551 echo "${ECHO_T}yes" >&6
3553 echo "$as_me: failed program was:" >&5
3554 cat conftest.
$ac_ext >&5
3555 echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3558 rm -f conftest.
$ac_objext conftest.
$ac_ext
3559 CFLAGS
="$ac_save_CFLAGS"
3560 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3561 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3563 ac_save_CFLAGS
="$CFLAGS"
3564 CFLAGS
="$CFLAGS -Wwrite-strings"
3565 cat >conftest.
$ac_ext <<_ACEOF
3566 #line $LINENO "configure"
3567 #include "confdefs.h"
3569 #ifdef F77_DUMMY_MAIN
3573 int F77_DUMMY_MAIN() { return 1; }
3583 rm -f conftest.
$ac_objext
3584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3585 (eval $ac_compile) 2>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } &&
3589 { ac_try
='test -s conftest.$ac_objext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3596 echo "$as_me:$LINENO: result: yes" >&5
3597 echo "${ECHO_T}yes" >&6
3599 echo "$as_me: failed program was:" >&5
3600 cat conftest.
$ac_ext >&5
3601 echo "$as_me:$LINENO: result: no" >&5
3602 echo "${ECHO_T}no" >&6
3604 rm -f conftest.
$ac_objext conftest.
$ac_ext
3605 CFLAGS
="$ac_save_CFLAGS"
3606 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3609 # Checks for libraries.
3611 cat >>confdefs.h
<<\_ACEOF
3612 #define _GNU_SOURCE 1
3615 # Checks for header files.
3616 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3617 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3618 if test "${ac_cv_header_stdc+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 cat >conftest.
$ac_ext <<_ACEOF
3622 #line $LINENO "configure"
3623 #include "confdefs.h"
3630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3631 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3633 egrep -v '^ *\+' conftest.er1
>conftest.err
3635 cat conftest.err
>&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } >/dev
/null
; then
3638 if test -s conftest.err
; then
3639 ac_cpp_err
=$ac_c_preproc_warn_flag
3646 if test -z "$ac_cpp_err"; then
3647 ac_cv_header_stdc
=yes
3649 echo "$as_me: failed program was:" >&5
3650 cat conftest.
$ac_ext >&5
3651 ac_cv_header_stdc
=no
3653 rm -f conftest.err conftest.
$ac_ext
3655 if test $ac_cv_header_stdc = yes; then
3656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3657 cat >conftest.
$ac_ext <<_ACEOF
3658 #line $LINENO "configure"
3659 #include "confdefs.h"
3663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3664 egrep "memchr" >/dev
/null
2>&1; then
3667 ac_cv_header_stdc
=no
3673 if test $ac_cv_header_stdc = yes; then
3674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3675 cat >conftest.
$ac_ext <<_ACEOF
3676 #line $LINENO "configure"
3677 #include "confdefs.h"
3681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3682 egrep "free" >/dev
/null
2>&1; then
3685 ac_cv_header_stdc
=no
3691 if test $ac_cv_header_stdc = yes; then
3692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3693 if test "$cross_compiling" = yes; then
3696 cat >conftest.
$ac_ext <<_ACEOF
3697 #line $LINENO "configure"
3698 #include "confdefs.h"
3700 #if ((' ' & 0x0FF) == 0x020)
3701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3704 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3705 || ('j' <= (c) && (c) <= 'r') \
3706 || ('s' <= (c) && (c) <= 'z'))
3707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3715 for (i = 0; i < 256; i++)
3716 if (XOR (islower (i), ISLOWER (i))
3717 || toupper (i) != TOUPPER (i))
3722 rm -f conftest
$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3735 echo "$as_me: program exited with status $ac_status" >&5
3736 echo "$as_me: failed program was:" >&5
3737 cat conftest.
$ac_ext >&5
3739 ac_cv_header_stdc
=no
3741 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3745 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3746 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3747 if test $ac_cv_header_stdc = yes; then
3749 cat >>confdefs.h
<<\_ACEOF
3750 #define STDC_HEADERS 1
3755 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3757 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3759 echo "$as_me:$LINENO: checking for $ac_header" >&5
3760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3767 # Is the header compilable?
3768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3770 cat >conftest.
$ac_ext <<_ACEOF
3771 #line $LINENO "configure"
3772 #include "confdefs.h"
3773 $ac_includes_default
3774 #include <$ac_header>
3776 rm -f conftest.
$ac_objext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778 (eval $ac_compile) 2>&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } &&
3782 { ac_try
='test -s conftest.$ac_objext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 ac_header_compiler
=yes
3790 echo "$as_me: failed program was:" >&5
3791 cat conftest.
$ac_ext >&5
3792 ac_header_compiler
=no
3794 rm -f conftest.
$ac_objext conftest.
$ac_ext
3795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3796 echo "${ECHO_T}$ac_header_compiler" >&6
3798 # Is the header present?
3799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3801 cat >conftest.
$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3803 #include "confdefs.h"
3804 #include <$ac_header>
3806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3807 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3809 egrep -v '^ *\+' conftest.er1
>conftest.err
3811 cat conftest.err
>&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } >/dev
/null
; then
3814 if test -s conftest.err
; then
3815 ac_cpp_err
=$ac_c_preproc_warn_flag
3822 if test -z "$ac_cpp_err"; then
3823 ac_header_preproc
=yes
3825 echo "$as_me: failed program was:" >&5
3826 cat conftest.
$ac_ext >&5
3827 ac_header_preproc
=no
3829 rm -f conftest.err conftest.
$ac_ext
3830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3831 echo "${ECHO_T}$ac_header_preproc" >&6
3833 # So? What about this header?
3834 case $ac_header_compiler:$ac_header_preproc in
3836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3848 echo "$as_me:$LINENO: checking for $ac_header" >&5
3849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 eval "$as_ac_Header=$ac_header_preproc"
3855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3860 cat >>confdefs.h
<<_ACEOF
3861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3868 # Checks for typedefs.
3870 # Checks for structures.
3872 # Checks for compiler characteristics.
3873 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3874 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3875 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 ac_cv_prog_cc_stdc
=no
3880 cat >conftest.
$ac_ext <<_ACEOF
3881 #line $LINENO "configure"
3882 #include "confdefs.h"
3885 #include <sys/types.h>
3886 #include <sys/stat.h>
3887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3888 struct buf { int x; };
3889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3890 static char *e (p, i)
3896 static char *f (char * (*g) (char **, int), char **p, ...)
3901 s = g (p, va_arg (v,int));
3905 int test (int i, double x);
3906 struct s1 {int (*f) (int a);};
3907 struct s2 {int (*f) (double a);};
3908 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3911 #ifdef F77_DUMMY_MAIN
3915 int F77_DUMMY_MAIN() { return 1; }
3920 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3925 # Don't try gcc -ansi; that turns off useful extensions and
3926 # breaks some systems' header files.
3927 # AIX -qlanglvl=ansi
3928 # Ultrix and OSF/1 -std1
3929 # HP-UX 10.20 and later -Ae
3930 # HP-UX older versions -Aa -D_HPUX_SOURCE
3931 # SVR4 -Xc -D__EXTENSIONS__
3932 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3934 CC
="$ac_save_CC $ac_arg"
3935 rm -f conftest.
$ac_objext
3936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937 (eval $ac_compile) 2>&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try
='test -s conftest.$ac_objext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_cv_prog_cc_stdc
=$ac_arg
3950 echo "$as_me: failed program was:" >&5
3951 cat conftest.
$ac_ext >&5
3953 rm -f conftest.
$ac_objext
3955 rm -f conftest.
$ac_ext conftest.
$ac_objext
3960 case "x$ac_cv_prog_cc_stdc" in
3962 echo "$as_me:$LINENO: result: none needed" >&5
3963 echo "${ECHO_T}none needed" >&6 ;;
3965 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3966 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3967 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3970 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3971 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3972 if test "${ac_cv_c_const+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 cat >conftest.
$ac_ext <<_ACEOF
3976 #line $LINENO "configure"
3977 #include "confdefs.h"
3979 #ifdef F77_DUMMY_MAIN
3983 int F77_DUMMY_MAIN() { return 1; }
3988 /* FIXME: Include the comments suggested by Paul. */
3990 /* Ultrix mips cc rejects this. */
3991 typedef int charset[2];
3993 /* SunOS 4.1.1 cc rejects this. */
3994 char const *const *ccp;
3996 /* NEC SVR4.0.2 mips cc rejects this. */
3997 struct point {int x, y;};
3998 static struct point const zero = {0,0};
3999 /* AIX XL C 1.02.0.0 rejects this.
4000 It does not let you subtract one const X* pointer from another in
4001 an arm of an if-expression whose if-part is not a constant
4003 const char *g = "string";
4004 ccp = &g + (g ? g-g : 0);
4005 /* HPUX 7.0 cc rejects these. */
4008 ccp = (char const *const *) p;
4009 { /* SCO 3.2v4 cc rejects this. */
4011 char const *s = 0 ? (char *) 0 : (char const *) 0;
4015 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4017 const int *foo = &x[0];
4020 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4021 typedef const int *iptr;
4025 { /* AIX XL C 1.02.0.0 rejects this saying
4026 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4027 struct s { int j; const int *ap[3]; };
4028 struct s *b; b->j = 5;
4030 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4039 rm -f conftest.
$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try
='test -s conftest.$ac_objext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4053 echo "$as_me: failed program was:" >&5
4054 cat conftest.
$ac_ext >&5
4057 rm -f conftest.
$ac_objext conftest.
$ac_ext
4059 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4060 echo "${ECHO_T}$ac_cv_c_const" >&6
4061 if test $ac_cv_c_const = no
; then
4063 cat >>confdefs.h
<<\_ACEOF
4069 echo "$as_me:$LINENO: checking for inline" >&5
4070 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4071 if test "${ac_cv_c_inline+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 for ac_kw
in inline __inline__ __inline
; do
4076 cat >conftest.
$ac_ext <<_ACEOF
4077 #line $LINENO "configure"
4078 #include "confdefs.h"
4080 static $ac_kw int static_foo () {return 0; }
4081 $ac_kw int foo () {return 0; }
4085 rm -f conftest.
$ac_objext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try
='test -s conftest.$ac_objext'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 ac_cv_c_inline
=$ac_kw; break
4099 echo "$as_me: failed program was:" >&5
4100 cat conftest.
$ac_ext >&5
4102 rm -f conftest.
$ac_objext conftest.
$ac_ext
4106 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4107 echo "${ECHO_T}$ac_cv_c_inline" >&6
4108 case $ac_cv_c_inline in
4111 cat >>confdefs.h
<<\_ACEOF
4115 *) cat >>confdefs.h
<<_ACEOF
4116 #define inline $ac_cv_c_inline
4121 echo "$as_me:$LINENO: checking for function prototypes" >&5
4122 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4123 if test "$am_cv_prog_cc_stdc" != no
; then
4124 echo "$as_me:$LINENO: result: yes" >&5
4125 echo "${ECHO_T}yes" >&6
4127 cat >>confdefs.h
<<\_ACEOF
4128 #define PROTOTYPES 1
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4135 U
=_ ANSI2KNR
=.
/ansi2knr
4137 # Ensure some checks needed by ansi2knr itself.
4138 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4139 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4140 if test "${ac_cv_header_stdc+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 cat >conftest.
$ac_ext <<_ACEOF
4144 #line $LINENO "configure"
4145 #include "confdefs.h"
4152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4153 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4155 egrep -v '^ *\+' conftest.er1
>conftest.err
4157 cat conftest.err
>&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } >/dev
/null
; then
4160 if test -s conftest.err
; then
4161 ac_cpp_err
=$ac_c_preproc_warn_flag
4168 if test -z "$ac_cpp_err"; then
4169 ac_cv_header_stdc
=yes
4171 echo "$as_me: failed program was:" >&5
4172 cat conftest.
$ac_ext >&5
4173 ac_cv_header_stdc
=no
4175 rm -f conftest.err conftest.
$ac_ext
4177 if test $ac_cv_header_stdc = yes; then
4178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4179 cat >conftest.
$ac_ext <<_ACEOF
4180 #line $LINENO "configure"
4181 #include "confdefs.h"
4185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4186 egrep "memchr" >/dev
/null
2>&1; then
4189 ac_cv_header_stdc
=no
4195 if test $ac_cv_header_stdc = yes; then
4196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4197 cat >conftest.
$ac_ext <<_ACEOF
4198 #line $LINENO "configure"
4199 #include "confdefs.h"
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 egrep "free" >/dev
/null
2>&1; then
4207 ac_cv_header_stdc
=no
4213 if test $ac_cv_header_stdc = yes; then
4214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4215 if test "$cross_compiling" = yes; then
4218 cat >conftest.
$ac_ext <<_ACEOF
4219 #line $LINENO "configure"
4220 #include "confdefs.h"
4222 #if ((' ' & 0x0FF) == 0x020)
4223 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4224 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4226 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4227 || ('j' <= (c) && (c) <= 'r') \
4228 || ('s' <= (c) && (c) <= 'z'))
4229 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4237 for (i = 0; i < 256; i++)
4238 if (XOR (islower (i), ISLOWER (i))
4239 || toupper (i) != TOUPPER (i))
4244 rm -f conftest
$ac_exeext
4245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4246 (eval $ac_link) 2>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4257 echo "$as_me: program exited with status $ac_status" >&5
4258 echo "$as_me: failed program was:" >&5
4259 cat conftest.
$ac_ext >&5
4261 ac_cv_header_stdc
=no
4263 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4267 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4268 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4269 if test $ac_cv_header_stdc = yes; then
4271 cat >>confdefs.h
<<\_ACEOF
4272 #define STDC_HEADERS 1
4277 for ac_header
in string.h
4279 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4281 echo "$as_me:$LINENO: checking for $ac_header" >&5
4282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4289 # Is the header compilable?
4290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4292 cat >conftest.
$ac_ext <<_ACEOF
4293 #line $LINENO "configure"
4294 #include "confdefs.h"
4295 $ac_includes_default
4296 #include <$ac_header>
4298 rm -f conftest.
$ac_objext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300 (eval $ac_compile) 2>&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try
='test -s conftest.$ac_objext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 ac_header_compiler
=yes
4312 echo "$as_me: failed program was:" >&5
4313 cat conftest.
$ac_ext >&5
4314 ac_header_compiler
=no
4316 rm -f conftest.
$ac_objext conftest.
$ac_ext
4317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4318 echo "${ECHO_T}$ac_header_compiler" >&6
4320 # Is the header present?
4321 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4323 cat >conftest.
$ac_ext <<_ACEOF
4324 #line $LINENO "configure"
4325 #include "confdefs.h"
4326 #include <$ac_header>
4328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4329 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4331 egrep -v '^ *\+' conftest.er1
>conftest.err
4333 cat conftest.err
>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } >/dev
/null
; then
4336 if test -s conftest.err
; then
4337 ac_cpp_err
=$ac_c_preproc_warn_flag
4344 if test -z "$ac_cpp_err"; then
4345 ac_header_preproc
=yes
4347 echo "$as_me: failed program was:" >&5
4348 cat conftest.
$ac_ext >&5
4349 ac_header_preproc
=no
4351 rm -f conftest.err conftest.
$ac_ext
4352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4353 echo "${ECHO_T}$ac_header_preproc" >&6
4355 # So? What about this header?
4356 case $ac_header_compiler:$ac_header_preproc in
4358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4370 echo "$as_me:$LINENO: checking for $ac_header" >&5
4371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 eval "$as_ac_Header=$ac_header_preproc"
4377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4382 cat >>confdefs.h
<<_ACEOF
4383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4390 # Checks for library functions.
4391 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4392 # for constant arguments. Useless!
4393 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4394 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4395 if test "${ac_cv_working_alloca_h+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 cat >conftest.
$ac_ext <<_ACEOF
4399 #line $LINENO "configure"
4400 #include "confdefs.h"
4402 #ifdef F77_DUMMY_MAIN
4406 int F77_DUMMY_MAIN() { return 1; }
4411 char *p = (char *) alloca (2 * sizeof (int));
4416 rm -f conftest.
$ac_objext conftest
$ac_exeext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4418 (eval $ac_link) 2>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try
='test -s conftest$ac_exeext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_working_alloca_h
=yes
4430 echo "$as_me: failed program was:" >&5
4431 cat conftest.
$ac_ext >&5
4432 ac_cv_working_alloca_h
=no
4434 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4436 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4437 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4438 if test $ac_cv_working_alloca_h = yes; then
4440 cat >>confdefs.h
<<\_ACEOF
4441 #define HAVE_ALLOCA_H 1
4446 echo "$as_me:$LINENO: checking for alloca" >&5
4447 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4448 if test "${ac_cv_func_alloca_works+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 cat >conftest.
$ac_ext <<_ACEOF
4452 #line $LINENO "configure"
4453 #include "confdefs.h"
4455 # define alloca __builtin_alloca
4458 # include <malloc.h>
4459 # define alloca _alloca
4462 # include <alloca.h>
4467 # ifndef alloca /* predefined by HP cc +Olibcalls */
4475 #ifdef F77_DUMMY_MAIN
4479 int F77_DUMMY_MAIN() { return 1; }
4484 char *p = (char *) alloca (1);
4489 rm -f conftest.
$ac_objext conftest
$ac_exeext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491 (eval $ac_link) 2>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try
='test -s conftest$ac_exeext'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 ac_cv_func_alloca_works
=yes
4503 echo "$as_me: failed program was:" >&5
4504 cat conftest.
$ac_ext >&5
4505 ac_cv_func_alloca_works
=no
4507 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4509 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4510 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4512 if test $ac_cv_func_alloca_works = yes; then
4514 cat >>confdefs.h
<<\_ACEOF
4515 #define HAVE_ALLOCA 1
4519 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4520 # that cause trouble. Some versions do not even contain alloca or
4521 # contain a buggy version. If you still want to use their alloca,
4522 # use ar to extract alloca.o from them instead of compiling alloca.c.
4524 ALLOCA
=alloca.
$ac_objext
4526 cat >>confdefs.h
<<\_ACEOF
4530 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4531 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4532 if test "${ac_cv_os_cray+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 cat >conftest.
$ac_ext <<_ACEOF
4536 #line $LINENO "configure"
4537 #include "confdefs.h"
4538 #if defined(CRAY) && ! defined(CRAY2)
4545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4546 egrep "webecray" >/dev
/null
2>&1; then
4554 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4555 echo "${ECHO_T}$ac_cv_os_cray" >&6
4556 if test $ac_cv_os_cray = yes; then
4557 for ac_func
in _getb67 GETB67 getb67
; do
4558 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4559 echo "$as_me:$LINENO: checking for $ac_func" >&5
4560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4561 if eval "test \"\${$as_ac_var+set}\" = set"; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 cat >conftest.
$ac_ext <<_ACEOF
4565 #line $LINENO "configure"
4566 #include "confdefs.h"
4567 /* System header to define __stub macros and hopefully few prototypes,
4568 which can conflict with char $ac_func (); below. */
4570 /* Override any gcc2 internal prototype to avoid an error. */
4574 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */
4579 #ifdef F77_DUMMY_MAIN
4583 int F77_DUMMY_MAIN() { return 1; }
4588 /* The GNU C library defines this for functions which it implements
4589 to always fail with ENOSYS. Some functions are actually named
4590 something starting with __ and the normal name is an alias. */
4591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4601 rm -f conftest.
$ac_objext conftest
$ac_exeext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4603 (eval $ac_link) 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try
='test -s conftest$ac_exeext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 eval "$as_ac_var=yes"
4615 echo "$as_me: failed program was:" >&5
4616 cat conftest.
$ac_ext >&5
4617 eval "$as_ac_var=no"
4619 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4623 if test `eval echo '${'$as_ac_var'}'` = yes; then
4625 cat >>confdefs.h
<<_ACEOF
4626 #define CRAY_STACKSEG_END $ac_func
4635 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4636 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4637 if test "${ac_cv_c_stack_direction+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 if test "$cross_compiling" = yes; then
4641 ac_cv_c_stack_direction
=0
4643 cat >conftest.
$ac_ext <<_ACEOF
4644 #line $LINENO "configure"
4645 #include "confdefs.h"
4647 find_stack_direction ()
4649 static char *addr = 0;
4654 return find_stack_direction ();
4657 return (&dummy > addr) ? 1 : -1;
4663 exit (find_stack_direction () < 0);
4666 rm -f conftest
$ac_exeext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4668 (eval $ac_link) 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4677 ac_cv_c_stack_direction
=1
4679 echo "$as_me: program exited with status $ac_status" >&5
4680 echo "$as_me: failed program was:" >&5
4681 cat conftest.
$ac_ext >&5
4683 ac_cv_c_stack_direction
=-1
4685 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4688 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4689 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4691 cat >>confdefs.h
<<_ACEOF
4692 #define STACK_DIRECTION $ac_cv_c_stack_direction
4697 for ac_func
in mkstemp setlocale
4699 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4700 echo "$as_me:$LINENO: checking for $ac_func" >&5
4701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4702 if eval "test \"\${$as_ac_var+set}\" = set"; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 cat >conftest.
$ac_ext <<_ACEOF
4706 #line $LINENO "configure"
4707 #include "confdefs.h"
4708 /* System header to define __stub macros and hopefully few prototypes,
4709 which can conflict with char $ac_func (); below. */
4711 /* Override any gcc2 internal prototype to avoid an error. */
4715 /* We use char because int might match the return type of a gcc2
4716 builtin and then its argument prototype would still apply. */
4720 #ifdef F77_DUMMY_MAIN
4724 int F77_DUMMY_MAIN() { return 1; }
4729 /* The GNU C library defines this for functions which it implements
4730 to always fail with ENOSYS. Some functions are actually named
4731 something starting with __ and the normal name is an alias. */
4732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4742 rm -f conftest.
$ac_objext conftest
$ac_exeext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try
='test -s conftest$ac_exeext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 eval "$as_ac_var=yes"
4756 echo "$as_me: failed program was:" >&5
4757 cat conftest.
$ac_ext >&5
4758 eval "$as_ac_var=no"
4760 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4764 if test `eval echo '${'$as_ac_var'}'` = yes; then
4765 cat >>confdefs.h
<<_ACEOF
4766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4772 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4773 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4774 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 cat >conftest.
$ac_ext <<_ACEOF
4778 #line $LINENO "configure"
4779 #include "confdefs.h"
4780 $ac_includes_default
4781 #ifdef F77_DUMMY_MAIN
4785 int F77_DUMMY_MAIN() { return 1; }
4791 char *p = (char *) stpcpy;
4798 rm -f conftest.
$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try
='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 ac_cv_have_decl_stpcpy
=yes
4812 echo "$as_me: failed program was:" >&5
4813 cat conftest.
$ac_ext >&5
4814 ac_cv_have_decl_stpcpy
=no
4816 rm -f conftest.
$ac_objext conftest.
$ac_ext
4818 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4819 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4820 if test $ac_cv_have_decl_stpcpy = yes; then
4822 cat >>confdefs.h
<<_ACEOF
4823 #define HAVE_DECL_STPCPY 1
4827 cat >>confdefs.h
<<_ACEOF
4828 #define HAVE_DECL_STPCPY 0
4832 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4833 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4834 if test "${ac_cv_have_decl_strndup+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 cat >conftest.
$ac_ext <<_ACEOF
4838 #line $LINENO "configure"
4839 #include "confdefs.h"
4840 $ac_includes_default
4841 #ifdef F77_DUMMY_MAIN
4845 int F77_DUMMY_MAIN() { return 1; }
4851 char *p = (char *) strndup;
4858 rm -f conftest.
$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try
='test -s conftest.$ac_objext'
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_have_decl_strndup
=yes
4872 echo "$as_me: failed program was:" >&5
4873 cat conftest.
$ac_ext >&5
4874 ac_cv_have_decl_strndup
=no
4876 rm -f conftest.
$ac_objext conftest.
$ac_ext
4878 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4879 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4880 if test $ac_cv_have_decl_strndup = yes; then
4882 cat >>confdefs.h
<<_ACEOF
4883 #define HAVE_DECL_STRNDUP 1
4887 cat >>confdefs.h
<<_ACEOF
4888 #define HAVE_DECL_STRNDUP 0
4892 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4893 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4894 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 cat >conftest.
$ac_ext <<_ACEOF
4898 #line $LINENO "configure"
4899 #include "confdefs.h"
4900 $ac_includes_default
4901 #ifdef F77_DUMMY_MAIN
4905 int F77_DUMMY_MAIN() { return 1; }
4911 char *p = (char *) strnlen;
4918 rm -f conftest.
$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try
='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 ac_cv_have_decl_strnlen
=yes
4932 echo "$as_me: failed program was:" >&5
4933 cat conftest.
$ac_ext >&5
4934 ac_cv_have_decl_strnlen
=no
4936 rm -f conftest.
$ac_objext conftest.
$ac_ext
4938 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
4939 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4940 if test $ac_cv_have_decl_strnlen = yes; then
4942 cat >>confdefs.h
<<_ACEOF
4943 #define HAVE_DECL_STRNLEN 1
4947 cat >>confdefs.h
<<_ACEOF
4948 #define HAVE_DECL_STRNLEN 0
4952 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
4953 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4954 if test "${ac_cv_have_decl_memchr+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 cat >conftest.
$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4959 #include "confdefs.h"
4960 $ac_includes_default
4961 #ifdef F77_DUMMY_MAIN
4965 int F77_DUMMY_MAIN() { return 1; }
4971 char *p = (char *) memchr;
4978 rm -f conftest.
$ac_objext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try
='test -s conftest.$ac_objext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 ac_cv_have_decl_memchr
=yes
4992 echo "$as_me: failed program was:" >&5
4993 cat conftest.
$ac_ext >&5
4994 ac_cv_have_decl_memchr
=no
4996 rm -f conftest.
$ac_objext conftest.
$ac_ext
4998 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
4999 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5000 if test $ac_cv_have_decl_memchr = yes; then
5002 cat >>confdefs.h
<<_ACEOF
5003 #define HAVE_DECL_MEMCHR 1
5007 cat >>confdefs.h
<<_ACEOF
5008 #define HAVE_DECL_MEMCHR 0
5013 for ac_func
in stpcpy strndup strnlen strspn memchr
5015 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5016 echo "$as_me:$LINENO: checking for $ac_func" >&5
5017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5018 if eval "test \"\${$as_ac_var+set}\" = set"; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 cat >conftest.
$ac_ext <<_ACEOF
5022 #line $LINENO "configure"
5023 #include "confdefs.h"
5024 /* System header to define __stub macros and hopefully few prototypes,
5025 which can conflict with char $ac_func (); below. */
5027 /* Override any gcc2 internal prototype to avoid an error. */
5031 /* We use char because int might match the return type of a gcc2
5032 builtin and then its argument prototype would still apply. */
5036 #ifdef F77_DUMMY_MAIN
5040 int F77_DUMMY_MAIN() { return 1; }
5045 /* The GNU C library defines this for functions which it implements
5046 to always fail with ENOSYS. Some functions are actually named
5047 something starting with __ and the normal name is an alias. */
5048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5058 rm -f conftest.
$ac_objext conftest
$ac_exeext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060 (eval $ac_link) 2>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try
='test -s conftest$ac_exeext'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; }; then
5070 eval "$as_ac_var=yes"
5072 echo "$as_me: failed program was:" >&5
5073 cat conftest.
$ac_ext >&5
5074 eval "$as_ac_var=no"
5076 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5080 if test `eval echo '${'$as_ac_var'}'` = yes; then
5081 cat >>confdefs.h
<<_ACEOF
5082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5086 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5090 cat >>confdefs.h
<<_ACEOF
5091 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5094 echo "$as_me:$LINENO: checking for working malloc" >&5
5095 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5096 if test "${jm_cv_func_working_malloc+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 if test "$cross_compiling" = yes; then
5100 jm_cv_func_working_malloc
=no
5102 cat >conftest.
$ac_ext <<_ACEOF
5103 #line $LINENO "configure"
5104 #include "confdefs.h"
5110 exit (malloc (0) ? 0 : 1);
5114 rm -f conftest
$ac_exeext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116 (eval $ac_link) 2>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 jm_cv_func_working_malloc
=yes
5127 echo "$as_me: program exited with status $ac_status" >&5
5128 echo "$as_me: failed program was:" >&5
5129 cat conftest.
$ac_ext >&5
5131 jm_cv_func_working_malloc
=no
5133 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5137 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5138 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5139 if test $jm_cv_func_working_malloc = no
; then
5141 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5143 cat >>confdefs.h
<<_ACEOF
5144 #define malloc rpl_malloc
5149 cat >>confdefs.h
<<_ACEOF
5150 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5153 echo "$as_me:$LINENO: checking for working realloc" >&5
5154 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5155 if test "${jm_cv_func_working_realloc+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 if test "$cross_compiling" = yes; then
5159 jm_cv_func_working_realloc
=no
5161 cat >conftest.
$ac_ext <<_ACEOF
5162 #line $LINENO "configure"
5163 #include "confdefs.h"
5169 exit (realloc (0, 0) ? 0 : 1);
5173 rm -f conftest
$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175 (eval $ac_link) 2>&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 jm_cv_func_working_realloc
=yes
5186 echo "$as_me: program exited with status $ac_status" >&5
5187 echo "$as_me: failed program was:" >&5
5188 cat conftest.
$ac_ext >&5
5190 jm_cv_func_working_realloc
=no
5192 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5196 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5197 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5198 if test $jm_cv_func_working_realloc = no
; then
5200 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5202 cat >>confdefs.h
<<_ACEOF
5203 #define realloc rpl_realloc
5208 for ac_func
in isascii iswprint mbsinit
5210 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5211 echo "$as_me:$LINENO: checking for $ac_func" >&5
5212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5213 if eval "test \"\${$as_ac_var+set}\" = set"; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 cat >conftest.
$ac_ext <<_ACEOF
5217 #line $LINENO "configure"
5218 #include "confdefs.h"
5219 /* System header to define __stub macros and hopefully few prototypes,
5220 which can conflict with char $ac_func (); below. */
5222 /* Override any gcc2 internal prototype to avoid an error. */
5226 /* We use char because int might match the return type of a gcc2
5227 builtin and then its argument prototype would still apply. */
5231 #ifdef F77_DUMMY_MAIN
5235 int F77_DUMMY_MAIN() { return 1; }
5240 /* The GNU C library defines this for functions which it implements
5241 to always fail with ENOSYS. Some functions are actually named
5242 something starting with __ and the normal name is an alias. */
5243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5253 rm -f conftest.
$ac_objext conftest
$ac_exeext
5254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5255 (eval $ac_link) 2>&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } &&
5259 { ac_try
='test -s conftest$ac_exeext'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
5265 eval "$as_ac_var=yes"
5267 echo "$as_me: failed program was:" >&5
5268 cat conftest.
$ac_ext >&5
5269 eval "$as_ac_var=no"
5271 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5275 if test `eval echo '${'$as_ac_var'}'` = yes; then
5276 cat >>confdefs.h
<<_ACEOF
5277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5283 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5284 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5285 if test "${jm_cv_func_mbrtowc+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 cat >conftest.
$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5290 #include "confdefs.h"
5292 #ifdef F77_DUMMY_MAIN
5296 int F77_DUMMY_MAIN() { return 1; }
5301 mbstate_t state; return ! (sizeof state && mbrtowc);
5306 rm -f conftest.
$ac_objext conftest
$ac_exeext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5308 (eval $ac_link) 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try
='test -s conftest$ac_exeext'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5318 jm_cv_func_mbrtowc
=yes
5320 echo "$as_me: failed program was:" >&5
5321 cat conftest.
$ac_ext >&5
5322 jm_cv_func_mbrtowc
=no
5324 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5326 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5327 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5328 if test $jm_cv_func_mbrtowc = yes; then
5330 cat >>confdefs.h
<<\_ACEOF
5331 #define HAVE_MBRTOWC 1
5336 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5338 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5340 echo "$as_me:$LINENO: checking for $ac_header" >&5
5341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5348 # Is the header compilable?
5349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5351 cat >conftest.
$ac_ext <<_ACEOF
5352 #line $LINENO "configure"
5353 #include "confdefs.h"
5354 $ac_includes_default
5355 #include <$ac_header>
5357 rm -f conftest.
$ac_objext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359 (eval $ac_compile) 2>&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try
='test -s conftest.$ac_objext'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 ac_header_compiler
=yes
5371 echo "$as_me: failed program was:" >&5
5372 cat conftest.
$ac_ext >&5
5373 ac_header_compiler
=no
5375 rm -f conftest.
$ac_objext conftest.
$ac_ext
5376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5377 echo "${ECHO_T}$ac_header_compiler" >&6
5379 # Is the header present?
5380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5382 cat >conftest.
$ac_ext <<_ACEOF
5383 #line $LINENO "configure"
5384 #include "confdefs.h"
5385 #include <$ac_header>
5387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5388 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5390 egrep -v '^ *\+' conftest.er1
>conftest.err
5392 cat conftest.err
>&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } >/dev
/null
; then
5395 if test -s conftest.err
; then
5396 ac_cpp_err
=$ac_c_preproc_warn_flag
5403 if test -z "$ac_cpp_err"; then
5404 ac_header_preproc
=yes
5406 echo "$as_me: failed program was:" >&5
5407 cat conftest.
$ac_ext >&5
5408 ac_header_preproc
=no
5410 rm -f conftest.err conftest.
$ac_ext
5411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5412 echo "${ECHO_T}$ac_header_preproc" >&6
5414 # So? What about this header?
5415 case $ac_header_compiler:$ac_header_preproc in
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5429 echo "$as_me:$LINENO: checking for $ac_header" >&5
5430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 eval "$as_ac_Header=$ac_header_preproc"
5436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5441 cat >>confdefs.h
<<_ACEOF
5442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5449 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5450 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5451 if test "${ac_cv_header_stdc+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 cat >conftest.
$ac_ext <<_ACEOF
5455 #line $LINENO "configure"
5456 #include "confdefs.h"
5463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5464 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5466 egrep -v '^ *\+' conftest.er1
>conftest.err
5468 cat conftest.err
>&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } >/dev
/null
; then
5471 if test -s conftest.err
; then
5472 ac_cpp_err
=$ac_c_preproc_warn_flag
5479 if test -z "$ac_cpp_err"; then
5480 ac_cv_header_stdc
=yes
5482 echo "$as_me: failed program was:" >&5
5483 cat conftest.
$ac_ext >&5
5484 ac_cv_header_stdc
=no
5486 rm -f conftest.err conftest.
$ac_ext
5488 if test $ac_cv_header_stdc = yes; then
5489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5490 cat >conftest.
$ac_ext <<_ACEOF
5491 #line $LINENO "configure"
5492 #include "confdefs.h"
5496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5497 egrep "memchr" >/dev
/null
2>&1; then
5500 ac_cv_header_stdc
=no
5506 if test $ac_cv_header_stdc = yes; then
5507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5508 cat >conftest.
$ac_ext <<_ACEOF
5509 #line $LINENO "configure"
5510 #include "confdefs.h"
5514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5515 egrep "free" >/dev
/null
2>&1; then
5518 ac_cv_header_stdc
=no
5524 if test $ac_cv_header_stdc = yes; then
5525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5526 if test "$cross_compiling" = yes; then
5529 cat >conftest.
$ac_ext <<_ACEOF
5530 #line $LINENO "configure"
5531 #include "confdefs.h"
5533 #if ((' ' & 0x0FF) == 0x020)
5534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5537 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5538 || ('j' <= (c) && (c) <= 'r') \
5539 || ('s' <= (c) && (c) <= 'z'))
5540 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5543 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5548 for (i = 0; i < 256; i++)
5549 if (XOR (islower (i), ISLOWER (i))
5550 || toupper (i) != TOUPPER (i))
5555 rm -f conftest
$ac_exeext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; }; then
5568 echo "$as_me: program exited with status $ac_status" >&5
5569 echo "$as_me: failed program was:" >&5
5570 cat conftest.
$ac_ext >&5
5572 ac_cv_header_stdc
=no
5574 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5578 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5579 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5580 if test $ac_cv_header_stdc = yes; then
5582 cat >>confdefs.h
<<\_ACEOF
5583 #define STDC_HEADERS 1
5588 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5589 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5590 if test "${ac_cv_c_backslash_a+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 cat >conftest.
$ac_ext <<_ACEOF
5594 #line $LINENO "configure"
5595 #include "confdefs.h"
5597 #ifdef F77_DUMMY_MAIN
5601 int F77_DUMMY_MAIN() { return 1; }
5610 char buf['\a' == 'a' ? -1 : 1];
5612 return buf[0] != "\a"[0];
5618 rm -f conftest.
$ac_objext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } &&
5624 { ac_try
='test -s conftest.$ac_objext'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5630 ac_cv_c_backslash_a
=yes
5632 echo "$as_me: failed program was:" >&5
5633 cat conftest.
$ac_ext >&5
5634 ac_cv_c_backslash_a
=no
5636 rm -f conftest.
$ac_objext conftest.
$ac_ext
5638 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5639 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5640 if test $ac_cv_c_backslash_a = yes; then
5642 cat >>confdefs.h
<<\_ACEOF
5643 #define HAVE_C_BACKSLASH_A 1
5648 for ac_header
in stdlib.h
5650 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5652 echo "$as_me:$LINENO: checking for $ac_header" >&5
5653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5660 # Is the header compilable?
5661 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5663 cat >conftest.
$ac_ext <<_ACEOF
5664 #line $LINENO "configure"
5665 #include "confdefs.h"
5666 $ac_includes_default
5667 #include <$ac_header>
5669 rm -f conftest.
$ac_objext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try
='test -s conftest.$ac_objext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 ac_header_compiler
=yes
5683 echo "$as_me: failed program was:" >&5
5684 cat conftest.
$ac_ext >&5
5685 ac_header_compiler
=no
5687 rm -f conftest.
$ac_objext conftest.
$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5689 echo "${ECHO_T}$ac_header_compiler" >&6
5691 # Is the header present?
5692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5694 cat >conftest.
$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5696 #include "confdefs.h"
5697 #include <$ac_header>
5699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5700 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5702 egrep -v '^ *\+' conftest.er1
>conftest.err
5704 cat conftest.err
>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } >/dev
/null
; then
5707 if test -s conftest.err
; then
5708 ac_cpp_err
=$ac_c_preproc_warn_flag
5715 if test -z "$ac_cpp_err"; then
5716 ac_header_preproc
=yes
5718 echo "$as_me: failed program was:" >&5
5719 cat conftest.
$ac_ext >&5
5720 ac_header_preproc
=no
5722 rm -f conftest.err conftest.
$ac_ext
5723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5724 echo "${ECHO_T}$ac_header_preproc" >&6
5726 # So? What about this header?
5727 case $ac_header_compiler:$ac_header_preproc in
5729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5741 echo "$as_me:$LINENO: checking for $ac_header" >&5
5742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 eval "$as_ac_Header=$ac_header_preproc"
5748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5753 cat >>confdefs.h
<<_ACEOF
5754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5761 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5762 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5763 if test "${ac_cv_type_mbstate_t+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 cat >conftest.
$ac_ext <<_ACEOF
5767 #line $LINENO "configure"
5768 #include "confdefs.h"
5771 # include <stdlib.h>
5774 #ifdef F77_DUMMY_MAIN
5778 int F77_DUMMY_MAIN() { return 1; }
5783 mbstate_t x; return sizeof x;
5788 rm -f conftest.
$ac_objext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790 (eval $ac_compile) 2>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try
='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_cv_type_mbstate_t
=yes
5802 echo "$as_me: failed program was:" >&5
5803 cat conftest.
$ac_ext >&5
5804 ac_cv_type_mbstate_t
=no
5806 rm -f conftest.
$ac_objext conftest.
$ac_ext
5808 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5809 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5810 if test $ac_cv_type_mbstate_t = no
; then
5812 cat >>confdefs.h
<<\_ACEOF
5813 #define mbstate_t int
5818 echo "$as_me:$LINENO: checking for function prototypes" >&5
5819 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5820 if test "$am_cv_prog_cc_stdc" != no
; then
5821 echo "$as_me:$LINENO: result: yes" >&5
5822 echo "${ECHO_T}yes" >&6
5824 cat >>confdefs.h
<<\_ACEOF
5825 #define PROTOTYPES 1
5830 echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6
5832 U
=_ ANSI2KNR
=.
/ansi2knr
5834 # Ensure some checks needed by ansi2knr itself.
5835 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5837 if test "${ac_cv_header_stdc+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 cat >conftest.
$ac_ext <<_ACEOF
5841 #line $LINENO "configure"
5842 #include "confdefs.h"
5849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5850 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5852 egrep -v '^ *\+' conftest.er1
>conftest.err
5854 cat conftest.err
>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } >/dev
/null
; then
5857 if test -s conftest.err
; then
5858 ac_cpp_err
=$ac_c_preproc_warn_flag
5865 if test -z "$ac_cpp_err"; then
5866 ac_cv_header_stdc
=yes
5868 echo "$as_me: failed program was:" >&5
5869 cat conftest.
$ac_ext >&5
5870 ac_cv_header_stdc
=no
5872 rm -f conftest.err conftest.
$ac_ext
5874 if test $ac_cv_header_stdc = yes; then
5875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5876 cat >conftest.
$ac_ext <<_ACEOF
5877 #line $LINENO "configure"
5878 #include "confdefs.h"
5882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5883 egrep "memchr" >/dev
/null
2>&1; then
5886 ac_cv_header_stdc
=no
5892 if test $ac_cv_header_stdc = yes; then
5893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5894 cat >conftest.
$ac_ext <<_ACEOF
5895 #line $LINENO "configure"
5896 #include "confdefs.h"
5900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5901 egrep "free" >/dev
/null
2>&1; then
5904 ac_cv_header_stdc
=no
5910 if test $ac_cv_header_stdc = yes; then
5911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5912 if test "$cross_compiling" = yes; then
5915 cat >conftest.
$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 #include "confdefs.h"
5919 #if ((' ' & 0x0FF) == 0x020)
5920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5923 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5924 || ('j' <= (c) && (c) <= 'r') \
5925 || ('s' <= (c) && (c) <= 'z'))
5926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5934 for (i = 0; i < 256; i++)
5935 if (XOR (islower (i), ISLOWER (i))
5936 || toupper (i) != TOUPPER (i))
5941 rm -f conftest
$ac_exeext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5943 (eval $ac_link) 2>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5954 echo "$as_me: program exited with status $ac_status" >&5
5955 echo "$as_me: failed program was:" >&5
5956 cat conftest.
$ac_ext >&5
5958 ac_cv_header_stdc
=no
5960 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5965 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5966 if test $ac_cv_header_stdc = yes; then
5968 cat >>confdefs.h
<<\_ACEOF
5969 #define STDC_HEADERS 1
5974 for ac_header
in string.h
5976 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5978 echo "$as_me:$LINENO: checking for $ac_header" >&5
5979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5986 # Is the header compilable?
5987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5989 cat >conftest.
$ac_ext <<_ACEOF
5990 #line $LINENO "configure"
5991 #include "confdefs.h"
5992 $ac_includes_default
5993 #include <$ac_header>
5995 rm -f conftest.
$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 2>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try
='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_header_compiler
=yes
6009 echo "$as_me: failed program was:" >&5
6010 cat conftest.
$ac_ext >&5
6011 ac_header_compiler
=no
6013 rm -f conftest.
$ac_objext conftest.
$ac_ext
6014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6015 echo "${ECHO_T}$ac_header_compiler" >&6
6017 # Is the header present?
6018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6020 cat >conftest.
$ac_ext <<_ACEOF
6021 #line $LINENO "configure"
6022 #include "confdefs.h"
6023 #include <$ac_header>
6025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6026 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6028 egrep -v '^ *\+' conftest.er1
>conftest.err
6030 cat conftest.err
>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } >/dev
/null
; then
6033 if test -s conftest.err
; then
6034 ac_cpp_err
=$ac_c_preproc_warn_flag
6041 if test -z "$ac_cpp_err"; then
6042 ac_header_preproc
=yes
6044 echo "$as_me: failed program was:" >&5
6045 cat conftest.
$ac_ext >&5
6046 ac_header_preproc
=no
6048 rm -f conftest.err conftest.
$ac_ext
6049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6050 echo "${ECHO_T}$ac_header_preproc" >&6
6052 # So? What about this header?
6053 case $ac_header_compiler:$ac_header_preproc in
6055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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: checking for $ac_header" >&5
6068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 eval "$as_ac_Header=$ac_header_preproc"
6074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6079 cat >>confdefs.h
<<_ACEOF
6080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6087 for ac_func
in strerror strerror_r vprintf doprnt
6089 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6090 echo "$as_me:$LINENO: checking for $ac_func" >&5
6091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6092 if eval "test \"\${$as_ac_var+set}\" = set"; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 cat >conftest.
$ac_ext <<_ACEOF
6096 #line $LINENO "configure"
6097 #include "confdefs.h"
6098 /* System header to define __stub macros and hopefully few prototypes,
6099 which can conflict with char $ac_func (); below. */
6101 /* Override any gcc2 internal prototype to avoid an error. */
6105 /* We use char because int might match the return type of a gcc2
6106 builtin and then its argument prototype would still apply. */
6110 #ifdef F77_DUMMY_MAIN
6114 int F77_DUMMY_MAIN() { return 1; }
6119 /* The GNU C library defines this for functions which it implements
6120 to always fail with ENOSYS. Some functions are actually named
6121 something starting with __ and the normal name is an alias. */
6122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6132 rm -f conftest.
$ac_objext conftest
$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try
='test -s conftest$ac_exeext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 eval "$as_ac_var=yes"
6146 echo "$as_me: failed program was:" >&5
6147 cat conftest.
$ac_ext >&5
6148 eval "$as_ac_var=no"
6150 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6154 if test `eval echo '${'$as_ac_var'}'` = yes; then
6155 cat >>confdefs.h
<<_ACEOF
6156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6162 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6163 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6164 if test "${ac_cv_header_stdc+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 cat >conftest.
$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6169 #include "confdefs.h"
6176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6177 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6179 egrep -v '^ *\+' conftest.er1
>conftest.err
6181 cat conftest.err
>&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } >/dev
/null
; then
6184 if test -s conftest.err
; then
6185 ac_cpp_err
=$ac_c_preproc_warn_flag
6192 if test -z "$ac_cpp_err"; then
6193 ac_cv_header_stdc
=yes
6195 echo "$as_me: failed program was:" >&5
6196 cat conftest.
$ac_ext >&5
6197 ac_cv_header_stdc
=no
6199 rm -f conftest.err conftest.
$ac_ext
6201 if test $ac_cv_header_stdc = yes; then
6202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6203 cat >conftest.
$ac_ext <<_ACEOF
6204 #line $LINENO "configure"
6205 #include "confdefs.h"
6209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6210 egrep "memchr" >/dev
/null
2>&1; then
6213 ac_cv_header_stdc
=no
6219 if test $ac_cv_header_stdc = yes; then
6220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6221 cat >conftest.
$ac_ext <<_ACEOF
6222 #line $LINENO "configure"
6223 #include "confdefs.h"
6227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6228 egrep "free" >/dev
/null
2>&1; then
6231 ac_cv_header_stdc
=no
6237 if test $ac_cv_header_stdc = yes; then
6238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6239 if test "$cross_compiling" = yes; then
6242 cat >conftest.
$ac_ext <<_ACEOF
6243 #line $LINENO "configure"
6244 #include "confdefs.h"
6246 #if ((' ' & 0x0FF) == 0x020)
6247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6250 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6251 || ('j' <= (c) && (c) <= 'r') \
6252 || ('s' <= (c) && (c) <= 'z'))
6253 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6256 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6261 for (i = 0; i < 256; i++)
6262 if (XOR (islower (i), ISLOWER (i))
6263 || toupper (i) != TOUPPER (i))
6268 rm -f conftest
$ac_exeext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6270 (eval $ac_link) 2>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6281 echo "$as_me: program exited with status $ac_status" >&5
6282 echo "$as_me: failed program was:" >&5
6283 cat conftest.
$ac_ext >&5
6285 ac_cv_header_stdc
=no
6287 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6291 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6292 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6293 if test $ac_cv_header_stdc = yes; then
6295 cat >>confdefs.h
<<\_ACEOF
6296 #define STDC_HEADERS 1
6301 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6302 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6303 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 cat >conftest.
$ac_ext <<_ACEOF
6307 #line $LINENO "configure"
6308 #include "confdefs.h"
6309 $ac_includes_default
6310 #ifdef F77_DUMMY_MAIN
6314 int F77_DUMMY_MAIN() { return 1; }
6320 char *p = (char *) strerror_r;
6327 rm -f conftest.
$ac_objext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6329 (eval $ac_compile) 2>&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } &&
6333 { ac_try
='test -s conftest.$ac_objext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_have_decl_strerror_r
=yes
6341 echo "$as_me: failed program was:" >&5
6342 cat conftest.
$ac_ext >&5
6343 ac_cv_have_decl_strerror_r
=no
6345 rm -f conftest.
$ac_objext conftest.
$ac_ext
6347 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6348 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6349 if test $ac_cv_have_decl_strerror_r = yes; then
6351 cat >>confdefs.h
<<_ACEOF
6352 #define HAVE_DECL_STRERROR_R 1
6356 cat >>confdefs.h
<<_ACEOF
6357 #define HAVE_DECL_STRERROR_R 0
6362 for ac_func
in strerror_r
6364 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6365 echo "$as_me:$LINENO: checking for $ac_func" >&5
6366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6367 if eval "test \"\${$as_ac_var+set}\" = set"; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 cat >conftest.
$ac_ext <<_ACEOF
6371 #line $LINENO "configure"
6372 #include "confdefs.h"
6373 /* System header to define __stub macros and hopefully few prototypes,
6374 which can conflict with char $ac_func (); below. */
6376 /* Override any gcc2 internal prototype to avoid an error. */
6380 /* We use char because int might match the return type of a gcc2
6381 builtin and then its argument prototype would still apply. */
6385 #ifdef F77_DUMMY_MAIN
6389 int F77_DUMMY_MAIN() { return 1; }
6394 /* The GNU C library defines this for functions which it implements
6395 to always fail with ENOSYS. Some functions are actually named
6396 something starting with __ and the normal name is an alias. */
6397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6407 rm -f conftest.
$ac_objext conftest
$ac_exeext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6409 (eval $ac_link) 2>&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try
='test -s conftest$ac_exeext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6419 eval "$as_ac_var=yes"
6421 echo "$as_me: failed program was:" >&5
6422 cat conftest.
$ac_ext >&5
6423 eval "$as_ac_var=no"
6425 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6429 if test `eval echo '${'$as_ac_var'}'` = yes; then
6430 cat >>confdefs.h
<<_ACEOF
6431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6437 if test $ac_cv_func_strerror_r = yes; then
6439 for ac_header
in string.h
6441 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6443 echo "$as_me:$LINENO: checking for $ac_header" >&5
6444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6451 # Is the header compilable?
6452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6454 cat >conftest.
$ac_ext <<_ACEOF
6455 #line $LINENO "configure"
6456 #include "confdefs.h"
6457 $ac_includes_default
6458 #include <$ac_header>
6460 rm -f conftest.
$ac_objext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try
='test -s conftest.$ac_objext'
6467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 ac_header_compiler
=yes
6474 echo "$as_me: failed program was:" >&5
6475 cat conftest.
$ac_ext >&5
6476 ac_header_compiler
=no
6478 rm -f conftest.
$ac_objext conftest.
$ac_ext
6479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6480 echo "${ECHO_T}$ac_header_compiler" >&6
6482 # Is the header present?
6483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6485 cat >conftest.
$ac_ext <<_ACEOF
6486 #line $LINENO "configure"
6487 #include "confdefs.h"
6488 #include <$ac_header>
6490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6491 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6493 egrep -v '^ *\+' conftest.er1
>conftest.err
6495 cat conftest.err
>&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } >/dev
/null
; then
6498 if test -s conftest.err
; then
6499 ac_cpp_err
=$ac_c_preproc_warn_flag
6506 if test -z "$ac_cpp_err"; then
6507 ac_header_preproc
=yes
6509 echo "$as_me: failed program was:" >&5
6510 cat conftest.
$ac_ext >&5
6511 ac_header_preproc
=no
6513 rm -f conftest.err conftest.
$ac_ext
6514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6515 echo "${ECHO_T}$ac_header_preproc" >&6
6517 # So? What about this header?
6518 case $ac_header_compiler:$ac_header_preproc in
6520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6532 echo "$as_me:$LINENO: checking for $ac_header" >&5
6533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 eval "$as_ac_Header=$ac_header_preproc"
6539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6544 cat >>confdefs.h
<<_ACEOF
6545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6552 echo "$as_me:$LINENO: checking for working strerror_r" >&5
6553 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6554 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 cat >conftest.
$ac_ext <<_ACEOF
6559 #line $LINENO "configure"
6560 #include "confdefs.h"
6564 # include <string.h>
6567 #ifdef F77_DUMMY_MAIN
6571 int F77_DUMMY_MAIN() { return 1; }
6578 char x = *strerror_r (0, buf, sizeof buf);
6584 rm -f conftest.
$ac_objext
6585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586 (eval $ac_compile) 2>&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } &&
6590 { ac_try
='test -s conftest.$ac_objext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_func_strerror_r_works
=yes
6598 echo "$as_me: failed program was:" >&5
6599 cat conftest.
$ac_ext >&5
6600 ac_cv_func_strerror_r_works
=no
6603 rm -f conftest.
$ac_objext conftest.
$ac_ext
6604 if test $ac_cv_func_strerror_r_works = no
; then
6605 # strerror_r seems not to work, but now we have to choose between
6606 # systems that have relatively inaccessible declarations for the
6607 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6608 # former has a strerror_r that returns char*, while the latter
6609 # has a strerror_r that returns `int'.
6610 # This test should segfault on the DEC system.
6611 if test "$cross_compiling" = yes; then
6612 ac_cv_func_strerror_r_works
=no
6614 cat >conftest.
$ac_ext <<_ACEOF
6615 #line $LINENO "configure"
6616 #include "confdefs.h"
6619 # include <string.h>
6622 extern char *strerror_r ();
6628 char x = *strerror_r (0, buf, sizeof buf);
6629 exit (!isalpha (x));
6633 rm -f conftest
$ac_exeext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635 (eval $ac_link) 2>&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 ac_cv_func_strerror_r_works
=yes
6646 echo "$as_me: program exited with status $ac_status" >&5
6647 echo "$as_me: failed program was:" >&5
6648 cat conftest.
$ac_ext >&5
6650 ac_cv_func_strerror_r_works
=no
6652 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6657 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5
6658 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6659 if test $ac_cv_func_strerror_r_works = yes; then
6661 cat >>confdefs.h
<<_ACEOF
6662 #define HAVE_WORKING_STRERROR_R 1
6668 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6669 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6671 # Check whether --with-dmalloc or --without-dmalloc was given.
6672 if test "${with_dmalloc+set}" = set; then
6673 withval
="$with_dmalloc"
6674 if test "$withval" = yes; then
6675 echo "$as_me:$LINENO: result: yes" >&5
6676 echo "${ECHO_T}yes" >&6
6678 cat >>confdefs.h
<<\_ACEOF
6679 #define WITH_DMALLOC 1
6682 LIBS
="$LIBS -ldmalloc"
6683 LDFLAGS
="$LDFLAGS -g"
6685 echo "$as_me:$LINENO: result: no" >&5
6686 echo "${ECHO_T}no" >&6
6689 echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6
6693 ALL_LINGUAS
="de es et fr ja nl tr ru"
6694 # Make sure we can run config.sub.
6695 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6696 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6697 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6698 { (exit 1); exit 1; }; }
6700 echo "$as_me:$LINENO: checking build system type" >&5
6701 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6702 if test "${ac_cv_build+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_cv_build_alias
=$build_alias
6706 test -z "$ac_cv_build_alias" &&
6707 ac_cv_build_alias
=`$ac_config_guess`
6708 test -z "$ac_cv_build_alias" &&
6709 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6710 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6711 { (exit 1); exit 1; }; }
6712 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6713 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6714 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6715 { (exit 1); exit 1; }; }
6718 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6719 echo "${ECHO_T}$ac_cv_build" >&6
6721 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6722 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6723 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6725 echo "$as_me:$LINENO: checking host system type" >&5
6726 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6727 if test "${ac_cv_host+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 ac_cv_host_alias
=$host_alias
6731 test -z "$ac_cv_host_alias" &&
6732 ac_cv_host_alias
=$ac_cv_build_alias
6733 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6734 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6735 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6736 { (exit 1); exit 1; }; }
6739 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6740 echo "${ECHO_T}$ac_cv_host" >&6
6742 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6743 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6744 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6746 echo "$as_me:$LINENO: checking for off_t" >&5
6747 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6748 if test "${ac_cv_type_off_t+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 cat >conftest.
$ac_ext <<_ACEOF
6752 #line $LINENO "configure"
6753 #include "confdefs.h"
6754 $ac_includes_default
6755 #ifdef F77_DUMMY_MAIN
6759 int F77_DUMMY_MAIN() { return 1; }
6772 rm -f conftest.
$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774 (eval $ac_compile) 2>&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try
='test -s conftest.$ac_objext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6784 ac_cv_type_off_t
=yes
6786 echo "$as_me: failed program was:" >&5
6787 cat conftest.
$ac_ext >&5
6790 rm -f conftest.
$ac_objext conftest.
$ac_ext
6792 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6793 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6794 if test $ac_cv_type_off_t = yes; then
6798 cat >>confdefs.h
<<_ACEOF
6804 echo "$as_me:$LINENO: checking for size_t" >&5
6805 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6806 if test "${ac_cv_type_size_t+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 cat >conftest.
$ac_ext <<_ACEOF
6810 #line $LINENO "configure"
6811 #include "confdefs.h"
6812 $ac_includes_default
6813 #ifdef F77_DUMMY_MAIN
6817 int F77_DUMMY_MAIN() { return 1; }
6824 if (sizeof (size_t))
6830 rm -f conftest.
$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try
='test -s conftest.$ac_objext'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 ac_cv_type_size_t
=yes
6844 echo "$as_me: failed program was:" >&5
6845 cat conftest.
$ac_ext >&5
6846 ac_cv_type_size_t
=no
6848 rm -f conftest.
$ac_objext conftest.
$ac_ext
6850 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6851 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6852 if test $ac_cv_type_size_t = yes; then
6856 cat >>confdefs.h
<<_ACEOF
6857 #define size_t unsigned
6862 for ac_header
in stdlib.h unistd.h
6864 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6866 echo "$as_me:$LINENO: checking for $ac_header" >&5
6867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6874 # Is the header compilable?
6875 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6877 cat >conftest.
$ac_ext <<_ACEOF
6878 #line $LINENO "configure"
6879 #include "confdefs.h"
6880 $ac_includes_default
6881 #include <$ac_header>
6883 rm -f conftest.
$ac_objext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885 (eval $ac_compile) 2>&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
6889 { ac_try
='test -s conftest.$ac_objext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_header_compiler
=yes
6897 echo "$as_me: failed program was:" >&5
6898 cat conftest.
$ac_ext >&5
6899 ac_header_compiler
=no
6901 rm -f conftest.
$ac_objext conftest.
$ac_ext
6902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6903 echo "${ECHO_T}$ac_header_compiler" >&6
6905 # Is the header present?
6906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6908 cat >conftest.
$ac_ext <<_ACEOF
6909 #line $LINENO "configure"
6910 #include "confdefs.h"
6911 #include <$ac_header>
6913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6916 egrep -v '^ *\+' conftest.er1
>conftest.err
6918 cat conftest.err
>&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } >/dev
/null
; then
6921 if test -s conftest.err
; then
6922 ac_cpp_err
=$ac_c_preproc_warn_flag
6929 if test -z "$ac_cpp_err"; then
6930 ac_header_preproc
=yes
6932 echo "$as_me: failed program was:" >&5
6933 cat conftest.
$ac_ext >&5
6934 ac_header_preproc
=no
6936 rm -f conftest.err conftest.
$ac_ext
6937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6938 echo "${ECHO_T}$ac_header_preproc" >&6
6940 # So? What about this header?
6941 case $ac_header_compiler:$ac_header_preproc in
6943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6955 echo "$as_me:$LINENO: checking for $ac_header" >&5
6956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 eval "$as_ac_Header=$ac_header_preproc"
6962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6967 cat >>confdefs.h
<<_ACEOF
6968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6975 for ac_func
in getpagesize
6977 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6978 echo "$as_me:$LINENO: checking for $ac_func" >&5
6979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6980 if eval "test \"\${$as_ac_var+set}\" = set"; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 cat >conftest.
$ac_ext <<_ACEOF
6984 #line $LINENO "configure"
6985 #include "confdefs.h"
6986 /* System header to define __stub macros and hopefully few prototypes,
6987 which can conflict with char $ac_func (); below. */
6989 /* Override any gcc2 internal prototype to avoid an error. */
6993 /* We use char because int might match the return type of a gcc2
6994 builtin and then its argument prototype would still apply. */
6998 #ifdef F77_DUMMY_MAIN
7002 int F77_DUMMY_MAIN() { return 1; }
7007 /* The GNU C library defines this for functions which it implements
7008 to always fail with ENOSYS. Some functions are actually named
7009 something starting with __ and the normal name is an alias. */
7010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7020 rm -f conftest.
$ac_objext conftest
$ac_exeext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7022 (eval $ac_link) 2>&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } &&
7026 { ac_try
='test -s conftest$ac_exeext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 eval "$as_ac_var=yes"
7034 echo "$as_me: failed program was:" >&5
7035 cat conftest.
$ac_ext >&5
7036 eval "$as_ac_var=no"
7038 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7042 if test `eval echo '${'$as_ac_var'}'` = yes; then
7043 cat >>confdefs.h
<<_ACEOF
7044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7050 echo "$as_me:$LINENO: checking for working mmap" >&5
7051 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7052 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 if test "$cross_compiling" = yes; then
7056 ac_cv_func_mmap_fixed_mapped
=no
7058 cat >conftest.
$ac_ext <<_ACEOF
7059 #line $LINENO "configure"
7060 #include "confdefs.h"
7061 $ac_includes_default
7062 /* Thanks to Mike Haertel and Jim Avera for this test.
7063 Here is a matrix of mmap possibilities:
7064 mmap private not fixed
7065 mmap private fixed at somewhere currently unmapped
7066 mmap private fixed at somewhere already mapped
7067 mmap shared not fixed
7068 mmap shared fixed at somewhere currently unmapped
7069 mmap shared fixed at somewhere already mapped
7070 For private mappings, we should verify that changes cannot be read()
7071 back from the file, nor mmap's back from the file at a different
7072 address. (There have been systems where private was not correctly
7073 implemented like the infamous i386 svr4.0, and systems where the
7074 VM page cache was not coherent with the file system buffer cache
7075 like early versions of FreeBSD and possibly contemporary NetBSD.)
7076 For shared mappings, we should conversely verify that changes get
7077 propogated back to all the places they're supposed to be.
7079 Grep wants private fixed already mapped.
7080 The main things grep needs to know about mmap are:
7081 * does it exist and is it safe to write into the mmap'd area
7082 * how to use it (BSD variants) */
7085 #include <sys/mman.h>
7087 #if !STDC_HEADERS && !HAVE_STDLIB_H
7091 /* This mess was copied from the GNU getpagesize.h. */
7092 #if !HAVE_GETPAGESIZE
7093 /* Assume that all systems that can run configure have sys/param.h. */
7094 # if !HAVE_SYS_PARAM_H
7095 # define HAVE_SYS_PARAM_H 1
7098 # ifdef _SC_PAGESIZE
7099 # define getpagesize() sysconf(_SC_PAGESIZE)
7100 # else /* no _SC_PAGESIZE */
7101 # if HAVE_SYS_PARAM_H
7102 # include <sys/param.h>
7103 # ifdef EXEC_PAGESIZE
7104 # define getpagesize() EXEC_PAGESIZE
7105 # else /* no EXEC_PAGESIZE */
7107 # define getpagesize() NBPG * CLSIZE
7110 # endif /* no CLSIZE */
7111 # else /* no NBPG */
7113 # define getpagesize() NBPC
7114 # else /* no NBPC */
7116 # define getpagesize() PAGESIZE
7117 # endif /* PAGESIZE */
7118 # endif /* no NBPC */
7119 # endif /* no NBPG */
7120 # endif /* no EXEC_PAGESIZE */
7121 # else /* no HAVE_SYS_PARAM_H */
7122 # define getpagesize() 8192 /* punt totally */
7123 # endif /* no HAVE_SYS_PARAM_H */
7124 # endif /* no _SC_PAGESIZE */
7126 #endif /* no HAVE_GETPAGESIZE */
7131 char *data, *data2, *data3;
7135 pagesize = getpagesize ();
7137 /* First, make a file with some known garbage in it. */
7138 data = (char *) malloc (pagesize);
7141 for (i = 0; i < pagesize; ++i)
7142 *(data + i) = rand ();
7144 fd = creat ("conftest.mmap", 0600);
7147 if (write (fd, data, pagesize) != pagesize)
7151 /* Next, try to mmap the file at a fixed address which already has
7152 something else allocated at it. If we can, also make sure that
7153 we see the same garbage. */
7154 fd = open ("conftest.mmap", O_RDWR);
7157 data2 = (char *) malloc (2 * pagesize);
7160 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7161 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7162 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7164 for (i = 0; i < pagesize; ++i)
7165 if (*(data + i) != *(data2 + i))
7168 /* Finally, make sure that changes to the mapped area do not
7169 percolate back to the file as seen by read(). (This is a bug on
7170 some variants of i386 svr4.0.) */
7171 for (i = 0; i < pagesize; ++i)
7172 *(data2 + i) = *(data2 + i) + 1;
7173 data3 = (char *) malloc (pagesize);
7176 if (read (fd, data3, pagesize) != pagesize)
7178 for (i = 0; i < pagesize; ++i)
7179 if (*(data + i) != *(data3 + i))
7185 rm -f conftest
$ac_exeext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187 (eval $ac_link) 2>&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_func_mmap_fixed_mapped
=yes
7198 echo "$as_me: program exited with status $ac_status" >&5
7199 echo "$as_me: failed program was:" >&5
7200 cat conftest.
$ac_ext >&5
7202 ac_cv_func_mmap_fixed_mapped
=no
7204 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7207 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7208 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7209 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7211 cat >>confdefs.h
<<\_ACEOF
7218 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7219 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7220 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 cat >conftest.
$ac_ext <<_ACEOF
7224 #line $LINENO "configure"
7225 #include "confdefs.h"
7227 #include <features.h>
7228 #ifdef __GNU_LIBRARY__
7229 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7236 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7237 ac_cv_gnu_library_2_1
=yes
7239 ac_cv_gnu_library_2_1
=no
7244 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7245 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7247 GLIBC21
="$ac_cv_gnu_library_2_1"
7249 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7250 stdlib.h string.h unistd.h sys
/param.h
7252 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7254 echo "$as_me:$LINENO: checking for $ac_header" >&5
7255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7262 # Is the header compilable?
7263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7265 cat >conftest.
$ac_ext <<_ACEOF
7266 #line $LINENO "configure"
7267 #include "confdefs.h"
7268 $ac_includes_default
7269 #include <$ac_header>
7271 rm -f conftest.
$ac_objext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273 (eval $ac_compile) 2>&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try
='test -s conftest.$ac_objext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 ac_header_compiler
=yes
7285 echo "$as_me: failed program was:" >&5
7286 cat conftest.
$ac_ext >&5
7287 ac_header_compiler
=no
7289 rm -f conftest.
$ac_objext conftest.
$ac_ext
7290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7291 echo "${ECHO_T}$ac_header_compiler" >&6
7293 # Is the header present?
7294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7296 cat >conftest.
$ac_ext <<_ACEOF
7297 #line $LINENO "configure"
7298 #include "confdefs.h"
7299 #include <$ac_header>
7301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7302 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7304 egrep -v '^ *\+' conftest.er1
>conftest.err
7306 cat conftest.err
>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } >/dev
/null
; then
7309 if test -s conftest.err
; then
7310 ac_cpp_err
=$ac_c_preproc_warn_flag
7317 if test -z "$ac_cpp_err"; then
7318 ac_header_preproc
=yes
7320 echo "$as_me: failed program was:" >&5
7321 cat conftest.
$ac_ext >&5
7322 ac_header_preproc
=no
7324 rm -f conftest.err conftest.
$ac_ext
7325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7326 echo "${ECHO_T}$ac_header_preproc" >&6
7328 # So? What about this header?
7329 case $ac_header_compiler:$ac_header_preproc in
7331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7343 echo "$as_me:$LINENO: checking for $ac_header" >&5
7344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 eval "$as_ac_Header=$ac_header_preproc"
7350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7355 cat >>confdefs.h
<<_ACEOF
7356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7363 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7364 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7365 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7367 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7368 echo "$as_me:$LINENO: checking for $ac_func" >&5
7369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7370 if eval "test \"\${$as_ac_var+set}\" = set"; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 cat >conftest.
$ac_ext <<_ACEOF
7374 #line $LINENO "configure"
7375 #include "confdefs.h"
7376 /* System header to define __stub macros and hopefully few prototypes,
7377 which can conflict with char $ac_func (); below. */
7379 /* Override any gcc2 internal prototype to avoid an error. */
7383 /* We use char because int might match the return type of a gcc2
7384 builtin and then its argument prototype would still apply. */
7388 #ifdef F77_DUMMY_MAIN
7392 int F77_DUMMY_MAIN() { return 1; }
7397 /* The GNU C library defines this for functions which it implements
7398 to always fail with ENOSYS. Some functions are actually named
7399 something starting with __ and the normal name is an alias. */
7400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7410 rm -f conftest.
$ac_objext conftest
$ac_exeext
7411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7412 (eval $ac_link) 2>&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
7416 { ac_try
='test -s conftest$ac_exeext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 eval "$as_ac_var=yes"
7424 echo "$as_me: failed program was:" >&5
7425 cat conftest.
$ac_ext >&5
7426 eval "$as_ac_var=no"
7428 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7432 if test `eval echo '${'$as_ac_var'}'` = yes; then
7433 cat >>confdefs.h
<<_ACEOF
7434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7440 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7441 if test "${with_libiconv_prefix+set}" = set; then
7442 withval
="$with_libiconv_prefix"
7444 for dir
in `echo "$withval" | tr : ' '`; do
7445 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7446 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7451 echo "$as_me:$LINENO: checking for iconv" >&5
7452 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7453 if test "${am_cv_func_iconv+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 am_cv_func_iconv
="no, consider installing GNU libiconv"
7459 cat >conftest.
$ac_ext <<_ACEOF
7460 #line $LINENO "configure"
7461 #include "confdefs.h"
7464 #ifdef F77_DUMMY_MAIN
7468 int F77_DUMMY_MAIN() { return 1; }
7473 iconv_t cd = iconv_open("","");
7474 iconv(cd,NULL,NULL,NULL,NULL);
7480 rm -f conftest.
$ac_objext conftest
$ac_exeext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482 (eval $ac_link) 2>&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try
='test -s conftest$ac_exeext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 am_cv_func_iconv
=yes
7494 echo "$as_me: failed program was:" >&5
7495 cat conftest.
$ac_ext >&5
7497 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7498 if test "$am_cv_func_iconv" != yes; then
7499 am_save_LIBS
="$LIBS"
7500 LIBS
="$LIBS -liconv"
7501 cat >conftest.
$ac_ext <<_ACEOF
7502 #line $LINENO "configure"
7503 #include "confdefs.h"
7506 #ifdef F77_DUMMY_MAIN
7510 int F77_DUMMY_MAIN() { return 1; }
7515 iconv_t cd = iconv_open("","");
7516 iconv(cd,NULL,NULL,NULL,NULL);
7522 rm -f conftest.
$ac_objext conftest
$ac_exeext
7523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7524 (eval $ac_link) 2>&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try
='test -s conftest$ac_exeext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7535 am_cv_func_iconv
=yes
7537 echo "$as_me: failed program was:" >&5
7538 cat conftest.
$ac_ext >&5
7540 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7541 LIBS
="$am_save_LIBS"
7545 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7546 echo "${ECHO_T}$am_cv_func_iconv" >&6
7547 if test "$am_cv_func_iconv" = yes; then
7549 cat >>confdefs.h
<<\_ACEOF
7550 #define HAVE_ICONV 1
7553 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7554 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7555 if test "${am_cv_proto_iconv+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 cat >conftest.
$ac_ext <<_ACEOF
7560 #line $LINENO "configure"
7561 #include "confdefs.h"
7569 #if defined(__STDC__) || defined(__cplusplus)
7570 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7575 #ifdef F77_DUMMY_MAIN
7579 int F77_DUMMY_MAIN() { return 1; }
7589 rm -f conftest.
$ac_objext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } &&
7595 { ac_try
='test -s conftest.$ac_objext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 am_cv_proto_iconv_arg1
=""
7603 echo "$as_me: failed program was:" >&5
7604 cat conftest.
$ac_ext >&5
7605 am_cv_proto_iconv_arg1
="const"
7607 rm -f conftest.
$ac_objext conftest.
$ac_ext
7608 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);"
7611 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7612 echo "$as_me:$LINENO: result: ${ac_t:-
7613 }$am_cv_proto_iconv" >&5
7614 echo "${ECHO_T}${ac_t:-
7615 }$am_cv_proto_iconv" >&6
7617 cat >>confdefs.h
<<_ACEOF
7618 #define ICONV_CONST $am_cv_proto_iconv_arg1
7623 if test "$am_cv_lib_iconv" = yes; then
7627 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7628 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7629 if test "${am_cv_langinfo_codeset+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 cat >conftest.
$ac_ext <<_ACEOF
7633 #line $LINENO "configure"
7634 #include "confdefs.h"
7635 #include <langinfo.h>
7636 #ifdef F77_DUMMY_MAIN
7640 int F77_DUMMY_MAIN() { return 1; }
7645 char* cs = nl_langinfo(CODESET);
7650 rm -f conftest.
$ac_objext conftest
$ac_exeext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7652 (eval $ac_link) 2>&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try
='test -s conftest$ac_exeext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 am_cv_langinfo_codeset
=yes
7664 echo "$as_me: failed program was:" >&5
7665 cat conftest.
$ac_ext >&5
7666 am_cv_langinfo_codeset
=no
7668 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7671 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7672 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7673 if test $am_cv_langinfo_codeset = yes; then
7675 cat >>confdefs.h
<<\_ACEOF
7676 #define HAVE_LANGINFO_CODESET 1
7681 if test $ac_cv_header_locale_h = yes; then
7682 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7683 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7684 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 cat >conftest.
$ac_ext <<_ACEOF
7688 #line $LINENO "configure"
7689 #include "confdefs.h"
7691 #ifdef F77_DUMMY_MAIN
7695 int F77_DUMMY_MAIN() { return 1; }
7705 rm -f conftest.
$ac_objext conftest
$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try
='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 am_cv_val_LC_MESSAGES
=yes
7719 echo "$as_me: failed program was:" >&5
7720 cat conftest.
$ac_ext >&5
7721 am_cv_val_LC_MESSAGES
=no
7723 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7725 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7726 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7727 if test $am_cv_val_LC_MESSAGES = yes; then
7729 cat >>confdefs.h
<<\_ACEOF
7730 #define HAVE_LC_MESSAGES 1
7735 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7736 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7737 # Check whether --enable-nls or --disable-nls was given.
7738 if test "${enable_nls+set}" = set; then
7739 enableval
="$enable_nls"
7744 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7745 echo "${ECHO_T}$USE_NLS" >&6
7747 BUILD_INCLUDED_LIBINTL
=no
7748 USE_INCLUDED_LIBINTL
=no
7751 if test "$USE_NLS" = "yes"; then
7753 cat >>confdefs.h
<<\_ACEOF
7754 #define ENABLE_NLS 1
7757 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7758 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7760 # Check whether --with-included-gettext or --without-included-gettext was given.
7761 if test "${with_included_gettext+set}" = set; then
7762 withval
="$with_included_gettext"
7763 nls_cv_force_use_gnu_gettext
=$withval
7765 nls_cv_force_use_gnu_gettext
=no
7767 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7768 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7770 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7771 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7774 if test "${ac_cv_header_libintl_h+set}" = set; then
7775 echo "$as_me:$LINENO: checking for libintl.h" >&5
7776 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7777 if test "${ac_cv_header_libintl_h+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7781 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7783 # Is the header compilable?
7784 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7785 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7786 cat >conftest.
$ac_ext <<_ACEOF
7787 #line $LINENO "configure"
7788 #include "confdefs.h"
7789 $ac_includes_default
7790 #include <libintl.h>
7792 rm -f conftest.
$ac_objext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794 (eval $ac_compile) 2>&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try
='test -s conftest.$ac_objext'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 ac_header_compiler
=yes
7806 echo "$as_me: failed program was:" >&5
7807 cat conftest.
$ac_ext >&5
7808 ac_header_compiler
=no
7810 rm -f conftest.
$ac_objext conftest.
$ac_ext
7811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7812 echo "${ECHO_T}$ac_header_compiler" >&6
7814 # Is the header present?
7815 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7816 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7817 cat >conftest.
$ac_ext <<_ACEOF
7818 #line $LINENO "configure"
7819 #include "confdefs.h"
7820 #include <libintl.h>
7822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7823 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7825 egrep -v '^ *\+' conftest.er1
>conftest.err
7827 cat conftest.err
>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } >/dev
/null
; then
7830 if test -s conftest.err
; then
7831 ac_cpp_err
=$ac_c_preproc_warn_flag
7838 if test -z "$ac_cpp_err"; then
7839 ac_header_preproc
=yes
7841 echo "$as_me: failed program was:" >&5
7842 cat conftest.
$ac_ext >&5
7843 ac_header_preproc
=no
7845 rm -f conftest.err conftest.
$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7847 echo "${ECHO_T}$ac_header_preproc" >&6
7849 # So? What about this header?
7850 case $ac_header_compiler:$ac_header_preproc in
7852 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7853 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7854 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7855 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7857 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7858 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7859 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7860 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7862 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7864 echo "$as_me:$LINENO: checking for libintl.h" >&5
7865 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7866 if test "${ac_cv_header_libintl_h+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 ac_cv_header_libintl_h
=$ac_header_preproc
7871 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7872 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7875 if test $ac_cv_header_libintl_h = yes; then
7876 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7877 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7878 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 cat >conftest.
$ac_ext <<_ACEOF
7882 #line $LINENO "configure"
7883 #include "confdefs.h"
7884 #include <libintl.h>
7885 extern int _nl_msg_cat_cntr;
7886 #ifdef F77_DUMMY_MAIN
7890 int F77_DUMMY_MAIN() { return 1; }
7895 bindtextdomain ("", "");
7896 return (int) gettext ("") + _nl_msg_cat_cntr
7901 rm -f conftest.
$ac_objext conftest
$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try
='test -s conftest$ac_exeext'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 gt_cv_func_gnugettext1_libc
=yes
7915 echo "$as_me: failed program was:" >&5
7916 cat conftest.
$ac_ext >&5
7917 gt_cv_func_gnugettext1_libc
=no
7919 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7921 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7922 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7924 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7925 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7926 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7927 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 gt_save_LIBS
="$LIBS"
7931 LIBS
="$LIBS -lintl $LIBICONV"
7932 cat >conftest.
$ac_ext <<_ACEOF
7933 #line $LINENO "configure"
7934 #include "confdefs.h"
7935 #include <libintl.h>
7936 extern int _nl_msg_cat_cntr;
7937 #ifdef F77_DUMMY_MAIN
7941 int F77_DUMMY_MAIN() { return 1; }
7946 bindtextdomain ("", "");
7947 return (int) gettext ("") + _nl_msg_cat_cntr
7952 rm -f conftest.
$ac_objext conftest
$ac_exeext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7954 (eval $ac_link) 2>&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try
='test -s conftest$ac_exeext'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 gt_cv_func_gnugettext1_libintl
=yes
7966 echo "$as_me: failed program was:" >&5
7967 cat conftest.
$ac_ext >&5
7968 gt_cv_func_gnugettext1_libintl
=no
7970 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7971 LIBS
="$gt_save_LIBS"
7973 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7974 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7977 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7978 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7979 && test "$PACKAGE" != gettext; }; then
7981 cat >>confdefs.h
<<\_ACEOF
7982 #define HAVE_GETTEXT 1
7985 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7986 INTLLIBS
="-lintl $LIBICONV"
7989 gt_save_LIBS
="$LIBS"
7990 LIBS
="$LIBS $INTLLIBS"
7992 for ac_func
in dcgettext
7994 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7995 echo "$as_me:$LINENO: checking for $ac_func" >&5
7996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7997 if eval "test \"\${$as_ac_var+set}\" = set"; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 cat >conftest.
$ac_ext <<_ACEOF
8001 #line $LINENO "configure"
8002 #include "confdefs.h"
8003 /* System header to define __stub macros and hopefully few prototypes,
8004 which can conflict with char $ac_func (); below. */
8006 /* Override any gcc2 internal prototype to avoid an error. */
8010 /* We use char because int might match the return type of a gcc2
8011 builtin and then its argument prototype would still apply. */
8015 #ifdef F77_DUMMY_MAIN
8019 int F77_DUMMY_MAIN() { return 1; }
8024 /* The GNU C library defines this for functions which it implements
8025 to always fail with ENOSYS. Some functions are actually named
8026 something starting with __ and the normal name is an alias. */
8027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8037 rm -f conftest.
$ac_objext conftest
$ac_exeext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8039 (eval $ac_link) 2>&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try
='test -s conftest$ac_exeext'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8049 eval "$as_ac_var=yes"
8051 echo "$as_me: failed program was:" >&5
8052 cat conftest.
$ac_ext >&5
8053 eval "$as_ac_var=no"
8055 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8059 if test `eval echo '${'$as_ac_var'}'` = yes; then
8060 cat >>confdefs.h
<<_ACEOF
8061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8067 LIBS
="$gt_save_LIBS"
8069 # Extract the first word of "msgfmt", so it can be a program name with args.
8070 set dummy msgfmt
; ac_word
=$2
8071 echo "$as_me:$LINENO: checking for $ac_word" >&5
8072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8073 if test "${ac_cv_path_MSGFMT+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8082 for ac_dir
in $PATH; do
8083 test -z "$ac_dir" && ac_dir
=.
8084 if test -f $ac_dir/$ac_word; then
8085 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8086 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8092 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8096 MSGFMT
="$ac_cv_path_MSGFMT"
8097 if test "$MSGFMT" != ":"; then
8098 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8099 echo "${ECHO_T}$MSGFMT" >&6
8101 echo "$as_me:$LINENO: result: no" >&5
8102 echo "${ECHO_T}no" >&6
8105 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8106 set dummy gmsgfmt
; ac_word
=$2
8107 echo "$as_me:$LINENO: checking for $ac_word" >&5
8108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8109 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8121 test -z "$as_dir" && as_dir
=.
8122 for ac_exec_ext
in '' $ac_executable_extensions; do
8123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8135 GMSGFMT
=$ac_cv_path_GMSGFMT
8137 if test -n "$GMSGFMT"; then
8138 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8139 echo "${ECHO_T}$GMSGFMT" >&6
8141 echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6
8145 # Extract the first word of "xgettext", so it can be a program name with args.
8146 set dummy xgettext
; ac_word
=$2
8147 echo "$as_me:$LINENO: checking for $ac_word" >&5
8148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8149 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8157 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8158 for ac_dir
in $PATH; do
8159 test -z "$ac_dir" && ac_dir
=.
8160 if test -f $ac_dir/$ac_word; then
8161 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8162 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8168 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8172 XGETTEXT
="$ac_cv_path_XGETTEXT"
8173 if test "$XGETTEXT" != ":"; then
8174 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8175 echo "${ECHO_T}$XGETTEXT" >&6
8177 echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6
8186 if test "$CATOBJEXT" = "NONE"; then
8187 nls_cv_use_gnu_gettext
=yes
8191 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8192 INTLOBJS
="\$(GETTOBJS)"
8193 # Extract the first word of "msgfmt", so it can be a program name with args.
8194 set dummy msgfmt
; ac_word
=$2
8195 echo "$as_me:$LINENO: checking for $ac_word" >&5
8196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8197 if test "${ac_cv_path_MSGFMT+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8205 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8206 for ac_dir
in $PATH; do
8207 test -z "$ac_dir" && ac_dir
=.
8208 if test -f $ac_dir/$ac_word; then
8209 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8210 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8220 MSGFMT
="$ac_cv_path_MSGFMT"
8221 if test "$MSGFMT" != ":"; then
8222 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8223 echo "${ECHO_T}$MSGFMT" >&6
8225 echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8229 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8230 set dummy gmsgfmt
; ac_word
=$2
8231 echo "$as_me:$LINENO: checking for $ac_word" >&5
8232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8233 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8245 test -z "$as_dir" && as_dir
=.
8246 for ac_exec_ext
in '' $ac_executable_extensions; do
8247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8248 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8259 GMSGFMT
=$ac_cv_path_GMSGFMT
8261 if test -n "$GMSGFMT"; then
8262 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8263 echo "${ECHO_T}$GMSGFMT" >&6
8265 echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6
8269 # Extract the first word of "xgettext", so it can be a program name with args.
8270 set dummy xgettext
; ac_word
=$2
8271 echo "$as_me:$LINENO: checking for $ac_word" >&5
8272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8273 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8281 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8282 for ac_dir
in $PATH; do
8283 test -z "$ac_dir" && ac_dir
=.
8284 if test -f $ac_dir/$ac_word; then
8285 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8286 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8292 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8296 XGETTEXT
="$ac_cv_path_XGETTEXT"
8297 if test "$XGETTEXT" != ":"; then
8298 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8299 echo "${ECHO_T}$XGETTEXT" >&6
8301 echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8305 BUILD_INCLUDED_LIBINTL
=yes
8306 USE_INCLUDED_LIBINTL
=yes
8308 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8309 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8312 if test "$GMSGFMT" != ":"; then
8313 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8316 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8317 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8322 if test "$XGETTEXT" != ":"; then
8323 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8326 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8327 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8334 ac_config_commands
="$ac_config_commands default-2"
8336 if test "$PACKAGE" = gettext; then
8337 BUILD_INCLUDED_LIBINTL
=yes
8340 for ac_prog
in bison
8342 # Extract the first word of "$ac_prog", so it can be a program name with args.
8343 set dummy
$ac_prog; ac_word
=$2
8344 echo "$as_me:$LINENO: checking for $ac_word" >&5
8345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8346 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 if test -n "$INTLBISON"; then
8350 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8356 test -z "$as_dir" && as_dir
=.
8357 for ac_exec_ext
in '' $ac_executable_extensions; do
8358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8359 ac_cv_prog_INTLBISON
="$ac_prog"
8360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 INTLBISON
=$ac_cv_prog_INTLBISON
8369 if test -n "$INTLBISON"; then
8370 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8371 echo "${ECHO_T}$INTLBISON" >&6
8373 echo "$as_me:$LINENO: result: no" >&5
8374 echo "${ECHO_T}no" >&6
8377 test -n "$INTLBISON" && break
8380 if test -z "$INTLBISON"; then
8383 echo "$as_me:$LINENO: checking version of bison" >&5
8384 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8385 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8386 case $ac_prog_version in
8387 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8388 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8389 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8390 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8392 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8393 echo "${ECHO_T}$ac_prog_version" >&6
8395 if test $ac_verc_fail = yes; then
8399 for lang
in $ALL_LINGUAS; do
8400 GMOFILES
="$GMOFILES $lang.gmo"
8401 POFILES
="$POFILES $lang.po"
8405 nls_cv_header_libgt
=
8413 if test "x$CATOBJEXT" != "x"; then
8414 if test "x$ALL_LINGUAS" = "x"; then
8417 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8418 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8420 for presentlang
in $ALL_LINGUAS; do
8422 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8423 # Use the presentlang catalog if desiredlang is
8424 # a. equal to presentlang, or
8425 # b. a variant of presentlang (because in this case,
8426 # presentlang can be used as a fallback for messages
8427 # which are not translated in the desiredlang catalog).
8428 case "$desiredlang" in
8429 "$presentlang"*) useit
=yes;;
8432 if test $useit = yes; then
8433 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8436 LINGUAS
=$NEW_LINGUAS
8437 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8438 echo "${ECHO_T}$LINGUAS" >&6
8441 if test -n "$LINGUAS"; then
8442 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8447 if test -n "$ac_aux_dir"; then
8448 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8450 if test -z "$MKINSTALLDIRS"; then
8451 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8454 INTL_LIBTOOL_SUFFIX_PREFIX
=
8456 # This is necessary so that .o files in LIBOBJS are also built via
8457 # the ANSI2KNR-filtering rules.
8458 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8460 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8461 cat >confcache
<<\_ACEOF
8462 # This file is a shell script that caches the results of configure
8463 # tests run on this system so they can be shared between configure
8464 # scripts and configure runs, see configure's option --config-cache.
8465 # It is not useful on other systems. If it contains results you don't
8466 # want to keep, you may remove or edit it.
8468 # config.status only pays attention to the cache file if you give it
8469 # the --recheck option to rerun configure.
8471 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8472 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8477 # The following way of writing the cache mishandles newlines in values,
8478 # but we know of no workaround that is simple, portable, and efficient.
8479 # So, don't put newlines in cache variables' values.
8480 # Ultrix sh set writes to stderr and can't be redirected directly,
8481 # and sets the high bit in the cache file unless we assign to the vars.
8484 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8486 # `set' does not quote correctly, so add quotes (double-quote
8487 # substitution turns \\\\ into \\, and sed turns \\ into \).
8490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8493 # `set' quotes correctly as required by POSIX, so do not add quotes.
8495 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8502 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8504 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8506 if cmp -s $cache_file confcache
; then :; else
8507 if test -w $cache_file; then
8508 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8509 cat confcache
>$cache_file
8511 echo "not updating unwritable cache $cache_file"
8516 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8517 # Let make expand exec_prefix.
8518 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8520 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8521 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8522 # trailing colons and then remove the whole line if VPATH becomes empty
8523 # (actually we leave an empty line to preserve line numbers).
8524 if test "x$srcdir" = x.
; then
8525 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8526 s/:*\$(srcdir):*/:/;
8527 s/:*\${srcdir}:*/:/;
8529 s/^\([^=]*=[ ]*\):*/\1/;
8535 DEFS
=-DHAVE_CONFIG_H
8537 : ${CONFIG_STATUS=./config.status}
8538 ac_clean_files_save
=$ac_clean_files
8539 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8540 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8541 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8542 cat >$CONFIG_STATUS <<_ACEOF
8544 # Generated automatically by $as_me.
8545 # Run this file to recreate the current configuration.
8546 # Compiler output produced by configure, useful for debugging
8547 # configure, is in config.log if it exists.
8550 SHELL=\${CONFIG_SHELL-$SHELL}
8553 cat >>$CONFIG_STATUS <<\_ACEOF
8555 ## --------------------- ##
8556 ## M4sh Initialization. ##
8557 ## --------------------- ##
8559 # Be Bourne compatible
8560 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8563 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8567 # Name of the executable.
8568 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
8570 # Rewrite early, but we need PATH_SEPARATOR.
8571 # The user is always right.
8572 if test "${PATH_SEPARATOR+set}" != set; then
8573 echo "#! $SHELL" >conftest.sh
8574 echo "exit 0" >>conftest.sh
8575 chmod +x conftest.sh
8576 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8587 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
8588 test "x$as_lineno_1" != "x$as_lineno_2" &&
8589 test "x$as_lineno_3" = "x$as_lineno_2"
8591 if eval "$as_command"; then
8594 # Find who we are. Look in the path if we contain no path at all
8597 *[\\/]* ) as_myself=$0 ;;
8598 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 test -z "$as_dir" && as_dir=.
8603 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8608 # We did not find ourselves, most probably we were run as `sh COMMAND
'
8609 # in which case we are not to be found in the path.
8610 if test "x$as_myself" = x; then
8613 if test ! -f "$as_myself"; then
8614 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8615 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8616 { (exit 1); exit 1; }; }
8618 case $CONFIG_SHELL in
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in /bin:/usr/bin:$PATH
8624 test -z "$as_dir" && as_dir=.
8625 for as_base in sh bash ksh sh5; do
8628 if ("$as_dir/$as_base" -c "$as_command") 2>/dev/null; then
8629 CONFIG_SHELL=$as_dir/$as_base
8631 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8638 if test ! -f "$as_me.lineno" ||
8639 test x`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \
8640 != x"$as_me.lineno"; then
8641 # Be sure to write the pattern so that it doesn't replace itself
:
8642 # it must not match itself.
8644 /[$]LINENO/ { printf "%d:", NR }
8647 sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \
8649 chmod +x
$as_me.lineno
8652 # Don't try to exec as it changes $[0], causing all sort of problems
8653 # (the dirname of $[0] is not the place where we might find the
8654 # original and so on. Autoconf is especially sensible to this).
8656 # Exit status is that of the last command.
8660 # Avoid depending upon Character Ranges.
8661 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8662 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8663 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8664 as_cr_digits
='0123456789'
8665 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8667 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8668 *c
*,-n*) ECHO_N
= ECHO_C
='
8670 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8671 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8674 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8680 rm -f conf$$ conf$$.exe conf$$.
file
8682 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8683 # We could just check for DJGPP; but this test a) works b) is more generic
8684 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8685 if test -f conf$$.exe
; then
8686 # Don't use ln at all; we don't have any links
8691 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8696 rm -f conf$$ conf$$.exe conf$$.
file
8698 as_executable_p
="test -f"
8700 # Sed expression to map a string onto a valid CPP name.
8701 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8703 # Sed expression to map a string onto a valid variable name.
8704 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8706 # Support unset when possible.
8707 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8714 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
8715 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
8716 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
8717 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
8718 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
8719 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
8720 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
8721 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
8724 # We need space, tab and new line, in precisely that order.
8730 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
8734 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8735 # report actual input values of CONFIG_FILES etc. instead of their
8736 # values after options handling. Logging --version etc. is OK.
8740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8741 ## Running $as_me. ##
8746 This file was extended by GNU Bison $as_me 1.29e, which was
8747 generated by GNU Autoconf 2.52e. Invocation command line was
8749 CONFIG_FILES = $CONFIG_FILES
8750 CONFIG_HEADERS = $CONFIG_HEADERS
8751 CONFIG_LINKS = $CONFIG_LINKS
8752 CONFIG_COMMANDS = $CONFIG_COMMANDS
8756 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8760 # Files that config.status was made for.
8761 if test -n "$ac_config_files"; then
8762 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8765 if test -n "$ac_config_headers"; then
8766 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8769 if test -n "$ac_config_links"; then
8770 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8773 if test -n "$ac_config_commands"; then
8774 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8777 cat >>$CONFIG_STATUS <<\_ACEOF
8780 \`$as_me' instantiates files from templates according to the
8781 current configuration.
8783 Usage: $0 [OPTIONS] [FILE]...
8785 -h, --help print this help, then exit
8786 -V, --version print version number, then exit
8787 -d, --debug don't remove temporary files
8788 --recheck update $as_me by reconfiguring in the same conditions
8789 --file=FILE[:TEMPLATE]
8790 instantiate the configuration file FILE
8791 --header=FILE[:TEMPLATE]
8792 instantiate the configuration header FILE
8794 Configuration files:
8797 Configuration headers:
8800 Configuration commands:
8803 Report bugs to <bug-autoconf@gnu.org>."
8806 cat >>$CONFIG_STATUS <<_ACEOF
8808 GNU Bison config.status 1.29e
8809 configured by $0, generated by GNU Autoconf 2.52e,
8810 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8812 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8813 Free Software Foundation, Inc.
8814 This config.status script is free software; the Free Software Foundation
8815 gives unlimited permission to copy, distribute and modify it."
8820 cat >>$CONFIG_STATUS <<\_ACEOF
8821 # If no file are specified by the user, then we need to provide default
8822 # value. By we need to know if files were specified by the user.
8828 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8829 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8831 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
8835 *) # This is not an option, so the user has probably given explicit
8837 ac_need_defaults
=false
;;
8841 # Handling of the options.
8843 cat >>$CONFIG_STATUS <<_ACEOF
8844 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8845 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8846 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8848 cat >>$CONFIG_STATUS <<\_ACEOF
8849 --version | --vers* | -V )
8850 echo "$ac_cs_version"; exit 0 ;;
8852 # Conflict between --help and --header
8853 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8854 Try \`$0 --help' for more information." >&5
8855 echo "$as_me: error: ambiguous option: $1
8856 Try \`$0 --help' for more information." >&2;}
8857 { (exit 1); exit 1; }; };;
8858 --help | --hel | -h )
8859 echo "$ac_cs_usage"; exit 0 ;;
8860 --debug | --d* | -d )
8862 --file | --fil | --fi | --f )
8864 CONFIG_FILES
="$CONFIG_FILES $1"
8865 ac_need_defaults
=false
;;
8866 --header | --heade | --head | --hea )
8868 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
8869 ac_need_defaults
=false
;;
8872 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8873 Try \`$0 --help' for more information." >&5
8874 echo "$as_me: error: unrecognized option: $1
8875 Try \`$0 --help' for more information." >&2;}
8876 { (exit 1); exit 1; }; } ;;
8878 *) ac_config_targets
="$ac_config_targets $1" ;;
8886 cat >>$CONFIG_STATUS <<_ACEOF
8888 # INIT-COMMANDS section.
8891 PACKAGE_NAME='$PACKAGE_NAME'
8892 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8893 PACKAGE_VERSION='$PACKAGE_VERSION'
8894 PACKAGE_STRING='$PACKAGE_STRING'
8895 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8897 AMDEP_TRUE="$AMDEP_TRUE"
8898 ac_aux_dir="$ac_aux_dir"
8902 cat >>$CONFIG_STATUS <<\_ACEOF
8903 for ac_config_target
in $ac_config_targets
8905 case "$ac_config_target" in
8906 # Handling of arguments.
8907 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
8908 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
8909 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8910 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
8911 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
8912 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
8913 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
8914 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8915 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8916 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
8917 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8918 "tests/package.m4" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/package.m4" ;;
8919 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
8920 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
8921 "default-2" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
8922 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
8923 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8924 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8925 { (exit 1); exit 1; }; };;
8929 # If the user did not use the arguments to specify the items to instantiate,
8930 # then the envvar interface is used. Set only those that are not.
8931 # We use the long form for the default assignment because of an extremely
8932 # bizarre bug on SunOS 4.1.3.
8933 if $ac_need_defaults; then
8934 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8935 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8936 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8939 # Create a temporary directory, and hook for its removal unless debugging.
8942 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8943 trap '{ (exit 1); exit 1; }' 1 2 13 15
8946 # Create a (secure) tmp directory for tmp files.
8949 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8950 test -n "$tmp" && test -d "$tmp"
8953 tmp
=$TMPDIR/cs$$
-$RANDOM
8954 (umask 077 && mkdir $tmp)
8957 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8958 { (exit 1); exit 1; }
8963 cat >>$CONFIG_STATUS <<_ACEOF
8966 # CONFIG_FILES section.
8969 # No need to generate the scripts if there are no CONFIG_FILES.
8970 # This happens for instance when ./config.status config.h
8971 if test -n "\$CONFIG_FILES"; then
8972 # Protect against being on the right side of a sed subst in config.status.
8973 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8974 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8975 s,@SHELL@,$SHELL,;t t
8976 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8977 s,@exec_prefix@,$exec_prefix,;t t
8978 s,@prefix@,$prefix,;t t
8979 s,@program_transform_name@,$program_transform_name,;t t
8980 s,@bindir@,$bindir,;t t
8981 s,@sbindir@,$sbindir,;t t
8982 s,@libexecdir@,$libexecdir,;t t
8983 s,@datadir@,$datadir,;t t
8984 s,@sysconfdir@,$sysconfdir,;t t
8985 s,@sharedstatedir@,$sharedstatedir,;t t
8986 s,@localstatedir@,$localstatedir,;t t
8987 s,@libdir@,$libdir,;t t
8988 s,@includedir@,$includedir,;t t
8989 s,@oldincludedir@,$oldincludedir,;t t
8990 s,@infodir@,$infodir,;t t
8991 s,@mandir@,$mandir,;t t
8992 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8993 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8994 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8995 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8996 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8997 s,@build_alias@,$build_alias,;t t
8998 s,@host_alias@,$host_alias,;t t
8999 s,@target_alias@,$target_alias,;t t
9001 s,@ECHO_C@,$ECHO_C,;t t
9002 s,@ECHO_N@,$ECHO_N,;t t
9003 s,@ECHO_T@,$ECHO_T,;t t
9005 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9006 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9007 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9008 s,@PACKAGE@,$PACKAGE,;t t
9009 s,@VERSION@,$VERSION,;t t
9010 s,@ACLOCAL@,$ACLOCAL,;t t
9011 s,@AUTOCONF@,$AUTOCONF,;t t
9012 s,@AUTOMAKE@,$AUTOMAKE,;t t
9013 s,@AUTOHEADER@,$AUTOHEADER,;t t
9014 s,@MAKEINFO@,$MAKEINFO,;t t
9015 s,@AMTAR@,$AMTAR,;t t
9016 s,@install_sh@,$install_sh,;t t
9017 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9019 s,@SET_MAKE@,$SET_MAKE,;t t
9020 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9021 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9022 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9023 s,@DEPDIR@,$DEPDIR,;t t
9025 s,@CFLAGS@,$CFLAGS,;t t
9026 s,@LDFLAGS@,$LDFLAGS,;t t
9027 s,@CPPFLAGS@,$CPPFLAGS,;t t
9028 s,@ac_ct_CC@,$ac_ct_CC,;t t
9029 s,@EXEEXT@,$EXEEXT,;t t
9030 s,@OBJEXT@,$OBJEXT,;t t
9031 s,@am__include@,$am__include,;t t
9032 s,@am__quote@,$am__quote,;t t
9033 s,@CCDEPMODE@,$CCDEPMODE,;t t
9035 s,@RANLIB@,$RANLIB,;t t
9036 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9037 s,@AUTOM4TE@,$AUTOM4TE,;t t
9038 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9040 s,@ANSI2KNR@,$ANSI2KNR,;t t
9041 s,@ALLOCA@,$ALLOCA,;t t
9042 s,@LIBOBJS@,$LIBOBJS,;t t
9043 s,@build@,$build,;t t
9044 s,@build_cpu@,$build_cpu,;t t
9045 s,@build_vendor@,$build_vendor,;t t
9046 s,@build_os@,$build_os,;t t
9048 s,@host_cpu@,$host_cpu,;t t
9049 s,@host_vendor@,$host_vendor,;t t
9050 s,@host_os@,$host_os,;t t
9051 s,@GLIBC21@,$GLIBC21,;t t
9052 s,@LIBICONV@,$LIBICONV,;t t
9053 s,@USE_NLS@,$USE_NLS,;t t
9054 s,@MSGFMT@,$MSGFMT,;t t
9055 s,@GMSGFMT@,$GMSGFMT,;t t
9056 s,@XGETTEXT@,$XGETTEXT,;t t
9057 s,@INTLBISON@,$INTLBISON,;t t
9058 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9059 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9060 s,@CATALOGS@,$CATALOGS,;t t
9061 s,@CATOBJEXT@,$CATOBJEXT,;t t
9062 s,@GMOFILES@,$GMOFILES,;t t
9063 s,@INTLLIBS@,$INTLLIBS,;t t
9064 s,@INTLOBJS@,$INTLOBJS,;t t
9065 s,@POFILES@,$POFILES,;t t
9066 s,@POSUB@,$POSUB,;t t
9067 s,@DATADIRNAME@,$DATADIRNAME,;t t
9068 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9069 s,@GENCAT@,$GENCAT,;t t
9070 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9071 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9076 cat >>$CONFIG_STATUS <<\_ACEOF
9077 # Split the substitutions into bite-sized pieces for seds with
9078 # small command number limits, like on Digital OSF/1 and HP-UX.
9080 ac_sed_frag
=1 # Number of current file.
9081 ac_beg
=1 # First line for current file.
9082 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9085 while $ac_more_lines; do
9086 if test $ac_beg -gt 1; then
9087 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9089 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9091 if test ! -s $tmp/subs.frag
; then
9094 # The purpose of the label and of the branching condition is to
9095 # speed up the sed processing (if there are no `@' at all, there
9096 # is no need to browse any of the substitutions).
9097 # These are the two extra sed commands mentioned above.
9099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9100 if test -z "$ac_sed_cmds"; then
9101 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9103 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9105 ac_sed_frag
=`expr $ac_sed_frag + 1`
9107 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9110 if test -z "$ac_sed_cmds"; then
9113 fi # test -n "$CONFIG_FILES"
9116 cat >>$CONFIG_STATUS <<\_ACEOF
9117 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9118 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9120 - | *:- | *:-:* ) # input from stdin
9122 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9123 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9124 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9125 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9126 * ) ac_file_in
=$ac_file.
in ;;
9129 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9130 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9131 X"$ac_file" : 'X\(//\)[^/]' \| \
9132 X"$ac_file" : 'X\(//\)$' \| \
9133 X"$ac_file" : 'X\(/\)' \| \
9134 . : '\(.\)' 2>/dev/null ||
9136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9138 /^X\(\/\/\)$/{ s//\1/; q; }
9139 /^X\(\/\).*/{ s//\1/; q; }
9142 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9146 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9147 case $as_mkdir_dir in
9148 # Skip DOS drivespec
9149 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9151 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9152 test -d "$as_incr_dir" ||
9153 mkdir "$as_incr_dir" ||
9154 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9155 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9156 { (exit 1); exit 1; }; }
9163 if test "$ac_dir" != .
; then
9164 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9165 # A "../" for each directory in $ac_dir_suffix.
9166 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9168 ac_dir_suffix
= ac_top_builddir
=
9172 .
) # No --srcdir option. We are building in place.
9174 if test -z "$ac_top_builddir"; then
9177 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9179 [\\/]* | ?
:[\\/]* ) # Absolute path.
9180 ac_srcdir
=$srcdir$ac_dir_suffix;
9181 ac_top_srcdir
=$srcdir ;;
9183 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9184 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9186 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9188 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9189 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9190 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9191 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9194 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9195 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9198 if test x
"$ac_file" != x
-; then
9199 { echo "$as_me:$LINENO: creating $ac_file" >&5
9200 echo "$as_me: creating $ac_file" >&6;}
9203 # Let's still pretend it is `configure' which instantiates (i.e., don't
9204 # use $as_me), people would be surprised to read:
9205 # /* config.h. Generated automatically by config.status. */
9206 configure_input
="Generated automatically from `echo $ac_file_in |
9207 sed 's,.*/,,'` by configure."
9209 # First look for the input files in the build tree, otherwise in the
9211 ac_file_inputs
=`IFS=:
9212 for f in $ac_file_in; do
9214 -) echo $tmp/stdin ;;
9216 # Absolute (can't be DOS-style, as IFS=:)
9217 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9218 echo "$as_me: error: cannot find input file: $f" >&2;}
9219 { (exit 1); exit 1; }; }
9222 if test -f "$f"; then
9225 elif test -f "$srcdir/$f"; then
9230 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9231 echo "$as_me: error: cannot find input file: $f" >&2;}
9232 { (exit 1); exit 1; }; }
9235 done` || { (exit 1); exit 1; }
9237 cat >>$CONFIG_STATUS <<_ACEOF
9241 cat >>$CONFIG_STATUS <<\_ACEOF
9243 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9244 s
,@configure_input@
,$configure_input,;t t
9245 s
,@srcdir@
,$ac_srcdir,;t t
9246 s
,@srcpath@
,$ac_srcpath,;t t
9247 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9248 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9249 s
,@builddir@
,$ac_builddir,;t t
9250 s
,@buildpath@
,$ac_buildpath,;t t
9251 s
,@top_builddir@
,$ac_top_builddir,;t t
9252 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9253 s
,@INSTALL@
,$ac_INSTALL,;t t
9254 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9256 if test x"$ac_file" != x-; then
9257 mv $tmp/out $ac_file
9263 # Run the commands associated with the file.
9265 tests/bison ) chmod +x tests/bison ;;
9269 cat >>$CONFIG_STATUS <<\_ACEOF
9272 # CONFIG_HEADER section.
9275 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9276 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9278 # ac_d sets the value in "#define NAME VALUE" lines.
9279 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9280 ac_dB
='[ ].*$,\1#\2'
9283 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9284 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9285 ac_uB
='$,\1#\2define\3'
9289 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9290 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9292 - | *:- | *:-:* ) # input from stdin
9294 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9295 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9296 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9297 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9298 * ) ac_file_in
=$ac_file.
in ;;
9301 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9302 echo "$as_me: creating $ac_file" >&6;}
9304 # First look for the input files in the build tree, otherwise in the
9306 ac_file_inputs
=`IFS=:
9307 for f in $ac_file_in; do
9309 -) echo $tmp/stdin ;;
9311 # Absolute (can't be DOS-style, as IFS=:)
9312 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9313 echo "$as_me: error: cannot find input file: $f" >&2;}
9314 { (exit 1); exit 1; }; }
9317 if test -f "$f"; then
9320 elif test -f "$srcdir/$f"; then
9325 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9326 echo "$as_me: error: cannot find input file: $f" >&2;}
9327 { (exit 1); exit 1; }; }
9330 done` || { (exit 1); exit 1; }
9331 # Remove the trailing spaces.
9332 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9336 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9337 # `conftest.undefs', that substitutes the proper values into
9338 # config.h.in to produce config.h. The first handles `#define'
9339 # templates, and the second `#undef' templates.
9340 # And first: Protect against being on the right side of a sed subst in
9341 # config.status. Protect against being in an unquoted here document
9343 rm -f conftest.defines conftest.undefs
9344 # Using a here document instead of a string reduces the quoting nightmare.
9345 # Putting comments in sed scripts is not portable.
9347 # `end' is used to avoid that the second main sed command (meant for
9348 # 0-ary CPP macros) applies to n-ary macro definitions.
9349 # See the Autoconf documentation for `clear'.
9350 cat >confdef2sed.
sed <<\_ACEOF
9355 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9357 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9360 # If some macros were called several times there might be several times
9361 # the same #defines, which is useless. Nevertheless, we may not want to
9362 # sort them, since we want the *last* AC-DEFINE to be honored.
9363 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9364 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9365 rm -f confdef2sed.sed
9367 # This sed command replaces #undef with comments. This is necessary, for
9368 # example, in the case of _POSIX_SOURCE, which is predefined and required
9369 # on some systems where configure will not decide to define it.
9370 cat >>conftest.undefs <<\_ACEOF
9371 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9374 # Break up conftest.defines because some shells have a limit on the size
9375 # of here documents, and old seds have small limits too (100 cmds).
9376 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9377 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9378 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9379 echo ' :' >>$CONFIG_STATUS
9381 while grep . conftest.defines >/dev/null
9383 # Write a limited-size here document to $tmp/defines.sed.
9384 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9385 # Speed up: don't consider the non `#define' lines.
9386 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9387 # Work around the forget-to-reset-the-flag bug.
9388 echo 't clr' >>$CONFIG_STATUS
9389 echo ': clr' >>$CONFIG_STATUS
9390 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9392 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9396 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9397 rm -f conftest.defines
9398 mv conftest.
tail conftest.defines
9400 rm -f conftest.defines
9401 echo ' fi # egrep' >>$CONFIG_STATUS
9402 echo >>$CONFIG_STATUS
9404 # Break up conftest.undefs because some shells have a limit on the size
9405 # of here documents, and old seds have small limits too (100 cmds).
9406 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9408 while grep . conftest.undefs
>/dev
/null
9410 # Write a limited-size here document to $tmp/undefs.sed.
9411 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9412 # Speed up: don't consider the non
`#undef'
9413 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9414 # Work around the forget-to-reset-the-flag bug.
9415 echo 't clr' >>$CONFIG_STATUS
9416 echo ': clr' >>$CONFIG_STATUS
9417 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9419 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9423 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9424 rm -f conftest.undefs
9425 mv conftest.tail conftest.undefs
9427 rm -f conftest.undefs
9429 cat >>$CONFIG_STATUS <<\_ACEOF
9430 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9431 # use $as_me), people would be surprised to read:
9432 # /* config.h. Generated automatically by config.status. */
9433 if test x
"$ac_file" = x
-; then
9434 echo "/* Generated automatically by configure. */" >$tmp/config.h
9436 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9438 cat $tmp/in >>$tmp/config.h
9440 if test x
"$ac_file" != x
-; then
9441 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9442 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9443 echo "$as_me: $ac_file is unchanged" >&6;}
9445 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9446 X"$ac_file" : 'X\(//\)[^/]' \| \
9447 X"$ac_file" : 'X\(//\)$' \| \
9448 X"$ac_file" : 'X\(/\)' \| \
9449 . : '\(.\)' 2>/dev/null ||
9451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9453 /^X\(\/\/\)$/{ s//\1/; q; }
9454 /^X\(\/\).*/{ s//\1/; q; }
9457 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9461 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9462 case $as_mkdir_dir in
9463 # Skip DOS drivespec
9464 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9466 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9467 test -d "$as_incr_dir" ||
9468 mkdir "$as_incr_dir" ||
9469 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9470 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9471 { (exit 1); exit 1; }; }
9477 mv $tmp/config.h
$ac_file
9483 # Run the commands associated with the file.
9485 config.h
) # update the timestamp
9486 echo timestamp
>"./stamp-h1"
9491 cat >>$CONFIG_STATUS <<\_ACEOF
9494 # CONFIG_COMMANDS section.
9496 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9497 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9498 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9499 ac_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9500 X"$ac_dest" : 'X\(//\)[^/]' \| \
9501 X"$ac_dest" : 'X\(//\)$' \| \
9502 X"$ac_dest" : 'X\(/\)' \| \
9503 . : '\(.\)' 2>/dev/null ||
9505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9507 /^X\(\/\/\)$/{ s//\1/; q; }
9508 /^X\(\/\).*/{ s//\1/; q; }
9512 if test "$ac_dir" != .
; then
9513 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9514 # A "../" for each directory in $ac_dir_suffix.
9515 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9517 ac_dir_suffix
= ac_top_builddir
=
9521 .
) # No --srcdir option. We are building in place.
9523 if test -z "$ac_top_builddir"; then
9526 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9528 [\\/]* | ?
:[\\/]* ) # Absolute path.
9529 ac_srcdir
=$srcdir$ac_dir_suffix;
9530 ac_top_srcdir
=$srcdir ;;
9532 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9533 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9535 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9537 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9538 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9539 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9540 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9542 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9543 echo "$as_me: executing $ac_dest commands" >&6;}
9545 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9546 # Signature of the current package.
9547 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9548 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9549 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9550 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9551 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9554 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9555 # Configurable variable values for building test suites.
9557 # Copyright 2000, 2001 Free Software Foundation, Inc.
9560 buildpath='$ac_buildpath'
9562 srcpath='$ac_srcpath'
9563 top_srcdir='$ac_top_srcdir'
9564 top_srcpath='$ac_top_srcpath'
9565 top_builddir='$ac_top_builddir'
9566 top_buildpath='$ac_top_buildpath'
9568 AUTOTEST_PATH='tests'
9570 SHELL=\${CONFIG_SHELL-'$SHELL'}
9574 test x
"$AMDEP_TRUE" != x
"" ||
9575 for mf
in $CONFIG_FILES; do
9577 Makefile
) dirpart
=.
;;
9578 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9581 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9582 # Extract the definition of DEP_FILES from the Makefile without
9584 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9585 test -z "$DEPDIR" && continue
9586 # When using ansi2knr, U may be empty or an underscore; expand it
9587 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9588 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9589 # We invoke sed twice because it is the simplest approach to
9590 # changing $(DEPDIR) to its actual value in the expansion.
9591 for file in `sed -n -e '
9592 /^DEP_FILES = .*\\\\$/ {
9601 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9602 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9603 # Make sure the directory exists.
9604 test -f "$dirpart/$file" && continue
9605 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9606 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9607 # echo "creating $dirpart/$file"
9608 echo '# dummy' > "$dirpart/$file"
9612 default
-2 ) for ac_file
in $CONFIG_FILES; do
9613 # Support "outfile[:infile[:infile...]]"
9615 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9617 # PO directories have a Makefile.in generated from Makefile.in.in.
9618 case "$ac_file" in */Makefile.
in)
9619 # Adjust a relative srcdir.
9620 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9621 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9622 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9623 # In autoconf-2.13 it is called $ac_given_srcdir.
9624 # In autoconf-2.50 it is called $srcdir.
9625 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9626 case "$ac_given_srcdir" in
9627 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9628 /*) top_srcdir
="$ac_given_srcdir" ;;
9629 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9631 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9632 rm -f "$ac_dir/POTFILES"
9633 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9634 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9635 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9636 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9645 cat >>$CONFIG_STATUS <<\_ACEOF
9647 { (exit 0); exit 0; }
9649 chmod +x
$CONFIG_STATUS
9650 ac_clean_files
=$ac_clean_files_save
9652 # configure is writing to config.log, and then calls config.status.
9653 # config.status does its own redirection, appending to config.log.
9654 # Unfortunately, on DOS this fails, as config.log is still kept open
9655 # by configure, so config.status won't be able to write to it; its
9656 # output is simply discarded. So we exec the FD to /dev/null,
9657 # effectively closing config.log, so it can be properly (re)opened and
9658 # appended to by config.status. When coming back to configure, we
9659 # need to make the FD available again.
9660 if test "$no_create" != yes; then
9663 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9665 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9666 # would make configure fail if this is the last instruction.
9667 $ac_cs_success || { (exit 1); exit 1; }