2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52e for GNU Bison 1.29f.
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.29f'
289 PACKAGE_STRING
='GNU Bison 1.29f'
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.29f 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.29f:";;
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.29f
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.29f, 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 # Needed by tests/atlocal.in.
1430 # Checks for programs.
1432 ac_cpp
='$CPP $CPPFLAGS'
1433 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 if test -n "$CC"; then
1445 ac_cv_prog_CC
="$CC" # Let the user override the test.
1447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1451 test -z "$as_dir" && as_dir
=.
1452 for ac_exec_ext
in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1473 if test -z "$ac_cv_prog_CC"; then
1475 # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc
; ac_word
=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 if test -n "$ac_ct_CC"; then
1483 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir
=.
1490 for ac_exec_ext
in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_ac_ct_CC
="gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1515 if test -z "$CC"; then
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC
="$CC" # Let the user override the test.
1527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir
=.
1532 for ac_exec_ext
in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 if test -n "$CC"; then
1545 echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1553 if test -z "$ac_cv_prog_CC"; then
1555 # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc
; ac_word
=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 if test -n "$ac_ct_CC"; then
1563 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1569 test -z "$as_dir" && as_dir
=.
1570 for ac_exec_ext
in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_ac_ct_CC
="cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1596 if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc
; ac_word
=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC
="$CC" # Let the user override the test.
1608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir
=.
1613 for ac_exec_ext
in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616 ac_prog_rejected
=yes
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 if test $ac_prog_rejected = yes; then
1627 # We found a bogon in the path, so make sure we never use it.
1628 set dummy
$ac_cv_prog_CC
1630 if test $# != 0; then
1631 # We chose a different compiler from the bogus one.
1632 # However, it has the same basename, so the bogon will be chosen
1633 # first if we set CC to just the basename; use the full file name.
1635 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC
="$CC" # Let the user override the test.
1666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir
=.
1671 for ac_exec_ext
in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1691 test -n "$CC" && break
1694 if test -z "$CC"; then
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699 set dummy
$ac_prog; ac_word
=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir
=.
1713 for ac_exec_ext
in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC
="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1725 if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727 echo "${ECHO_T}$ac_ct_CC" >&6
1729 echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1733 test -n "$ac_ct_CC" && break
1741 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1742 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1743 { (exit 1); exit 1; }; }
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler
=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1765 cat >conftest.
$ac_ext <<_ACEOF
1766 #line $LINENO "configure"
1767 #include "confdefs.h"
1769 #ifdef F77_DUMMY_MAIN
1773 int F77_DUMMY_MAIN() { return 1; }
1783 ac_clean_files_save
=$ac_clean_files
1784 ac_clean_files
="$ac_clean_files a.out a.exe"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1788 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1789 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1790 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1799 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1800 ls a.out conftest 2>/dev/null;
1801 ls a.* conftest.* 2>/dev/null`; do
1803 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1804 a.out
) # We found the default executable, but exeext='' is most
1807 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1815 echo "$as_me: failed program was:" >&5
1816 cat conftest.
$ac_ext >&5
1817 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1818 echo "$as_me: error: C compiler cannot create executables" >&2;}
1819 { (exit 77); exit 77; }; }
1822 ac_exeext
=$ac_cv_exeext
1823 echo "$as_me:$LINENO: result: $ac_file" >&5
1824 echo "${ECHO_T}$ac_file" >&6
1826 # Check the compiler produces executables we can run. If not, either
1827 # the compiler is broken, or we cross compile.
1828 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1829 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1830 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1831 # If not cross compiling, check that we can run a simple program.
1832 if test "$cross_compiling" != yes; then
1833 if { ac_try
='./$ac_file'
1834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }; }; then
1841 if test "$cross_compiling" = maybe
; then
1844 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1845 If you meant to cross compile, use \`--host'." >&5
1846 echo "$as_me: error: cannot run C compiled programs.
1847 If you meant to cross compile, use \`--host'." >&2;}
1848 { (exit 1); exit 1; }; }
1852 echo "$as_me:$LINENO: result: yes" >&5
1853 echo "${ECHO_T}yes" >&6
1855 rm -f a.out a.exe conftest
$ac_cv_exeext
1856 ac_clean_files
=$ac_clean_files_save
1857 # Check the compiler produces executables we can run. If not, either
1858 # the compiler is broken, or we cross compile.
1859 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1860 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1861 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1862 echo "${ECHO_T}$cross_compiling" >&6
1864 echo "$as_me:$LINENO: checking for executable suffix" >&5
1865 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1867 (eval $ac_link) 2>&5
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); }; then
1871 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1872 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1873 # work properly (i.e., refer to `conftest.exe'), while it won't with
1875 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1877 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1878 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1885 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1886 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1887 { (exit 1); exit 1; }; }
1890 rm -f conftest
$ac_cv_exeext
1891 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1892 echo "${ECHO_T}$ac_cv_exeext" >&6
1894 rm -f conftest.
$ac_ext
1895 EXEEXT
=$ac_cv_exeext
1897 echo "$as_me:$LINENO: checking for object suffix" >&5
1898 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1899 if test "${ac_cv_objext+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 cat >conftest.
$ac_ext <<_ACEOF
1903 #line $LINENO "configure"
1904 #include "confdefs.h"
1906 #ifdef F77_DUMMY_MAIN
1910 int F77_DUMMY_MAIN() { return 1; }
1920 rm -f conftest.o conftest.obj
1921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1922 (eval $ac_compile) 2>&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }; then
1926 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1928 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1929 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1934 echo "$as_me: failed program was:" >&5
1935 cat conftest.
$ac_ext >&5
1936 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1937 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1938 { (exit 1); exit 1; }; }
1941 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1943 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1944 echo "${ECHO_T}$ac_cv_objext" >&6
1945 OBJEXT
=$ac_cv_objext
1947 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1948 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1949 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 cat >conftest.
$ac_ext <<_ACEOF
1953 #line $LINENO "configure"
1954 #include "confdefs.h"
1956 #ifdef F77_DUMMY_MAIN
1960 int F77_DUMMY_MAIN() { return 1; }
1973 rm -f conftest.
$ac_objext
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); } &&
1979 { ac_try
='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1987 echo "$as_me: failed program was:" >&5
1988 cat conftest.
$ac_ext >&5
1991 rm -f conftest.
$ac_objext conftest.
$ac_ext
1992 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1995 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1996 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1997 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1998 ac_test_CFLAGS
=${CFLAGS+set}
1999 ac_save_CFLAGS
=$CFLAGS
2001 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2002 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2003 if test "${ac_cv_prog_cc_g+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 cat >conftest.
$ac_ext <<_ACEOF
2007 #line $LINENO "configure"
2008 #include "confdefs.h"
2010 #ifdef F77_DUMMY_MAIN
2014 int F77_DUMMY_MAIN() { return 1; }
2024 rm -f conftest.
$ac_objext
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); } &&
2030 { ac_try
='test -s conftest.$ac_objext'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2038 echo "$as_me: failed program was:" >&5
2039 cat conftest.
$ac_ext >&5
2042 rm -f conftest.
$ac_objext conftest.
$ac_ext
2044 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2045 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2046 if test "$ac_test_CFLAGS" = set; then
2047 CFLAGS
=$ac_save_CFLAGS
2048 elif test $ac_cv_prog_cc_g = yes; then
2049 if test "$GCC" = yes; then
2055 if test "$GCC" = yes; then
2061 # Some people use a C++ compiler to compile C. Since we use `exit',
2062 # in C++ we need to declare it. In case someone uses the same compiler
2063 # for both compiling C and C++ we need to have the C++ compiler decide
2064 # the declaration of exit, since it's the most demanding environment.
2065 cat >conftest.
$ac_ext <<_ACEOF
2070 rm -f conftest.
$ac_objext
2071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072 (eval $ac_compile) 2>&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); } &&
2076 { ac_try
='test -s conftest.$ac_objext'
2077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; }; then
2082 for ac_declaration
in \
2084 '#include <stdlib.h>' \
2085 'extern "C" void std::exit (int) throw (); using std::exit;' \
2086 'extern "C" void std::exit (int); using std::exit;' \
2087 'extern "C" void exit (int) throw ();' \
2088 'extern "C" void exit (int);' \
2091 cat >conftest.
$ac_ext <<_ACEOF
2092 #line $LINENO "configure"
2093 #include "confdefs.h"
2096 #ifdef F77_DUMMY_MAIN
2100 int F77_DUMMY_MAIN() { return 1; }
2110 rm -f conftest.
$ac_objext
2111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2112 (eval $ac_compile) 2>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try
='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2124 echo "$as_me: failed program was:" >&5
2125 cat conftest.
$ac_ext >&5
2128 rm -f conftest.
$ac_objext conftest.
$ac_ext
2129 cat >conftest.
$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2131 #include "confdefs.h"
2133 #ifdef F77_DUMMY_MAIN
2137 int F77_DUMMY_MAIN() { return 1; }
2147 rm -f conftest.
$ac_objext
2148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149 (eval $ac_compile) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); } &&
2153 { ac_try
='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2161 echo "$as_me: failed program was:" >&5
2162 cat conftest.
$ac_ext >&5
2164 rm -f conftest.
$ac_objext conftest.
$ac_ext
2167 if test -n "$ac_declaration"; then
2168 echo '#ifdef __cplusplus' >>confdefs.h
2169 echo $ac_declaration >>confdefs.h
2170 echo '#endif' >>confdefs.h
2174 echo "$as_me: failed program was:" >&5
2175 cat conftest.
$ac_ext >&5
2177 rm -f conftest.
$ac_objext conftest.
$ac_ext
2179 ac_cpp
='$CPP $CPPFLAGS'
2180 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2184 ac_config_commands
="$ac_config_commands default-1"
2186 am_make
=${MAKE-make}
2187 cat > confinc
<< 'END'
2191 # If we don't find an include directive, just comment out the code.
2192 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2193 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2197 # First try GNU make style include.
2198 echo "include confinc" > confmf
2199 # We grep out `Entering directory' and `Leaving directory'
2200 # messages which can occur if `w' ends up in MAKEFLAGS.
2201 # In particular we don't look at `^make:' because GNU make might
2202 # be invoked under some other name (usually "gmake"), in which
2203 # case it prints its new name instead of `make'.
2204 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2209 # Now try BSD make style include.
2210 if test "$am__include" = "#"; then
2211 echo '.include "confinc"' > confmf
2212 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2213 am__include
=.include
2219 echo "$as_me:$LINENO: result: $_am_result" >&5
2220 echo "${ECHO_T}$_am_result" >&6
2221 rm -f confinc confmf
2223 depcc
="$CC" am_compiler_list
=
2225 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2226 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2227 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2231 # We make a subdir and do the tests there. Otherwise we can end up
2232 # making bogus files that we don't know about and never remove. For
2233 # instance it was reported that on HP-UX the gcc test will end up
2234 # making a dummy file named `D' -- because `-MD' means `put the output
2237 # Copy depcomp to subdir because otherwise we won't find it if we're
2238 # using a relative directory.
2239 cp "$am_depcomp" conftest.dir
2242 am_cv_CC_dependencies_compiler_type
=none
2243 if test "$am_compiler_list" = ""; then
2244 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2246 for depmode
in $am_compiler_list; do
2247 # We need to recreate these files for each test, as the compiler may
2248 # overwrite some of them when testing with obscure command lines.
2249 # This happens at least with the AIX C compiler.
2250 echo '#include "conftest.h"' > conftest.c
2251 echo 'int i;' > conftest.h
2252 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2256 # after this tag, mechanisms are not by side-effect, so they'll
2257 # only be used when explicitly requested
2258 if test "x$enable_dependency_tracking" = xyes
; then
2266 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2267 # mode. It turns out that the SunPro C++ compiler does not properly
2268 # handle `-M -o', and we need to detect this.
2269 if depmode
=$depmode \
2270 source=conftest.c object
=conftest.o \
2271 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2272 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2273 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2274 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2275 am_cv_CC_dependencies_compiler_type
=$depmode
2283 am_cv_CC_dependencies_compiler_type
=none
2287 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2288 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2289 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2292 ac_cpp
='$CPP $CPPFLAGS'
2293 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2296 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2297 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2298 # On Suns, sometimes $CPP names a directory.
2299 if test -n "$CPP" && test -d "$CPP"; then
2302 if test -z "$CPP"; then
2303 if test "${ac_cv_prog_CPP+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 # Double quotes because CPP needs to be expanded
2307 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2310 for ac_c_preproc_warn_flag
in '' yes
2312 # Use a header file that comes with gcc, so configuring glibc
2313 # with a fresh cross-compiler works.
2314 # On the NeXT, cc -E runs the code through the compiler's parser,
2315 # not just through cpp. "Syntax error" is here to catch this case.
2316 cat >conftest.
$ac_ext <<_ACEOF
2317 #line $LINENO "configure"
2318 #include "confdefs.h"
2322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2323 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2325 egrep -v '^ *\+' conftest.er1
>conftest.err
2327 cat conftest.err
>&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); } >/dev
/null
; then
2330 if test -s conftest.err
; then
2331 ac_cpp_err
=$ac_c_preproc_warn_flag
2338 if test -z "$ac_cpp_err"; then
2341 echo "$as_me: failed program was:" >&5
2342 cat conftest.
$ac_ext >&5
2343 # Broken: fails on valid input.
2346 rm -f conftest.err conftest.
$ac_ext
2348 # OK, works on sane cases. Now check whether non-existent headers
2349 # can be detected and how.
2350 cat >conftest.
$ac_ext <<_ACEOF
2351 #line $LINENO "configure"
2352 #include "confdefs.h"
2353 #include <ac_nonexistent.h>
2355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2356 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2358 egrep -v '^ *\+' conftest.er1
>conftest.err
2360 cat conftest.err
>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } >/dev
/null
; then
2363 if test -s conftest.err
; then
2364 ac_cpp_err
=$ac_c_preproc_warn_flag
2371 if test -z "$ac_cpp_err"; then
2372 # Broken: success on invalid input.
2375 echo "$as_me: failed program was:" >&5
2376 cat conftest.
$ac_ext >&5
2377 # Passes both tests.
2381 rm -f conftest.err conftest.
$ac_ext
2384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2385 rm -f conftest.err conftest.
$ac_ext
2386 if $ac_preproc_ok; then
2398 echo "$as_me:$LINENO: result: $CPP" >&5
2399 echo "${ECHO_T}$CPP" >&6
2401 for ac_c_preproc_warn_flag
in '' yes
2403 # Use a header file that comes with gcc, so configuring glibc
2404 # with a fresh cross-compiler works.
2405 # On the NeXT, cc -E runs the code through the compiler's parser,
2406 # not just through cpp. "Syntax error" is here to catch this case.
2407 cat >conftest.
$ac_ext <<_ACEOF
2408 #line $LINENO "configure"
2409 #include "confdefs.h"
2413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2414 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2416 egrep -v '^ *\+' conftest.er1
>conftest.err
2418 cat conftest.err
>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } >/dev
/null
; then
2421 if test -s conftest.err
; then
2422 ac_cpp_err
=$ac_c_preproc_warn_flag
2429 if test -z "$ac_cpp_err"; then
2432 echo "$as_me: failed program was:" >&5
2433 cat conftest.
$ac_ext >&5
2434 # Broken: fails on valid input.
2437 rm -f conftest.err conftest.
$ac_ext
2439 # OK, works on sane cases. Now check whether non-existent headers
2440 # can be detected and how.
2441 cat >conftest.
$ac_ext <<_ACEOF
2442 #line $LINENO "configure"
2443 #include "confdefs.h"
2444 #include <ac_nonexistent.h>
2446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2447 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2449 egrep -v '^ *\+' conftest.er1
>conftest.err
2451 cat conftest.err
>&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } >/dev
/null
; then
2454 if test -s conftest.err
; then
2455 ac_cpp_err
=$ac_c_preproc_warn_flag
2462 if test -z "$ac_cpp_err"; then
2463 # Broken: success on invalid input.
2466 echo "$as_me: failed program was:" >&5
2467 cat conftest.
$ac_ext >&5
2468 # Passes both tests.
2472 rm -f conftest.err conftest.
$ac_ext
2475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2476 rm -f conftest.err conftest.
$ac_ext
2477 if $ac_preproc_ok; then
2480 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2481 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2482 { (exit 1); exit 1; }; }
2486 ac_cpp
='$CPP $CPPFLAGS'
2487 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2491 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2492 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2493 if test "${ac_cv_header_stdc+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 cat >conftest.
$ac_ext <<_ACEOF
2497 #line $LINENO "configure"
2498 #include "confdefs.h"
2505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2506 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2508 egrep -v '^ *\+' conftest.er1
>conftest.err
2510 cat conftest.err
>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } >/dev
/null
; then
2513 if test -s conftest.err
; then
2514 ac_cpp_err
=$ac_c_preproc_warn_flag
2521 if test -z "$ac_cpp_err"; then
2522 ac_cv_header_stdc
=yes
2524 echo "$as_me: failed program was:" >&5
2525 cat conftest.
$ac_ext >&5
2526 ac_cv_header_stdc
=no
2528 rm -f conftest.err conftest.
$ac_ext
2530 if test $ac_cv_header_stdc = yes; then
2531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2532 cat >conftest.
$ac_ext <<_ACEOF
2533 #line $LINENO "configure"
2534 #include "confdefs.h"
2538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2539 egrep "memchr" >/dev
/null
2>&1; then
2542 ac_cv_header_stdc
=no
2548 if test $ac_cv_header_stdc = yes; then
2549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2550 cat >conftest.
$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2557 egrep "free" >/dev
/null
2>&1; then
2560 ac_cv_header_stdc
=no
2566 if test $ac_cv_header_stdc = yes; then
2567 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2568 if test "$cross_compiling" = yes; then
2571 cat >conftest.
$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2573 #include "confdefs.h"
2575 #if ((' ' & 0x0FF) == 0x020)
2576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2579 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2580 || ('j' <= (c) && (c) <= 'r') \
2581 || ('s' <= (c) && (c) <= 'z'))
2582 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2585 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2590 for (i = 0; i < 256; i++)
2591 if (XOR (islower (i), ISLOWER (i))
2592 || toupper (i) != TOUPPER (i))
2597 rm -f conftest
$ac_exeext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599 (eval $ac_link) 2>&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2610 echo "$as_me: program exited with status $ac_status" >&5
2611 echo "$as_me: failed program was:" >&5
2612 cat conftest.
$ac_ext >&5
2614 ac_cv_header_stdc
=no
2616 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2620 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2621 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2622 if test $ac_cv_header_stdc = yes; then
2624 cat >>confdefs.h
<<\_ACEOF
2625 #define STDC_HEADERS 1
2630 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2632 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2633 inttypes.h stdint.h unistd.h
2635 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2636 echo "$as_me:$LINENO: checking for $ac_header" >&5
2637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 cat >conftest.
$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2644 $ac_includes_default
2646 #include <$ac_header>
2648 rm -f conftest.
$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try
='test -s conftest.$ac_objext'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2660 eval "$as_ac_Header=yes"
2662 echo "$as_me: failed program was:" >&5
2663 cat conftest.
$ac_ext >&5
2664 eval "$as_ac_Header=no"
2666 rm -f conftest.
$ac_objext conftest.
$ac_ext
2668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2671 cat >>confdefs.h
<<_ACEOF
2672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2679 if test "${ac_cv_header_minix_config_h+set}" = set; then
2680 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2681 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2682 if test "${ac_cv_header_minix_config_h+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2686 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2688 # Is the header compilable?
2689 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2690 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2691 cat >conftest.
$ac_ext <<_ACEOF
2692 #line $LINENO "configure"
2693 #include "confdefs.h"
2694 $ac_includes_default
2695 #include <minix/config.h>
2697 rm -f conftest.
$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try
='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2709 ac_header_compiler
=yes
2711 echo "$as_me: failed program was:" >&5
2712 cat conftest.
$ac_ext >&5
2713 ac_header_compiler
=no
2715 rm -f conftest.
$ac_objext conftest.
$ac_ext
2716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2717 echo "${ECHO_T}$ac_header_compiler" >&6
2719 # Is the header present?
2720 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2721 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2722 cat >conftest.
$ac_ext <<_ACEOF
2723 #line $LINENO "configure"
2724 #include "confdefs.h"
2725 #include <minix/config.h>
2727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2728 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2730 egrep -v '^ *\+' conftest.er1
>conftest.err
2732 cat conftest.err
>&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } >/dev
/null
; then
2735 if test -s conftest.err
; then
2736 ac_cpp_err
=$ac_c_preproc_warn_flag
2743 if test -z "$ac_cpp_err"; then
2744 ac_header_preproc
=yes
2746 echo "$as_me: failed program was:" >&5
2747 cat conftest.
$ac_ext >&5
2748 ac_header_preproc
=no
2750 rm -f conftest.err conftest.
$ac_ext
2751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2752 echo "${ECHO_T}$ac_header_preproc" >&6
2754 # So? What about this header?
2755 case $ac_header_compiler:$ac_header_preproc in
2757 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2758 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2759 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2760 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2762 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2763 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2764 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2765 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2766 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2767 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2769 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2770 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2771 if test "${ac_cv_header_minix_config_h+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 ac_cv_header_minix_config_h
=$ac_header_preproc
2776 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2777 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2780 if test $ac_cv_header_minix_config_h = yes; then
2786 if test "$MINIX" = yes; then
2788 cat >>confdefs.h
<<\_ACEOF
2789 #define _POSIX_SOURCE 1
2792 cat >>confdefs.h
<<\_ACEOF
2793 #define _POSIX_1_SOURCE 2
2796 cat >>confdefs.h
<<\_ACEOF
2802 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2803 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2804 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 ac_check_lib_save_LIBS
=$LIBS
2808 LIBS
="-lcposix $LIBS"
2809 cat >conftest.
$ac_ext <<_ACEOF
2810 #line $LINENO "configure"
2811 #include "confdefs.h"
2813 /* Override any gcc2 internal prototype to avoid an error. */
2817 /* We use char because int might match the return type of a gcc2
2818 builtin and then its argument prototype would still apply. */
2820 #ifdef F77_DUMMY_MAIN
2824 int F77_DUMMY_MAIN() { return 1; }
2834 rm -f conftest.
$ac_objext conftest
$ac_exeext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2836 (eval $ac_link) 2>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try
='test -s conftest$ac_exeext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 ac_cv_lib_cposix_strerror
=yes
2848 echo "$as_me: failed program was:" >&5
2849 cat conftest.
$ac_ext >&5
2850 ac_cv_lib_cposix_strerror
=no
2852 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2853 LIBS
=$ac_check_lib_save_LIBS
2855 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2856 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2857 if test $ac_cv_lib_cposix_strerror = yes; then
2858 LIBS
="$LIBS -lcposix"
2861 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2862 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2863 if test "${am_cv_prog_cc_stdc+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 am_cv_prog_cc_stdc
=no
2868 # Don't try gcc -ansi; that turns off useful extensions and
2869 # breaks some systems' header files.
2870 # AIX -qlanglvl=ansi
2871 # Ultrix and OSF/1 -std1
2872 # HP-UX 10.20 and later -Ae
2873 # HP-UX older versions -Aa -D_HPUX_SOURCE
2874 # SVR4 -Xc -D__EXTENSIONS__
2875 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2877 CC
="$ac_save_CC $ac_arg"
2878 cat >conftest.
$ac_ext <<_ACEOF
2879 #line $LINENO "configure"
2880 #include "confdefs.h"
2883 #include <sys/types.h>
2884 #include <sys/stat.h>
2885 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2886 struct buf { int x; };
2887 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2888 static char *e (p, i)
2894 static char *f (char * (*g) (char **, int), char **p, ...)
2899 s = g (p, va_arg (v,int));
2903 int test (int i, double x);
2904 struct s1 {int (*f) (int a);};
2905 struct s2 {int (*f) (double a);};
2906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2910 #ifdef F77_DUMMY_MAIN
2914 int F77_DUMMY_MAIN() { return 1; }
2920 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2926 rm -f conftest.
$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
2932 { ac_try
='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 am_cv_prog_cc_stdc
="$ac_arg"; break
2940 echo "$as_me: failed program was:" >&5
2941 cat conftest.
$ac_ext >&5
2943 rm -f conftest.
$ac_objext conftest.
$ac_ext
2949 if test -z "$am_cv_prog_cc_stdc"; then
2950 echo "$as_me:$LINENO: result: none needed" >&5
2951 echo "${ECHO_T}none needed" >&6
2953 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2954 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2956 case "x$am_cv_prog_cc_stdc" in
2958 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2963 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2964 echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2966 if test "${ac_cv_prog_RANLIB+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 if test -n "$RANLIB"; then
2970 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir
=.
2977 for ac_exec_ext
in '' $ac_executable_extensions; do
2978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 RANLIB
=$ac_cv_prog_RANLIB
2989 if test -n "$RANLIB"; then
2990 echo "$as_me:$LINENO: result: $RANLIB" >&5
2991 echo "${ECHO_T}$RANLIB" >&6
2993 echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6
2998 if test -z "$ac_cv_prog_RANLIB"; then
2999 ac_ct_RANLIB
=$RANLIB
3000 # Extract the first word of "ranlib", so it can be a program name with args.
3001 set dummy ranlib
; ac_word
=$2
3002 echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 if test -n "$ac_ct_RANLIB"; then
3008 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir
=.
3015 for ac_exec_ext
in '' $ac_executable_extensions; do
3016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3027 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3028 if test -n "$ac_ct_RANLIB"; then
3029 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3030 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3032 echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3036 RANLIB
=$ac_ct_RANLIB
3038 RANLIB
="$ac_cv_prog_RANLIB"
3041 AUTOM4TE
=${AUTOM4TE-"${am_missing_run}autom4te"}
3043 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3044 if test "${enable_gcc_warnings+set}" = set; then
3045 enableval
="$enable_gcc_warnings"
3046 case "${enableval}" in
3048 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3049 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3050 { (exit 1); exit 1; }; } ;;
3055 if test "${enableval}" = yes; then
3056 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3057 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3059 ac_save_CFLAGS
="$CFLAGS"
3060 CFLAGS
="$CFLAGS -Wall"
3061 cat >conftest.
$ac_ext <<_ACEOF
3062 #line $LINENO "configure"
3063 #include "confdefs.h"
3065 #ifdef F77_DUMMY_MAIN
3069 int F77_DUMMY_MAIN() { return 1; }
3079 rm -f conftest.
$ac_objext
3080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3081 (eval $ac_compile) 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try
='test -s conftest.$ac_objext'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3092 echo "$as_me:$LINENO: result: yes" >&5
3093 echo "${ECHO_T}yes" >&6
3095 echo "$as_me: failed program was:" >&5
3096 cat conftest.
$ac_ext >&5
3097 echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6
3100 rm -f conftest.
$ac_objext conftest.
$ac_ext
3101 CFLAGS
="$ac_save_CFLAGS"
3102 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3103 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3105 ac_save_CFLAGS
="$CFLAGS"
3107 cat >conftest.
$ac_ext <<_ACEOF
3108 #line $LINENO "configure"
3109 #include "confdefs.h"
3111 #ifdef F77_DUMMY_MAIN
3115 int F77_DUMMY_MAIN() { return 1; }
3125 rm -f conftest.
$ac_objext
3126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3127 (eval $ac_compile) 2>&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try
='test -s conftest.$ac_objext'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3138 echo "$as_me:$LINENO: result: yes" >&5
3139 echo "${ECHO_T}yes" >&6
3141 echo "$as_me: failed program was:" >&5
3142 cat conftest.
$ac_ext >&5
3143 echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6
3146 rm -f conftest.
$ac_objext conftest.
$ac_ext
3147 CFLAGS
="$ac_save_CFLAGS"
3148 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3149 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3151 ac_save_CFLAGS
="$CFLAGS"
3152 CFLAGS
="$CFLAGS -Wbad-function-cast"
3153 cat >conftest.
$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3155 #include "confdefs.h"
3157 #ifdef F77_DUMMY_MAIN
3161 int F77_DUMMY_MAIN() { return 1; }
3171 rm -f conftest.
$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try
='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3184 echo "$as_me:$LINENO: result: yes" >&5
3185 echo "${ECHO_T}yes" >&6
3187 echo "$as_me: failed program was:" >&5
3188 cat conftest.
$ac_ext >&5
3189 echo "$as_me:$LINENO: result: no" >&5
3190 echo "${ECHO_T}no" >&6
3192 rm -f conftest.
$ac_objext conftest.
$ac_ext
3193 CFLAGS
="$ac_save_CFLAGS"
3194 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3195 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3197 ac_save_CFLAGS
="$CFLAGS"
3198 CFLAGS
="$CFLAGS -Wcast-align"
3199 cat >conftest.
$ac_ext <<_ACEOF
3200 #line $LINENO "configure"
3201 #include "confdefs.h"
3203 #ifdef F77_DUMMY_MAIN
3207 int F77_DUMMY_MAIN() { return 1; }
3217 rm -f conftest.
$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try
='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3230 echo "$as_me:$LINENO: result: yes" >&5
3231 echo "${ECHO_T}yes" >&6
3233 echo "$as_me: failed program was:" >&5
3234 cat conftest.
$ac_ext >&5
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3238 rm -f conftest.
$ac_objext conftest.
$ac_ext
3239 CFLAGS
="$ac_save_CFLAGS"
3240 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3241 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3243 ac_save_CFLAGS
="$CFLAGS"
3244 CFLAGS
="$CFLAGS -Wcast-qual"
3245 cat >conftest.
$ac_ext <<_ACEOF
3246 #line $LINENO "configure"
3247 #include "confdefs.h"
3249 #ifdef F77_DUMMY_MAIN
3253 int F77_DUMMY_MAIN() { return 1; }
3263 rm -f conftest.
$ac_objext
3264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3265 (eval $ac_compile) 2>&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } &&
3269 { ac_try
='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3276 echo "$as_me:$LINENO: result: yes" >&5
3277 echo "${ECHO_T}yes" >&6
3279 echo "$as_me: failed program was:" >&5
3280 cat conftest.
$ac_ext >&5
3281 echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6
3284 rm -f conftest.
$ac_objext conftest.
$ac_ext
3285 CFLAGS
="$ac_save_CFLAGS"
3286 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3287 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3289 ac_save_CFLAGS
="$CFLAGS"
3290 CFLAGS
="$CFLAGS -Wformat"
3291 cat >conftest.
$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3293 #include "confdefs.h"
3295 #ifdef F77_DUMMY_MAIN
3299 int F77_DUMMY_MAIN() { return 1; }
3309 rm -f conftest.
$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311 (eval $ac_compile) 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try
='test -s conftest.$ac_objext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3321 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3322 echo "$as_me:$LINENO: result: yes" >&5
3323 echo "${ECHO_T}yes" >&6
3325 echo "$as_me: failed program was:" >&5
3326 cat conftest.
$ac_ext >&5
3327 echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3330 rm -f conftest.
$ac_objext conftest.
$ac_ext
3331 CFLAGS
="$ac_save_CFLAGS"
3332 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3333 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3335 ac_save_CFLAGS
="$CFLAGS"
3336 CFLAGS
="$CFLAGS -Wmissing-declarations"
3337 cat >conftest.
$ac_ext <<_ACEOF
3338 #line $LINENO "configure"
3339 #include "confdefs.h"
3341 #ifdef F77_DUMMY_MAIN
3345 int F77_DUMMY_MAIN() { return 1; }
3355 rm -f conftest.
$ac_objext
3356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357 (eval $ac_compile) 2>&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
3361 { ac_try
='test -s conftest.$ac_objext'
3362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
3367 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3368 echo "$as_me:$LINENO: result: yes" >&5
3369 echo "${ECHO_T}yes" >&6
3371 echo "$as_me: failed program was:" >&5
3372 cat conftest.
$ac_ext >&5
3373 echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3376 rm -f conftest.
$ac_objext conftest.
$ac_ext
3377 CFLAGS
="$ac_save_CFLAGS"
3378 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3379 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3381 ac_save_CFLAGS
="$CFLAGS"
3382 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3383 cat >conftest.
$ac_ext <<_ACEOF
3384 #line $LINENO "configure"
3385 #include "confdefs.h"
3387 #ifdef F77_DUMMY_MAIN
3391 int F77_DUMMY_MAIN() { return 1; }
3401 rm -f conftest.
$ac_objext
3402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3403 (eval $ac_compile) 2>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try
='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3414 echo "$as_me:$LINENO: result: yes" >&5
3415 echo "${ECHO_T}yes" >&6
3417 echo "$as_me: failed program was:" >&5
3418 cat conftest.
$ac_ext >&5
3419 echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3422 rm -f conftest.
$ac_objext conftest.
$ac_ext
3423 CFLAGS
="$ac_save_CFLAGS"
3424 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3425 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3427 ac_save_CFLAGS
="$CFLAGS"
3428 CFLAGS
="$CFLAGS -Wnested-externs"
3429 cat >conftest.
$ac_ext <<_ACEOF
3430 #line $LINENO "configure"
3431 #include "confdefs.h"
3433 #ifdef F77_DUMMY_MAIN
3437 int F77_DUMMY_MAIN() { return 1; }
3447 rm -f conftest.
$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } &&
3453 { ac_try
='test -s conftest.$ac_objext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3459 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3460 echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6
3463 echo "$as_me: failed program was:" >&5
3464 cat conftest.
$ac_ext >&5
3465 echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3468 rm -f conftest.
$ac_objext conftest.
$ac_ext
3469 CFLAGS
="$ac_save_CFLAGS"
3470 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3471 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3473 ac_save_CFLAGS
="$CFLAGS"
3474 CFLAGS
="$CFLAGS -Wshadow"
3475 cat >conftest.
$ac_ext <<_ACEOF
3476 #line $LINENO "configure"
3477 #include "confdefs.h"
3479 #ifdef F77_DUMMY_MAIN
3483 int F77_DUMMY_MAIN() { return 1; }
3493 rm -f conftest.
$ac_objext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try
='test -s conftest.$ac_objext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3506 echo "$as_me:$LINENO: result: yes" >&5
3507 echo "${ECHO_T}yes" >&6
3509 echo "$as_me: failed program was:" >&5
3510 cat conftest.
$ac_ext >&5
3511 echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6
3514 rm -f conftest.
$ac_objext conftest.
$ac_ext
3515 CFLAGS
="$ac_save_CFLAGS"
3516 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3517 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3519 ac_save_CFLAGS
="$CFLAGS"
3520 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3521 cat >conftest.
$ac_ext <<_ACEOF
3522 #line $LINENO "configure"
3523 #include "confdefs.h"
3525 #ifdef F77_DUMMY_MAIN
3529 int F77_DUMMY_MAIN() { return 1; }
3539 rm -f conftest.
$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try
='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3552 echo "$as_me:$LINENO: result: yes" >&5
3553 echo "${ECHO_T}yes" >&6
3555 echo "$as_me: failed program was:" >&5
3556 cat conftest.
$ac_ext >&5
3557 echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3560 rm -f conftest.
$ac_objext conftest.
$ac_ext
3561 CFLAGS
="$ac_save_CFLAGS"
3562 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3563 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3565 ac_save_CFLAGS
="$CFLAGS"
3566 CFLAGS
="$CFLAGS -Wwrite-strings"
3567 cat >conftest.
$ac_ext <<_ACEOF
3568 #line $LINENO "configure"
3569 #include "confdefs.h"
3571 #ifdef F77_DUMMY_MAIN
3575 int F77_DUMMY_MAIN() { return 1; }
3585 rm -f conftest.
$ac_objext
3586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3587 (eval $ac_compile) 2>&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
3591 { ac_try
='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3598 echo "$as_me:$LINENO: result: yes" >&5
3599 echo "${ECHO_T}yes" >&6
3601 echo "$as_me: failed program was:" >&5
3602 cat conftest.
$ac_ext >&5
3603 echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3606 rm -f conftest.
$ac_objext conftest.
$ac_ext
3607 CFLAGS
="$ac_save_CFLAGS"
3608 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3611 # Checks for libraries.
3613 cat >>confdefs.h
<<\_ACEOF
3614 #define _GNU_SOURCE 1
3617 # Checks for header files.
3618 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3619 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3620 if test "${ac_cv_header_stdc+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 cat >conftest.
$ac_ext <<_ACEOF
3624 #line $LINENO "configure"
3625 #include "confdefs.h"
3632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3633 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3635 egrep -v '^ *\+' conftest.er1
>conftest.err
3637 cat conftest.err
>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } >/dev
/null
; then
3640 if test -s conftest.err
; then
3641 ac_cpp_err
=$ac_c_preproc_warn_flag
3648 if test -z "$ac_cpp_err"; then
3649 ac_cv_header_stdc
=yes
3651 echo "$as_me: failed program was:" >&5
3652 cat conftest.
$ac_ext >&5
3653 ac_cv_header_stdc
=no
3655 rm -f conftest.err conftest.
$ac_ext
3657 if test $ac_cv_header_stdc = yes; then
3658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3659 cat >conftest.
$ac_ext <<_ACEOF
3660 #line $LINENO "configure"
3661 #include "confdefs.h"
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666 egrep "memchr" >/dev
/null
2>&1; then
3669 ac_cv_header_stdc
=no
3675 if test $ac_cv_header_stdc = yes; then
3676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3677 cat >conftest.
$ac_ext <<_ACEOF
3678 #line $LINENO "configure"
3679 #include "confdefs.h"
3683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3684 egrep "free" >/dev
/null
2>&1; then
3687 ac_cv_header_stdc
=no
3693 if test $ac_cv_header_stdc = yes; then
3694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3695 if test "$cross_compiling" = yes; then
3698 cat >conftest.
$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3700 #include "confdefs.h"
3702 #if ((' ' & 0x0FF) == 0x020)
3703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3706 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3707 || ('j' <= (c) && (c) <= 'r') \
3708 || ('s' <= (c) && (c) <= 'z'))
3709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3717 for (i = 0; i < 256; i++)
3718 if (XOR (islower (i), ISLOWER (i))
3719 || toupper (i) != TOUPPER (i))
3724 rm -f conftest
$ac_exeext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726 (eval $ac_link) 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3737 echo "$as_me: program exited with status $ac_status" >&5
3738 echo "$as_me: failed program was:" >&5
3739 cat conftest.
$ac_ext >&5
3741 ac_cv_header_stdc
=no
3743 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3747 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3748 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3749 if test $ac_cv_header_stdc = yes; then
3751 cat >>confdefs.h
<<\_ACEOF
3752 #define STDC_HEADERS 1
3757 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3759 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3761 echo "$as_me:$LINENO: checking for $ac_header" >&5
3762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3769 # Is the header compilable?
3770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3772 cat >conftest.
$ac_ext <<_ACEOF
3773 #line $LINENO "configure"
3774 #include "confdefs.h"
3775 $ac_includes_default
3776 #include <$ac_header>
3778 rm -f conftest.
$ac_objext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3780 (eval $ac_compile) 2>&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try
='test -s conftest.$ac_objext'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 ac_header_compiler
=yes
3792 echo "$as_me: failed program was:" >&5
3793 cat conftest.
$ac_ext >&5
3794 ac_header_compiler
=no
3796 rm -f conftest.
$ac_objext conftest.
$ac_ext
3797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3798 echo "${ECHO_T}$ac_header_compiler" >&6
3800 # Is the header present?
3801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3803 cat >conftest.
$ac_ext <<_ACEOF
3804 #line $LINENO "configure"
3805 #include "confdefs.h"
3806 #include <$ac_header>
3808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3809 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3811 egrep -v '^ *\+' conftest.er1
>conftest.err
3813 cat conftest.err
>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev
/null
; then
3816 if test -s conftest.err
; then
3817 ac_cpp_err
=$ac_c_preproc_warn_flag
3824 if test -z "$ac_cpp_err"; then
3825 ac_header_preproc
=yes
3827 echo "$as_me: failed program was:" >&5
3828 cat conftest.
$ac_ext >&5
3829 ac_header_preproc
=no
3831 rm -f conftest.err conftest.
$ac_ext
3832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3833 echo "${ECHO_T}$ac_header_preproc" >&6
3835 # So? What about this header?
3836 case $ac_header_compiler:$ac_header_preproc in
3838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3850 echo "$as_me:$LINENO: checking for $ac_header" >&5
3851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 eval "$as_ac_Header=$ac_header_preproc"
3857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3862 cat >>confdefs.h
<<_ACEOF
3863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3870 # Checks for typedefs.
3872 # Checks for structures.
3874 # Checks for compiler characteristics.
3875 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3876 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3877 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 ac_cv_prog_cc_stdc
=no
3882 cat >conftest.
$ac_ext <<_ACEOF
3883 #line $LINENO "configure"
3884 #include "confdefs.h"
3887 #include <sys/types.h>
3888 #include <sys/stat.h>
3889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3890 struct buf { int x; };
3891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3892 static char *e (p, i)
3898 static char *f (char * (*g) (char **, int), char **p, ...)
3903 s = g (p, va_arg (v,int));
3907 int test (int i, double x);
3908 struct s1 {int (*f) (int a);};
3909 struct s2 {int (*f) (double a);};
3910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3913 #ifdef F77_DUMMY_MAIN
3917 int F77_DUMMY_MAIN() { return 1; }
3922 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3927 # Don't try gcc -ansi; that turns off useful extensions and
3928 # breaks some systems' header files.
3929 # AIX -qlanglvl=ansi
3930 # Ultrix and OSF/1 -std1
3931 # HP-UX 10.20 and later -Ae
3932 # HP-UX older versions -Aa -D_HPUX_SOURCE
3933 # SVR4 -Xc -D__EXTENSIONS__
3934 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3936 CC
="$ac_save_CC $ac_arg"
3937 rm -f conftest.
$ac_objext
3938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3939 (eval $ac_compile) 2>&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } &&
3943 { ac_try
='test -s conftest.$ac_objext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_cv_prog_cc_stdc
=$ac_arg
3952 echo "$as_me: failed program was:" >&5
3953 cat conftest.
$ac_ext >&5
3955 rm -f conftest.
$ac_objext
3957 rm -f conftest.
$ac_ext conftest.
$ac_objext
3962 case "x$ac_cv_prog_cc_stdc" in
3964 echo "$as_me:$LINENO: result: none needed" >&5
3965 echo "${ECHO_T}none needed" >&6 ;;
3967 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3968 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3969 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3972 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3973 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3974 if test "${ac_cv_c_const+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 cat >conftest.
$ac_ext <<_ACEOF
3978 #line $LINENO "configure"
3979 #include "confdefs.h"
3981 #ifdef F77_DUMMY_MAIN
3985 int F77_DUMMY_MAIN() { return 1; }
3990 /* FIXME: Include the comments suggested by Paul. */
3992 /* Ultrix mips cc rejects this. */
3993 typedef int charset[2];
3995 /* SunOS 4.1.1 cc rejects this. */
3996 char const *const *ccp;
3998 /* NEC SVR4.0.2 mips cc rejects this. */
3999 struct point {int x, y;};
4000 static struct point const zero = {0,0};
4001 /* AIX XL C 1.02.0.0 rejects this.
4002 It does not let you subtract one const X* pointer from another in
4003 an arm of an if-expression whose if-part is not a constant
4005 const char *g = "string";
4006 ccp = &g + (g ? g-g : 0);
4007 /* HPUX 7.0 cc rejects these. */
4010 ccp = (char const *const *) p;
4011 { /* SCO 3.2v4 cc rejects this. */
4013 char const *s = 0 ? (char *) 0 : (char const *) 0;
4017 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4019 const int *foo = &x[0];
4022 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4023 typedef const int *iptr;
4027 { /* AIX XL C 1.02.0.0 rejects this saying
4028 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4029 struct s { int j; const int *ap[3]; };
4030 struct s *b; b->j = 5;
4032 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4041 rm -f conftest.
$ac_objext
4042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043 (eval $ac_compile) 2>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try
='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4055 echo "$as_me: failed program was:" >&5
4056 cat conftest.
$ac_ext >&5
4059 rm -f conftest.
$ac_objext conftest.
$ac_ext
4061 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4062 echo "${ECHO_T}$ac_cv_c_const" >&6
4063 if test $ac_cv_c_const = no
; then
4065 cat >>confdefs.h
<<\_ACEOF
4071 echo "$as_me:$LINENO: checking for inline" >&5
4072 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4073 if test "${ac_cv_c_inline+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 for ac_kw
in inline __inline__ __inline
; do
4078 cat >conftest.
$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4080 #include "confdefs.h"
4082 static $ac_kw int static_foo () {return 0; }
4083 $ac_kw int foo () {return 0; }
4087 rm -f conftest.
$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try
='test -s conftest.$ac_objext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 ac_cv_c_inline
=$ac_kw; break
4101 echo "$as_me: failed program was:" >&5
4102 cat conftest.
$ac_ext >&5
4104 rm -f conftest.
$ac_objext conftest.
$ac_ext
4108 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4109 echo "${ECHO_T}$ac_cv_c_inline" >&6
4110 case $ac_cv_c_inline in
4113 cat >>confdefs.h
<<\_ACEOF
4117 *) cat >>confdefs.h
<<_ACEOF
4118 #define inline $ac_cv_c_inline
4123 echo "$as_me:$LINENO: checking for function prototypes" >&5
4124 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4125 if test "$am_cv_prog_cc_stdc" != no
; then
4126 echo "$as_me:$LINENO: result: yes" >&5
4127 echo "${ECHO_T}yes" >&6
4129 cat >>confdefs.h
<<\_ACEOF
4130 #define PROTOTYPES 1
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4137 U
=_ ANSI2KNR
=.
/ansi2knr
4139 # Ensure some checks needed by ansi2knr itself.
4140 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4142 if test "${ac_cv_header_stdc+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 cat >conftest.
$ac_ext <<_ACEOF
4146 #line $LINENO "configure"
4147 #include "confdefs.h"
4154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4155 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4157 egrep -v '^ *\+' conftest.er1
>conftest.err
4159 cat conftest.err
>&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } >/dev
/null
; then
4162 if test -s conftest.err
; then
4163 ac_cpp_err
=$ac_c_preproc_warn_flag
4170 if test -z "$ac_cpp_err"; then
4171 ac_cv_header_stdc
=yes
4173 echo "$as_me: failed program was:" >&5
4174 cat conftest.
$ac_ext >&5
4175 ac_cv_header_stdc
=no
4177 rm -f conftest.err conftest.
$ac_ext
4179 if test $ac_cv_header_stdc = yes; then
4180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4181 cat >conftest.
$ac_ext <<_ACEOF
4182 #line $LINENO "configure"
4183 #include "confdefs.h"
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 egrep "memchr" >/dev
/null
2>&1; then
4191 ac_cv_header_stdc
=no
4197 if test $ac_cv_header_stdc = yes; then
4198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4199 cat >conftest.
$ac_ext <<_ACEOF
4200 #line $LINENO "configure"
4201 #include "confdefs.h"
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 egrep "free" >/dev
/null
2>&1; then
4209 ac_cv_header_stdc
=no
4215 if test $ac_cv_header_stdc = yes; then
4216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4217 if test "$cross_compiling" = yes; then
4220 cat >conftest.
$ac_ext <<_ACEOF
4221 #line $LINENO "configure"
4222 #include "confdefs.h"
4224 #if ((' ' & 0x0FF) == 0x020)
4225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4228 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4229 || ('j' <= (c) && (c) <= 'r') \
4230 || ('s' <= (c) && (c) <= 'z'))
4231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4239 for (i = 0; i < 256; i++)
4240 if (XOR (islower (i), ISLOWER (i))
4241 || toupper (i) != TOUPPER (i))
4246 rm -f conftest
$ac_exeext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4248 (eval $ac_link) 2>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4259 echo "$as_me: program exited with status $ac_status" >&5
4260 echo "$as_me: failed program was:" >&5
4261 cat conftest.
$ac_ext >&5
4263 ac_cv_header_stdc
=no
4265 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4269 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4270 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4271 if test $ac_cv_header_stdc = yes; then
4273 cat >>confdefs.h
<<\_ACEOF
4274 #define STDC_HEADERS 1
4279 for ac_header
in string.h
4281 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4283 echo "$as_me:$LINENO: checking for $ac_header" >&5
4284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4291 # Is the header compilable?
4292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4294 cat >conftest.
$ac_ext <<_ACEOF
4295 #line $LINENO "configure"
4296 #include "confdefs.h"
4297 $ac_includes_default
4298 #include <$ac_header>
4300 rm -f conftest.
$ac_objext
4301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302 (eval $ac_compile) 2>&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try
='test -s conftest.$ac_objext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_header_compiler
=yes
4314 echo "$as_me: failed program was:" >&5
4315 cat conftest.
$ac_ext >&5
4316 ac_header_compiler
=no
4318 rm -f conftest.
$ac_objext conftest.
$ac_ext
4319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4320 echo "${ECHO_T}$ac_header_compiler" >&6
4322 # Is the header present?
4323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4325 cat >conftest.
$ac_ext <<_ACEOF
4326 #line $LINENO "configure"
4327 #include "confdefs.h"
4328 #include <$ac_header>
4330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4331 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4333 egrep -v '^ *\+' conftest.er1
>conftest.err
4335 cat conftest.err
>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } >/dev
/null
; then
4338 if test -s conftest.err
; then
4339 ac_cpp_err
=$ac_c_preproc_warn_flag
4346 if test -z "$ac_cpp_err"; then
4347 ac_header_preproc
=yes
4349 echo "$as_me: failed program was:" >&5
4350 cat conftest.
$ac_ext >&5
4351 ac_header_preproc
=no
4353 rm -f conftest.err conftest.
$ac_ext
4354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4355 echo "${ECHO_T}$ac_header_preproc" >&6
4357 # So? What about this header?
4358 case $ac_header_compiler:$ac_header_preproc in
4360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4372 echo "$as_me:$LINENO: checking for $ac_header" >&5
4373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 eval "$as_ac_Header=$ac_header_preproc"
4379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4384 cat >>confdefs.h
<<_ACEOF
4385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4392 # Checks for library functions.
4393 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4394 # for constant arguments. Useless!
4395 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4396 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4397 if test "${ac_cv_working_alloca_h+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 cat >conftest.
$ac_ext <<_ACEOF
4401 #line $LINENO "configure"
4402 #include "confdefs.h"
4404 #ifdef F77_DUMMY_MAIN
4408 int F77_DUMMY_MAIN() { return 1; }
4413 char *p = (char *) alloca (2 * sizeof (int));
4418 rm -f conftest.
$ac_objext conftest
$ac_exeext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4420 (eval $ac_link) 2>&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try
='test -s conftest$ac_exeext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 ac_cv_working_alloca_h
=yes
4432 echo "$as_me: failed program was:" >&5
4433 cat conftest.
$ac_ext >&5
4434 ac_cv_working_alloca_h
=no
4436 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4438 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4439 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4440 if test $ac_cv_working_alloca_h = yes; then
4442 cat >>confdefs.h
<<\_ACEOF
4443 #define HAVE_ALLOCA_H 1
4448 echo "$as_me:$LINENO: checking for alloca" >&5
4449 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4450 if test "${ac_cv_func_alloca_works+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 cat >conftest.
$ac_ext <<_ACEOF
4454 #line $LINENO "configure"
4455 #include "confdefs.h"
4457 # define alloca __builtin_alloca
4460 # include <malloc.h>
4461 # define alloca _alloca
4464 # include <alloca.h>
4469 # ifndef alloca /* predefined by HP cc +Olibcalls */
4477 #ifdef F77_DUMMY_MAIN
4481 int F77_DUMMY_MAIN() { return 1; }
4486 char *p = (char *) alloca (1);
4491 rm -f conftest.
$ac_objext conftest
$ac_exeext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4493 (eval $ac_link) 2>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try
='test -s conftest$ac_exeext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_func_alloca_works
=yes
4505 echo "$as_me: failed program was:" >&5
4506 cat conftest.
$ac_ext >&5
4507 ac_cv_func_alloca_works
=no
4509 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4511 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4512 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4514 if test $ac_cv_func_alloca_works = yes; then
4516 cat >>confdefs.h
<<\_ACEOF
4517 #define HAVE_ALLOCA 1
4521 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4522 # that cause trouble. Some versions do not even contain alloca or
4523 # contain a buggy version. If you still want to use their alloca,
4524 # use ar to extract alloca.o from them instead of compiling alloca.c.
4526 ALLOCA
=alloca.
$ac_objext
4528 cat >>confdefs.h
<<\_ACEOF
4532 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4533 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4534 if test "${ac_cv_os_cray+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 cat >conftest.
$ac_ext <<_ACEOF
4538 #line $LINENO "configure"
4539 #include "confdefs.h"
4540 #if defined(CRAY) && ! defined(CRAY2)
4547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548 egrep "webecray" >/dev
/null
2>&1; then
4556 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4557 echo "${ECHO_T}$ac_cv_os_cray" >&6
4558 if test $ac_cv_os_cray = yes; then
4559 for ac_func
in _getb67 GETB67 getb67
; do
4560 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4561 echo "$as_me:$LINENO: checking for $ac_func" >&5
4562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4563 if eval "test \"\${$as_ac_var+set}\" = set"; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 cat >conftest.
$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4568 #include "confdefs.h"
4569 /* System header to define __stub macros and hopefully few prototypes,
4570 which can conflict with char $ac_func (); below. */
4572 /* Override any gcc2 internal prototype to avoid an error. */
4576 /* We use char because int might match the return type of a gcc2
4577 builtin and then its argument prototype would still apply. */
4581 #ifdef F77_DUMMY_MAIN
4585 int F77_DUMMY_MAIN() { return 1; }
4590 /* The GNU C library defines this for functions which it implements
4591 to always fail with ENOSYS. Some functions are actually named
4592 something starting with __ and the normal name is an alias. */
4593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4603 rm -f conftest.
$ac_objext conftest
$ac_exeext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4605 (eval $ac_link) 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try
='test -s conftest$ac_exeext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 eval "$as_ac_var=yes"
4617 echo "$as_me: failed program was:" >&5
4618 cat conftest.
$ac_ext >&5
4619 eval "$as_ac_var=no"
4621 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4625 if test `eval echo '${'$as_ac_var'}'` = yes; then
4627 cat >>confdefs.h
<<_ACEOF
4628 #define CRAY_STACKSEG_END $ac_func
4637 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4638 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4639 if test "${ac_cv_c_stack_direction+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 if test "$cross_compiling" = yes; then
4643 ac_cv_c_stack_direction
=0
4645 cat >conftest.
$ac_ext <<_ACEOF
4646 #line $LINENO "configure"
4647 #include "confdefs.h"
4649 find_stack_direction ()
4651 static char *addr = 0;
4656 return find_stack_direction ();
4659 return (&dummy > addr) ? 1 : -1;
4665 exit (find_stack_direction () < 0);
4668 rm -f conftest
$ac_exeext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4670 (eval $ac_link) 2>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 ac_cv_c_stack_direction
=1
4681 echo "$as_me: program exited with status $ac_status" >&5
4682 echo "$as_me: failed program was:" >&5
4683 cat conftest.
$ac_ext >&5
4685 ac_cv_c_stack_direction
=-1
4687 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4690 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4691 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4693 cat >>confdefs.h
<<_ACEOF
4694 #define STACK_DIRECTION $ac_cv_c_stack_direction
4699 for ac_func
in mkstemp setlocale
4701 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4702 echo "$as_me:$LINENO: checking for $ac_func" >&5
4703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4704 if eval "test \"\${$as_ac_var+set}\" = set"; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 cat >conftest.
$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4709 #include "confdefs.h"
4710 /* System header to define __stub macros and hopefully few prototypes,
4711 which can conflict with char $ac_func (); below. */
4713 /* Override any gcc2 internal prototype to avoid an error. */
4717 /* We use char because int might match the return type of a gcc2
4718 builtin and then its argument prototype would still apply. */
4722 #ifdef F77_DUMMY_MAIN
4726 int F77_DUMMY_MAIN() { return 1; }
4731 /* The GNU C library defines this for functions which it implements
4732 to always fail with ENOSYS. Some functions are actually named
4733 something starting with __ and the normal name is an alias. */
4734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4744 rm -f conftest.
$ac_objext conftest
$ac_exeext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4746 (eval $ac_link) 2>&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try
='test -s conftest$ac_exeext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 eval "$as_ac_var=yes"
4758 echo "$as_me: failed program was:" >&5
4759 cat conftest.
$ac_ext >&5
4760 eval "$as_ac_var=no"
4762 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4766 if test `eval echo '${'$as_ac_var'}'` = yes; then
4767 cat >>confdefs.h
<<_ACEOF
4768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4774 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4775 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4776 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 cat >conftest.
$ac_ext <<_ACEOF
4780 #line $LINENO "configure"
4781 #include "confdefs.h"
4782 $ac_includes_default
4783 #ifdef F77_DUMMY_MAIN
4787 int F77_DUMMY_MAIN() { return 1; }
4793 char *p = (char *) stpcpy;
4800 rm -f conftest.
$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } &&
4806 { ac_try
='test -s conftest.$ac_objext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 ac_cv_have_decl_stpcpy
=yes
4814 echo "$as_me: failed program was:" >&5
4815 cat conftest.
$ac_ext >&5
4816 ac_cv_have_decl_stpcpy
=no
4818 rm -f conftest.
$ac_objext conftest.
$ac_ext
4820 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4821 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4822 if test $ac_cv_have_decl_stpcpy = yes; then
4824 cat >>confdefs.h
<<_ACEOF
4825 #define HAVE_DECL_STPCPY 1
4829 cat >>confdefs.h
<<_ACEOF
4830 #define HAVE_DECL_STPCPY 0
4834 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4835 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4836 if test "${ac_cv_have_decl_strndup+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 cat >conftest.
$ac_ext <<_ACEOF
4840 #line $LINENO "configure"
4841 #include "confdefs.h"
4842 $ac_includes_default
4843 #ifdef F77_DUMMY_MAIN
4847 int F77_DUMMY_MAIN() { return 1; }
4853 char *p = (char *) strndup;
4860 rm -f conftest.
$ac_objext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try
='test -s conftest.$ac_objext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_have_decl_strndup
=yes
4874 echo "$as_me: failed program was:" >&5
4875 cat conftest.
$ac_ext >&5
4876 ac_cv_have_decl_strndup
=no
4878 rm -f conftest.
$ac_objext conftest.
$ac_ext
4880 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4881 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4882 if test $ac_cv_have_decl_strndup = yes; then
4884 cat >>confdefs.h
<<_ACEOF
4885 #define HAVE_DECL_STRNDUP 1
4889 cat >>confdefs.h
<<_ACEOF
4890 #define HAVE_DECL_STRNDUP 0
4894 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4895 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4896 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 cat >conftest.
$ac_ext <<_ACEOF
4900 #line $LINENO "configure"
4901 #include "confdefs.h"
4902 $ac_includes_default
4903 #ifdef F77_DUMMY_MAIN
4907 int F77_DUMMY_MAIN() { return 1; }
4913 char *p = (char *) strnlen;
4920 rm -f conftest.
$ac_objext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try
='test -s conftest.$ac_objext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4932 ac_cv_have_decl_strnlen
=yes
4934 echo "$as_me: failed program was:" >&5
4935 cat conftest.
$ac_ext >&5
4936 ac_cv_have_decl_strnlen
=no
4938 rm -f conftest.
$ac_objext conftest.
$ac_ext
4940 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
4941 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4942 if test $ac_cv_have_decl_strnlen = yes; then
4944 cat >>confdefs.h
<<_ACEOF
4945 #define HAVE_DECL_STRNLEN 1
4949 cat >>confdefs.h
<<_ACEOF
4950 #define HAVE_DECL_STRNLEN 0
4954 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
4955 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4956 if test "${ac_cv_have_decl_memchr+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 cat >conftest.
$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 #include "confdefs.h"
4962 $ac_includes_default
4963 #ifdef F77_DUMMY_MAIN
4967 int F77_DUMMY_MAIN() { return 1; }
4973 char *p = (char *) memchr;
4980 rm -f conftest.
$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try
='test -s conftest.$ac_objext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_cv_have_decl_memchr
=yes
4994 echo "$as_me: failed program was:" >&5
4995 cat conftest.
$ac_ext >&5
4996 ac_cv_have_decl_memchr
=no
4998 rm -f conftest.
$ac_objext conftest.
$ac_ext
5000 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5001 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5002 if test $ac_cv_have_decl_memchr = yes; then
5004 cat >>confdefs.h
<<_ACEOF
5005 #define HAVE_DECL_MEMCHR 1
5009 cat >>confdefs.h
<<_ACEOF
5010 #define HAVE_DECL_MEMCHR 0
5015 for ac_func
in stpcpy strndup strnlen strspn memchr
5017 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5018 echo "$as_me:$LINENO: checking for $ac_func" >&5
5019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5020 if eval "test \"\${$as_ac_var+set}\" = set"; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 cat >conftest.
$ac_ext <<_ACEOF
5024 #line $LINENO "configure"
5025 #include "confdefs.h"
5026 /* System header to define __stub macros and hopefully few prototypes,
5027 which can conflict with char $ac_func (); below. */
5029 /* Override any gcc2 internal prototype to avoid an error. */
5033 /* We use char because int might match the return type of a gcc2
5034 builtin and then its argument prototype would still apply. */
5038 #ifdef F77_DUMMY_MAIN
5042 int F77_DUMMY_MAIN() { return 1; }
5047 /* The GNU C library defines this for functions which it implements
5048 to always fail with ENOSYS. Some functions are actually named
5049 something starting with __ and the normal name is an alias. */
5050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5060 rm -f conftest.
$ac_objext conftest
$ac_exeext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5062 (eval $ac_link) 2>&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try
='test -s conftest$ac_exeext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 eval "$as_ac_var=yes"
5074 echo "$as_me: failed program was:" >&5
5075 cat conftest.
$ac_ext >&5
5076 eval "$as_ac_var=no"
5078 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5082 if test `eval echo '${'$as_ac_var'}'` = yes; then
5083 cat >>confdefs.h
<<_ACEOF
5084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5088 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5092 cat >>confdefs.h
<<_ACEOF
5093 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5096 echo "$as_me:$LINENO: checking for working malloc" >&5
5097 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5098 if test "${jm_cv_func_working_malloc+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 if test "$cross_compiling" = yes; then
5102 jm_cv_func_working_malloc
=no
5104 cat >conftest.
$ac_ext <<_ACEOF
5105 #line $LINENO "configure"
5106 #include "confdefs.h"
5112 exit (malloc (0) ? 0 : 1);
5116 rm -f conftest
$ac_exeext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118 (eval $ac_link) 2>&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; }; then
5127 jm_cv_func_working_malloc
=yes
5129 echo "$as_me: program exited with status $ac_status" >&5
5130 echo "$as_me: failed program was:" >&5
5131 cat conftest.
$ac_ext >&5
5133 jm_cv_func_working_malloc
=no
5135 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5139 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5140 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5141 if test $jm_cv_func_working_malloc = no
; then
5143 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5145 cat >>confdefs.h
<<_ACEOF
5146 #define malloc rpl_malloc
5151 cat >>confdefs.h
<<_ACEOF
5152 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5155 echo "$as_me:$LINENO: checking for working realloc" >&5
5156 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5157 if test "${jm_cv_func_working_realloc+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 if test "$cross_compiling" = yes; then
5161 jm_cv_func_working_realloc
=no
5163 cat >conftest.
$ac_ext <<_ACEOF
5164 #line $LINENO "configure"
5165 #include "confdefs.h"
5171 exit (realloc (0, 0) ? 0 : 1);
5175 rm -f conftest
$ac_exeext
5176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5177 (eval $ac_link) 2>&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 jm_cv_func_working_realloc
=yes
5188 echo "$as_me: program exited with status $ac_status" >&5
5189 echo "$as_me: failed program was:" >&5
5190 cat conftest.
$ac_ext >&5
5192 jm_cv_func_working_realloc
=no
5194 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5198 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5199 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5200 if test $jm_cv_func_working_realloc = no
; then
5202 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5204 cat >>confdefs.h
<<_ACEOF
5205 #define realloc rpl_realloc
5210 for ac_func
in isascii iswprint mbsinit
5212 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5213 echo "$as_me:$LINENO: checking for $ac_func" >&5
5214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5215 if eval "test \"\${$as_ac_var+set}\" = set"; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 cat >conftest.
$ac_ext <<_ACEOF
5219 #line $LINENO "configure"
5220 #include "confdefs.h"
5221 /* System header to define __stub macros and hopefully few prototypes,
5222 which can conflict with char $ac_func (); below. */
5224 /* Override any gcc2 internal prototype to avoid an error. */
5228 /* We use char because int might match the return type of a gcc2
5229 builtin and then its argument prototype would still apply. */
5233 #ifdef F77_DUMMY_MAIN
5237 int F77_DUMMY_MAIN() { return 1; }
5242 /* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5255 rm -f conftest.
$ac_objext conftest
$ac_exeext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5257 (eval $ac_link) 2>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try
='test -s conftest$ac_exeext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 eval "$as_ac_var=yes"
5269 echo "$as_me: failed program was:" >&5
5270 cat conftest.
$ac_ext >&5
5271 eval "$as_ac_var=no"
5273 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5277 if test `eval echo '${'$as_ac_var'}'` = yes; then
5278 cat >>confdefs.h
<<_ACEOF
5279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5285 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5286 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5287 if test "${jm_cv_func_mbrtowc+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 cat >conftest.
$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 #include "confdefs.h"
5294 #ifdef F77_DUMMY_MAIN
5298 int F77_DUMMY_MAIN() { return 1; }
5303 mbstate_t state; return ! (sizeof state && mbrtowc);
5308 rm -f conftest.
$ac_objext conftest
$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try
='test -s conftest$ac_exeext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 jm_cv_func_mbrtowc
=yes
5322 echo "$as_me: failed program was:" >&5
5323 cat conftest.
$ac_ext >&5
5324 jm_cv_func_mbrtowc
=no
5326 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5328 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5329 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5330 if test $jm_cv_func_mbrtowc = yes; then
5332 cat >>confdefs.h
<<\_ACEOF
5333 #define HAVE_MBRTOWC 1
5338 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5340 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5342 echo "$as_me:$LINENO: checking for $ac_header" >&5
5343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5350 # Is the header compilable?
5351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5353 cat >conftest.
$ac_ext <<_ACEOF
5354 #line $LINENO "configure"
5355 #include "confdefs.h"
5356 $ac_includes_default
5357 #include <$ac_header>
5359 rm -f conftest.
$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try
='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_header_compiler
=yes
5373 echo "$as_me: failed program was:" >&5
5374 cat conftest.
$ac_ext >&5
5375 ac_header_compiler
=no
5377 rm -f conftest.
$ac_objext conftest.
$ac_ext
5378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5379 echo "${ECHO_T}$ac_header_compiler" >&6
5381 # Is the header present?
5382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5384 cat >conftest.
$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5386 #include "confdefs.h"
5387 #include <$ac_header>
5389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5390 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5392 egrep -v '^ *\+' conftest.er1
>conftest.err
5394 cat conftest.err
>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } >/dev
/null
; then
5397 if test -s conftest.err
; then
5398 ac_cpp_err
=$ac_c_preproc_warn_flag
5405 if test -z "$ac_cpp_err"; then
5406 ac_header_preproc
=yes
5408 echo "$as_me: failed program was:" >&5
5409 cat conftest.
$ac_ext >&5
5410 ac_header_preproc
=no
5412 rm -f conftest.err conftest.
$ac_ext
5413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5414 echo "${ECHO_T}$ac_header_preproc" >&6
5416 # So? What about this header?
5417 case $ac_header_compiler:$ac_header_preproc in
5419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5431 echo "$as_me:$LINENO: checking for $ac_header" >&5
5432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 eval "$as_ac_Header=$ac_header_preproc"
5438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5443 cat >>confdefs.h
<<_ACEOF
5444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5451 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5452 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5453 if test "${ac_cv_header_stdc+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 cat >conftest.
$ac_ext <<_ACEOF
5457 #line $LINENO "configure"
5458 #include "confdefs.h"
5465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5466 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5468 egrep -v '^ *\+' conftest.er1
>conftest.err
5470 cat conftest.err
>&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev
/null
; then
5473 if test -s conftest.err
; then
5474 ac_cpp_err
=$ac_c_preproc_warn_flag
5481 if test -z "$ac_cpp_err"; then
5482 ac_cv_header_stdc
=yes
5484 echo "$as_me: failed program was:" >&5
5485 cat conftest.
$ac_ext >&5
5486 ac_cv_header_stdc
=no
5488 rm -f conftest.err conftest.
$ac_ext
5490 if test $ac_cv_header_stdc = yes; then
5491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5492 cat >conftest.
$ac_ext <<_ACEOF
5493 #line $LINENO "configure"
5494 #include "confdefs.h"
5498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5499 egrep "memchr" >/dev
/null
2>&1; then
5502 ac_cv_header_stdc
=no
5508 if test $ac_cv_header_stdc = yes; then
5509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5510 cat >conftest.
$ac_ext <<_ACEOF
5511 #line $LINENO "configure"
5512 #include "confdefs.h"
5516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5517 egrep "free" >/dev
/null
2>&1; then
5520 ac_cv_header_stdc
=no
5526 if test $ac_cv_header_stdc = yes; then
5527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5528 if test "$cross_compiling" = yes; then
5531 cat >conftest.
$ac_ext <<_ACEOF
5532 #line $LINENO "configure"
5533 #include "confdefs.h"
5535 #if ((' ' & 0x0FF) == 0x020)
5536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5539 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5540 || ('j' <= (c) && (c) <= 'r') \
5541 || ('s' <= (c) && (c) <= 'z'))
5542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5550 for (i = 0; i < 256; i++)
5551 if (XOR (islower (i), ISLOWER (i))
5552 || toupper (i) != TOUPPER (i))
5557 rm -f conftest
$ac_exeext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5559 (eval $ac_link) 2>&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5570 echo "$as_me: program exited with status $ac_status" >&5
5571 echo "$as_me: failed program was:" >&5
5572 cat conftest.
$ac_ext >&5
5574 ac_cv_header_stdc
=no
5576 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5580 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5581 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5582 if test $ac_cv_header_stdc = yes; then
5584 cat >>confdefs.h
<<\_ACEOF
5585 #define STDC_HEADERS 1
5590 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5591 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5592 if test "${ac_cv_c_backslash_a+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 cat >conftest.
$ac_ext <<_ACEOF
5596 #line $LINENO "configure"
5597 #include "confdefs.h"
5599 #ifdef F77_DUMMY_MAIN
5603 int F77_DUMMY_MAIN() { return 1; }
5612 char buf['\a' == 'a' ? -1 : 1];
5614 return buf[0] != "\a"[0];
5620 rm -f conftest.
$ac_objext
5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622 (eval $ac_compile) 2>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try
='test -s conftest.$ac_objext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_cv_c_backslash_a
=yes
5634 echo "$as_me: failed program was:" >&5
5635 cat conftest.
$ac_ext >&5
5636 ac_cv_c_backslash_a
=no
5638 rm -f conftest.
$ac_objext conftest.
$ac_ext
5640 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5641 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5642 if test $ac_cv_c_backslash_a = yes; then
5644 cat >>confdefs.h
<<\_ACEOF
5645 #define HAVE_C_BACKSLASH_A 1
5650 for ac_header
in stdlib.h
5652 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5654 echo "$as_me:$LINENO: checking for $ac_header" >&5
5655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5662 # Is the header compilable?
5663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5665 cat >conftest.
$ac_ext <<_ACEOF
5666 #line $LINENO "configure"
5667 #include "confdefs.h"
5668 $ac_includes_default
5669 #include <$ac_header>
5671 rm -f conftest.
$ac_objext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try
='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_header_compiler
=yes
5685 echo "$as_me: failed program was:" >&5
5686 cat conftest.
$ac_ext >&5
5687 ac_header_compiler
=no
5689 rm -f conftest.
$ac_objext conftest.
$ac_ext
5690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5691 echo "${ECHO_T}$ac_header_compiler" >&6
5693 # Is the header present?
5694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5696 cat >conftest.
$ac_ext <<_ACEOF
5697 #line $LINENO "configure"
5698 #include "confdefs.h"
5699 #include <$ac_header>
5701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5702 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5704 egrep -v '^ *\+' conftest.er1
>conftest.err
5706 cat conftest.err
>&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } >/dev
/null
; then
5709 if test -s conftest.err
; then
5710 ac_cpp_err
=$ac_c_preproc_warn_flag
5717 if test -z "$ac_cpp_err"; then
5718 ac_header_preproc
=yes
5720 echo "$as_me: failed program was:" >&5
5721 cat conftest.
$ac_ext >&5
5722 ac_header_preproc
=no
5724 rm -f conftest.err conftest.
$ac_ext
5725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5726 echo "${ECHO_T}$ac_header_preproc" >&6
5728 # So? What about this header?
5729 case $ac_header_compiler:$ac_header_preproc in
5731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5743 echo "$as_me:$LINENO: checking for $ac_header" >&5
5744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 eval "$as_ac_Header=$ac_header_preproc"
5750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5755 cat >>confdefs.h
<<_ACEOF
5756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5763 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5764 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5765 if test "${ac_cv_type_mbstate_t+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 cat >conftest.
$ac_ext <<_ACEOF
5769 #line $LINENO "configure"
5770 #include "confdefs.h"
5773 # include <stdlib.h>
5776 #ifdef F77_DUMMY_MAIN
5780 int F77_DUMMY_MAIN() { return 1; }
5785 mbstate_t x; return sizeof x;
5790 rm -f conftest.
$ac_objext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792 (eval $ac_compile) 2>&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } &&
5796 { ac_try
='test -s conftest.$ac_objext'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 ac_cv_type_mbstate_t
=yes
5804 echo "$as_me: failed program was:" >&5
5805 cat conftest.
$ac_ext >&5
5806 ac_cv_type_mbstate_t
=no
5808 rm -f conftest.
$ac_objext conftest.
$ac_ext
5810 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5811 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5812 if test $ac_cv_type_mbstate_t = no
; then
5814 cat >>confdefs.h
<<\_ACEOF
5815 #define mbstate_t int
5820 echo "$as_me:$LINENO: checking for function prototypes" >&5
5821 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5822 if test "$am_cv_prog_cc_stdc" != no
; then
5823 echo "$as_me:$LINENO: result: yes" >&5
5824 echo "${ECHO_T}yes" >&6
5826 cat >>confdefs.h
<<\_ACEOF
5827 #define PROTOTYPES 1
5832 echo "$as_me:$LINENO: result: no" >&5
5833 echo "${ECHO_T}no" >&6
5834 U
=_ ANSI2KNR
=.
/ansi2knr
5836 # Ensure some checks needed by ansi2knr itself.
5837 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5838 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5839 if test "${ac_cv_header_stdc+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 cat >conftest.
$ac_ext <<_ACEOF
5843 #line $LINENO "configure"
5844 #include "confdefs.h"
5851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5852 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5854 egrep -v '^ *\+' conftest.er1
>conftest.err
5856 cat conftest.err
>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev
/null
; then
5859 if test -s conftest.err
; then
5860 ac_cpp_err
=$ac_c_preproc_warn_flag
5867 if test -z "$ac_cpp_err"; then
5868 ac_cv_header_stdc
=yes
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.
$ac_ext >&5
5872 ac_cv_header_stdc
=no
5874 rm -f conftest.err conftest.
$ac_ext
5876 if test $ac_cv_header_stdc = yes; then
5877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5878 cat >conftest.
$ac_ext <<_ACEOF
5879 #line $LINENO "configure"
5880 #include "confdefs.h"
5884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885 egrep "memchr" >/dev
/null
2>&1; then
5888 ac_cv_header_stdc
=no
5894 if test $ac_cv_header_stdc = yes; then
5895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5896 cat >conftest.
$ac_ext <<_ACEOF
5897 #line $LINENO "configure"
5898 #include "confdefs.h"
5902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5903 egrep "free" >/dev
/null
2>&1; then
5906 ac_cv_header_stdc
=no
5912 if test $ac_cv_header_stdc = yes; then
5913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5914 if test "$cross_compiling" = yes; then
5917 cat >conftest.
$ac_ext <<_ACEOF
5918 #line $LINENO "configure"
5919 #include "confdefs.h"
5921 #if ((' ' & 0x0FF) == 0x020)
5922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5925 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5926 || ('j' <= (c) && (c) <= 'r') \
5927 || ('s' <= (c) && (c) <= 'z'))
5928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5936 for (i = 0; i < 256; i++)
5937 if (XOR (islower (i), ISLOWER (i))
5938 || toupper (i) != TOUPPER (i))
5943 rm -f conftest
$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5956 echo "$as_me: program exited with status $ac_status" >&5
5957 echo "$as_me: failed program was:" >&5
5958 cat conftest.
$ac_ext >&5
5960 ac_cv_header_stdc
=no
5962 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5966 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5967 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5968 if test $ac_cv_header_stdc = yes; then
5970 cat >>confdefs.h
<<\_ACEOF
5971 #define STDC_HEADERS 1
5976 for ac_header
in string.h
5978 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo "$as_me:$LINENO: checking for $ac_header" >&5
5981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5988 # Is the header compilable?
5989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5991 cat >conftest.
$ac_ext <<_ACEOF
5992 #line $LINENO "configure"
5993 #include "confdefs.h"
5994 $ac_includes_default
5995 #include <$ac_header>
5997 rm -f conftest.
$ac_objext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try
='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_header_compiler
=yes
6011 echo "$as_me: failed program was:" >&5
6012 cat conftest.
$ac_ext >&5
6013 ac_header_compiler
=no
6015 rm -f conftest.
$ac_objext conftest.
$ac_ext
6016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6017 echo "${ECHO_T}$ac_header_compiler" >&6
6019 # Is the header present?
6020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6022 cat >conftest.
$ac_ext <<_ACEOF
6023 #line $LINENO "configure"
6024 #include "confdefs.h"
6025 #include <$ac_header>
6027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6028 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6030 egrep -v '^ *\+' conftest.er1
>conftest.err
6032 cat conftest.err
>&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } >/dev
/null
; then
6035 if test -s conftest.err
; then
6036 ac_cpp_err
=$ac_c_preproc_warn_flag
6043 if test -z "$ac_cpp_err"; then
6044 ac_header_preproc
=yes
6046 echo "$as_me: failed program was:" >&5
6047 cat conftest.
$ac_ext >&5
6048 ac_header_preproc
=no
6050 rm -f conftest.err conftest.
$ac_ext
6051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6052 echo "${ECHO_T}$ac_header_preproc" >&6
6054 # So? What about this header?
6055 case $ac_header_compiler:$ac_header_preproc in
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6069 echo "$as_me:$LINENO: checking for $ac_header" >&5
6070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 eval "$as_ac_Header=$ac_header_preproc"
6076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6081 cat >>confdefs.h
<<_ACEOF
6082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089 for ac_func
in strerror strerror_r vprintf doprnt
6091 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6092 echo "$as_me:$LINENO: checking for $ac_func" >&5
6093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6094 if eval "test \"\${$as_ac_var+set}\" = set"; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 cat >conftest.
$ac_ext <<_ACEOF
6098 #line $LINENO "configure"
6099 #include "confdefs.h"
6100 /* System header to define __stub macros and hopefully few prototypes,
6101 which can conflict with char $ac_func (); below. */
6103 /* Override any gcc2 internal prototype to avoid an error. */
6107 /* We use char because int might match the return type of a gcc2
6108 builtin and then its argument prototype would still apply. */
6112 #ifdef F77_DUMMY_MAIN
6116 int F77_DUMMY_MAIN() { return 1; }
6121 /* The GNU C library defines this for functions which it implements
6122 to always fail with ENOSYS. Some functions are actually named
6123 something starting with __ and the normal name is an alias. */
6124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6134 rm -f conftest.
$ac_objext conftest
$ac_exeext
6135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6136 (eval $ac_link) 2>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try
='test -s conftest$ac_exeext'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6146 eval "$as_ac_var=yes"
6148 echo "$as_me: failed program was:" >&5
6149 cat conftest.
$ac_ext >&5
6150 eval "$as_ac_var=no"
6152 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6156 if test `eval echo '${'$as_ac_var'}'` = yes; then
6157 cat >>confdefs.h
<<_ACEOF
6158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6164 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6165 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6166 if test "${ac_cv_header_stdc+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 cat >conftest.
$ac_ext <<_ACEOF
6170 #line $LINENO "configure"
6171 #include "confdefs.h"
6178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6179 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6181 egrep -v '^ *\+' conftest.er1
>conftest.err
6183 cat conftest.err
>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } >/dev
/null
; then
6186 if test -s conftest.err
; then
6187 ac_cpp_err
=$ac_c_preproc_warn_flag
6194 if test -z "$ac_cpp_err"; then
6195 ac_cv_header_stdc
=yes
6197 echo "$as_me: failed program was:" >&5
6198 cat conftest.
$ac_ext >&5
6199 ac_cv_header_stdc
=no
6201 rm -f conftest.err conftest.
$ac_ext
6203 if test $ac_cv_header_stdc = yes; then
6204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6205 cat >conftest.
$ac_ext <<_ACEOF
6206 #line $LINENO "configure"
6207 #include "confdefs.h"
6211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6212 egrep "memchr" >/dev
/null
2>&1; then
6215 ac_cv_header_stdc
=no
6221 if test $ac_cv_header_stdc = yes; then
6222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6223 cat >conftest.
$ac_ext <<_ACEOF
6224 #line $LINENO "configure"
6225 #include "confdefs.h"
6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230 egrep "free" >/dev
/null
2>&1; then
6233 ac_cv_header_stdc
=no
6239 if test $ac_cv_header_stdc = yes; then
6240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6241 if test "$cross_compiling" = yes; then
6244 cat >conftest.
$ac_ext <<_ACEOF
6245 #line $LINENO "configure"
6246 #include "confdefs.h"
6248 #if ((' ' & 0x0FF) == 0x020)
6249 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6250 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6252 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6253 || ('j' <= (c) && (c) <= 'r') \
6254 || ('s' <= (c) && (c) <= 'z'))
6255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6263 for (i = 0; i < 256; i++)
6264 if (XOR (islower (i), ISLOWER (i))
6265 || toupper (i) != TOUPPER (i))
6270 rm -f conftest
$ac_exeext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272 (eval $ac_link) 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6283 echo "$as_me: program exited with status $ac_status" >&5
6284 echo "$as_me: failed program was:" >&5
6285 cat conftest.
$ac_ext >&5
6287 ac_cv_header_stdc
=no
6289 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6293 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6294 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6295 if test $ac_cv_header_stdc = yes; then
6297 cat >>confdefs.h
<<\_ACEOF
6298 #define STDC_HEADERS 1
6303 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6304 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6305 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 cat >conftest.
$ac_ext <<_ACEOF
6309 #line $LINENO "configure"
6310 #include "confdefs.h"
6311 $ac_includes_default
6312 #ifdef F77_DUMMY_MAIN
6316 int F77_DUMMY_MAIN() { return 1; }
6322 char *p = (char *) strerror_r;
6329 rm -f conftest.
$ac_objext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331 (eval $ac_compile) 2>&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try
='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_have_decl_strerror_r
=yes
6343 echo "$as_me: failed program was:" >&5
6344 cat conftest.
$ac_ext >&5
6345 ac_cv_have_decl_strerror_r
=no
6347 rm -f conftest.
$ac_objext conftest.
$ac_ext
6349 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6350 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6351 if test $ac_cv_have_decl_strerror_r = yes; then
6353 cat >>confdefs.h
<<_ACEOF
6354 #define HAVE_DECL_STRERROR_R 1
6358 cat >>confdefs.h
<<_ACEOF
6359 #define HAVE_DECL_STRERROR_R 0
6364 for ac_func
in strerror_r
6366 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6367 echo "$as_me:$LINENO: checking for $ac_func" >&5
6368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6369 if eval "test \"\${$as_ac_var+set}\" = set"; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 cat >conftest.
$ac_ext <<_ACEOF
6373 #line $LINENO "configure"
6374 #include "confdefs.h"
6375 /* System header to define __stub macros and hopefully few prototypes,
6376 which can conflict with char $ac_func (); below. */
6378 /* Override any gcc2 internal prototype to avoid an error. */
6382 /* We use char because int might match the return type of a gcc2
6383 builtin and then its argument prototype would still apply. */
6387 #ifdef F77_DUMMY_MAIN
6391 int F77_DUMMY_MAIN() { return 1; }
6396 /* The GNU C library defines this for functions which it implements
6397 to always fail with ENOSYS. Some functions are actually named
6398 something starting with __ and the normal name is an alias. */
6399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6409 rm -f conftest.
$ac_objext conftest
$ac_exeext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411 (eval $ac_link) 2>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try
='test -s conftest$ac_exeext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 eval "$as_ac_var=yes"
6423 echo "$as_me: failed program was:" >&5
6424 cat conftest.
$ac_ext >&5
6425 eval "$as_ac_var=no"
6427 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6431 if test `eval echo '${'$as_ac_var'}'` = yes; then
6432 cat >>confdefs.h
<<_ACEOF
6433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6439 if test $ac_cv_func_strerror_r = yes; then
6441 for ac_header
in string.h
6443 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6445 echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6453 # Is the header compilable?
6454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6456 cat >conftest.
$ac_ext <<_ACEOF
6457 #line $LINENO "configure"
6458 #include "confdefs.h"
6459 $ac_includes_default
6460 #include <$ac_header>
6462 rm -f conftest.
$ac_objext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6464 (eval $ac_compile) 2>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try
='test -s conftest.$ac_objext'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6474 ac_header_compiler
=yes
6476 echo "$as_me: failed program was:" >&5
6477 cat conftest.
$ac_ext >&5
6478 ac_header_compiler
=no
6480 rm -f conftest.
$ac_objext conftest.
$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6482 echo "${ECHO_T}$ac_header_compiler" >&6
6484 # Is the header present?
6485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6487 cat >conftest.
$ac_ext <<_ACEOF
6488 #line $LINENO "configure"
6489 #include "confdefs.h"
6490 #include <$ac_header>
6492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6493 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6495 egrep -v '^ *\+' conftest.er1
>conftest.err
6497 cat conftest.err
>&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } >/dev
/null
; then
6500 if test -s conftest.err
; then
6501 ac_cpp_err
=$ac_c_preproc_warn_flag
6508 if test -z "$ac_cpp_err"; then
6509 ac_header_preproc
=yes
6511 echo "$as_me: failed program was:" >&5
6512 cat conftest.
$ac_ext >&5
6513 ac_header_preproc
=no
6515 rm -f conftest.err conftest.
$ac_ext
6516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6517 echo "${ECHO_T}$ac_header_preproc" >&6
6519 # So? What about this header?
6520 case $ac_header_compiler:$ac_header_preproc in
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6534 echo "$as_me:$LINENO: checking for $ac_header" >&5
6535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 eval "$as_ac_Header=$ac_header_preproc"
6541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6546 cat >>confdefs.h
<<_ACEOF
6547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6554 echo "$as_me:$LINENO: checking for working strerror_r" >&5
6555 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6556 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 cat >conftest.
$ac_ext <<_ACEOF
6561 #line $LINENO "configure"
6562 #include "confdefs.h"
6566 # include <string.h>
6569 #ifdef F77_DUMMY_MAIN
6573 int F77_DUMMY_MAIN() { return 1; }
6580 char x = *strerror_r (0, buf, sizeof buf);
6586 rm -f conftest.
$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } &&
6592 { ac_try
='test -s conftest.$ac_objext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_func_strerror_r_works
=yes
6600 echo "$as_me: failed program was:" >&5
6601 cat conftest.
$ac_ext >&5
6602 ac_cv_func_strerror_r_works
=no
6605 rm -f conftest.
$ac_objext conftest.
$ac_ext
6606 if test $ac_cv_func_strerror_r_works = no
; then
6607 # strerror_r seems not to work, but now we have to choose between
6608 # systems that have relatively inaccessible declarations for the
6609 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6610 # former has a strerror_r that returns char*, while the latter
6611 # has a strerror_r that returns `int'.
6612 # This test should segfault on the DEC system.
6613 if test "$cross_compiling" = yes; then
6614 ac_cv_func_strerror_r_works
=no
6616 cat >conftest.
$ac_ext <<_ACEOF
6617 #line $LINENO "configure"
6618 #include "confdefs.h"
6621 # include <string.h>
6624 extern char *strerror_r ();
6630 char x = *strerror_r (0, buf, sizeof buf);
6631 exit (!isalpha (x));
6635 rm -f conftest
$ac_exeext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637 (eval $ac_link) 2>&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_func_strerror_r_works
=yes
6648 echo "$as_me: program exited with status $ac_status" >&5
6649 echo "$as_me: failed program was:" >&5
6650 cat conftest.
$ac_ext >&5
6652 ac_cv_func_strerror_r_works
=no
6654 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6659 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5
6660 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6661 if test $ac_cv_func_strerror_r_works = yes; then
6663 cat >>confdefs.h
<<_ACEOF
6664 #define HAVE_WORKING_STRERROR_R 1
6670 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6671 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6673 # Check whether --with-dmalloc or --without-dmalloc was given.
6674 if test "${with_dmalloc+set}" = set; then
6675 withval
="$with_dmalloc"
6676 if test "$withval" = yes; then
6677 echo "$as_me:$LINENO: result: yes" >&5
6678 echo "${ECHO_T}yes" >&6
6680 cat >>confdefs.h
<<\_ACEOF
6681 #define WITH_DMALLOC 1
6684 LIBS
="$LIBS -ldmalloc"
6685 LDFLAGS
="$LDFLAGS -g"
6687 echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6
6691 echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6
6695 ALL_LINGUAS
="de es et fr ja nl tr ru"
6696 # Make sure we can run config.sub.
6697 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6698 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6699 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6700 { (exit 1); exit 1; }; }
6702 echo "$as_me:$LINENO: checking build system type" >&5
6703 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6704 if test "${ac_cv_build+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 ac_cv_build_alias
=$build_alias
6708 test -z "$ac_cv_build_alias" &&
6709 ac_cv_build_alias
=`$ac_config_guess`
6710 test -z "$ac_cv_build_alias" &&
6711 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6712 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6713 { (exit 1); exit 1; }; }
6714 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6715 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6716 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6717 { (exit 1); exit 1; }; }
6720 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6721 echo "${ECHO_T}$ac_cv_build" >&6
6723 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6724 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6725 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6727 echo "$as_me:$LINENO: checking host system type" >&5
6728 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6729 if test "${ac_cv_host+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_cv_host_alias
=$host_alias
6733 test -z "$ac_cv_host_alias" &&
6734 ac_cv_host_alias
=$ac_cv_build_alias
6735 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6736 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6737 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6738 { (exit 1); exit 1; }; }
6741 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6742 echo "${ECHO_T}$ac_cv_host" >&6
6744 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6745 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6746 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6748 echo "$as_me:$LINENO: checking for off_t" >&5
6749 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6750 if test "${ac_cv_type_off_t+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 cat >conftest.
$ac_ext <<_ACEOF
6754 #line $LINENO "configure"
6755 #include "confdefs.h"
6756 $ac_includes_default
6757 #ifdef F77_DUMMY_MAIN
6761 int F77_DUMMY_MAIN() { return 1; }
6774 rm -f conftest.
$ac_objext
6775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6776 (eval $ac_compile) 2>&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try
='test -s conftest.$ac_objext'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 ac_cv_type_off_t
=yes
6788 echo "$as_me: failed program was:" >&5
6789 cat conftest.
$ac_ext >&5
6792 rm -f conftest.
$ac_objext conftest.
$ac_ext
6794 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6795 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6796 if test $ac_cv_type_off_t = yes; then
6800 cat >>confdefs.h
<<_ACEOF
6806 echo "$as_me:$LINENO: checking for size_t" >&5
6807 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6808 if test "${ac_cv_type_size_t+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 cat >conftest.
$ac_ext <<_ACEOF
6812 #line $LINENO "configure"
6813 #include "confdefs.h"
6814 $ac_includes_default
6815 #ifdef F77_DUMMY_MAIN
6819 int F77_DUMMY_MAIN() { return 1; }
6826 if (sizeof (size_t))
6832 rm -f conftest.
$ac_objext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834 (eval $ac_compile) 2>&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try
='test -s conftest.$ac_objext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 ac_cv_type_size_t
=yes
6846 echo "$as_me: failed program was:" >&5
6847 cat conftest.
$ac_ext >&5
6848 ac_cv_type_size_t
=no
6850 rm -f conftest.
$ac_objext conftest.
$ac_ext
6852 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6853 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6854 if test $ac_cv_type_size_t = yes; then
6858 cat >>confdefs.h
<<_ACEOF
6859 #define size_t unsigned
6864 for ac_header
in stdlib.h unistd.h
6866 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6868 echo "$as_me:$LINENO: checking for $ac_header" >&5
6869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6876 # Is the header compilable?
6877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6879 cat >conftest.
$ac_ext <<_ACEOF
6880 #line $LINENO "configure"
6881 #include "confdefs.h"
6882 $ac_includes_default
6883 #include <$ac_header>
6885 rm -f conftest.
$ac_objext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6887 (eval $ac_compile) 2>&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try
='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_header_compiler
=yes
6899 echo "$as_me: failed program was:" >&5
6900 cat conftest.
$ac_ext >&5
6901 ac_header_compiler
=no
6903 rm -f conftest.
$ac_objext conftest.
$ac_ext
6904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6905 echo "${ECHO_T}$ac_header_compiler" >&6
6907 # Is the header present?
6908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6910 cat >conftest.
$ac_ext <<_ACEOF
6911 #line $LINENO "configure"
6912 #include "confdefs.h"
6913 #include <$ac_header>
6915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6916 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6918 egrep -v '^ *\+' conftest.er1
>conftest.err
6920 cat conftest.err
>&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } >/dev
/null
; then
6923 if test -s conftest.err
; then
6924 ac_cpp_err
=$ac_c_preproc_warn_flag
6931 if test -z "$ac_cpp_err"; then
6932 ac_header_preproc
=yes
6934 echo "$as_me: failed program was:" >&5
6935 cat conftest.
$ac_ext >&5
6936 ac_header_preproc
=no
6938 rm -f conftest.err conftest.
$ac_ext
6939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6940 echo "${ECHO_T}$ac_header_preproc" >&6
6942 # So? What about this header?
6943 case $ac_header_compiler:$ac_header_preproc in
6945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6957 echo "$as_me:$LINENO: checking for $ac_header" >&5
6958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 eval "$as_ac_Header=$ac_header_preproc"
6964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6969 cat >>confdefs.h
<<_ACEOF
6970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6977 for ac_func
in getpagesize
6979 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6980 echo "$as_me:$LINENO: checking for $ac_func" >&5
6981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6982 if eval "test \"\${$as_ac_var+set}\" = set"; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 cat >conftest.
$ac_ext <<_ACEOF
6986 #line $LINENO "configure"
6987 #include "confdefs.h"
6988 /* System header to define __stub macros and hopefully few prototypes,
6989 which can conflict with char $ac_func (); below. */
6991 /* Override any gcc2 internal prototype to avoid an error. */
6995 /* We use char because int might match the return type of a gcc2
6996 builtin and then its argument prototype would still apply. */
7000 #ifdef F77_DUMMY_MAIN
7004 int F77_DUMMY_MAIN() { return 1; }
7009 /* The GNU C library defines this for functions which it implements
7010 to always fail with ENOSYS. Some functions are actually named
7011 something starting with __ and the normal name is an alias. */
7012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7022 rm -f conftest.
$ac_objext conftest
$ac_exeext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7024 (eval $ac_link) 2>&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } &&
7028 { ac_try
='test -s conftest$ac_exeext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 eval "$as_ac_var=yes"
7036 echo "$as_me: failed program was:" >&5
7037 cat conftest.
$ac_ext >&5
7038 eval "$as_ac_var=no"
7040 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7044 if test `eval echo '${'$as_ac_var'}'` = yes; then
7045 cat >>confdefs.h
<<_ACEOF
7046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7052 echo "$as_me:$LINENO: checking for working mmap" >&5
7053 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7054 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 if test "$cross_compiling" = yes; then
7058 ac_cv_func_mmap_fixed_mapped
=no
7060 cat >conftest.
$ac_ext <<_ACEOF
7061 #line $LINENO "configure"
7062 #include "confdefs.h"
7063 $ac_includes_default
7064 /* Thanks to Mike Haertel and Jim Avera for this test.
7065 Here is a matrix of mmap possibilities:
7066 mmap private not fixed
7067 mmap private fixed at somewhere currently unmapped
7068 mmap private fixed at somewhere already mapped
7069 mmap shared not fixed
7070 mmap shared fixed at somewhere currently unmapped
7071 mmap shared fixed at somewhere already mapped
7072 For private mappings, we should verify that changes cannot be read()
7073 back from the file, nor mmap's back from the file at a different
7074 address. (There have been systems where private was not correctly
7075 implemented like the infamous i386 svr4.0, and systems where the
7076 VM page cache was not coherent with the file system buffer cache
7077 like early versions of FreeBSD and possibly contemporary NetBSD.)
7078 For shared mappings, we should conversely verify that changes get
7079 propogated back to all the places they're supposed to be.
7081 Grep wants private fixed already mapped.
7082 The main things grep needs to know about mmap are:
7083 * does it exist and is it safe to write into the mmap'd area
7084 * how to use it (BSD variants) */
7087 #include <sys/mman.h>
7089 #if !STDC_HEADERS && !HAVE_STDLIB_H
7093 /* This mess was copied from the GNU getpagesize.h. */
7094 #if !HAVE_GETPAGESIZE
7095 /* Assume that all systems that can run configure have sys/param.h. */
7096 # if !HAVE_SYS_PARAM_H
7097 # define HAVE_SYS_PARAM_H 1
7100 # ifdef _SC_PAGESIZE
7101 # define getpagesize() sysconf(_SC_PAGESIZE)
7102 # else /* no _SC_PAGESIZE */
7103 # if HAVE_SYS_PARAM_H
7104 # include <sys/param.h>
7105 # ifdef EXEC_PAGESIZE
7106 # define getpagesize() EXEC_PAGESIZE
7107 # else /* no EXEC_PAGESIZE */
7109 # define getpagesize() NBPG * CLSIZE
7112 # endif /* no CLSIZE */
7113 # else /* no NBPG */
7115 # define getpagesize() NBPC
7116 # else /* no NBPC */
7118 # define getpagesize() PAGESIZE
7119 # endif /* PAGESIZE */
7120 # endif /* no NBPC */
7121 # endif /* no NBPG */
7122 # endif /* no EXEC_PAGESIZE */
7123 # else /* no HAVE_SYS_PARAM_H */
7124 # define getpagesize() 8192 /* punt totally */
7125 # endif /* no HAVE_SYS_PARAM_H */
7126 # endif /* no _SC_PAGESIZE */
7128 #endif /* no HAVE_GETPAGESIZE */
7133 char *data, *data2, *data3;
7137 pagesize = getpagesize ();
7139 /* First, make a file with some known garbage in it. */
7140 data = (char *) malloc (pagesize);
7143 for (i = 0; i < pagesize; ++i)
7144 *(data + i) = rand ();
7146 fd = creat ("conftest.mmap", 0600);
7149 if (write (fd, data, pagesize) != pagesize)
7153 /* Next, try to mmap the file at a fixed address which already has
7154 something else allocated at it. If we can, also make sure that
7155 we see the same garbage. */
7156 fd = open ("conftest.mmap", O_RDWR);
7159 data2 = (char *) malloc (2 * pagesize);
7162 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7163 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7164 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7166 for (i = 0; i < pagesize; ++i)
7167 if (*(data + i) != *(data2 + i))
7170 /* Finally, make sure that changes to the mapped area do not
7171 percolate back to the file as seen by read(). (This is a bug on
7172 some variants of i386 svr4.0.) */
7173 for (i = 0; i < pagesize; ++i)
7174 *(data2 + i) = *(data2 + i) + 1;
7175 data3 = (char *) malloc (pagesize);
7178 if (read (fd, data3, pagesize) != pagesize)
7180 for (i = 0; i < pagesize; ++i)
7181 if (*(data + i) != *(data3 + i))
7187 rm -f conftest
$ac_exeext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7189 (eval $ac_link) 2>&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 ac_cv_func_mmap_fixed_mapped
=yes
7200 echo "$as_me: program exited with status $ac_status" >&5
7201 echo "$as_me: failed program was:" >&5
7202 cat conftest.
$ac_ext >&5
7204 ac_cv_func_mmap_fixed_mapped
=no
7206 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7209 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7210 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7211 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7213 cat >>confdefs.h
<<\_ACEOF
7220 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7221 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7222 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 cat >conftest.
$ac_ext <<_ACEOF
7226 #line $LINENO "configure"
7227 #include "confdefs.h"
7229 #include <features.h>
7230 #ifdef __GNU_LIBRARY__
7231 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7238 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7239 ac_cv_gnu_library_2_1
=yes
7241 ac_cv_gnu_library_2_1
=no
7246 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7247 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7249 GLIBC21
="$ac_cv_gnu_library_2_1"
7251 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7252 stdlib.h string.h unistd.h sys
/param.h
7254 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256 echo "$as_me:$LINENO: checking for $ac_header" >&5
7257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7264 # Is the header compilable?
7265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7267 cat >conftest.
$ac_ext <<_ACEOF
7268 #line $LINENO "configure"
7269 #include "confdefs.h"
7270 $ac_includes_default
7271 #include <$ac_header>
7273 rm -f conftest.
$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } &&
7279 { ac_try
='test -s conftest.$ac_objext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_header_compiler
=yes
7287 echo "$as_me: failed program was:" >&5
7288 cat conftest.
$ac_ext >&5
7289 ac_header_compiler
=no
7291 rm -f conftest.
$ac_objext conftest.
$ac_ext
7292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7293 echo "${ECHO_T}$ac_header_compiler" >&6
7295 # Is the header present?
7296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7298 cat >conftest.
$ac_ext <<_ACEOF
7299 #line $LINENO "configure"
7300 #include "confdefs.h"
7301 #include <$ac_header>
7303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7304 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7306 egrep -v '^ *\+' conftest.er1
>conftest.err
7308 cat conftest.err
>&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } >/dev
/null
; then
7311 if test -s conftest.err
; then
7312 ac_cpp_err
=$ac_c_preproc_warn_flag
7319 if test -z "$ac_cpp_err"; then
7320 ac_header_preproc
=yes
7322 echo "$as_me: failed program was:" >&5
7323 cat conftest.
$ac_ext >&5
7324 ac_header_preproc
=no
7326 rm -f conftest.err conftest.
$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7328 echo "${ECHO_T}$ac_header_preproc" >&6
7330 # So? What about this header?
7331 case $ac_header_compiler:$ac_header_preproc in
7333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7345 echo "$as_me:$LINENO: checking for $ac_header" >&5
7346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 eval "$as_ac_Header=$ac_header_preproc"
7352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7357 cat >>confdefs.h
<<_ACEOF
7358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7365 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7366 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7367 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7369 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7370 echo "$as_me:$LINENO: checking for $ac_func" >&5
7371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7372 if eval "test \"\${$as_ac_var+set}\" = set"; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 cat >conftest.
$ac_ext <<_ACEOF
7376 #line $LINENO "configure"
7377 #include "confdefs.h"
7378 /* System header to define __stub macros and hopefully few prototypes,
7379 which can conflict with char $ac_func (); below. */
7381 /* Override any gcc2 internal prototype to avoid an error. */
7385 /* We use char because int might match the return type of a gcc2
7386 builtin and then its argument prototype would still apply. */
7390 #ifdef F77_DUMMY_MAIN
7394 int F77_DUMMY_MAIN() { return 1; }
7399 /* The GNU C library defines this for functions which it implements
7400 to always fail with ENOSYS. Some functions are actually named
7401 something starting with __ and the normal name is an alias. */
7402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7412 rm -f conftest.
$ac_objext conftest
$ac_exeext
7413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7414 (eval $ac_link) 2>&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } &&
7418 { ac_try
='test -s conftest$ac_exeext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 eval "$as_ac_var=yes"
7426 echo "$as_me: failed program was:" >&5
7427 cat conftest.
$ac_ext >&5
7428 eval "$as_ac_var=no"
7430 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7434 if test `eval echo '${'$as_ac_var'}'` = yes; then
7435 cat >>confdefs.h
<<_ACEOF
7436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7442 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7443 if test "${with_libiconv_prefix+set}" = set; then
7444 withval
="$with_libiconv_prefix"
7446 for dir
in `echo "$withval" | tr : ' '`; do
7447 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7448 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7453 echo "$as_me:$LINENO: checking for iconv" >&5
7454 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7455 if test "${am_cv_func_iconv+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 am_cv_func_iconv
="no, consider installing GNU libiconv"
7461 cat >conftest.
$ac_ext <<_ACEOF
7462 #line $LINENO "configure"
7463 #include "confdefs.h"
7466 #ifdef F77_DUMMY_MAIN
7470 int F77_DUMMY_MAIN() { return 1; }
7475 iconv_t cd = iconv_open("","");
7476 iconv(cd,NULL,NULL,NULL,NULL);
7482 rm -f conftest.
$ac_objext conftest
$ac_exeext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484 (eval $ac_link) 2>&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try
='test -s conftest$ac_exeext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 am_cv_func_iconv
=yes
7496 echo "$as_me: failed program was:" >&5
7497 cat conftest.
$ac_ext >&5
7499 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7500 if test "$am_cv_func_iconv" != yes; then
7501 am_save_LIBS
="$LIBS"
7502 LIBS
="$LIBS -liconv"
7503 cat >conftest.
$ac_ext <<_ACEOF
7504 #line $LINENO "configure"
7505 #include "confdefs.h"
7508 #ifdef F77_DUMMY_MAIN
7512 int F77_DUMMY_MAIN() { return 1; }
7517 iconv_t cd = iconv_open("","");
7518 iconv(cd,NULL,NULL,NULL,NULL);
7524 rm -f conftest.
$ac_objext conftest
$ac_exeext
7525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7526 (eval $ac_link) 2>&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try
='test -s conftest$ac_exeext'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7537 am_cv_func_iconv
=yes
7539 echo "$as_me: failed program was:" >&5
7540 cat conftest.
$ac_ext >&5
7542 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7543 LIBS
="$am_save_LIBS"
7547 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7548 echo "${ECHO_T}$am_cv_func_iconv" >&6
7549 if test "$am_cv_func_iconv" = yes; then
7551 cat >>confdefs.h
<<\_ACEOF
7552 #define HAVE_ICONV 1
7555 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7556 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7557 if test "${am_cv_proto_iconv+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 cat >conftest.
$ac_ext <<_ACEOF
7562 #line $LINENO "configure"
7563 #include "confdefs.h"
7571 #if defined(__STDC__) || defined(__cplusplus)
7572 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7577 #ifdef F77_DUMMY_MAIN
7581 int F77_DUMMY_MAIN() { return 1; }
7591 rm -f conftest.
$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try
='test -s conftest.$ac_objext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 am_cv_proto_iconv_arg1
=""
7605 echo "$as_me: failed program was:" >&5
7606 cat conftest.
$ac_ext >&5
7607 am_cv_proto_iconv_arg1
="const"
7609 rm -f conftest.
$ac_objext conftest.
$ac_ext
7610 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);"
7613 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7614 echo "$as_me:$LINENO: result: ${ac_t:-
7615 }$am_cv_proto_iconv" >&5
7616 echo "${ECHO_T}${ac_t:-
7617 }$am_cv_proto_iconv" >&6
7619 cat >>confdefs.h
<<_ACEOF
7620 #define ICONV_CONST $am_cv_proto_iconv_arg1
7625 if test "$am_cv_lib_iconv" = yes; then
7629 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7630 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7631 if test "${am_cv_langinfo_codeset+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 cat >conftest.
$ac_ext <<_ACEOF
7635 #line $LINENO "configure"
7636 #include "confdefs.h"
7637 #include <langinfo.h>
7638 #ifdef F77_DUMMY_MAIN
7642 int F77_DUMMY_MAIN() { return 1; }
7647 char* cs = nl_langinfo(CODESET);
7652 rm -f conftest.
$ac_objext conftest
$ac_exeext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7654 (eval $ac_link) 2>&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try
='test -s conftest$ac_exeext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 am_cv_langinfo_codeset
=yes
7666 echo "$as_me: failed program was:" >&5
7667 cat conftest.
$ac_ext >&5
7668 am_cv_langinfo_codeset
=no
7670 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7673 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7674 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7675 if test $am_cv_langinfo_codeset = yes; then
7677 cat >>confdefs.h
<<\_ACEOF
7678 #define HAVE_LANGINFO_CODESET 1
7683 if test $ac_cv_header_locale_h = yes; then
7684 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7685 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7686 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 cat >conftest.
$ac_ext <<_ACEOF
7690 #line $LINENO "configure"
7691 #include "confdefs.h"
7693 #ifdef F77_DUMMY_MAIN
7697 int F77_DUMMY_MAIN() { return 1; }
7707 rm -f conftest.
$ac_objext conftest
$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try
='test -s conftest$ac_exeext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7719 am_cv_val_LC_MESSAGES
=yes
7721 echo "$as_me: failed program was:" >&5
7722 cat conftest.
$ac_ext >&5
7723 am_cv_val_LC_MESSAGES
=no
7725 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7727 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7728 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7729 if test $am_cv_val_LC_MESSAGES = yes; then
7731 cat >>confdefs.h
<<\_ACEOF
7732 #define HAVE_LC_MESSAGES 1
7737 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7738 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7739 # Check whether --enable-nls or --disable-nls was given.
7740 if test "${enable_nls+set}" = set; then
7741 enableval
="$enable_nls"
7746 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7747 echo "${ECHO_T}$USE_NLS" >&6
7749 BUILD_INCLUDED_LIBINTL
=no
7750 USE_INCLUDED_LIBINTL
=no
7753 if test "$USE_NLS" = "yes"; then
7755 cat >>confdefs.h
<<\_ACEOF
7756 #define ENABLE_NLS 1
7759 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7760 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7762 # Check whether --with-included-gettext or --without-included-gettext was given.
7763 if test "${with_included_gettext+set}" = set; then
7764 withval
="$with_included_gettext"
7765 nls_cv_force_use_gnu_gettext
=$withval
7767 nls_cv_force_use_gnu_gettext
=no
7769 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7770 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7772 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7773 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7776 if test "${ac_cv_header_libintl_h+set}" = set; then
7777 echo "$as_me:$LINENO: checking for libintl.h" >&5
7778 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7779 if test "${ac_cv_header_libintl_h+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7783 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7785 # Is the header compilable?
7786 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7787 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7788 cat >conftest.
$ac_ext <<_ACEOF
7789 #line $LINENO "configure"
7790 #include "confdefs.h"
7791 $ac_includes_default
7792 #include <libintl.h>
7794 rm -f conftest.
$ac_objext
7795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7796 (eval $ac_compile) 2>&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } &&
7800 { ac_try
='test -s conftest.$ac_objext'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 ac_header_compiler
=yes
7808 echo "$as_me: failed program was:" >&5
7809 cat conftest.
$ac_ext >&5
7810 ac_header_compiler
=no
7812 rm -f conftest.
$ac_objext conftest.
$ac_ext
7813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7814 echo "${ECHO_T}$ac_header_compiler" >&6
7816 # Is the header present?
7817 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7818 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7819 cat >conftest.
$ac_ext <<_ACEOF
7820 #line $LINENO "configure"
7821 #include "confdefs.h"
7822 #include <libintl.h>
7824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7825 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7827 egrep -v '^ *\+' conftest.er1
>conftest.err
7829 cat conftest.err
>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } >/dev
/null
; then
7832 if test -s conftest.err
; then
7833 ac_cpp_err
=$ac_c_preproc_warn_flag
7840 if test -z "$ac_cpp_err"; then
7841 ac_header_preproc
=yes
7843 echo "$as_me: failed program was:" >&5
7844 cat conftest.
$ac_ext >&5
7845 ac_header_preproc
=no
7847 rm -f conftest.err conftest.
$ac_ext
7848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7849 echo "${ECHO_T}$ac_header_preproc" >&6
7851 # So? What about this header?
7852 case $ac_header_compiler:$ac_header_preproc in
7854 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7855 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7856 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7857 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7859 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7860 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7861 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7862 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7863 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7864 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7866 echo "$as_me:$LINENO: checking for libintl.h" >&5
7867 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7868 if test "${ac_cv_header_libintl_h+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 ac_cv_header_libintl_h
=$ac_header_preproc
7873 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7874 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7877 if test $ac_cv_header_libintl_h = yes; then
7878 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7879 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7880 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 cat >conftest.
$ac_ext <<_ACEOF
7884 #line $LINENO "configure"
7885 #include "confdefs.h"
7886 #include <libintl.h>
7887 extern int _nl_msg_cat_cntr;
7888 #ifdef F77_DUMMY_MAIN
7892 int F77_DUMMY_MAIN() { return 1; }
7897 bindtextdomain ("", "");
7898 return (int) gettext ("") + _nl_msg_cat_cntr
7903 rm -f conftest.
$ac_objext conftest
$ac_exeext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905 (eval $ac_link) 2>&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try
='test -s conftest$ac_exeext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7915 gt_cv_func_gnugettext1_libc
=yes
7917 echo "$as_me: failed program was:" >&5
7918 cat conftest.
$ac_ext >&5
7919 gt_cv_func_gnugettext1_libc
=no
7921 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7923 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7924 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7926 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7927 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7928 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7929 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 gt_save_LIBS
="$LIBS"
7933 LIBS
="$LIBS -lintl $LIBICONV"
7934 cat >conftest.
$ac_ext <<_ACEOF
7935 #line $LINENO "configure"
7936 #include "confdefs.h"
7937 #include <libintl.h>
7938 extern int _nl_msg_cat_cntr;
7939 #ifdef F77_DUMMY_MAIN
7943 int F77_DUMMY_MAIN() { return 1; }
7948 bindtextdomain ("", "");
7949 return (int) gettext ("") + _nl_msg_cat_cntr
7954 rm -f conftest.
$ac_objext conftest
$ac_exeext
7955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7956 (eval $ac_link) 2>&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try
='test -s conftest$ac_exeext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 gt_cv_func_gnugettext1_libintl
=yes
7968 echo "$as_me: failed program was:" >&5
7969 cat conftest.
$ac_ext >&5
7970 gt_cv_func_gnugettext1_libintl
=no
7972 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7973 LIBS
="$gt_save_LIBS"
7975 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7976 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7979 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7980 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7981 && test "$PACKAGE" != gettext; }; then
7983 cat >>confdefs.h
<<\_ACEOF
7984 #define HAVE_GETTEXT 1
7987 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7988 INTLLIBS
="-lintl $LIBICONV"
7991 gt_save_LIBS
="$LIBS"
7992 LIBS
="$LIBS $INTLLIBS"
7994 for ac_func
in dcgettext
7996 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7997 echo "$as_me:$LINENO: checking for $ac_func" >&5
7998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7999 if eval "test \"\${$as_ac_var+set}\" = set"; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 cat >conftest.
$ac_ext <<_ACEOF
8003 #line $LINENO "configure"
8004 #include "confdefs.h"
8005 /* System header to define __stub macros and hopefully few prototypes,
8006 which can conflict with char $ac_func (); below. */
8008 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8017 #ifdef F77_DUMMY_MAIN
8021 int F77_DUMMY_MAIN() { return 1; }
8026 /* The GNU C library defines this for functions which it implements
8027 to always fail with ENOSYS. Some functions are actually named
8028 something starting with __ and the normal name is an alias. */
8029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8039 rm -f conftest.
$ac_objext conftest
$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try
='test -s conftest$ac_exeext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 eval "$as_ac_var=yes"
8053 echo "$as_me: failed program was:" >&5
8054 cat conftest.
$ac_ext >&5
8055 eval "$as_ac_var=no"
8057 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8061 if test `eval echo '${'$as_ac_var'}'` = yes; then
8062 cat >>confdefs.h
<<_ACEOF
8063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8069 LIBS
="$gt_save_LIBS"
8071 # Extract the first word of "msgfmt", so it can be a program name with args.
8072 set dummy msgfmt
; ac_word
=$2
8073 echo "$as_me:$LINENO: checking for $ac_word" >&5
8074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8075 if test "${ac_cv_path_MSGFMT+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8083 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8084 for ac_dir
in $PATH; do
8085 test -z "$ac_dir" && ac_dir
=.
8086 if test -f $ac_dir/$ac_word; then
8087 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8088 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8094 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8098 MSGFMT
="$ac_cv_path_MSGFMT"
8099 if test "$MSGFMT" != ":"; then
8100 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8101 echo "${ECHO_T}$MSGFMT" >&6
8103 echo "$as_me:$LINENO: result: no" >&5
8104 echo "${ECHO_T}no" >&6
8107 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8108 set dummy gmsgfmt
; ac_word
=$2
8109 echo "$as_me:$LINENO: checking for $ac_word" >&5
8110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8111 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8123 test -z "$as_dir" && as_dir
=.
8124 for ac_exec_ext
in '' $ac_executable_extensions; do
8125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8137 GMSGFMT
=$ac_cv_path_GMSGFMT
8139 if test -n "$GMSGFMT"; then
8140 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8141 echo "${ECHO_T}$GMSGFMT" >&6
8143 echo "$as_me:$LINENO: result: no" >&5
8144 echo "${ECHO_T}no" >&6
8147 # Extract the first word of "xgettext", so it can be a program name with args.
8148 set dummy xgettext
; ac_word
=$2
8149 echo "$as_me:$LINENO: checking for $ac_word" >&5
8150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8151 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8159 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8160 for ac_dir
in $PATH; do
8161 test -z "$ac_dir" && ac_dir
=.
8162 if test -f $ac_dir/$ac_word; then
8163 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8164 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8170 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8174 XGETTEXT
="$ac_cv_path_XGETTEXT"
8175 if test "$XGETTEXT" != ":"; then
8176 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8177 echo "${ECHO_T}$XGETTEXT" >&6
8179 echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6
8188 if test "$CATOBJEXT" = "NONE"; then
8189 nls_cv_use_gnu_gettext
=yes
8193 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8194 INTLOBJS
="\$(GETTOBJS)"
8195 # Extract the first word of "msgfmt", so it can be a program name with args.
8196 set dummy msgfmt
; ac_word
=$2
8197 echo "$as_me:$LINENO: checking for $ac_word" >&5
8198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8199 if test "${ac_cv_path_MSGFMT+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8207 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8208 for ac_dir
in $PATH; do
8209 test -z "$ac_dir" && ac_dir
=.
8210 if test -f $ac_dir/$ac_word; then
8211 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8212 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8218 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8222 MSGFMT
="$ac_cv_path_MSGFMT"
8223 if test "$MSGFMT" != ":"; then
8224 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8225 echo "${ECHO_T}$MSGFMT" >&6
8227 echo "$as_me:$LINENO: result: no" >&5
8228 echo "${ECHO_T}no" >&6
8231 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8232 set dummy gmsgfmt
; ac_word
=$2
8233 echo "$as_me:$LINENO: checking for $ac_word" >&5
8234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8235 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8247 test -z "$as_dir" && as_dir
=.
8248 for ac_exec_ext
in '' $ac_executable_extensions; do
8249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8261 GMSGFMT
=$ac_cv_path_GMSGFMT
8263 if test -n "$GMSGFMT"; then
8264 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8265 echo "${ECHO_T}$GMSGFMT" >&6
8267 echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6
8271 # Extract the first word of "xgettext", so it can be a program name with args.
8272 set dummy xgettext
; ac_word
=$2
8273 echo "$as_me:$LINENO: checking for $ac_word" >&5
8274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8275 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8283 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8284 for ac_dir
in $PATH; do
8285 test -z "$ac_dir" && ac_dir
=.
8286 if test -f $ac_dir/$ac_word; then
8287 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8288 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8294 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8298 XGETTEXT
="$ac_cv_path_XGETTEXT"
8299 if test "$XGETTEXT" != ":"; then
8300 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8301 echo "${ECHO_T}$XGETTEXT" >&6
8303 echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6
8307 BUILD_INCLUDED_LIBINTL
=yes
8308 USE_INCLUDED_LIBINTL
=yes
8310 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8311 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8314 if test "$GMSGFMT" != ":"; then
8315 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8318 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8319 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8324 if test "$XGETTEXT" != ":"; then
8325 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8328 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8329 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8336 ac_config_commands
="$ac_config_commands default-2"
8338 if test "$PACKAGE" = gettext; then
8339 BUILD_INCLUDED_LIBINTL
=yes
8342 for ac_prog
in bison
8344 # Extract the first word of "$ac_prog", so it can be a program name with args.
8345 set dummy
$ac_prog; ac_word
=$2
8346 echo "$as_me:$LINENO: checking for $ac_word" >&5
8347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8348 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 if test -n "$INTLBISON"; then
8352 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8358 test -z "$as_dir" && as_dir
=.
8359 for ac_exec_ext
in '' $ac_executable_extensions; do
8360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361 ac_cv_prog_INTLBISON
="$ac_prog"
8362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 INTLBISON
=$ac_cv_prog_INTLBISON
8371 if test -n "$INTLBISON"; then
8372 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8373 echo "${ECHO_T}$INTLBISON" >&6
8375 echo "$as_me:$LINENO: result: no" >&5
8376 echo "${ECHO_T}no" >&6
8379 test -n "$INTLBISON" && break
8382 if test -z "$INTLBISON"; then
8385 echo "$as_me:$LINENO: checking version of bison" >&5
8386 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8387 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8388 case $ac_prog_version in
8389 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8390 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8391 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8392 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8394 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8395 echo "${ECHO_T}$ac_prog_version" >&6
8397 if test $ac_verc_fail = yes; then
8401 for lang
in $ALL_LINGUAS; do
8402 GMOFILES
="$GMOFILES $lang.gmo"
8403 POFILES
="$POFILES $lang.po"
8407 nls_cv_header_libgt
=
8415 if test "x$CATOBJEXT" != "x"; then
8416 if test "x$ALL_LINGUAS" = "x"; then
8419 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8420 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8422 for presentlang
in $ALL_LINGUAS; do
8424 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8425 # Use the presentlang catalog if desiredlang is
8426 # a. equal to presentlang, or
8427 # b. a variant of presentlang (because in this case,
8428 # presentlang can be used as a fallback for messages
8429 # which are not translated in the desiredlang catalog).
8430 case "$desiredlang" in
8431 "$presentlang"*) useit
=yes;;
8434 if test $useit = yes; then
8435 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8438 LINGUAS
=$NEW_LINGUAS
8439 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8440 echo "${ECHO_T}$LINGUAS" >&6
8443 if test -n "$LINGUAS"; then
8444 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8449 if test -n "$ac_aux_dir"; then
8450 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8452 if test -z "$MKINSTALLDIRS"; then
8453 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8456 INTL_LIBTOOL_SUFFIX_PREFIX
=
8458 # This is necessary so that .o files in LIBOBJS are also built via
8459 # the ANSI2KNR-filtering rules.
8460 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8462 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8463 cat >confcache
<<\_ACEOF
8464 # This file is a shell script that caches the results of configure
8465 # tests run on this system so they can be shared between configure
8466 # scripts and configure runs, see configure's option --config-cache.
8467 # It is not useful on other systems. If it contains results you don't
8468 # want to keep, you may remove or edit it.
8470 # config.status only pays attention to the cache file if you give it
8471 # the --recheck option to rerun configure.
8473 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8474 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8479 # The following way of writing the cache mishandles newlines in values,
8480 # but we know of no workaround that is simple, portable, and efficient.
8481 # So, don't put newlines in cache variables' values.
8482 # Ultrix sh set writes to stderr and can't be redirected directly,
8483 # and sets the high bit in the cache file unless we assign to the vars.
8486 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8488 # `set' does not quote correctly, so add quotes (double-quote
8489 # substitution turns \\\\ into \\, and sed turns \\ into \).
8492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8495 # `set' quotes correctly as required by POSIX, so do not add quotes.
8497 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8504 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8506 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8508 if cmp -s $cache_file confcache
; then :; else
8509 if test -w $cache_file; then
8510 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8511 cat confcache
>$cache_file
8513 echo "not updating unwritable cache $cache_file"
8518 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8519 # Let make expand exec_prefix.
8520 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8522 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8523 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8524 # trailing colons and then remove the whole line if VPATH becomes empty
8525 # (actually we leave an empty line to preserve line numbers).
8526 if test "x$srcdir" = x.
; then
8527 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8528 s/:*\$(srcdir):*/:/;
8529 s/:*\${srcdir}:*/:/;
8531 s/^\([^=]*=[ ]*\):*/\1/;
8537 DEFS
=-DHAVE_CONFIG_H
8539 : ${CONFIG_STATUS=./config.status}
8540 ac_clean_files_save
=$ac_clean_files
8541 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8542 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8543 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8544 cat >$CONFIG_STATUS <<_ACEOF
8546 # Generated automatically by $as_me.
8547 # Run this file to recreate the current configuration.
8548 # Compiler output produced by configure, useful for debugging
8549 # configure, is in config.log if it exists.
8552 SHELL=\${CONFIG_SHELL-$SHELL}
8555 cat >>$CONFIG_STATUS <<\_ACEOF
8557 ## --------------------- ##
8558 ## M4sh Initialization. ##
8559 ## --------------------- ##
8561 # Be Bourne compatible
8562 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8565 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8569 # Name of the executable.
8570 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
8572 # Rewrite early, but we need PATH_SEPARATOR.
8573 # The user is always right.
8574 if test "${PATH_SEPARATOR+set}" != set; then
8575 echo "#! $SHELL" >conftest.sh
8576 echo "exit 0" >>conftest.sh
8577 chmod +x conftest.sh
8578 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8589 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
8590 test "x$as_lineno_1" != "x$as_lineno_2" &&
8591 test "x$as_lineno_3" = "x$as_lineno_2"
8593 if eval "$as_command"; then
8596 # Find who we are. Look in the path if we contain no path at all
8599 *[\\/]* ) as_myself=$0 ;;
8600 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 test -z "$as_dir" && as_dir=.
8605 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8610 # We did not find ourselves, most probably we were run as `sh COMMAND
'
8611 # in which case we are not to be found in the path.
8612 if test "x$as_myself" = x; then
8615 if test ! -f "$as_myself"; then
8616 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8617 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8618 { (exit 1); exit 1; }; }
8620 case $CONFIG_SHELL in
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in /bin:/usr/bin:$PATH
8626 test -z "$as_dir" && as_dir=.
8627 for as_base in sh bash ksh sh5; do
8630 if ("$as_dir/$as_base" -c "$as_command") 2>/dev/null; then
8631 CONFIG_SHELL=$as_dir/$as_base
8633 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8640 if test ! -f "$as_me.lineno" ||
8641 test x`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \
8642 != x"$as_me.lineno"; then
8643 # Be sure to write the pattern so that it doesn't replace itself
:
8644 # it must not match itself.
8646 /[$]LINENO/ { printf "%d:", NR }
8649 sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \
8651 chmod +x
$as_me.lineno
8654 # Don't try to exec as it changes $[0], causing all sort of problems
8655 # (the dirname of $[0] is not the place where we might find the
8656 # original and so on. Autoconf is especially sensible to this).
8658 # Exit status is that of the last command.
8662 # Avoid depending upon Character Ranges.
8663 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8664 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8665 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8666 as_cr_digits
='0123456789'
8667 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8669 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8670 *c
*,-n*) ECHO_N
= ECHO_C
='
8672 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8673 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8676 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8682 rm -f conf$$ conf$$.exe conf$$.
file
8684 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8685 # We could just check for DJGPP; but this test a) works b) is more generic
8686 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8687 if test -f conf$$.exe
; then
8688 # Don't use ln at all; we don't have any links
8693 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8698 rm -f conf$$ conf$$.exe conf$$.
file
8700 as_executable_p
="test -f"
8702 # Sed expression to map a string onto a valid CPP name.
8703 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8705 # Sed expression to map a string onto a valid variable name.
8706 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8708 # Support unset when possible.
8709 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8716 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
8717 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
8718 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
8719 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
8720 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
8721 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
8722 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
8723 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
8726 # We need space, tab and new line, in precisely that order.
8732 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
8736 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8737 # report actual input values of CONFIG_FILES etc. instead of their
8738 # values after options handling. Logging --version etc. is OK.
8742 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8743 ## Running $as_me. ##
8748 This file was extended by GNU Bison $as_me 1.29f, which was
8749 generated by GNU Autoconf 2.52e. Invocation command line was
8751 CONFIG_FILES = $CONFIG_FILES
8752 CONFIG_HEADERS = $CONFIG_HEADERS
8753 CONFIG_LINKS = $CONFIG_LINKS
8754 CONFIG_COMMANDS = $CONFIG_COMMANDS
8758 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8762 # Files that config.status was made for.
8763 if test -n "$ac_config_files"; then
8764 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8767 if test -n "$ac_config_headers"; then
8768 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8771 if test -n "$ac_config_links"; then
8772 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8775 if test -n "$ac_config_commands"; then
8776 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8779 cat >>$CONFIG_STATUS <<\_ACEOF
8782 \`$as_me' instantiates files from templates according to the
8783 current configuration.
8785 Usage: $0 [OPTIONS] [FILE]...
8787 -h, --help print this help, then exit
8788 -V, --version print version number, then exit
8789 -d, --debug don't remove temporary files
8790 --recheck update $as_me by reconfiguring in the same conditions
8791 --file=FILE[:TEMPLATE]
8792 instantiate the configuration file FILE
8793 --header=FILE[:TEMPLATE]
8794 instantiate the configuration header FILE
8796 Configuration files:
8799 Configuration headers:
8802 Configuration commands:
8805 Report bugs to <bug-autoconf@gnu.org>."
8808 cat >>$CONFIG_STATUS <<_ACEOF
8810 GNU Bison config.status 1.29f
8811 configured by $0, generated by GNU Autoconf 2.52e,
8812 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8814 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8815 Free Software Foundation, Inc.
8816 This config.status script is free software; the Free Software Foundation
8817 gives unlimited permission to copy, distribute and modify it."
8822 cat >>$CONFIG_STATUS <<\_ACEOF
8823 # If no file are specified by the user, then we need to provide default
8824 # value. By we need to know if files were specified by the user.
8830 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8831 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8833 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
8837 *) # This is not an option, so the user has probably given explicit
8839 ac_need_defaults
=false
;;
8843 # Handling of the options.
8845 cat >>$CONFIG_STATUS <<_ACEOF
8846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8847 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8848 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8850 cat >>$CONFIG_STATUS <<\_ACEOF
8851 --version | --vers* | -V )
8852 echo "$ac_cs_version"; exit 0 ;;
8854 # Conflict between --help and --header
8855 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8856 Try \`$0 --help' for more information." >&5
8857 echo "$as_me: error: ambiguous option: $1
8858 Try \`$0 --help' for more information." >&2;}
8859 { (exit 1); exit 1; }; };;
8860 --help | --hel | -h )
8861 echo "$ac_cs_usage"; exit 0 ;;
8862 --debug | --d* | -d )
8864 --file | --fil | --fi | --f )
8866 CONFIG_FILES
="$CONFIG_FILES $1"
8867 ac_need_defaults
=false
;;
8868 --header | --heade | --head | --hea )
8870 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
8871 ac_need_defaults
=false
;;
8874 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8875 Try \`$0 --help' for more information." >&5
8876 echo "$as_me: error: unrecognized option: $1
8877 Try \`$0 --help' for more information." >&2;}
8878 { (exit 1); exit 1; }; } ;;
8880 *) ac_config_targets
="$ac_config_targets $1" ;;
8888 cat >>$CONFIG_STATUS <<_ACEOF
8890 # INIT-COMMANDS section.
8893 PACKAGE_NAME='$PACKAGE_NAME'
8894 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8895 PACKAGE_VERSION='$PACKAGE_VERSION'
8896 PACKAGE_STRING='$PACKAGE_STRING'
8897 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8899 AMDEP_TRUE="$AMDEP_TRUE"
8900 ac_aux_dir="$ac_aux_dir"
8904 cat >>$CONFIG_STATUS <<\_ACEOF
8905 for ac_config_target
in $ac_config_targets
8907 case "$ac_config_target" in
8908 # Handling of arguments.
8909 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
8910 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
8911 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8912 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
8913 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
8914 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
8915 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
8916 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8917 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8918 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
8919 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8920 "tests/package.m4" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/package.m4" ;;
8921 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
8922 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
8923 "default-2" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
8924 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
8925 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8926 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8927 { (exit 1); exit 1; }; };;
8931 # If the user did not use the arguments to specify the items to instantiate,
8932 # then the envvar interface is used. Set only those that are not.
8933 # We use the long form for the default assignment because of an extremely
8934 # bizarre bug on SunOS 4.1.3.
8935 if $ac_need_defaults; then
8936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8938 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8941 # Create a temporary directory, and hook for its removal unless debugging.
8944 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8945 trap '{ (exit 1); exit 1; }' 1 2 13 15
8948 # Create a (secure) tmp directory for tmp files.
8951 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8952 test -n "$tmp" && test -d "$tmp"
8955 tmp
=$TMPDIR/cs$$
-$RANDOM
8956 (umask 077 && mkdir $tmp)
8959 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8960 { (exit 1); exit 1; }
8965 cat >>$CONFIG_STATUS <<_ACEOF
8968 # CONFIG_FILES section.
8971 # No need to generate the scripts if there are no CONFIG_FILES.
8972 # This happens for instance when ./config.status config.h
8973 if test -n "\$CONFIG_FILES"; then
8974 # Protect against being on the right side of a sed subst in config.status.
8975 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8976 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8977 s,@SHELL@,$SHELL,;t t
8978 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8979 s,@exec_prefix@,$exec_prefix,;t t
8980 s,@prefix@,$prefix,;t t
8981 s,@program_transform_name@,$program_transform_name,;t t
8982 s,@bindir@,$bindir,;t t
8983 s,@sbindir@,$sbindir,;t t
8984 s,@libexecdir@,$libexecdir,;t t
8985 s,@datadir@,$datadir,;t t
8986 s,@sysconfdir@,$sysconfdir,;t t
8987 s,@sharedstatedir@,$sharedstatedir,;t t
8988 s,@localstatedir@,$localstatedir,;t t
8989 s,@libdir@,$libdir,;t t
8990 s,@includedir@,$includedir,;t t
8991 s,@oldincludedir@,$oldincludedir,;t t
8992 s,@infodir@,$infodir,;t t
8993 s,@mandir@,$mandir,;t t
8994 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8995 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8996 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8997 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8998 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8999 s,@build_alias@,$build_alias,;t t
9000 s,@host_alias@,$host_alias,;t t
9001 s,@target_alias@,$target_alias,;t t
9003 s,@ECHO_C@,$ECHO_C,;t t
9004 s,@ECHO_N@,$ECHO_N,;t t
9005 s,@ECHO_T@,$ECHO_T,;t t
9007 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9008 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9009 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9010 s,@PACKAGE@,$PACKAGE,;t t
9011 s,@VERSION@,$VERSION,;t t
9012 s,@ACLOCAL@,$ACLOCAL,;t t
9013 s,@AUTOCONF@,$AUTOCONF,;t t
9014 s,@AUTOMAKE@,$AUTOMAKE,;t t
9015 s,@AUTOHEADER@,$AUTOHEADER,;t t
9016 s,@MAKEINFO@,$MAKEINFO,;t t
9017 s,@AMTAR@,$AMTAR,;t t
9018 s,@install_sh@,$install_sh,;t t
9019 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9021 s,@SET_MAKE@,$SET_MAKE,;t t
9022 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9023 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9024 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9025 s,@DEPDIR@,$DEPDIR,;t t
9028 s,@CFLAGS@,$CFLAGS,;t t
9029 s,@LDFLAGS@,$LDFLAGS,;t t
9030 s,@CPPFLAGS@,$CPPFLAGS,;t t
9031 s,@ac_ct_CC@,$ac_ct_CC,;t t
9032 s,@EXEEXT@,$EXEEXT,;t t
9033 s,@OBJEXT@,$OBJEXT,;t t
9034 s,@am__include@,$am__include,;t t
9035 s,@am__quote@,$am__quote,;t t
9036 s,@CCDEPMODE@,$CCDEPMODE,;t t
9038 s,@RANLIB@,$RANLIB,;t t
9039 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9040 s,@AUTOM4TE@,$AUTOM4TE,;t t
9041 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9043 s,@ANSI2KNR@,$ANSI2KNR,;t t
9044 s,@ALLOCA@,$ALLOCA,;t t
9045 s,@LIBOBJS@,$LIBOBJS,;t t
9046 s,@build@,$build,;t t
9047 s,@build_cpu@,$build_cpu,;t t
9048 s,@build_vendor@,$build_vendor,;t t
9049 s,@build_os@,$build_os,;t t
9051 s,@host_cpu@,$host_cpu,;t t
9052 s,@host_vendor@,$host_vendor,;t t
9053 s,@host_os@,$host_os,;t t
9054 s,@GLIBC21@,$GLIBC21,;t t
9055 s,@LIBICONV@,$LIBICONV,;t t
9056 s,@USE_NLS@,$USE_NLS,;t t
9057 s,@MSGFMT@,$MSGFMT,;t t
9058 s,@GMSGFMT@,$GMSGFMT,;t t
9059 s,@XGETTEXT@,$XGETTEXT,;t t
9060 s,@INTLBISON@,$INTLBISON,;t t
9061 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9062 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9063 s,@CATALOGS@,$CATALOGS,;t t
9064 s,@CATOBJEXT@,$CATOBJEXT,;t t
9065 s,@GMOFILES@,$GMOFILES,;t t
9066 s,@INTLLIBS@,$INTLLIBS,;t t
9067 s,@INTLOBJS@,$INTLOBJS,;t t
9068 s,@POFILES@,$POFILES,;t t
9069 s,@POSUB@,$POSUB,;t t
9070 s,@DATADIRNAME@,$DATADIRNAME,;t t
9071 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9072 s,@GENCAT@,$GENCAT,;t t
9073 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9074 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9079 cat >>$CONFIG_STATUS <<\_ACEOF
9080 # Split the substitutions into bite-sized pieces for seds with
9081 # small command number limits, like on Digital OSF/1 and HP-UX.
9083 ac_sed_frag
=1 # Number of current file.
9084 ac_beg
=1 # First line for current file.
9085 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9088 while $ac_more_lines; do
9089 if test $ac_beg -gt 1; then
9090 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9092 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9094 if test ! -s $tmp/subs.frag
; then
9097 # The purpose of the label and of the branching condition is to
9098 # speed up the sed processing (if there are no `@' at all, there
9099 # is no need to browse any of the substitutions).
9100 # These are the two extra sed commands mentioned above.
9102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9103 if test -z "$ac_sed_cmds"; then
9104 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9106 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9108 ac_sed_frag
=`expr $ac_sed_frag + 1`
9110 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9113 if test -z "$ac_sed_cmds"; then
9116 fi # test -n "$CONFIG_FILES"
9119 cat >>$CONFIG_STATUS <<\_ACEOF
9120 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9121 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9123 - | *:- | *:-:* ) # input from stdin
9125 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9126 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9127 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9128 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9129 * ) ac_file_in
=$ac_file.
in ;;
9132 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9133 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9134 X"$ac_file" : 'X\(//\)[^/]' \| \
9135 X"$ac_file" : 'X\(//\)$' \| \
9136 X"$ac_file" : 'X\(/\)' \| \
9137 . : '\(.\)' 2>/dev/null ||
9139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9141 /^X\(\/\/\)$/{ s//\1/; q; }
9142 /^X\(\/\).*/{ s//\1/; q; }
9145 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9149 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9150 case $as_mkdir_dir in
9151 # Skip DOS drivespec
9152 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9154 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9155 test -d "$as_incr_dir" ||
9156 mkdir "$as_incr_dir" ||
9157 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9158 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9159 { (exit 1); exit 1; }; }
9166 if test "$ac_dir" != .
; then
9167 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9168 # A "../" for each directory in $ac_dir_suffix.
9169 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9171 ac_dir_suffix
= ac_top_builddir
=
9175 .
) # No --srcdir option. We are building in place.
9177 if test -z "$ac_top_builddir"; then
9180 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9182 [\\/]* | ?
:[\\/]* ) # Absolute path.
9183 ac_srcdir
=$srcdir$ac_dir_suffix;
9184 ac_top_srcdir
=$srcdir ;;
9186 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9187 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9189 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9191 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9192 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9193 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9194 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9197 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9198 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9201 if test x
"$ac_file" != x
-; then
9202 { echo "$as_me:$LINENO: creating $ac_file" >&5
9203 echo "$as_me: creating $ac_file" >&6;}
9206 # Let's still pretend it is `configure' which instantiates (i.e., don't
9207 # use $as_me), people would be surprised to read:
9208 # /* config.h. Generated automatically by config.status. */
9209 configure_input
="Generated automatically from `echo $ac_file_in |
9210 sed 's,.*/,,'` by configure."
9212 # First look for the input files in the build tree, otherwise in the
9214 ac_file_inputs
=`IFS=:
9215 for f in $ac_file_in; do
9217 -) echo $tmp/stdin ;;
9219 # Absolute (can't be DOS-style, as IFS=:)
9220 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9221 echo "$as_me: error: cannot find input file: $f" >&2;}
9222 { (exit 1); exit 1; }; }
9225 if test -f "$f"; then
9228 elif test -f "$srcdir/$f"; then
9233 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9234 echo "$as_me: error: cannot find input file: $f" >&2;}
9235 { (exit 1); exit 1; }; }
9238 done` || { (exit 1); exit 1; }
9240 cat >>$CONFIG_STATUS <<_ACEOF
9244 cat >>$CONFIG_STATUS <<\_ACEOF
9246 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9247 s
,@configure_input@
,$configure_input,;t t
9248 s
,@srcdir@
,$ac_srcdir,;t t
9249 s
,@srcpath@
,$ac_srcpath,;t t
9250 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9251 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9252 s
,@builddir@
,$ac_builddir,;t t
9253 s
,@buildpath@
,$ac_buildpath,;t t
9254 s
,@top_builddir@
,$ac_top_builddir,;t t
9255 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9256 s
,@INSTALL@
,$ac_INSTALL,;t t
9257 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9259 if test x"$ac_file" != x-; then
9260 mv $tmp/out $ac_file
9266 # Run the commands associated with the file.
9268 tests/bison ) chmod +x tests/bison ;;
9272 cat >>$CONFIG_STATUS <<\_ACEOF
9275 # CONFIG_HEADER section.
9278 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9279 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9281 # ac_d sets the value in "#define NAME VALUE" lines.
9282 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9283 ac_dB
='[ ].*$,\1#\2'
9286 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9287 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9288 ac_uB
='$,\1#\2define\3'
9292 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9293 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9295 - | *:- | *:-:* ) # input from stdin
9297 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9298 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9299 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9300 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9301 * ) ac_file_in
=$ac_file.
in ;;
9304 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9305 echo "$as_me: creating $ac_file" >&6;}
9307 # First look for the input files in the build tree, otherwise in the
9309 ac_file_inputs
=`IFS=:
9310 for f in $ac_file_in; do
9312 -) echo $tmp/stdin ;;
9314 # Absolute (can't be DOS-style, as IFS=:)
9315 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9316 echo "$as_me: error: cannot find input file: $f" >&2;}
9317 { (exit 1); exit 1; }; }
9320 if test -f "$f"; then
9323 elif test -f "$srcdir/$f"; then
9328 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9329 echo "$as_me: error: cannot find input file: $f" >&2;}
9330 { (exit 1); exit 1; }; }
9333 done` || { (exit 1); exit 1; }
9334 # Remove the trailing spaces.
9335 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9339 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9340 # `conftest.undefs', that substitutes the proper values into
9341 # config.h.in to produce config.h. The first handles `#define'
9342 # templates, and the second `#undef' templates.
9343 # And first: Protect against being on the right side of a sed subst in
9344 # config.status. Protect against being in an unquoted here document
9346 rm -f conftest.defines conftest.undefs
9347 # Using a here document instead of a string reduces the quoting nightmare.
9348 # Putting comments in sed scripts is not portable.
9350 # `end' is used to avoid that the second main sed command (meant for
9351 # 0-ary CPP macros) applies to n-ary macro definitions.
9352 # See the Autoconf documentation for `clear'.
9353 cat >confdef2sed.
sed <<\_ACEOF
9358 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9360 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9363 # If some macros were called several times there might be several times
9364 # the same #defines, which is useless. Nevertheless, we may not want to
9365 # sort them, since we want the *last* AC-DEFINE to be honored.
9366 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9367 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9368 rm -f confdef2sed.sed
9370 # This sed command replaces #undef with comments. This is necessary, for
9371 # example, in the case of _POSIX_SOURCE, which is predefined and required
9372 # on some systems where configure will not decide to define it.
9373 cat >>conftest.undefs <<\_ACEOF
9374 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9377 # Break up conftest.defines because some shells have a limit on the size
9378 # of here documents, and old seds have small limits too (100 cmds).
9379 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9380 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9381 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9382 echo ' :' >>$CONFIG_STATUS
9384 while grep . conftest.defines >/dev/null
9386 # Write a limited-size here document to $tmp/defines.sed.
9387 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9388 # Speed up: don't consider the non `#define' lines.
9389 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9390 # Work around the forget-to-reset-the-flag bug.
9391 echo 't clr' >>$CONFIG_STATUS
9392 echo ': clr' >>$CONFIG_STATUS
9393 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9395 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9399 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9400 rm -f conftest.defines
9401 mv conftest.
tail conftest.defines
9403 rm -f conftest.defines
9404 echo ' fi # egrep' >>$CONFIG_STATUS
9405 echo >>$CONFIG_STATUS
9407 # Break up conftest.undefs because some shells have a limit on the size
9408 # of here documents, and old seds have small limits too (100 cmds).
9409 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9411 while grep . conftest.undefs
>/dev
/null
9413 # Write a limited-size here document to $tmp/undefs.sed.
9414 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9415 # Speed up: don't consider the non
`#undef'
9416 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9417 # Work around the forget-to-reset-the-flag bug.
9418 echo 't clr' >>$CONFIG_STATUS
9419 echo ': clr' >>$CONFIG_STATUS
9420 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9422 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9426 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9427 rm -f conftest.undefs
9428 mv conftest.tail conftest.undefs
9430 rm -f conftest.undefs
9432 cat >>$CONFIG_STATUS <<\_ACEOF
9433 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9434 # use $as_me), people would be surprised to read:
9435 # /* config.h. Generated automatically by config.status. */
9436 if test x
"$ac_file" = x
-; then
9437 echo "/* Generated automatically by configure. */" >$tmp/config.h
9439 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9441 cat $tmp/in >>$tmp/config.h
9443 if test x
"$ac_file" != x
-; then
9444 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9445 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9446 echo "$as_me: $ac_file is unchanged" >&6;}
9448 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9449 X"$ac_file" : 'X\(//\)[^/]' \| \
9450 X"$ac_file" : 'X\(//\)$' \| \
9451 X"$ac_file" : 'X\(/\)' \| \
9452 . : '\(.\)' 2>/dev/null ||
9454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9455 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9456 /^X\(\/\/\)$/{ s//\1/; q; }
9457 /^X\(\/\).*/{ s//\1/; q; }
9460 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9464 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9465 case $as_mkdir_dir in
9466 # Skip DOS drivespec
9467 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9469 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9470 test -d "$as_incr_dir" ||
9471 mkdir "$as_incr_dir" ||
9472 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9473 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9474 { (exit 1); exit 1; }; }
9480 mv $tmp/config.h
$ac_file
9486 # Run the commands associated with the file.
9488 config.h
) # update the timestamp
9489 echo timestamp
>"./stamp-h1"
9494 cat >>$CONFIG_STATUS <<\_ACEOF
9497 # CONFIG_COMMANDS section.
9499 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9500 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9501 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9502 ac_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9503 X"$ac_dest" : 'X\(//\)[^/]' \| \
9504 X"$ac_dest" : 'X\(//\)$' \| \
9505 X"$ac_dest" : 'X\(/\)' \| \
9506 . : '\(.\)' 2>/dev/null ||
9508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9510 /^X\(\/\/\)$/{ s//\1/; q; }
9511 /^X\(\/\).*/{ s//\1/; q; }
9515 if test "$ac_dir" != .
; then
9516 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9517 # A "../" for each directory in $ac_dir_suffix.
9518 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9520 ac_dir_suffix
= ac_top_builddir
=
9524 .
) # No --srcdir option. We are building in place.
9526 if test -z "$ac_top_builddir"; then
9529 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9531 [\\/]* | ?
:[\\/]* ) # Absolute path.
9532 ac_srcdir
=$srcdir$ac_dir_suffix;
9533 ac_top_srcdir
=$srcdir ;;
9535 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9536 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9538 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9540 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9541 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9542 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9543 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9545 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9546 echo "$as_me: executing $ac_dest commands" >&6;}
9548 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9549 # Signature of the current package.
9550 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9551 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9552 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9553 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9554 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9557 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9558 # Configurable variable values for building test suites.
9560 # Copyright 2000, 2001 Free Software Foundation, Inc.
9563 buildpath='$ac_buildpath'
9565 srcpath='$ac_srcpath'
9566 top_srcdir='$ac_top_srcdir'
9567 top_srcpath='$ac_top_srcpath'
9568 top_builddir='$ac_top_builddir'
9569 top_buildpath='$ac_top_buildpath'
9571 AUTOTEST_PATH='tests'
9573 SHELL=\${CONFIG_SHELL-'$SHELL'}
9577 test x
"$AMDEP_TRUE" != x
"" ||
9578 for mf
in $CONFIG_FILES; do
9580 Makefile
) dirpart
=.
;;
9581 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9584 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9585 # Extract the definition of DEP_FILES from the Makefile without
9587 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9588 test -z "$DEPDIR" && continue
9589 # When using ansi2knr, U may be empty or an underscore; expand it
9590 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9591 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9592 # We invoke sed twice because it is the simplest approach to
9593 # changing $(DEPDIR) to its actual value in the expansion.
9594 for file in `sed -n -e '
9595 /^DEP_FILES = .*\\\\$/ {
9604 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9605 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9606 # Make sure the directory exists.
9607 test -f "$dirpart/$file" && continue
9608 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9609 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9610 # echo "creating $dirpart/$file"
9611 echo '# dummy' > "$dirpart/$file"
9615 default
-2 ) for ac_file
in $CONFIG_FILES; do
9616 # Support "outfile[:infile[:infile...]]"
9618 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9620 # PO directories have a Makefile.in generated from Makefile.in.in.
9621 case "$ac_file" in */Makefile.
in)
9622 # Adjust a relative srcdir.
9623 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9624 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9625 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9626 # In autoconf-2.13 it is called $ac_given_srcdir.
9627 # In autoconf-2.50 it is called $srcdir.
9628 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9629 case "$ac_given_srcdir" in
9630 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9631 /*) top_srcdir
="$ac_given_srcdir" ;;
9632 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9634 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9635 rm -f "$ac_dir/POTFILES"
9636 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9637 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9638 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9639 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9648 cat >>$CONFIG_STATUS <<\_ACEOF
9650 { (exit 0); exit 0; }
9652 chmod +x
$CONFIG_STATUS
9653 ac_clean_files
=$ac_clean_files_save
9655 # configure is writing to config.log, and then calls config.status.
9656 # config.status does its own redirection, appending to config.log.
9657 # Unfortunately, on DOS this fails, as config.log is still kept open
9658 # by configure, so config.status won't be able to write to it; its
9659 # output is simply discarded. So we exec the FD to /dev/null,
9660 # effectively closing config.log, so it can be properly (re)opened and
9661 # appended to by config.status. When coming back to configure, we
9662 # need to make the FD available again.
9663 if test "$no_create" != yes; then
9666 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9669 # would make configure fail if this is the last instruction.
9670 $ac_cs_success || { (exit 1); exit 1; }