2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52e for GNU Bison 1.29d.
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.29d'
289 PACKAGE_STRING
='GNU Bison 1.29d'
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.29d 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.29d:";;
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.29d
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.29d, 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
=`CDPATH=:; 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 "`CDPATH=:; 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 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1394 # the ones we care about.
1396 # Autoconf 2.50 always computes EXEEXT. However we need to be
1397 # compatible with 2.13, for now. So we always define EXEEXT, but we
1400 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1401 # requests that it be used. This is a bit dumb.
1404 # Some tools Automake needs.
1406 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1408 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1410 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1412 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1414 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1416 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1418 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1420 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1422 # We need awk for the "check" target. The system "awk" is bad on
1425 ac_config_headers
="$ac_config_headers config.h:config.hin"
1427 # Initialize the test suite.
1428 ac_config_commands
="$ac_config_commands tests/package.m4"
1430 ac_config_commands
="$ac_config_commands tests/atconfig"
1432 if test -f $srcdir/tests
/atlocal.
in; then
1433 ac_config_files
="$ac_config_files tests/atlocal"
1437 ac_config_files
="$ac_config_files tests/bison"
1439 # Checks for programs.
1441 ac_cpp
='$CPP $CPPFLAGS'
1442 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1443 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1444 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1445 if test -n "$ac_tool_prefix"; then
1446 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1447 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1448 echo "$as_me:$LINENO: checking for $ac_word" >&5
1449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450 if test "${ac_cv_prog_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 if test -n "$CC"; then
1454 ac_cv_prog_CC
="$CC" # Let the user override the test.
1456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1460 test -z "$as_dir" && as_dir
=.
1461 for ac_exec_ext
in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 if test -n "$CC"; then
1474 echo "$as_me:$LINENO: result: $CC" >&5
1475 echo "${ECHO_T}$CC" >&6
1477 echo "$as_me:$LINENO: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1482 if test -z "$ac_cv_prog_CC"; then
1484 # Extract the first word of "gcc", so it can be a program name with args.
1485 set dummy gcc
; ac_word
=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 if test -n "$ac_ct_CC"; then
1492 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1498 test -z "$as_dir" && as_dir
=.
1499 for ac_exec_ext
in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_ac_ct_CC
="gcc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1511 if test -n "$ac_ct_CC"; then
1512 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1513 echo "${ECHO_T}$ac_ct_CC" >&6
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1524 if test -z "$CC"; then
1525 if test -n "$ac_tool_prefix"; then
1526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1527 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC
="$CC" # Let the user override the test.
1536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir
=.
1541 for ac_exec_ext
in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 if test -n "$CC"; then
1554 echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1562 if test -z "$ac_cv_prog_CC"; then
1564 # Extract the first word of "cc", so it can be a program name with args.
1565 set dummy cc
; ac_word
=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 if test -n "$ac_ct_CC"; then
1572 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1578 test -z "$as_dir" && as_dir
=.
1579 for ac_exec_ext
in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_ac_ct_CC
="cc"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1605 if test -z "$CC"; then
1606 # Extract the first word of "cc", so it can be a program name with args.
1607 set dummy cc
; ac_word
=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC
="$CC" # Let the user override the test.
1617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir
=.
1622 for ac_exec_ext
in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1625 ac_prog_rejected
=yes
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 if test $ac_prog_rejected = yes; then
1636 # We found a bogon in the path, so make sure we never use it.
1637 set dummy
$ac_cv_prog_CC
1639 if test $# != 0; then
1640 # We chose a different compiler from the bogus one.
1641 # However, it has the same basename, so the bogon will be chosen
1642 # first if we set CC to just the basename; use the full file name.
1644 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1652 if test -n "$CC"; then
1653 echo "$as_me:$LINENO: result: $CC" >&5
1654 echo "${ECHO_T}$CC" >&6
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1661 if test -z "$CC"; then
1662 if test -n "$ac_tool_prefix"; then
1665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1666 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 if test -n "$CC"; then
1673 ac_cv_prog_CC
="$CC" # Let the user override the test.
1675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir
=.
1680 for ac_exec_ext
in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 if test -n "$CC"; then
1693 echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1700 test -n "$CC" && break
1703 if test -z "$CC"; then
1707 # Extract the first word of "$ac_prog", so it can be a program name with args.
1708 set dummy
$ac_prog; ac_word
=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 if test -n "$ac_ct_CC"; then
1715 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1721 test -z "$as_dir" && as_dir
=.
1722 for ac_exec_ext
in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_CC
="$ac_prog"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1734 if test -n "$ac_ct_CC"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1736 echo "${ECHO_T}$ac_ct_CC" >&6
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1742 test -n "$ac_ct_CC" && break
1750 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1751 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1752 { (exit 1); exit 1; }; }
1754 # Provide some information about the compiler.
1755 echo "$as_me:$LINENO:" \
1756 "checking for C compiler version" >&5
1757 ac_compiler
=`set X $ac_compile; echo $2`
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1759 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1764 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1769 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772 (exit $ac_status); }
1774 cat >conftest.
$ac_ext <<_ACEOF
1775 #line $LINENO "configure"
1776 #include "confdefs.h"
1778 #ifdef F77_DUMMY_MAIN
1782 int F77_DUMMY_MAIN() { return 1; }
1792 ac_clean_files_save
=$ac_clean_files
1793 ac_clean_files
="$ac_clean_files a.out a.exe"
1794 # Try to create an executable without -o first, disregard a.out.
1795 # It will help us diagnose broken compilers, and finding out an intuition
1797 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1798 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1799 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1800 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1801 (eval $ac_link_default) 2>&5
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }; then
1805 # Find the output, starting from the most likely. This scheme is
1806 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1808 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1809 ls a.out conftest 2>/dev/null;
1810 ls a.* conftest.* 2>/dev/null`; do
1812 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1813 a.out
) # We found the default executable, but exeext='' is most
1816 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1824 echo "$as_me: failed program was:" >&5
1825 cat conftest.
$ac_ext >&5
1826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1827 echo "$as_me: error: C compiler cannot create executables" >&2;}
1828 { (exit 77); exit 77; }; }
1831 ac_exeext
=$ac_cv_exeext
1832 echo "$as_me:$LINENO: result: $ac_file" >&5
1833 echo "${ECHO_T}$ac_file" >&6
1835 # Check the compiler produces executables we can run. If not, either
1836 # the compiler is broken, or we cross compile.
1837 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1838 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1839 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1840 # If not cross compiling, check that we can run a simple program.
1841 if test "$cross_compiling" != yes; then
1842 if { ac_try
='./$ac_file'
1843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }; }; then
1850 if test "$cross_compiling" = maybe
; then
1853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1854 If you meant to cross compile, use \`--host'." >&5
1855 echo "$as_me: error: cannot run C compiled programs.
1856 If you meant to cross compile, use \`--host'." >&2;}
1857 { (exit 1); exit 1; }; }
1861 echo "$as_me:$LINENO: result: yes" >&5
1862 echo "${ECHO_T}yes" >&6
1864 rm -f a.out a.exe conftest
$ac_cv_exeext
1865 ac_clean_files
=$ac_clean_files_save
1866 # Check the compiler produces executables we can run. If not, either
1867 # the compiler is broken, or we cross compile.
1868 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1869 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1870 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1871 echo "${ECHO_T}$cross_compiling" >&6
1873 echo "$as_me:$LINENO: checking for executable suffix" >&5
1874 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1876 (eval $ac_link) 2>&5
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; then
1880 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1881 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1882 # work properly (i.e., refer to `conftest.exe'), while it won't with
1884 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1886 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1887 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1894 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1895 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1896 { (exit 1); exit 1; }; }
1899 rm -f conftest
$ac_cv_exeext
1900 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1901 echo "${ECHO_T}$ac_cv_exeext" >&6
1903 rm -f conftest.
$ac_ext
1904 EXEEXT
=$ac_cv_exeext
1906 echo "$as_me:$LINENO: checking for object suffix" >&5
1907 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1908 if test "${ac_cv_objext+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 cat >conftest.
$ac_ext <<_ACEOF
1912 #line $LINENO "configure"
1913 #include "confdefs.h"
1915 #ifdef F77_DUMMY_MAIN
1919 int F77_DUMMY_MAIN() { return 1; }
1929 rm -f conftest.o conftest.obj
1930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>&5
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; then
1935 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1937 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1938 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1943 echo "$as_me: failed program was:" >&5
1944 cat conftest.
$ac_ext >&5
1945 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1946 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1947 { (exit 1); exit 1; }; }
1950 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1952 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1953 echo "${ECHO_T}$ac_cv_objext" >&6
1954 OBJEXT
=$ac_cv_objext
1956 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1957 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1958 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 cat >conftest.
$ac_ext <<_ACEOF
1962 #line $LINENO "configure"
1963 #include "confdefs.h"
1965 #ifdef F77_DUMMY_MAIN
1969 int F77_DUMMY_MAIN() { return 1; }
1982 rm -f conftest.
$ac_objext
1983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1984 (eval $ac_compile) 2>&5
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); } &&
1988 { ac_try
='test -s conftest.$ac_objext'
1989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; }; then
1996 echo "$as_me: failed program was:" >&5
1997 cat conftest.
$ac_ext >&5
2000 rm -f conftest.
$ac_objext conftest.
$ac_ext
2001 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2004 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2005 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2006 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2007 ac_test_CFLAGS
=${CFLAGS+set}
2008 ac_save_CFLAGS
=$CFLAGS
2010 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2011 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2012 if test "${ac_cv_prog_cc_g+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 cat >conftest.
$ac_ext <<_ACEOF
2016 #line $LINENO "configure"
2017 #include "confdefs.h"
2019 #ifdef F77_DUMMY_MAIN
2023 int F77_DUMMY_MAIN() { return 1; }
2033 rm -f conftest.
$ac_objext
2034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2035 (eval $ac_compile) 2>&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); } &&
2039 { ac_try
='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2047 echo "$as_me: failed program was:" >&5
2048 cat conftest.
$ac_ext >&5
2051 rm -f conftest.
$ac_objext conftest.
$ac_ext
2053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2055 if test "$ac_test_CFLAGS" = set; then
2056 CFLAGS
=$ac_save_CFLAGS
2057 elif test $ac_cv_prog_cc_g = yes; then
2058 if test "$GCC" = yes; then
2064 if test "$GCC" = yes; then
2070 # Some people use a C++ compiler to compile C. Since we use `exit',
2071 # in C++ we need to declare it. In case someone uses the same compiler
2072 # for both compiling C and C++ we need to have the C++ compiler decide
2073 # the declaration of exit, since it's the most demanding environment.
2074 cat >conftest.
$ac_ext <<_ACEOF
2079 rm -f conftest.
$ac_objext
2080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081 (eval $ac_compile) 2>&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try
='test -s conftest.$ac_objext'
2086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; }; then
2091 for ac_declaration
in \
2093 '#include <stdlib.h>' \
2094 'extern "C" void std::exit (int) throw (); using std::exit;' \
2095 'extern "C" void std::exit (int); using std::exit;' \
2096 'extern "C" void exit (int) throw ();' \
2097 'extern "C" void exit (int);' \
2100 cat >conftest.
$ac_ext <<_ACEOF
2101 #line $LINENO "configure"
2102 #include "confdefs.h"
2105 #ifdef F77_DUMMY_MAIN
2109 int F77_DUMMY_MAIN() { return 1; }
2119 rm -f conftest.
$ac_objext
2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 (eval $ac_compile) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); } &&
2125 { ac_try
='test -s conftest.$ac_objext'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2133 echo "$as_me: failed program was:" >&5
2134 cat conftest.
$ac_ext >&5
2137 rm -f conftest.
$ac_objext conftest.
$ac_ext
2138 cat >conftest.
$ac_ext <<_ACEOF
2139 #line $LINENO "configure"
2140 #include "confdefs.h"
2142 #ifdef F77_DUMMY_MAIN
2146 int F77_DUMMY_MAIN() { return 1; }
2156 rm -f conftest.
$ac_objext
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
2162 { ac_try
='test -s conftest.$ac_objext'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; }; then
2170 echo "$as_me: failed program was:" >&5
2171 cat conftest.
$ac_ext >&5
2173 rm -f conftest.
$ac_objext conftest.
$ac_ext
2176 if test -n "$ac_declaration"; then
2177 echo '#ifdef __cplusplus' >>confdefs.h
2178 echo $ac_declaration >>confdefs.h
2179 echo '#endif' >>confdefs.h
2183 echo "$as_me: failed program was:" >&5
2184 cat conftest.
$ac_ext >&5
2186 rm -f conftest.
$ac_objext conftest.
$ac_ext
2188 ac_cpp
='$CPP $CPPFLAGS'
2189 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2193 ac_config_commands
="$ac_config_commands default-1"
2195 am_make
=${MAKE-make}
2196 cat > confinc
<< 'END'
2200 # If we don't find an include directive, just comment out the code.
2201 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2202 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2206 # First try GNU make style include.
2207 echo "include confinc" > confmf
2208 # We grep out `Entering directory' and `Leaving directory'
2209 # messages which can occur if `w' ends up in MAKEFLAGS.
2210 # In particular we don't look at `^make:' because GNU make might
2211 # be invoked under some other name (usually "gmake"), in which
2212 # case it prints its new name instead of `make'.
2213 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2218 # Now try BSD make style include.
2219 if test "$am__include" = "#"; then
2220 echo '.include "confinc"' > confmf
2221 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2222 am__include
=.include
2228 echo "$as_me:$LINENO: result: $_am_result" >&5
2229 echo "${ECHO_T}$_am_result" >&6
2230 rm -f confinc confmf
2232 depcc
="$CC" am_compiler_list
=
2234 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2235 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2236 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2240 # We make a subdir and do the tests there. Otherwise we can end up
2241 # making bogus files that we don't know about and never remove. For
2242 # instance it was reported that on HP-UX the gcc test will end up
2243 # making a dummy file named `D' -- because `-MD' means `put the output
2246 # Copy depcomp to subdir because otherwise we won't find it if we're
2247 # using a relative directory.
2248 cp "$am_depcomp" conftest.dir
2251 am_cv_CC_dependencies_compiler_type
=none
2252 if test "$am_compiler_list" = ""; then
2253 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2255 for depmode
in $am_compiler_list; do
2256 # We need to recreate these files for each test, as the compiler may
2257 # overwrite some of them when testing with obscure command lines.
2258 # This happens at least with the AIX C compiler.
2259 echo '#include "conftest.h"' > conftest.c
2260 echo 'int i;' > conftest.h
2261 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2265 # after this tag, mechanisms are not by side-effect, so they'll
2266 # only be used when explicitly requested
2267 if test "x$enable_dependency_tracking" = xyes
; then
2275 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2276 # mode. It turns out that the SunPro C++ compiler does not properly
2277 # handle `-M -o', and we need to detect this.
2278 if depmode
=$depmode \
2279 source=conftest.c object
=conftest.o \
2280 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2281 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2282 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2283 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2284 am_cv_CC_dependencies_compiler_type
=$depmode
2292 am_cv_CC_dependencies_compiler_type
=none
2296 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2297 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2298 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2301 ac_cpp
='$CPP $CPPFLAGS'
2302 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2305 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2306 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2307 # On Suns, sometimes $CPP names a directory.
2308 if test -n "$CPP" && test -d "$CPP"; then
2311 if test -z "$CPP"; then
2312 if test "${ac_cv_prog_CPP+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 # Double quotes because CPP needs to be expanded
2316 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2319 for ac_c_preproc_warn_flag
in '' yes
2321 # Use a header file that comes with gcc, so configuring glibc
2322 # with a fresh cross-compiler works.
2323 # On the NeXT, cc -E runs the code through the compiler's parser,
2324 # not just through cpp. "Syntax error" is here to catch this case.
2325 cat >conftest.
$ac_ext <<_ACEOF
2326 #line $LINENO "configure"
2327 #include "confdefs.h"
2331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2332 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2334 egrep -v '^ *\+' conftest.er1
>conftest.err
2336 cat conftest.err
>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } >/dev
/null
; then
2339 if test -s conftest.err
; then
2340 ac_cpp_err
=$ac_c_preproc_warn_flag
2347 if test -z "$ac_cpp_err"; then
2350 echo "$as_me: failed program was:" >&5
2351 cat conftest.
$ac_ext >&5
2352 # Broken: fails on valid input.
2355 rm -f conftest.err conftest.
$ac_ext
2357 # OK, works on sane cases. Now check whether non-existent headers
2358 # can be detected and how.
2359 cat >conftest.
$ac_ext <<_ACEOF
2360 #line $LINENO "configure"
2361 #include "confdefs.h"
2362 #include <ac_nonexistent.h>
2364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2367 egrep -v '^ *\+' conftest.er1
>conftest.err
2369 cat conftest.err
>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } >/dev
/null
; then
2372 if test -s conftest.err
; then
2373 ac_cpp_err
=$ac_c_preproc_warn_flag
2380 if test -z "$ac_cpp_err"; then
2381 # Broken: success on invalid input.
2384 echo "$as_me: failed program was:" >&5
2385 cat conftest.
$ac_ext >&5
2386 # Passes both tests.
2390 rm -f conftest.err conftest.
$ac_ext
2393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2394 rm -f conftest.err conftest.
$ac_ext
2395 if $ac_preproc_ok; then
2407 echo "$as_me:$LINENO: result: $CPP" >&5
2408 echo "${ECHO_T}$CPP" >&6
2410 for ac_c_preproc_warn_flag
in '' yes
2412 # Use a header file that comes with gcc, so configuring glibc
2413 # with a fresh cross-compiler works.
2414 # On the NeXT, cc -E runs the code through the compiler's parser,
2415 # not just through cpp. "Syntax error" is here to catch this case.
2416 cat >conftest.
$ac_ext <<_ACEOF
2417 #line $LINENO "configure"
2418 #include "confdefs.h"
2422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2423 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2425 egrep -v '^ *\+' conftest.er1
>conftest.err
2427 cat conftest.err
>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } >/dev
/null
; then
2430 if test -s conftest.err
; then
2431 ac_cpp_err
=$ac_c_preproc_warn_flag
2438 if test -z "$ac_cpp_err"; then
2441 echo "$as_me: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2443 # Broken: fails on valid input.
2446 rm -f conftest.err conftest.
$ac_ext
2448 # OK, works on sane cases. Now check whether non-existent headers
2449 # can be detected and how.
2450 cat >conftest.
$ac_ext <<_ACEOF
2451 #line $LINENO "configure"
2452 #include "confdefs.h"
2453 #include <ac_nonexistent.h>
2455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2456 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2458 egrep -v '^ *\+' conftest.er1
>conftest.err
2460 cat conftest.err
>&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } >/dev
/null
; then
2463 if test -s conftest.err
; then
2464 ac_cpp_err
=$ac_c_preproc_warn_flag
2471 if test -z "$ac_cpp_err"; then
2472 # Broken: success on invalid input.
2475 echo "$as_me: failed program was:" >&5
2476 cat conftest.
$ac_ext >&5
2477 # Passes both tests.
2481 rm -f conftest.err conftest.
$ac_ext
2484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2485 rm -f conftest.err conftest.
$ac_ext
2486 if $ac_preproc_ok; then
2489 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2490 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2491 { (exit 1); exit 1; }; }
2495 ac_cpp
='$CPP $CPPFLAGS'
2496 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2500 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2501 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2502 if test "${ac_cv_header_stdc+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 cat >conftest.
$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2507 #include "confdefs.h"
2514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2515 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2517 egrep -v '^ *\+' conftest.er1
>conftest.err
2519 cat conftest.err
>&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } >/dev
/null
; then
2522 if test -s conftest.err
; then
2523 ac_cpp_err
=$ac_c_preproc_warn_flag
2530 if test -z "$ac_cpp_err"; then
2531 ac_cv_header_stdc
=yes
2533 echo "$as_me: failed program was:" >&5
2534 cat conftest.
$ac_ext >&5
2535 ac_cv_header_stdc
=no
2537 rm -f conftest.err conftest.
$ac_ext
2539 if test $ac_cv_header_stdc = yes; then
2540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2541 cat >conftest.
$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2543 #include "confdefs.h"
2547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2548 egrep "memchr" >/dev
/null
2>&1; then
2551 ac_cv_header_stdc
=no
2557 if test $ac_cv_header_stdc = yes; then
2558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2559 cat >conftest.
$ac_ext <<_ACEOF
2560 #line $LINENO "configure"
2561 #include "confdefs.h"
2565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2566 egrep "free" >/dev
/null
2>&1; then
2569 ac_cv_header_stdc
=no
2575 if test $ac_cv_header_stdc = yes; then
2576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2577 if test "$cross_compiling" = yes; then
2580 cat >conftest.
$ac_ext <<_ACEOF
2581 #line $LINENO "configure"
2582 #include "confdefs.h"
2584 #if ((' ' & 0x0FF) == 0x020)
2585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2588 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2589 || ('j' <= (c) && (c) <= 'r') \
2590 || ('s' <= (c) && (c) <= 'z'))
2591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2599 for (i = 0; i < 256; i++)
2600 if (XOR (islower (i), ISLOWER (i))
2601 || toupper (i) != TOUPPER (i))
2606 rm -f conftest
$ac_exeext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2608 (eval $ac_link) 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2619 echo "$as_me: program exited with status $ac_status" >&5
2620 echo "$as_me: failed program was:" >&5
2621 cat conftest.
$ac_ext >&5
2623 ac_cv_header_stdc
=no
2625 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2629 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2630 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2631 if test $ac_cv_header_stdc = yes; then
2633 cat >>confdefs.h
<<\_ACEOF
2634 #define STDC_HEADERS 1
2639 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2641 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2642 inttypes.h stdint.h unistd.h
2644 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2645 echo "$as_me:$LINENO: checking for $ac_header" >&5
2646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 cat >conftest.
$ac_ext <<_ACEOF
2651 #line $LINENO "configure"
2652 #include "confdefs.h"
2653 $ac_includes_default
2655 #include <$ac_header>
2657 rm -f conftest.
$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try
='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 eval "$as_ac_Header=yes"
2671 echo "$as_me: failed program was:" >&5
2672 cat conftest.
$ac_ext >&5
2673 eval "$as_ac_Header=no"
2675 rm -f conftest.
$ac_objext conftest.
$ac_ext
2677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2680 cat >>confdefs.h
<<_ACEOF
2681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2688 if test "${ac_cv_header_minix_config_h+set}" = set; then
2689 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2690 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2691 if test "${ac_cv_header_minix_config_h+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2695 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2697 # Is the header compilable?
2698 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2699 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2700 cat >conftest.
$ac_ext <<_ACEOF
2701 #line $LINENO "configure"
2702 #include "confdefs.h"
2703 $ac_includes_default
2704 #include <minix/config.h>
2706 rm -f conftest.
$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try
='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 ac_header_compiler
=yes
2720 echo "$as_me: failed program was:" >&5
2721 cat conftest.
$ac_ext >&5
2722 ac_header_compiler
=no
2724 rm -f conftest.
$ac_objext conftest.
$ac_ext
2725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2726 echo "${ECHO_T}$ac_header_compiler" >&6
2728 # Is the header present?
2729 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2730 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2731 cat >conftest.
$ac_ext <<_ACEOF
2732 #line $LINENO "configure"
2733 #include "confdefs.h"
2734 #include <minix/config.h>
2736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2737 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2739 egrep -v '^ *\+' conftest.er1
>conftest.err
2741 cat conftest.err
>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } >/dev
/null
; then
2744 if test -s conftest.err
; then
2745 ac_cpp_err
=$ac_c_preproc_warn_flag
2752 if test -z "$ac_cpp_err"; then
2753 ac_header_preproc
=yes
2755 echo "$as_me: failed program was:" >&5
2756 cat conftest.
$ac_ext >&5
2757 ac_header_preproc
=no
2759 rm -f conftest.err conftest.
$ac_ext
2760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2761 echo "${ECHO_T}$ac_header_preproc" >&6
2763 # So? What about this header?
2764 case $ac_header_compiler:$ac_header_preproc in
2766 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2767 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2768 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2769 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2771 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2772 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2773 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2774 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2775 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2776 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2778 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2779 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2780 if test "${ac_cv_header_minix_config_h+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 ac_cv_header_minix_config_h
=$ac_header_preproc
2785 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2786 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2789 if test $ac_cv_header_minix_config_h = yes; then
2795 if test "$MINIX" = yes; then
2797 cat >>confdefs.h
<<\_ACEOF
2798 #define _POSIX_SOURCE 1
2801 cat >>confdefs.h
<<\_ACEOF
2802 #define _POSIX_1_SOURCE 2
2805 cat >>confdefs.h
<<\_ACEOF
2811 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2812 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2813 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 ac_check_lib_save_LIBS
=$LIBS
2817 LIBS
="-lcposix $LIBS"
2818 cat >conftest.
$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2820 #include "confdefs.h"
2822 /* Override any gcc2 internal prototype to avoid an error. */
2826 /* We use char because int might match the return type of a gcc2
2827 builtin and then its argument prototype would still apply. */
2829 #ifdef F77_DUMMY_MAIN
2833 int F77_DUMMY_MAIN() { return 1; }
2843 rm -f conftest.
$ac_objext conftest
$ac_exeext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2845 (eval $ac_link) 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try
='test -s conftest$ac_exeext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 ac_cv_lib_cposix_strerror
=yes
2857 echo "$as_me: failed program was:" >&5
2858 cat conftest.
$ac_ext >&5
2859 ac_cv_lib_cposix_strerror
=no
2861 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2862 LIBS
=$ac_check_lib_save_LIBS
2864 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2865 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2866 if test $ac_cv_lib_cposix_strerror = yes; then
2867 LIBS
="$LIBS -lcposix"
2870 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2871 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2872 if test "${am_cv_prog_cc_stdc+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 am_cv_prog_cc_stdc
=no
2877 # Don't try gcc -ansi; that turns off useful extensions and
2878 # breaks some systems' header files.
2879 # AIX -qlanglvl=ansi
2880 # Ultrix and OSF/1 -std1
2881 # HP-UX 10.20 and later -Ae
2882 # HP-UX older versions -Aa -D_HPUX_SOURCE
2883 # SVR4 -Xc -D__EXTENSIONS__
2884 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2886 CC
="$ac_save_CC $ac_arg"
2887 cat >conftest.
$ac_ext <<_ACEOF
2888 #line $LINENO "configure"
2889 #include "confdefs.h"
2892 #include <sys/types.h>
2893 #include <sys/stat.h>
2894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2895 struct buf { int x; };
2896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2897 static char *e (p, i)
2903 static char *f (char * (*g) (char **, int), char **p, ...)
2908 s = g (p, va_arg (v,int));
2912 int test (int i, double x);
2913 struct s1 {int (*f) (int a);};
2914 struct s2 {int (*f) (double a);};
2915 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2919 #ifdef F77_DUMMY_MAIN
2923 int F77_DUMMY_MAIN() { return 1; }
2929 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2935 rm -f conftest.
$ac_objext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937 (eval $ac_compile) 2>&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try
='test -s conftest.$ac_objext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2947 am_cv_prog_cc_stdc
="$ac_arg"; break
2949 echo "$as_me: failed program was:" >&5
2950 cat conftest.
$ac_ext >&5
2952 rm -f conftest.
$ac_objext conftest.
$ac_ext
2958 if test -z "$am_cv_prog_cc_stdc"; then
2959 echo "$as_me:$LINENO: result: none needed" >&5
2960 echo "${ECHO_T}none needed" >&6
2962 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2963 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2965 case "x$am_cv_prog_cc_stdc" in
2967 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2972 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2973 echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2975 if test "${ac_cv_prog_RANLIB+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 if test -n "$RANLIB"; then
2979 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir
=.
2986 for ac_exec_ext
in '' $ac_executable_extensions; do
2987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 RANLIB
=$ac_cv_prog_RANLIB
2998 if test -n "$RANLIB"; then
2999 echo "$as_me:$LINENO: result: $RANLIB" >&5
3000 echo "${ECHO_T}$RANLIB" >&6
3002 echo "$as_me:$LINENO: result: no" >&5
3003 echo "${ECHO_T}no" >&6
3007 if test -z "$ac_cv_prog_RANLIB"; then
3008 ac_ct_RANLIB
=$RANLIB
3009 # Extract the first word of "ranlib", so it can be a program name with args.
3010 set dummy ranlib
; ac_word
=$2
3011 echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3013 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 if test -n "$ac_ct_RANLIB"; then
3017 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir
=.
3024 for ac_exec_ext
in '' $ac_executable_extensions; do
3025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3036 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3037 if test -n "$ac_ct_RANLIB"; then
3038 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3039 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3041 echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6
3045 RANLIB
=$ac_ct_RANLIB
3047 RANLIB
="$ac_cv_prog_RANLIB"
3050 # GNU M4 is needed to build the testsuite.
3051 for ac_prog
in gm4 gnum4
m4
3053 # Extract the first word of "$ac_prog", so it can be a program name with args.
3054 set dummy
$ac_prog; ac_word
=$2
3055 echo "$as_me:$LINENO: checking for $ac_word" >&5
3056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3057 if test "${ac_cv_path_M4+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
3065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3069 test -z "$as_dir" && as_dir
=.
3070 for ac_exec_ext
in '' $ac_executable_extensions; do
3071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 ac_cv_path_M4
="$as_dir/$ac_word$ac_exec_ext"
3073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 if test -n "$M4"; then
3085 echo "$as_me:$LINENO: result: $M4" >&5
3086 echo "${ECHO_T}$M4" >&6
3088 echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6
3092 test -n "$M4" && break
3094 test -n "$M4" || M4
="m4"
3096 echo "$as_me:$LINENO: checking whether m4 supports frozen files" >&5
3097 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
3098 if test "${ac_cv_prog_gnu_m4+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 ac_cv_prog_gnu_m4
=no
3102 if test x
"$M4" != x
; then
3103 case `$M4 --help < /dev/null 2>&1` in
3104 *reload
-state*) ac_cv_prog_gnu_m4
=yes ;;
3108 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_m4" >&5
3109 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
3111 if test "$ac_cv_prog_gnu_m4" != yes; then
3112 missing_dir
=`cd $ac_aux_dir && pwd`
3113 M4
="$missing_dir/missing m4"
3116 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3117 if test "${enable_gcc_warnings+set}" = set; then
3118 enableval
="$enable_gcc_warnings"
3119 case "${enableval}" in
3121 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3122 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3123 { (exit 1); exit 1; }; } ;;
3128 if test "${enableval}" = yes; then
3129 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3130 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3132 ac_save_CFLAGS
="$CFLAGS"
3133 CFLAGS
="$CFLAGS -Wall"
3134 cat >conftest.
$ac_ext <<_ACEOF
3135 #line $LINENO "configure"
3136 #include "confdefs.h"
3138 #ifdef F77_DUMMY_MAIN
3142 int F77_DUMMY_MAIN() { return 1; }
3152 rm -f conftest.
$ac_objext
3153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154 (eval $ac_compile) 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try
='test -s conftest.$ac_objext'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3165 echo "$as_me:$LINENO: result: yes" >&5
3166 echo "${ECHO_T}yes" >&6
3168 echo "$as_me: failed program was:" >&5
3169 cat conftest.
$ac_ext >&5
3170 echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3173 rm -f conftest.
$ac_objext conftest.
$ac_ext
3174 CFLAGS
="$ac_save_CFLAGS"
3175 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3176 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3178 ac_save_CFLAGS
="$CFLAGS"
3180 cat >conftest.
$ac_ext <<_ACEOF
3181 #line $LINENO "configure"
3182 #include "confdefs.h"
3184 #ifdef F77_DUMMY_MAIN
3188 int F77_DUMMY_MAIN() { return 1; }
3198 rm -f conftest.
$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
3204 { ac_try
='test -s conftest.$ac_objext'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3211 echo "$as_me:$LINENO: result: yes" >&5
3212 echo "${ECHO_T}yes" >&6
3214 echo "$as_me: failed program was:" >&5
3215 cat conftest.
$ac_ext >&5
3216 echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3219 rm -f conftest.
$ac_objext conftest.
$ac_ext
3220 CFLAGS
="$ac_save_CFLAGS"
3221 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3222 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3224 ac_save_CFLAGS
="$CFLAGS"
3225 CFLAGS
="$CFLAGS -Wbad-function-cast"
3226 cat >conftest.
$ac_ext <<_ACEOF
3227 #line $LINENO "configure"
3228 #include "confdefs.h"
3230 #ifdef F77_DUMMY_MAIN
3234 int F77_DUMMY_MAIN() { return 1; }
3244 rm -f conftest.
$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try
='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3257 echo "$as_me:$LINENO: result: yes" >&5
3258 echo "${ECHO_T}yes" >&6
3260 echo "$as_me: failed program was:" >&5
3261 cat conftest.
$ac_ext >&5
3262 echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6
3265 rm -f conftest.
$ac_objext conftest.
$ac_ext
3266 CFLAGS
="$ac_save_CFLAGS"
3267 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3268 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3270 ac_save_CFLAGS
="$CFLAGS"
3271 CFLAGS
="$CFLAGS -Wcast-align"
3272 cat >conftest.
$ac_ext <<_ACEOF
3273 #line $LINENO "configure"
3274 #include "confdefs.h"
3276 #ifdef F77_DUMMY_MAIN
3280 int F77_DUMMY_MAIN() { return 1; }
3290 rm -f conftest.
$ac_objext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try
='test -s conftest.$ac_objext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3303 echo "$as_me:$LINENO: result: yes" >&5
3304 echo "${ECHO_T}yes" >&6
3306 echo "$as_me: failed program was:" >&5
3307 cat conftest.
$ac_ext >&5
3308 echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3311 rm -f conftest.
$ac_objext conftest.
$ac_ext
3312 CFLAGS
="$ac_save_CFLAGS"
3313 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3314 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3316 ac_save_CFLAGS
="$CFLAGS"
3317 CFLAGS
="$CFLAGS -Wcast-qual"
3318 cat >conftest.
$ac_ext <<_ACEOF
3319 #line $LINENO "configure"
3320 #include "confdefs.h"
3322 #ifdef F77_DUMMY_MAIN
3326 int F77_DUMMY_MAIN() { return 1; }
3336 rm -f conftest.
$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try
='test -s conftest.$ac_objext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3349 echo "$as_me:$LINENO: result: yes" >&5
3350 echo "${ECHO_T}yes" >&6
3352 echo "$as_me: failed program was:" >&5
3353 cat conftest.
$ac_ext >&5
3354 echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3357 rm -f conftest.
$ac_objext conftest.
$ac_ext
3358 CFLAGS
="$ac_save_CFLAGS"
3359 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3360 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3362 ac_save_CFLAGS
="$CFLAGS"
3363 CFLAGS
="$CFLAGS -Wformat"
3364 cat >conftest.
$ac_ext <<_ACEOF
3365 #line $LINENO "configure"
3366 #include "confdefs.h"
3368 #ifdef F77_DUMMY_MAIN
3372 int F77_DUMMY_MAIN() { return 1; }
3382 rm -f conftest.
$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try
='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3395 echo "$as_me:$LINENO: result: yes" >&5
3396 echo "${ECHO_T}yes" >&6
3398 echo "$as_me: failed program was:" >&5
3399 cat conftest.
$ac_ext >&5
3400 echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3403 rm -f conftest.
$ac_objext conftest.
$ac_ext
3404 CFLAGS
="$ac_save_CFLAGS"
3405 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3406 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3408 ac_save_CFLAGS
="$CFLAGS"
3409 CFLAGS
="$CFLAGS -Wmissing-declarations"
3410 cat >conftest.
$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 #include "confdefs.h"
3414 #ifdef F77_DUMMY_MAIN
3418 int F77_DUMMY_MAIN() { return 1; }
3428 rm -f conftest.
$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try
='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3441 echo "$as_me:$LINENO: result: yes" >&5
3442 echo "${ECHO_T}yes" >&6
3444 echo "$as_me: failed program was:" >&5
3445 cat conftest.
$ac_ext >&5
3446 echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6
3449 rm -f conftest.
$ac_objext conftest.
$ac_ext
3450 CFLAGS
="$ac_save_CFLAGS"
3451 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3452 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3454 ac_save_CFLAGS
="$CFLAGS"
3455 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3456 cat >conftest.
$ac_ext <<_ACEOF
3457 #line $LINENO "configure"
3458 #include "confdefs.h"
3460 #ifdef F77_DUMMY_MAIN
3464 int F77_DUMMY_MAIN() { return 1; }
3474 rm -f conftest.
$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
3480 { ac_try
='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3487 echo "$as_me:$LINENO: result: yes" >&5
3488 echo "${ECHO_T}yes" >&6
3490 echo "$as_me: failed program was:" >&5
3491 cat conftest.
$ac_ext >&5
3492 echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6
3495 rm -f conftest.
$ac_objext conftest.
$ac_ext
3496 CFLAGS
="$ac_save_CFLAGS"
3497 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3498 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3500 ac_save_CFLAGS
="$CFLAGS"
3501 CFLAGS
="$CFLAGS -Wnested-externs"
3502 cat >conftest.
$ac_ext <<_ACEOF
3503 #line $LINENO "configure"
3504 #include "confdefs.h"
3506 #ifdef F77_DUMMY_MAIN
3510 int F77_DUMMY_MAIN() { return 1; }
3520 rm -f conftest.
$ac_objext
3521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3522 (eval $ac_compile) 2>&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try
='test -s conftest.$ac_objext'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; }; then
3532 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3533 echo "$as_me:$LINENO: result: yes" >&5
3534 echo "${ECHO_T}yes" >&6
3536 echo "$as_me: failed program was:" >&5
3537 cat conftest.
$ac_ext >&5
3538 echo "$as_me:$LINENO: result: no" >&5
3539 echo "${ECHO_T}no" >&6
3541 rm -f conftest.
$ac_objext conftest.
$ac_ext
3542 CFLAGS
="$ac_save_CFLAGS"
3543 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3544 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3546 ac_save_CFLAGS
="$CFLAGS"
3547 CFLAGS
="$CFLAGS -Wshadow"
3548 cat >conftest.
$ac_ext <<_ACEOF
3549 #line $LINENO "configure"
3550 #include "confdefs.h"
3552 #ifdef F77_DUMMY_MAIN
3556 int F77_DUMMY_MAIN() { return 1; }
3566 rm -f conftest.
$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } &&
3572 { ac_try
='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3579 echo "$as_me:$LINENO: result: yes" >&5
3580 echo "${ECHO_T}yes" >&6
3582 echo "$as_me: failed program was:" >&5
3583 cat conftest.
$ac_ext >&5
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3587 rm -f conftest.
$ac_objext conftest.
$ac_ext
3588 CFLAGS
="$ac_save_CFLAGS"
3589 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3590 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3592 ac_save_CFLAGS
="$CFLAGS"
3593 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3594 cat >conftest.
$ac_ext <<_ACEOF
3595 #line $LINENO "configure"
3596 #include "confdefs.h"
3598 #ifdef F77_DUMMY_MAIN
3602 int F77_DUMMY_MAIN() { return 1; }
3612 rm -f conftest.
$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try
='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3625 echo "$as_me:$LINENO: result: yes" >&5
3626 echo "${ECHO_T}yes" >&6
3628 echo "$as_me: failed program was:" >&5
3629 cat conftest.
$ac_ext >&5
3630 echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3633 rm -f conftest.
$ac_objext conftest.
$ac_ext
3634 CFLAGS
="$ac_save_CFLAGS"
3635 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3636 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3638 ac_save_CFLAGS
="$CFLAGS"
3639 CFLAGS
="$CFLAGS -Wwrite-strings"
3640 cat >conftest.
$ac_ext <<_ACEOF
3641 #line $LINENO "configure"
3642 #include "confdefs.h"
3644 #ifdef F77_DUMMY_MAIN
3648 int F77_DUMMY_MAIN() { return 1; }
3658 rm -f conftest.
$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try
='test -s conftest.$ac_objext'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3670 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3671 echo "$as_me:$LINENO: result: yes" >&5
3672 echo "${ECHO_T}yes" >&6
3674 echo "$as_me: failed program was:" >&5
3675 cat conftest.
$ac_ext >&5
3676 echo "$as_me:$LINENO: result: no" >&5
3677 echo "${ECHO_T}no" >&6
3679 rm -f conftest.
$ac_objext conftest.
$ac_ext
3680 CFLAGS
="$ac_save_CFLAGS"
3681 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3684 # Checks for libraries.
3686 cat >>confdefs.h
<<\_ACEOF
3687 #define _GNU_SOURCE 1
3690 # Checks for header files.
3691 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3692 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3693 if test "${ac_cv_header_stdc+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 cat >conftest.
$ac_ext <<_ACEOF
3697 #line $LINENO "configure"
3698 #include "confdefs.h"
3705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3706 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3708 egrep -v '^ *\+' conftest.er1
>conftest.err
3710 cat conftest.err
>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } >/dev
/null
; then
3713 if test -s conftest.err
; then
3714 ac_cpp_err
=$ac_c_preproc_warn_flag
3721 if test -z "$ac_cpp_err"; then
3722 ac_cv_header_stdc
=yes
3724 echo "$as_me: failed program was:" >&5
3725 cat conftest.
$ac_ext >&5
3726 ac_cv_header_stdc
=no
3728 rm -f conftest.err conftest.
$ac_ext
3730 if test $ac_cv_header_stdc = yes; then
3731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3732 cat >conftest.
$ac_ext <<_ACEOF
3733 #line $LINENO "configure"
3734 #include "confdefs.h"
3738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3739 egrep "memchr" >/dev
/null
2>&1; then
3742 ac_cv_header_stdc
=no
3748 if test $ac_cv_header_stdc = yes; then
3749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3750 cat >conftest.
$ac_ext <<_ACEOF
3751 #line $LINENO "configure"
3752 #include "confdefs.h"
3756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3757 egrep "free" >/dev
/null
2>&1; then
3760 ac_cv_header_stdc
=no
3766 if test $ac_cv_header_stdc = yes; then
3767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3768 if test "$cross_compiling" = yes; then
3771 cat >conftest.
$ac_ext <<_ACEOF
3772 #line $LINENO "configure"
3773 #include "confdefs.h"
3775 #if ((' ' & 0x0FF) == 0x020)
3776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3779 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3780 || ('j' <= (c) && (c) <= 'r') \
3781 || ('s' <= (c) && (c) <= 'z'))
3782 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3785 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3790 for (i = 0; i < 256; i++)
3791 if (XOR (islower (i), ISLOWER (i))
3792 || toupper (i) != TOUPPER (i))
3797 rm -f conftest
$ac_exeext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3799 (eval $ac_link) 2>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3810 echo "$as_me: program exited with status $ac_status" >&5
3811 echo "$as_me: failed program was:" >&5
3812 cat conftest.
$ac_ext >&5
3814 ac_cv_header_stdc
=no
3816 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3820 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3821 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3822 if test $ac_cv_header_stdc = yes; then
3824 cat >>confdefs.h
<<\_ACEOF
3825 #define STDC_HEADERS 1
3830 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3832 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3834 echo "$as_me:$LINENO: checking for $ac_header" >&5
3835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3842 # Is the header compilable?
3843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3845 cat >conftest.
$ac_ext <<_ACEOF
3846 #line $LINENO "configure"
3847 #include "confdefs.h"
3848 $ac_includes_default
3849 #include <$ac_header>
3851 rm -f conftest.
$ac_objext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853 (eval $ac_compile) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try
='test -s conftest.$ac_objext'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; }; then
3863 ac_header_compiler
=yes
3865 echo "$as_me: failed program was:" >&5
3866 cat conftest.
$ac_ext >&5
3867 ac_header_compiler
=no
3869 rm -f conftest.
$ac_objext conftest.
$ac_ext
3870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3871 echo "${ECHO_T}$ac_header_compiler" >&6
3873 # Is the header present?
3874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3876 cat >conftest.
$ac_ext <<_ACEOF
3877 #line $LINENO "configure"
3878 #include "confdefs.h"
3879 #include <$ac_header>
3881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3882 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3884 egrep -v '^ *\+' conftest.er1
>conftest.err
3886 cat conftest.err
>&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } >/dev
/null
; then
3889 if test -s conftest.err
; then
3890 ac_cpp_err
=$ac_c_preproc_warn_flag
3897 if test -z "$ac_cpp_err"; then
3898 ac_header_preproc
=yes
3900 echo "$as_me: failed program was:" >&5
3901 cat conftest.
$ac_ext >&5
3902 ac_header_preproc
=no
3904 rm -f conftest.err conftest.
$ac_ext
3905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3906 echo "${ECHO_T}$ac_header_preproc" >&6
3908 # So? What about this header?
3909 case $ac_header_compiler:$ac_header_preproc in
3911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3923 echo "$as_me:$LINENO: checking for $ac_header" >&5
3924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 eval "$as_ac_Header=$ac_header_preproc"
3930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3935 cat >>confdefs.h
<<_ACEOF
3936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3943 # Checks for typedefs.
3945 # Checks for structures.
3947 # Checks for compiler characteristics.
3948 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3949 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3950 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 ac_cv_prog_cc_stdc
=no
3955 cat >conftest.
$ac_ext <<_ACEOF
3956 #line $LINENO "configure"
3957 #include "confdefs.h"
3960 #include <sys/types.h>
3961 #include <sys/stat.h>
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3976 s = g (p, va_arg (v,int));
3980 int test (int i, double x);
3981 struct s1 {int (*f) (int a);};
3982 struct s2 {int (*f) (double a);};
3983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3986 #ifdef F77_DUMMY_MAIN
3990 int F77_DUMMY_MAIN() { return 1; }
3995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4000 # Don't try gcc -ansi; that turns off useful extensions and
4001 # breaks some systems' header files.
4002 # AIX -qlanglvl=ansi
4003 # Ultrix and OSF/1 -std1
4004 # HP-UX 10.20 and later -Ae
4005 # HP-UX older versions -Aa -D_HPUX_SOURCE
4006 # SVR4 -Xc -D__EXTENSIONS__
4007 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4009 CC
="$ac_save_CC $ac_arg"
4010 rm -f conftest.
$ac_objext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012 (eval $ac_compile) 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try
='test -s conftest.$ac_objext'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4022 ac_cv_prog_cc_stdc
=$ac_arg
4025 echo "$as_me: failed program was:" >&5
4026 cat conftest.
$ac_ext >&5
4028 rm -f conftest.
$ac_objext
4030 rm -f conftest.
$ac_ext conftest.
$ac_objext
4035 case "x$ac_cv_prog_cc_stdc" in
4037 echo "$as_me:$LINENO: result: none needed" >&5
4038 echo "${ECHO_T}none needed" >&6 ;;
4040 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4041 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4042 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4045 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4046 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4047 if test "${ac_cv_c_const+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 cat >conftest.
$ac_ext <<_ACEOF
4051 #line $LINENO "configure"
4052 #include "confdefs.h"
4054 #ifdef F77_DUMMY_MAIN
4058 int F77_DUMMY_MAIN() { return 1; }
4063 /* FIXME: Include the comments suggested by Paul. */
4065 /* Ultrix mips cc rejects this. */
4066 typedef int charset[2];
4068 /* SunOS 4.1.1 cc rejects this. */
4069 char const *const *ccp;
4071 /* NEC SVR4.0.2 mips cc rejects this. */
4072 struct point {int x, y;};
4073 static struct point const zero = {0,0};
4074 /* AIX XL C 1.02.0.0 rejects this.
4075 It does not let you subtract one const X* pointer from another in
4076 an arm of an if-expression whose if-part is not a constant
4078 const char *g = "string";
4079 ccp = &g + (g ? g-g : 0);
4080 /* HPUX 7.0 cc rejects these. */
4083 ccp = (char const *const *) p;
4084 { /* SCO 3.2v4 cc rejects this. */
4086 char const *s = 0 ? (char *) 0 : (char const *) 0;
4090 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4092 const int *foo = &x[0];
4095 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4096 typedef const int *iptr;
4100 { /* AIX XL C 1.02.0.0 rejects this saying
4101 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4102 struct s { int j; const int *ap[3]; };
4103 struct s *b; b->j = 5;
4105 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4114 rm -f conftest.
$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 { ac_try
='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4128 echo "$as_me: failed program was:" >&5
4129 cat conftest.
$ac_ext >&5
4132 rm -f conftest.
$ac_objext conftest.
$ac_ext
4134 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4135 echo "${ECHO_T}$ac_cv_c_const" >&6
4136 if test $ac_cv_c_const = no
; then
4138 cat >>confdefs.h
<<\_ACEOF
4144 echo "$as_me:$LINENO: checking for inline" >&5
4145 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4146 if test "${ac_cv_c_inline+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 for ac_kw
in inline __inline__ __inline
; do
4151 cat >conftest.
$ac_ext <<_ACEOF
4152 #line $LINENO "configure"
4153 #include "confdefs.h"
4155 static $ac_kw int static_foo () {return 0; }
4156 $ac_kw int foo () {return 0; }
4160 rm -f conftest.
$ac_objext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162 (eval $ac_compile) 2>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try
='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 ac_cv_c_inline
=$ac_kw; break
4174 echo "$as_me: failed program was:" >&5
4175 cat conftest.
$ac_ext >&5
4177 rm -f conftest.
$ac_objext conftest.
$ac_ext
4181 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4182 echo "${ECHO_T}$ac_cv_c_inline" >&6
4183 case $ac_cv_c_inline in
4186 cat >>confdefs.h
<<\_ACEOF
4190 *) cat >>confdefs.h
<<_ACEOF
4191 #define inline $ac_cv_c_inline
4196 echo "$as_me:$LINENO: checking for function prototypes" >&5
4197 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4198 if test "$am_cv_prog_cc_stdc" != no
; then
4199 echo "$as_me:$LINENO: result: yes" >&5
4200 echo "${ECHO_T}yes" >&6
4202 cat >>confdefs.h
<<\_ACEOF
4203 #define PROTOTYPES 1
4208 echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6
4210 U
=_ ANSI2KNR
=.
/ansi2knr
4212 # Ensure some checks needed by ansi2knr itself.
4213 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4214 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4215 if test "${ac_cv_header_stdc+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 cat >conftest.
$ac_ext <<_ACEOF
4219 #line $LINENO "configure"
4220 #include "confdefs.h"
4227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4228 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4230 egrep -v '^ *\+' conftest.er1
>conftest.err
4232 cat conftest.err
>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } >/dev
/null
; then
4235 if test -s conftest.err
; then
4236 ac_cpp_err
=$ac_c_preproc_warn_flag
4243 if test -z "$ac_cpp_err"; then
4244 ac_cv_header_stdc
=yes
4246 echo "$as_me: failed program was:" >&5
4247 cat conftest.
$ac_ext >&5
4248 ac_cv_header_stdc
=no
4250 rm -f conftest.err conftest.
$ac_ext
4252 if test $ac_cv_header_stdc = yes; then
4253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4254 cat >conftest.
$ac_ext <<_ACEOF
4255 #line $LINENO "configure"
4256 #include "confdefs.h"
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 egrep "memchr" >/dev
/null
2>&1; then
4264 ac_cv_header_stdc
=no
4270 if test $ac_cv_header_stdc = yes; then
4271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4272 cat >conftest.
$ac_ext <<_ACEOF
4273 #line $LINENO "configure"
4274 #include "confdefs.h"
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 egrep "free" >/dev
/null
2>&1; then
4282 ac_cv_header_stdc
=no
4288 if test $ac_cv_header_stdc = yes; then
4289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4290 if test "$cross_compiling" = yes; then
4293 cat >conftest.
$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4295 #include "confdefs.h"
4297 #if ((' ' & 0x0FF) == 0x020)
4298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4301 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4302 || ('j' <= (c) && (c) <= 'r') \
4303 || ('s' <= (c) && (c) <= 'z'))
4304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4312 for (i = 0; i < 256; i++)
4313 if (XOR (islower (i), ISLOWER (i))
4314 || toupper (i) != TOUPPER (i))
4319 rm -f conftest
$ac_exeext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4321 (eval $ac_link) 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4332 echo "$as_me: program exited with status $ac_status" >&5
4333 echo "$as_me: failed program was:" >&5
4334 cat conftest.
$ac_ext >&5
4336 ac_cv_header_stdc
=no
4338 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4342 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4343 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4344 if test $ac_cv_header_stdc = yes; then
4346 cat >>confdefs.h
<<\_ACEOF
4347 #define STDC_HEADERS 1
4352 for ac_header
in string.h
4354 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4356 echo "$as_me:$LINENO: checking for $ac_header" >&5
4357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4364 # Is the header compilable?
4365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4367 cat >conftest.
$ac_ext <<_ACEOF
4368 #line $LINENO "configure"
4369 #include "confdefs.h"
4370 $ac_includes_default
4371 #include <$ac_header>
4373 rm -f conftest.
$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try
='test -s conftest.$ac_objext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_header_compiler
=yes
4387 echo "$as_me: failed program was:" >&5
4388 cat conftest.
$ac_ext >&5
4389 ac_header_compiler
=no
4391 rm -f conftest.
$ac_objext conftest.
$ac_ext
4392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4393 echo "${ECHO_T}$ac_header_compiler" >&6
4395 # Is the header present?
4396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4398 cat >conftest.
$ac_ext <<_ACEOF
4399 #line $LINENO "configure"
4400 #include "confdefs.h"
4401 #include <$ac_header>
4403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4404 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4406 egrep -v '^ *\+' conftest.er1
>conftest.err
4408 cat conftest.err
>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } >/dev
/null
; then
4411 if test -s conftest.err
; then
4412 ac_cpp_err
=$ac_c_preproc_warn_flag
4419 if test -z "$ac_cpp_err"; then
4420 ac_header_preproc
=yes
4422 echo "$as_me: failed program was:" >&5
4423 cat conftest.
$ac_ext >&5
4424 ac_header_preproc
=no
4426 rm -f conftest.err conftest.
$ac_ext
4427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4428 echo "${ECHO_T}$ac_header_preproc" >&6
4430 # So? What about this header?
4431 case $ac_header_compiler:$ac_header_preproc in
4433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4445 echo "$as_me:$LINENO: checking for $ac_header" >&5
4446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 eval "$as_ac_Header=$ac_header_preproc"
4452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4457 cat >>confdefs.h
<<_ACEOF
4458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465 # Checks for library functions.
4466 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4467 # for constant arguments. Useless!
4468 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4469 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4470 if test "${ac_cv_working_alloca_h+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 cat >conftest.
$ac_ext <<_ACEOF
4474 #line $LINENO "configure"
4475 #include "confdefs.h"
4477 #ifdef F77_DUMMY_MAIN
4481 int F77_DUMMY_MAIN() { return 1; }
4486 char *p = (char *) alloca (2 * sizeof (int));
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_working_alloca_h
=yes
4505 echo "$as_me: failed program was:" >&5
4506 cat conftest.
$ac_ext >&5
4507 ac_cv_working_alloca_h
=no
4509 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4511 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4512 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4513 if test $ac_cv_working_alloca_h = yes; then
4515 cat >>confdefs.h
<<\_ACEOF
4516 #define HAVE_ALLOCA_H 1
4521 echo "$as_me:$LINENO: checking for alloca" >&5
4522 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4523 if test "${ac_cv_func_alloca_works+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 cat >conftest.
$ac_ext <<_ACEOF
4527 #line $LINENO "configure"
4528 #include "confdefs.h"
4530 # define alloca __builtin_alloca
4533 # include <malloc.h>
4534 # define alloca _alloca
4537 # include <alloca.h>
4542 # ifndef alloca /* predefined by HP cc +Olibcalls */
4550 #ifdef F77_DUMMY_MAIN
4554 int F77_DUMMY_MAIN() { return 1; }
4559 char *p = (char *) alloca (1);
4564 rm -f conftest.
$ac_objext conftest
$ac_exeext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4566 (eval $ac_link) 2>&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try
='test -s conftest$ac_exeext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 ac_cv_func_alloca_works
=yes
4578 echo "$as_me: failed program was:" >&5
4579 cat conftest.
$ac_ext >&5
4580 ac_cv_func_alloca_works
=no
4582 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4584 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4585 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4587 if test $ac_cv_func_alloca_works = yes; then
4589 cat >>confdefs.h
<<\_ACEOF
4590 #define HAVE_ALLOCA 1
4594 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4595 # that cause trouble. Some versions do not even contain alloca or
4596 # contain a buggy version. If you still want to use their alloca,
4597 # use ar to extract alloca.o from them instead of compiling alloca.c.
4599 ALLOCA
=alloca.
$ac_objext
4601 cat >>confdefs.h
<<\_ACEOF
4605 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4606 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4607 if test "${ac_cv_os_cray+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 cat >conftest.
$ac_ext <<_ACEOF
4611 #line $LINENO "configure"
4612 #include "confdefs.h"
4613 #if defined(CRAY) && ! defined(CRAY2)
4620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4621 egrep "webecray" >/dev
/null
2>&1; then
4629 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4630 echo "${ECHO_T}$ac_cv_os_cray" >&6
4631 if test $ac_cv_os_cray = yes; then
4632 for ac_func
in _getb67 GETB67 getb67
; do
4633 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4634 echo "$as_me:$LINENO: checking for $ac_func" >&5
4635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4636 if eval "test \"\${$as_ac_var+set}\" = set"; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 cat >conftest.
$ac_ext <<_ACEOF
4640 #line $LINENO "configure"
4641 #include "confdefs.h"
4642 /* System header to define __stub macros and hopefully few prototypes,
4643 which can conflict with char $ac_func (); below. */
4645 /* Override any gcc2 internal prototype to avoid an error. */
4649 /* We use char because int might match the return type of a gcc2
4650 builtin and then its argument prototype would still apply. */
4654 #ifdef F77_DUMMY_MAIN
4658 int F77_DUMMY_MAIN() { return 1; }
4663 /* The GNU C library defines this for functions which it implements
4664 to always fail with ENOSYS. Some functions are actually named
4665 something starting with __ and the normal name is an alias. */
4666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4676 rm -f conftest.
$ac_objext conftest
$ac_exeext
4677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4678 (eval $ac_link) 2>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try
='test -s conftest$ac_exeext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4688 eval "$as_ac_var=yes"
4690 echo "$as_me: failed program was:" >&5
4691 cat conftest.
$ac_ext >&5
4692 eval "$as_ac_var=no"
4694 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4698 if test `eval echo '${'$as_ac_var'}'` = yes; then
4700 cat >>confdefs.h
<<_ACEOF
4701 #define CRAY_STACKSEG_END $ac_func
4710 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4711 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4712 if test "${ac_cv_c_stack_direction+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 if test "$cross_compiling" = yes; then
4716 ac_cv_c_stack_direction
=0
4718 cat >conftest.
$ac_ext <<_ACEOF
4719 #line $LINENO "configure"
4720 #include "confdefs.h"
4722 find_stack_direction ()
4724 static char *addr = 0;
4729 return find_stack_direction ();
4732 return (&dummy > addr) ? 1 : -1;
4738 exit (find_stack_direction () < 0);
4741 rm -f conftest
$ac_exeext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4743 (eval $ac_link) 2>&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_cv_c_stack_direction
=1
4754 echo "$as_me: program exited with status $ac_status" >&5
4755 echo "$as_me: failed program was:" >&5
4756 cat conftest.
$ac_ext >&5
4758 ac_cv_c_stack_direction
=-1
4760 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4763 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4764 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4766 cat >>confdefs.h
<<_ACEOF
4767 #define STACK_DIRECTION $ac_cv_c_stack_direction
4772 for ac_func
in mkstemp setlocale
4774 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4775 echo "$as_me:$LINENO: checking for $ac_func" >&5
4776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4777 if eval "test \"\${$as_ac_var+set}\" = set"; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 cat >conftest.
$ac_ext <<_ACEOF
4781 #line $LINENO "configure"
4782 #include "confdefs.h"
4783 /* System header to define __stub macros and hopefully few prototypes,
4784 which can conflict with char $ac_func (); below. */
4786 /* Override any gcc2 internal prototype to avoid an error. */
4790 /* We use char because int might match the return type of a gcc2
4791 builtin and then its argument prototype would still apply. */
4795 #ifdef F77_DUMMY_MAIN
4799 int F77_DUMMY_MAIN() { return 1; }
4804 /* The GNU C library defines this for functions which it implements
4805 to always fail with ENOSYS. Some functions are actually named
4806 something starting with __ and the normal name is an alias. */
4807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4817 rm -f conftest.
$ac_objext conftest
$ac_exeext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4819 (eval $ac_link) 2>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try
='test -s conftest$ac_exeext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 eval "$as_ac_var=yes"
4831 echo "$as_me: failed program was:" >&5
4832 cat conftest.
$ac_ext >&5
4833 eval "$as_ac_var=no"
4835 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4839 if test `eval echo '${'$as_ac_var'}'` = yes; then
4840 cat >>confdefs.h
<<_ACEOF
4841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4847 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4848 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4849 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 cat >conftest.
$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4854 #include "confdefs.h"
4855 $ac_includes_default
4856 #ifdef F77_DUMMY_MAIN
4860 int F77_DUMMY_MAIN() { return 1; }
4866 char *p = (char *) stpcpy;
4873 rm -f conftest.
$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try
='test -s conftest.$ac_objext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 ac_cv_have_decl_stpcpy
=yes
4887 echo "$as_me: failed program was:" >&5
4888 cat conftest.
$ac_ext >&5
4889 ac_cv_have_decl_stpcpy
=no
4891 rm -f conftest.
$ac_objext conftest.
$ac_ext
4893 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4894 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4895 if test $ac_cv_have_decl_stpcpy = yes; then
4897 cat >>confdefs.h
<<_ACEOF
4898 #define HAVE_DECL_STPCPY 1
4902 cat >>confdefs.h
<<_ACEOF
4903 #define HAVE_DECL_STPCPY 0
4907 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4908 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4909 if test "${ac_cv_have_decl_strndup+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 cat >conftest.
$ac_ext <<_ACEOF
4913 #line $LINENO "configure"
4914 #include "confdefs.h"
4915 $ac_includes_default
4916 #ifdef F77_DUMMY_MAIN
4920 int F77_DUMMY_MAIN() { return 1; }
4926 char *p = (char *) strndup;
4933 rm -f conftest.
$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try
='test -s conftest.$ac_objext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4945 ac_cv_have_decl_strndup
=yes
4947 echo "$as_me: failed program was:" >&5
4948 cat conftest.
$ac_ext >&5
4949 ac_cv_have_decl_strndup
=no
4951 rm -f conftest.
$ac_objext conftest.
$ac_ext
4953 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4954 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4955 if test $ac_cv_have_decl_strndup = yes; then
4957 cat >>confdefs.h
<<_ACEOF
4958 #define HAVE_DECL_STRNDUP 1
4962 cat >>confdefs.h
<<_ACEOF
4963 #define HAVE_DECL_STRNDUP 0
4967 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4968 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4969 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 cat >conftest.
$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4974 #include "confdefs.h"
4975 $ac_includes_default
4976 #ifdef F77_DUMMY_MAIN
4980 int F77_DUMMY_MAIN() { return 1; }
4986 char *p = (char *) strnlen;
4993 rm -f conftest.
$ac_objext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try
='test -s conftest.$ac_objext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 ac_cv_have_decl_strnlen
=yes
5007 echo "$as_me: failed program was:" >&5
5008 cat conftest.
$ac_ext >&5
5009 ac_cv_have_decl_strnlen
=no
5011 rm -f conftest.
$ac_objext conftest.
$ac_ext
5013 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
5014 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5015 if test $ac_cv_have_decl_strnlen = yes; then
5017 cat >>confdefs.h
<<_ACEOF
5018 #define HAVE_DECL_STRNLEN 1
5022 cat >>confdefs.h
<<_ACEOF
5023 #define HAVE_DECL_STRNLEN 0
5027 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5028 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5029 if test "${ac_cv_have_decl_memchr+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 cat >conftest.
$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5034 #include "confdefs.h"
5035 $ac_includes_default
5036 #ifdef F77_DUMMY_MAIN
5040 int F77_DUMMY_MAIN() { return 1; }
5046 char *p = (char *) memchr;
5053 rm -f conftest.
$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try
='test -s conftest.$ac_objext'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 ac_cv_have_decl_memchr
=yes
5067 echo "$as_me: failed program was:" >&5
5068 cat conftest.
$ac_ext >&5
5069 ac_cv_have_decl_memchr
=no
5071 rm -f conftest.
$ac_objext conftest.
$ac_ext
5073 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5074 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5075 if test $ac_cv_have_decl_memchr = yes; then
5077 cat >>confdefs.h
<<_ACEOF
5078 #define HAVE_DECL_MEMCHR 1
5082 cat >>confdefs.h
<<_ACEOF
5083 #define HAVE_DECL_MEMCHR 0
5088 for ac_func
in stpcpy strndup strnlen strspn memchr
5090 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5091 echo "$as_me:$LINENO: checking for $ac_func" >&5
5092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5093 if eval "test \"\${$as_ac_var+set}\" = set"; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 cat >conftest.
$ac_ext <<_ACEOF
5097 #line $LINENO "configure"
5098 #include "confdefs.h"
5099 /* System header to define __stub macros and hopefully few prototypes,
5100 which can conflict with char $ac_func (); below. */
5102 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5111 #ifdef F77_DUMMY_MAIN
5115 int F77_DUMMY_MAIN() { return 1; }
5120 /* The GNU C library defines this for functions which it implements
5121 to always fail with ENOSYS. Some functions are actually named
5122 something starting with __ and the normal name is an alias. */
5123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5133 rm -f conftest.
$ac_objext conftest
$ac_exeext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5135 (eval $ac_link) 2>&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } &&
5139 { ac_try
='test -s conftest$ac_exeext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 eval "$as_ac_var=yes"
5147 echo "$as_me: failed program was:" >&5
5148 cat conftest.
$ac_ext >&5
5149 eval "$as_ac_var=no"
5151 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5155 if test `eval echo '${'$as_ac_var'}'` = yes; then
5156 cat >>confdefs.h
<<_ACEOF
5157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5161 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5165 cat >>confdefs.h
<<_ACEOF
5166 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5169 echo "$as_me:$LINENO: checking for working malloc" >&5
5170 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5171 if test "${jm_cv_func_working_malloc+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 if test "$cross_compiling" = yes; then
5175 jm_cv_func_working_malloc
=no
5177 cat >conftest.
$ac_ext <<_ACEOF
5178 #line $LINENO "configure"
5179 #include "confdefs.h"
5185 exit (malloc (0) ? 0 : 1);
5189 rm -f conftest
$ac_exeext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191 (eval $ac_link) 2>&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 jm_cv_func_working_malloc
=yes
5202 echo "$as_me: program exited with status $ac_status" >&5
5203 echo "$as_me: failed program was:" >&5
5204 cat conftest.
$ac_ext >&5
5206 jm_cv_func_working_malloc
=no
5208 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5212 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5213 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5214 if test $jm_cv_func_working_malloc = no
; then
5216 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5218 cat >>confdefs.h
<<_ACEOF
5219 #define malloc rpl_malloc
5224 cat >>confdefs.h
<<_ACEOF
5225 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5228 echo "$as_me:$LINENO: checking for working realloc" >&5
5229 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5230 if test "${jm_cv_func_working_realloc+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 if test "$cross_compiling" = yes; then
5234 jm_cv_func_working_realloc
=no
5236 cat >conftest.
$ac_ext <<_ACEOF
5237 #line $LINENO "configure"
5238 #include "confdefs.h"
5244 exit (realloc (0, 0) ? 0 : 1);
5248 rm -f conftest
$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250 (eval $ac_link) 2>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 jm_cv_func_working_realloc
=yes
5261 echo "$as_me: program exited with status $ac_status" >&5
5262 echo "$as_me: failed program was:" >&5
5263 cat conftest.
$ac_ext >&5
5265 jm_cv_func_working_realloc
=no
5267 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5271 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5272 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5273 if test $jm_cv_func_working_realloc = no
; then
5275 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5277 cat >>confdefs.h
<<_ACEOF
5278 #define realloc rpl_realloc
5283 for ac_func
in isascii iswprint mbsinit
5285 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5286 echo "$as_me:$LINENO: checking for $ac_func" >&5
5287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5288 if eval "test \"\${$as_ac_var+set}\" = set"; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 cat >conftest.
$ac_ext <<_ACEOF
5292 #line $LINENO "configure"
5293 #include "confdefs.h"
5294 /* System header to define __stub macros and hopefully few prototypes,
5295 which can conflict with char $ac_func (); below. */
5297 /* Override any gcc2 internal prototype to avoid an error. */
5301 /* We use char because int might match the return type of a gcc2
5302 builtin and then its argument prototype would still apply. */
5306 #ifdef F77_DUMMY_MAIN
5310 int F77_DUMMY_MAIN() { return 1; }
5315 /* The GNU C library defines this for functions which it implements
5316 to always fail with ENOSYS. Some functions are actually named
5317 something starting with __ and the normal name is an alias. */
5318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5328 rm -f conftest.
$ac_objext conftest
$ac_exeext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5330 (eval $ac_link) 2>&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try
='test -s conftest$ac_exeext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5340 eval "$as_ac_var=yes"
5342 echo "$as_me: failed program was:" >&5
5343 cat conftest.
$ac_ext >&5
5344 eval "$as_ac_var=no"
5346 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5350 if test `eval echo '${'$as_ac_var'}'` = yes; then
5351 cat >>confdefs.h
<<_ACEOF
5352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5358 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5359 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5360 if test "${jm_cv_func_mbrtowc+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 cat >conftest.
$ac_ext <<_ACEOF
5364 #line $LINENO "configure"
5365 #include "confdefs.h"
5367 #ifdef F77_DUMMY_MAIN
5371 int F77_DUMMY_MAIN() { return 1; }
5376 mbstate_t state; return ! (sizeof state && mbrtowc);
5381 rm -f conftest.
$ac_objext conftest
$ac_exeext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try
='test -s conftest$ac_exeext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 jm_cv_func_mbrtowc
=yes
5395 echo "$as_me: failed program was:" >&5
5396 cat conftest.
$ac_ext >&5
5397 jm_cv_func_mbrtowc
=no
5399 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5401 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5402 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5403 if test $jm_cv_func_mbrtowc = yes; then
5405 cat >>confdefs.h
<<\_ACEOF
5406 #define HAVE_MBRTOWC 1
5411 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5413 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5415 echo "$as_me:$LINENO: checking for $ac_header" >&5
5416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5423 # Is the header compilable?
5424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5426 cat >conftest.
$ac_ext <<_ACEOF
5427 #line $LINENO "configure"
5428 #include "confdefs.h"
5429 $ac_includes_default
5430 #include <$ac_header>
5432 rm -f conftest.
$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try
='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_header_compiler
=yes
5446 echo "$as_me: failed program was:" >&5
5447 cat conftest.
$ac_ext >&5
5448 ac_header_compiler
=no
5450 rm -f conftest.
$ac_objext conftest.
$ac_ext
5451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5452 echo "${ECHO_T}$ac_header_compiler" >&6
5454 # Is the header present?
5455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5457 cat >conftest.
$ac_ext <<_ACEOF
5458 #line $LINENO "configure"
5459 #include "confdefs.h"
5460 #include <$ac_header>
5462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5463 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5465 egrep -v '^ *\+' conftest.er1
>conftest.err
5467 cat conftest.err
>&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } >/dev
/null
; then
5470 if test -s conftest.err
; then
5471 ac_cpp_err
=$ac_c_preproc_warn_flag
5478 if test -z "$ac_cpp_err"; then
5479 ac_header_preproc
=yes
5481 echo "$as_me: failed program was:" >&5
5482 cat conftest.
$ac_ext >&5
5483 ac_header_preproc
=no
5485 rm -f conftest.err conftest.
$ac_ext
5486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5487 echo "${ECHO_T}$ac_header_preproc" >&6
5489 # So? What about this header?
5490 case $ac_header_compiler:$ac_header_preproc in
5492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5504 echo "$as_me:$LINENO: checking for $ac_header" >&5
5505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 eval "$as_ac_Header=$ac_header_preproc"
5511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5516 cat >>confdefs.h
<<_ACEOF
5517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5524 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5525 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5526 if test "${ac_cv_header_stdc+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 cat >conftest.
$ac_ext <<_ACEOF
5530 #line $LINENO "configure"
5531 #include "confdefs.h"
5538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5539 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5541 egrep -v '^ *\+' conftest.er1
>conftest.err
5543 cat conftest.err
>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } >/dev
/null
; then
5546 if test -s conftest.err
; then
5547 ac_cpp_err
=$ac_c_preproc_warn_flag
5554 if test -z "$ac_cpp_err"; then
5555 ac_cv_header_stdc
=yes
5557 echo "$as_me: failed program was:" >&5
5558 cat conftest.
$ac_ext >&5
5559 ac_cv_header_stdc
=no
5561 rm -f conftest.err conftest.
$ac_ext
5563 if test $ac_cv_header_stdc = yes; then
5564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5565 cat >conftest.
$ac_ext <<_ACEOF
5566 #line $LINENO "configure"
5567 #include "confdefs.h"
5571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5572 egrep "memchr" >/dev
/null
2>&1; then
5575 ac_cv_header_stdc
=no
5581 if test $ac_cv_header_stdc = yes; then
5582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5583 cat >conftest.
$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 #include "confdefs.h"
5589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5590 egrep "free" >/dev
/null
2>&1; then
5593 ac_cv_header_stdc
=no
5599 if test $ac_cv_header_stdc = yes; then
5600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5601 if test "$cross_compiling" = yes; then
5604 cat >conftest.
$ac_ext <<_ACEOF
5605 #line $LINENO "configure"
5606 #include "confdefs.h"
5608 #if ((' ' & 0x0FF) == 0x020)
5609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5612 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5613 || ('j' <= (c) && (c) <= 'r') \
5614 || ('s' <= (c) && (c) <= 'z'))
5615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5623 for (i = 0; i < 256; i++)
5624 if (XOR (islower (i), ISLOWER (i))
5625 || toupper (i) != TOUPPER (i))
5630 rm -f conftest
$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5643 echo "$as_me: program exited with status $ac_status" >&5
5644 echo "$as_me: failed program was:" >&5
5645 cat conftest.
$ac_ext >&5
5647 ac_cv_header_stdc
=no
5649 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5654 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5655 if test $ac_cv_header_stdc = yes; then
5657 cat >>confdefs.h
<<\_ACEOF
5658 #define STDC_HEADERS 1
5663 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5664 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5665 if test "${ac_cv_c_backslash_a+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 cat >conftest.
$ac_ext <<_ACEOF
5669 #line $LINENO "configure"
5670 #include "confdefs.h"
5672 #ifdef F77_DUMMY_MAIN
5676 int F77_DUMMY_MAIN() { return 1; }
5685 char buf['\a' == 'a' ? -1 : 1];
5687 return buf[0] != "\a"[0];
5693 rm -f conftest.
$ac_objext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try
='test -s conftest.$ac_objext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_cv_c_backslash_a
=yes
5707 echo "$as_me: failed program was:" >&5
5708 cat conftest.
$ac_ext >&5
5709 ac_cv_c_backslash_a
=no
5711 rm -f conftest.
$ac_objext conftest.
$ac_ext
5713 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5714 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5715 if test $ac_cv_c_backslash_a = yes; then
5717 cat >>confdefs.h
<<\_ACEOF
5718 #define HAVE_C_BACKSLASH_A 1
5723 for ac_header
in stdlib.h
5725 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727 echo "$as_me:$LINENO: checking for $ac_header" >&5
5728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5735 # Is the header compilable?
5736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5738 cat >conftest.
$ac_ext <<_ACEOF
5739 #line $LINENO "configure"
5740 #include "confdefs.h"
5741 $ac_includes_default
5742 #include <$ac_header>
5744 rm -f conftest.
$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try
='test -s conftest.$ac_objext'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 ac_header_compiler
=yes
5758 echo "$as_me: failed program was:" >&5
5759 cat conftest.
$ac_ext >&5
5760 ac_header_compiler
=no
5762 rm -f conftest.
$ac_objext conftest.
$ac_ext
5763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5764 echo "${ECHO_T}$ac_header_compiler" >&6
5766 # Is the header present?
5767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5769 cat >conftest.
$ac_ext <<_ACEOF
5770 #line $LINENO "configure"
5771 #include "confdefs.h"
5772 #include <$ac_header>
5774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5775 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5777 egrep -v '^ *\+' conftest.er1
>conftest.err
5779 cat conftest.err
>&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } >/dev
/null
; then
5782 if test -s conftest.err
; then
5783 ac_cpp_err
=$ac_c_preproc_warn_flag
5790 if test -z "$ac_cpp_err"; then
5791 ac_header_preproc
=yes
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.
$ac_ext >&5
5795 ac_header_preproc
=no
5797 rm -f conftest.err conftest.
$ac_ext
5798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5799 echo "${ECHO_T}$ac_header_preproc" >&6
5801 # So? What about this header?
5802 case $ac_header_compiler:$ac_header_preproc in
5804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5816 echo "$as_me:$LINENO: checking for $ac_header" >&5
5817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 eval "$as_ac_Header=$ac_header_preproc"
5823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5828 cat >>confdefs.h
<<_ACEOF
5829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5836 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5837 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5838 if test "${ac_cv_type_mbstate_t+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 cat >conftest.
$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5843 #include "confdefs.h"
5846 # include <stdlib.h>
5849 #ifdef F77_DUMMY_MAIN
5853 int F77_DUMMY_MAIN() { return 1; }
5858 mbstate_t x; return sizeof x;
5863 rm -f conftest.
$ac_objext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try
='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 ac_cv_type_mbstate_t
=yes
5877 echo "$as_me: failed program was:" >&5
5878 cat conftest.
$ac_ext >&5
5879 ac_cv_type_mbstate_t
=no
5881 rm -f conftest.
$ac_objext conftest.
$ac_ext
5883 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5884 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5885 if test $ac_cv_type_mbstate_t = no
; then
5887 cat >>confdefs.h
<<\_ACEOF
5888 #define mbstate_t int
5893 echo "$as_me:$LINENO: checking for function prototypes" >&5
5894 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5895 if test "$am_cv_prog_cc_stdc" != no
; then
5896 echo "$as_me:$LINENO: result: yes" >&5
5897 echo "${ECHO_T}yes" >&6
5899 cat >>confdefs.h
<<\_ACEOF
5900 #define PROTOTYPES 1
5905 echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907 U
=_ ANSI2KNR
=.
/ansi2knr
5909 # Ensure some checks needed by ansi2knr itself.
5910 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5911 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5912 if test "${ac_cv_header_stdc+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 cat >conftest.
$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 #include "confdefs.h"
5924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5925 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5927 egrep -v '^ *\+' conftest.er1
>conftest.err
5929 cat conftest.err
>&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } >/dev
/null
; then
5932 if test -s conftest.err
; then
5933 ac_cpp_err
=$ac_c_preproc_warn_flag
5940 if test -z "$ac_cpp_err"; then
5941 ac_cv_header_stdc
=yes
5943 echo "$as_me: failed program was:" >&5
5944 cat conftest.
$ac_ext >&5
5945 ac_cv_header_stdc
=no
5947 rm -f conftest.err conftest.
$ac_ext
5949 if test $ac_cv_header_stdc = yes; then
5950 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5951 cat >conftest.
$ac_ext <<_ACEOF
5952 #line $LINENO "configure"
5953 #include "confdefs.h"
5957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5958 egrep "memchr" >/dev
/null
2>&1; then
5961 ac_cv_header_stdc
=no
5967 if test $ac_cv_header_stdc = yes; then
5968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5969 cat >conftest.
$ac_ext <<_ACEOF
5970 #line $LINENO "configure"
5971 #include "confdefs.h"
5975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5976 egrep "free" >/dev
/null
2>&1; then
5979 ac_cv_header_stdc
=no
5985 if test $ac_cv_header_stdc = yes; then
5986 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5987 if test "$cross_compiling" = yes; then
5990 cat >conftest.
$ac_ext <<_ACEOF
5991 #line $LINENO "configure"
5992 #include "confdefs.h"
5994 #if ((' ' & 0x0FF) == 0x020)
5995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5998 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5999 || ('j' <= (c) && (c) <= 'r') \
6000 || ('s' <= (c) && (c) <= 'z'))
6001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6009 for (i = 0; i < 256; i++)
6010 if (XOR (islower (i), ISLOWER (i))
6011 || toupper (i) != TOUPPER (i))
6016 rm -f conftest
$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6029 echo "$as_me: program exited with status $ac_status" >&5
6030 echo "$as_me: failed program was:" >&5
6031 cat conftest.
$ac_ext >&5
6033 ac_cv_header_stdc
=no
6035 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6039 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6040 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6041 if test $ac_cv_header_stdc = yes; then
6043 cat >>confdefs.h
<<\_ACEOF
6044 #define STDC_HEADERS 1
6049 for ac_header
in string.h
6051 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6053 echo "$as_me:$LINENO: checking for $ac_header" >&5
6054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6061 # Is the header compilable?
6062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6064 cat >conftest.
$ac_ext <<_ACEOF
6065 #line $LINENO "configure"
6066 #include "confdefs.h"
6067 $ac_includes_default
6068 #include <$ac_header>
6070 rm -f conftest.
$ac_objext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } &&
6076 { ac_try
='test -s conftest.$ac_objext'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; }; then
6082 ac_header_compiler
=yes
6084 echo "$as_me: failed program was:" >&5
6085 cat conftest.
$ac_ext >&5
6086 ac_header_compiler
=no
6088 rm -f conftest.
$ac_objext conftest.
$ac_ext
6089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6090 echo "${ECHO_T}$ac_header_compiler" >&6
6092 # Is the header present?
6093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6095 cat >conftest.
$ac_ext <<_ACEOF
6096 #line $LINENO "configure"
6097 #include "confdefs.h"
6098 #include <$ac_header>
6100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6101 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6103 egrep -v '^ *\+' conftest.er1
>conftest.err
6105 cat conftest.err
>&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } >/dev
/null
; then
6108 if test -s conftest.err
; then
6109 ac_cpp_err
=$ac_c_preproc_warn_flag
6116 if test -z "$ac_cpp_err"; then
6117 ac_header_preproc
=yes
6119 echo "$as_me: failed program was:" >&5
6120 cat conftest.
$ac_ext >&5
6121 ac_header_preproc
=no
6123 rm -f conftest.err conftest.
$ac_ext
6124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6125 echo "${ECHO_T}$ac_header_preproc" >&6
6127 # So? What about this header?
6128 case $ac_header_compiler:$ac_header_preproc in
6130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6142 echo "$as_me:$LINENO: checking for $ac_header" >&5
6143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 eval "$as_ac_Header=$ac_header_preproc"
6149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6154 cat >>confdefs.h
<<_ACEOF
6155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6162 for ac_func
in strerror strerror_r vprintf doprnt
6164 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6165 echo "$as_me:$LINENO: checking for $ac_func" >&5
6166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6167 if eval "test \"\${$as_ac_var+set}\" = set"; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 cat >conftest.
$ac_ext <<_ACEOF
6171 #line $LINENO "configure"
6172 #include "confdefs.h"
6173 /* System header to define __stub macros and hopefully few prototypes,
6174 which can conflict with char $ac_func (); below. */
6176 /* Override any gcc2 internal prototype to avoid an error. */
6180 /* We use char because int might match the return type of a gcc2
6181 builtin and then its argument prototype would still apply. */
6185 #ifdef F77_DUMMY_MAIN
6189 int F77_DUMMY_MAIN() { return 1; }
6194 /* The GNU C library defines this for functions which it implements
6195 to always fail with ENOSYS. Some functions are actually named
6196 something starting with __ and the normal name is an alias. */
6197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6207 rm -f conftest.
$ac_objext conftest
$ac_exeext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6209 (eval $ac_link) 2>&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try
='test -s conftest$ac_exeext'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6219 eval "$as_ac_var=yes"
6221 echo "$as_me: failed program was:" >&5
6222 cat conftest.
$ac_ext >&5
6223 eval "$as_ac_var=no"
6225 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6229 if test `eval echo '${'$as_ac_var'}'` = yes; then
6230 cat >>confdefs.h
<<_ACEOF
6231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6237 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6238 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6239 if test "${ac_cv_header_stdc+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 cat >conftest.
$ac_ext <<_ACEOF
6243 #line $LINENO "configure"
6244 #include "confdefs.h"
6251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6252 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6254 egrep -v '^ *\+' conftest.er1
>conftest.err
6256 cat conftest.err
>&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } >/dev
/null
; then
6259 if test -s conftest.err
; then
6260 ac_cpp_err
=$ac_c_preproc_warn_flag
6267 if test -z "$ac_cpp_err"; then
6268 ac_cv_header_stdc
=yes
6270 echo "$as_me: failed program was:" >&5
6271 cat conftest.
$ac_ext >&5
6272 ac_cv_header_stdc
=no
6274 rm -f conftest.err conftest.
$ac_ext
6276 if test $ac_cv_header_stdc = yes; then
6277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6278 cat >conftest.
$ac_ext <<_ACEOF
6279 #line $LINENO "configure"
6280 #include "confdefs.h"
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 egrep "memchr" >/dev
/null
2>&1; then
6288 ac_cv_header_stdc
=no
6294 if test $ac_cv_header_stdc = yes; then
6295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6296 cat >conftest.
$ac_ext <<_ACEOF
6297 #line $LINENO "configure"
6298 #include "confdefs.h"
6302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6303 egrep "free" >/dev
/null
2>&1; then
6306 ac_cv_header_stdc
=no
6312 if test $ac_cv_header_stdc = yes; then
6313 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6314 if test "$cross_compiling" = yes; then
6317 cat >conftest.
$ac_ext <<_ACEOF
6318 #line $LINENO "configure"
6319 #include "confdefs.h"
6321 #if ((' ' & 0x0FF) == 0x020)
6322 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6323 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6325 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6326 || ('j' <= (c) && (c) <= 'r') \
6327 || ('s' <= (c) && (c) <= 'z'))
6328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6336 for (i = 0; i < 256; i++)
6337 if (XOR (islower (i), ISLOWER (i))
6338 || toupper (i) != TOUPPER (i))
6343 rm -f conftest
$ac_exeext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6345 (eval $ac_link) 2>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6356 echo "$as_me: program exited with status $ac_status" >&5
6357 echo "$as_me: failed program was:" >&5
6358 cat conftest.
$ac_ext >&5
6360 ac_cv_header_stdc
=no
6362 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6366 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6367 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6368 if test $ac_cv_header_stdc = yes; then
6370 cat >>confdefs.h
<<\_ACEOF
6371 #define STDC_HEADERS 1
6376 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6377 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6378 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 cat >conftest.
$ac_ext <<_ACEOF
6382 #line $LINENO "configure"
6383 #include "confdefs.h"
6384 $ac_includes_default
6385 #ifdef F77_DUMMY_MAIN
6389 int F77_DUMMY_MAIN() { return 1; }
6395 char *p = (char *) strerror_r;
6402 rm -f conftest.
$ac_objext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6404 (eval $ac_compile) 2>&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try
='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_cv_have_decl_strerror_r
=yes
6416 echo "$as_me: failed program was:" >&5
6417 cat conftest.
$ac_ext >&5
6418 ac_cv_have_decl_strerror_r
=no
6420 rm -f conftest.
$ac_objext conftest.
$ac_ext
6422 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6423 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6424 if test $ac_cv_have_decl_strerror_r = yes; then
6426 cat >>confdefs.h
<<_ACEOF
6427 #define HAVE_DECL_STRERROR_R 1
6431 cat >>confdefs.h
<<_ACEOF
6432 #define HAVE_DECL_STRERROR_R 0
6437 for ac_func
in strerror_r
6439 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6440 echo "$as_me:$LINENO: checking for $ac_func" >&5
6441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6442 if eval "test \"\${$as_ac_var+set}\" = set"; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 cat >conftest.
$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 #include "confdefs.h"
6448 /* System header to define __stub macros and hopefully few prototypes,
6449 which can conflict with char $ac_func (); below. */
6451 /* Override any gcc2 internal prototype to avoid an error. */
6455 /* We use char because int might match the return type of a gcc2
6456 builtin and then its argument prototype would still apply. */
6460 #ifdef F77_DUMMY_MAIN
6464 int F77_DUMMY_MAIN() { return 1; }
6469 /* The GNU C library defines this for functions which it implements
6470 to always fail with ENOSYS. Some functions are actually named
6471 something starting with __ and the normal name is an alias. */
6472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6482 rm -f conftest.
$ac_objext conftest
$ac_exeext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6484 (eval $ac_link) 2>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try
='test -s conftest$ac_exeext'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
6494 eval "$as_ac_var=yes"
6496 echo "$as_me: failed program was:" >&5
6497 cat conftest.
$ac_ext >&5
6498 eval "$as_ac_var=no"
6500 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6504 if test `eval echo '${'$as_ac_var'}'` = yes; then
6505 cat >>confdefs.h
<<_ACEOF
6506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6512 if test $ac_cv_func_strerror_r = yes; then
6514 for ac_header
in string.h
6516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6518 echo "$as_me:$LINENO: checking for $ac_header" >&5
6519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6526 # Is the header compilable?
6527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6529 cat >conftest.
$ac_ext <<_ACEOF
6530 #line $LINENO "configure"
6531 #include "confdefs.h"
6532 $ac_includes_default
6533 #include <$ac_header>
6535 rm -f conftest.
$ac_objext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537 (eval $ac_compile) 2>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } &&
6541 { ac_try
='test -s conftest.$ac_objext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 ac_header_compiler
=yes
6549 echo "$as_me: failed program was:" >&5
6550 cat conftest.
$ac_ext >&5
6551 ac_header_compiler
=no
6553 rm -f conftest.
$ac_objext conftest.
$ac_ext
6554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6555 echo "${ECHO_T}$ac_header_compiler" >&6
6557 # Is the header present?
6558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6560 cat >conftest.
$ac_ext <<_ACEOF
6561 #line $LINENO "configure"
6562 #include "confdefs.h"
6563 #include <$ac_header>
6565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6566 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6568 egrep -v '^ *\+' conftest.er1
>conftest.err
6570 cat conftest.err
>&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } >/dev
/null
; then
6573 if test -s conftest.err
; then
6574 ac_cpp_err
=$ac_c_preproc_warn_flag
6581 if test -z "$ac_cpp_err"; then
6582 ac_header_preproc
=yes
6584 echo "$as_me: failed program was:" >&5
6585 cat conftest.
$ac_ext >&5
6586 ac_header_preproc
=no
6588 rm -f conftest.err conftest.
$ac_ext
6589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6590 echo "${ECHO_T}$ac_header_preproc" >&6
6592 # So? What about this header?
6593 case $ac_header_compiler:$ac_header_preproc in
6595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6607 echo "$as_me:$LINENO: checking for $ac_header" >&5
6608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 eval "$as_ac_Header=$ac_header_preproc"
6614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6619 cat >>confdefs.h
<<_ACEOF
6620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6627 echo "$as_me:$LINENO: checking for working strerror_r" >&5
6628 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6629 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 cat >conftest.
$ac_ext <<_ACEOF
6634 #line $LINENO "configure"
6635 #include "confdefs.h"
6639 # include <string.h>
6642 #ifdef F77_DUMMY_MAIN
6646 int F77_DUMMY_MAIN() { return 1; }
6653 char x = *strerror_r (0, buf, sizeof buf);
6659 rm -f conftest.
$ac_objext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6661 (eval $ac_compile) 2>&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } &&
6665 { ac_try
='test -s conftest.$ac_objext'
6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 ac_cv_func_strerror_r_works
=yes
6673 echo "$as_me: failed program was:" >&5
6674 cat conftest.
$ac_ext >&5
6675 ac_cv_func_strerror_r_works
=no
6678 rm -f conftest.
$ac_objext conftest.
$ac_ext
6679 if test $ac_cv_func_strerror_r_works = no
; then
6680 # strerror_r seems not to work, but now we have to choose between
6681 # systems that have relatively inaccessible declarations for the
6682 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6683 # former has a strerror_r that returns char*, while the latter
6684 # has a strerror_r that returns `int'.
6685 # This test should segfault on the DEC system.
6686 if test "$cross_compiling" = yes; then
6687 ac_cv_func_strerror_r_works
=no
6689 cat >conftest.
$ac_ext <<_ACEOF
6690 #line $LINENO "configure"
6691 #include "confdefs.h"
6694 # include <string.h>
6697 extern char *strerror_r ();
6703 char x = *strerror_r (0, buf, sizeof buf);
6704 exit (!isalpha (x));
6708 rm -f conftest
$ac_exeext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6710 (eval $ac_link) 2>&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_func_strerror_r_works
=yes
6721 echo "$as_me: program exited with status $ac_status" >&5
6722 echo "$as_me: failed program was:" >&5
6723 cat conftest.
$ac_ext >&5
6725 ac_cv_func_strerror_r_works
=no
6727 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6732 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5
6733 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6734 if test $ac_cv_func_strerror_r_works = yes; then
6736 cat >>confdefs.h
<<_ACEOF
6737 #define HAVE_WORKING_STRERROR_R 1
6743 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6744 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6746 # Check whether --with-dmalloc or --without-dmalloc was given.
6747 if test "${with_dmalloc+set}" = set; then
6748 withval
="$with_dmalloc"
6749 if test "$withval" = yes; then
6750 echo "$as_me:$LINENO: result: yes" >&5
6751 echo "${ECHO_T}yes" >&6
6753 cat >>confdefs.h
<<\_ACEOF
6754 #define WITH_DMALLOC 1
6757 LIBS
="$LIBS -ldmalloc"
6758 LDFLAGS
="$LDFLAGS -g"
6760 echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6764 echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6
6768 ALL_LINGUAS
="de es et fr ja nl tr ru"
6769 # Make sure we can run config.sub.
6770 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6771 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6772 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6773 { (exit 1); exit 1; }; }
6775 echo "$as_me:$LINENO: checking build system type" >&5
6776 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6777 if test "${ac_cv_build+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 ac_cv_build_alias
=$build_alias
6781 test -z "$ac_cv_build_alias" &&
6782 ac_cv_build_alias
=`$ac_config_guess`
6783 test -z "$ac_cv_build_alias" &&
6784 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6785 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6786 { (exit 1); exit 1; }; }
6787 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6788 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6789 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6790 { (exit 1); exit 1; }; }
6793 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6794 echo "${ECHO_T}$ac_cv_build" >&6
6796 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6797 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6798 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6800 echo "$as_me:$LINENO: checking host system type" >&5
6801 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6802 if test "${ac_cv_host+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 ac_cv_host_alias
=$host_alias
6806 test -z "$ac_cv_host_alias" &&
6807 ac_cv_host_alias
=$ac_cv_build_alias
6808 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6809 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6810 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6811 { (exit 1); exit 1; }; }
6814 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6815 echo "${ECHO_T}$ac_cv_host" >&6
6817 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6818 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6819 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6821 echo "$as_me:$LINENO: checking for off_t" >&5
6822 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6823 if test "${ac_cv_type_off_t+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 cat >conftest.
$ac_ext <<_ACEOF
6827 #line $LINENO "configure"
6828 #include "confdefs.h"
6829 $ac_includes_default
6830 #ifdef F77_DUMMY_MAIN
6834 int F77_DUMMY_MAIN() { return 1; }
6847 rm -f conftest.
$ac_objext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849 (eval $ac_compile) 2>&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try
='test -s conftest.$ac_objext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_cv_type_off_t
=yes
6861 echo "$as_me: failed program was:" >&5
6862 cat conftest.
$ac_ext >&5
6865 rm -f conftest.
$ac_objext conftest.
$ac_ext
6867 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6868 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6869 if test $ac_cv_type_off_t = yes; then
6873 cat >>confdefs.h
<<_ACEOF
6879 echo "$as_me:$LINENO: checking for size_t" >&5
6880 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6881 if test "${ac_cv_type_size_t+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 cat >conftest.
$ac_ext <<_ACEOF
6885 #line $LINENO "configure"
6886 #include "confdefs.h"
6887 $ac_includes_default
6888 #ifdef F77_DUMMY_MAIN
6892 int F77_DUMMY_MAIN() { return 1; }
6899 if (sizeof (size_t))
6905 rm -f conftest.
$ac_objext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6907 (eval $ac_compile) 2>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try
='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_cv_type_size_t
=yes
6919 echo "$as_me: failed program was:" >&5
6920 cat conftest.
$ac_ext >&5
6921 ac_cv_type_size_t
=no
6923 rm -f conftest.
$ac_objext conftest.
$ac_ext
6925 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6926 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6927 if test $ac_cv_type_size_t = yes; then
6931 cat >>confdefs.h
<<_ACEOF
6932 #define size_t unsigned
6937 for ac_header
in stdlib.h unistd.h
6939 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6941 echo "$as_me:$LINENO: checking for $ac_header" >&5
6942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6949 # Is the header compilable?
6950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6952 cat >conftest.
$ac_ext <<_ACEOF
6953 #line $LINENO "configure"
6954 #include "confdefs.h"
6955 $ac_includes_default
6956 #include <$ac_header>
6958 rm -f conftest.
$ac_objext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960 (eval $ac_compile) 2>&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } &&
6964 { ac_try
='test -s conftest.$ac_objext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6970 ac_header_compiler
=yes
6972 echo "$as_me: failed program was:" >&5
6973 cat conftest.
$ac_ext >&5
6974 ac_header_compiler
=no
6976 rm -f conftest.
$ac_objext conftest.
$ac_ext
6977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6978 echo "${ECHO_T}$ac_header_compiler" >&6
6980 # Is the header present?
6981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6983 cat >conftest.
$ac_ext <<_ACEOF
6984 #line $LINENO "configure"
6985 #include "confdefs.h"
6986 #include <$ac_header>
6988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6989 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6991 egrep -v '^ *\+' conftest.er1
>conftest.err
6993 cat conftest.err
>&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } >/dev
/null
; then
6996 if test -s conftest.err
; then
6997 ac_cpp_err
=$ac_c_preproc_warn_flag
7004 if test -z "$ac_cpp_err"; then
7005 ac_header_preproc
=yes
7007 echo "$as_me: failed program was:" >&5
7008 cat conftest.
$ac_ext >&5
7009 ac_header_preproc
=no
7011 rm -f conftest.err conftest.
$ac_ext
7012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7013 echo "${ECHO_T}$ac_header_preproc" >&6
7015 # So? What about this header?
7016 case $ac_header_compiler:$ac_header_preproc in
7018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7030 echo "$as_me:$LINENO: checking for $ac_header" >&5
7031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 eval "$as_ac_Header=$ac_header_preproc"
7037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7042 cat >>confdefs.h
<<_ACEOF
7043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7050 for ac_func
in getpagesize
7052 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7053 echo "$as_me:$LINENO: checking for $ac_func" >&5
7054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7055 if eval "test \"\${$as_ac_var+set}\" = set"; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >conftest.
$ac_ext <<_ACEOF
7059 #line $LINENO "configure"
7060 #include "confdefs.h"
7061 /* System header to define __stub macros and hopefully few prototypes,
7062 which can conflict with char $ac_func (); below. */
7064 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7073 #ifdef F77_DUMMY_MAIN
7077 int F77_DUMMY_MAIN() { return 1; }
7082 /* The GNU C library defines this for functions which it implements
7083 to always fail with ENOSYS. Some functions are actually named
7084 something starting with __ and the normal name is an alias. */
7085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7095 rm -f conftest.
$ac_objext conftest
$ac_exeext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7097 (eval $ac_link) 2>&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try
='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 eval "$as_ac_var=yes"
7109 echo "$as_me: failed program was:" >&5
7110 cat conftest.
$ac_ext >&5
7111 eval "$as_ac_var=no"
7113 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7117 if test `eval echo '${'$as_ac_var'}'` = yes; then
7118 cat >>confdefs.h
<<_ACEOF
7119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7125 echo "$as_me:$LINENO: checking for working mmap" >&5
7126 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7127 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 if test "$cross_compiling" = yes; then
7131 ac_cv_func_mmap_fixed_mapped
=no
7133 cat >conftest.
$ac_ext <<_ACEOF
7134 #line $LINENO "configure"
7135 #include "confdefs.h"
7136 $ac_includes_default
7137 /* Thanks to Mike Haertel and Jim Avera for this test.
7138 Here is a matrix of mmap possibilities:
7139 mmap private not fixed
7140 mmap private fixed at somewhere currently unmapped
7141 mmap private fixed at somewhere already mapped
7142 mmap shared not fixed
7143 mmap shared fixed at somewhere currently unmapped
7144 mmap shared fixed at somewhere already mapped
7145 For private mappings, we should verify that changes cannot be read()
7146 back from the file, nor mmap's back from the file at a different
7147 address. (There have been systems where private was not correctly
7148 implemented like the infamous i386 svr4.0, and systems where the
7149 VM page cache was not coherent with the file system buffer cache
7150 like early versions of FreeBSD and possibly contemporary NetBSD.)
7151 For shared mappings, we should conversely verify that changes get
7152 propogated back to all the places they're supposed to be.
7154 Grep wants private fixed already mapped.
7155 The main things grep needs to know about mmap are:
7156 * does it exist and is it safe to write into the mmap'd area
7157 * how to use it (BSD variants) */
7160 #include <sys/mman.h>
7162 #if !STDC_HEADERS && !HAVE_STDLIB_H
7166 /* This mess was copied from the GNU getpagesize.h. */
7167 #if !HAVE_GETPAGESIZE
7168 /* Assume that all systems that can run configure have sys/param.h. */
7169 # if !HAVE_SYS_PARAM_H
7170 # define HAVE_SYS_PARAM_H 1
7173 # ifdef _SC_PAGESIZE
7174 # define getpagesize() sysconf(_SC_PAGESIZE)
7175 # else /* no _SC_PAGESIZE */
7176 # if HAVE_SYS_PARAM_H
7177 # include <sys/param.h>
7178 # ifdef EXEC_PAGESIZE
7179 # define getpagesize() EXEC_PAGESIZE
7180 # else /* no EXEC_PAGESIZE */
7182 # define getpagesize() NBPG * CLSIZE
7185 # endif /* no CLSIZE */
7186 # else /* no NBPG */
7188 # define getpagesize() NBPC
7189 # else /* no NBPC */
7191 # define getpagesize() PAGESIZE
7192 # endif /* PAGESIZE */
7193 # endif /* no NBPC */
7194 # endif /* no NBPG */
7195 # endif /* no EXEC_PAGESIZE */
7196 # else /* no HAVE_SYS_PARAM_H */
7197 # define getpagesize() 8192 /* punt totally */
7198 # endif /* no HAVE_SYS_PARAM_H */
7199 # endif /* no _SC_PAGESIZE */
7201 #endif /* no HAVE_GETPAGESIZE */
7206 char *data, *data2, *data3;
7210 pagesize = getpagesize ();
7212 /* First, make a file with some known garbage in it. */
7213 data = (char *) malloc (pagesize);
7216 for (i = 0; i < pagesize; ++i)
7217 *(data + i) = rand ();
7219 fd = creat ("conftest.mmap", 0600);
7222 if (write (fd, data, pagesize) != pagesize)
7226 /* Next, try to mmap the file at a fixed address which already has
7227 something else allocated at it. If we can, also make sure that
7228 we see the same garbage. */
7229 fd = open ("conftest.mmap", O_RDWR);
7232 data2 = (char *) malloc (2 * pagesize);
7235 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7236 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7237 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7239 for (i = 0; i < pagesize; ++i)
7240 if (*(data + i) != *(data2 + i))
7243 /* Finally, make sure that changes to the mapped area do not
7244 percolate back to the file as seen by read(). (This is a bug on
7245 some variants of i386 svr4.0.) */
7246 for (i = 0; i < pagesize; ++i)
7247 *(data2 + i) = *(data2 + i) + 1;
7248 data3 = (char *) malloc (pagesize);
7251 if (read (fd, data3, pagesize) != pagesize)
7253 for (i = 0; i < pagesize; ++i)
7254 if (*(data + i) != *(data3 + i))
7260 rm -f conftest
$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; }; then
7271 ac_cv_func_mmap_fixed_mapped
=yes
7273 echo "$as_me: program exited with status $ac_status" >&5
7274 echo "$as_me: failed program was:" >&5
7275 cat conftest.
$ac_ext >&5
7277 ac_cv_func_mmap_fixed_mapped
=no
7279 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7282 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7283 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7284 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7286 cat >>confdefs.h
<<\_ACEOF
7293 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7294 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7295 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 cat >conftest.
$ac_ext <<_ACEOF
7299 #line $LINENO "configure"
7300 #include "confdefs.h"
7302 #include <features.h>
7303 #ifdef __GNU_LIBRARY__
7304 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7312 ac_cv_gnu_library_2_1
=yes
7314 ac_cv_gnu_library_2_1
=no
7319 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7320 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7322 GLIBC21
="$ac_cv_gnu_library_2_1"
7324 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7325 stdlib.h string.h unistd.h sys
/param.h
7327 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329 echo "$as_me:$LINENO: checking for $ac_header" >&5
7330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7337 # Is the header compilable?
7338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7340 cat >conftest.
$ac_ext <<_ACEOF
7341 #line $LINENO "configure"
7342 #include "confdefs.h"
7343 $ac_includes_default
7344 #include <$ac_header>
7346 rm -f conftest.
$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try
='test -s conftest.$ac_objext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 ac_header_compiler
=yes
7360 echo "$as_me: failed program was:" >&5
7361 cat conftest.
$ac_ext >&5
7362 ac_header_compiler
=no
7364 rm -f conftest.
$ac_objext conftest.
$ac_ext
7365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7366 echo "${ECHO_T}$ac_header_compiler" >&6
7368 # Is the header present?
7369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7371 cat >conftest.
$ac_ext <<_ACEOF
7372 #line $LINENO "configure"
7373 #include "confdefs.h"
7374 #include <$ac_header>
7376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7377 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7379 egrep -v '^ *\+' conftest.er1
>conftest.err
7381 cat conftest.err
>&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } >/dev
/null
; then
7384 if test -s conftest.err
; then
7385 ac_cpp_err
=$ac_c_preproc_warn_flag
7392 if test -z "$ac_cpp_err"; then
7393 ac_header_preproc
=yes
7395 echo "$as_me: failed program was:" >&5
7396 cat conftest.
$ac_ext >&5
7397 ac_header_preproc
=no
7399 rm -f conftest.err conftest.
$ac_ext
7400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7401 echo "${ECHO_T}$ac_header_preproc" >&6
7403 # So? What about this header?
7404 case $ac_header_compiler:$ac_header_preproc in
7406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7418 echo "$as_me:$LINENO: checking for $ac_header" >&5
7419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 eval "$as_ac_Header=$ac_header_preproc"
7425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7430 cat >>confdefs.h
<<_ACEOF
7431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7438 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7439 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7440 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7442 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7443 echo "$as_me:$LINENO: checking for $ac_func" >&5
7444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7445 if eval "test \"\${$as_ac_var+set}\" = set"; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 cat >conftest.
$ac_ext <<_ACEOF
7449 #line $LINENO "configure"
7450 #include "confdefs.h"
7451 /* System header to define __stub macros and hopefully few prototypes,
7452 which can conflict with char $ac_func (); below. */
7454 /* Override any gcc2 internal prototype to avoid an error. */
7458 /* We use char because int might match the return type of a gcc2
7459 builtin and then its argument prototype would still apply. */
7463 #ifdef F77_DUMMY_MAIN
7467 int F77_DUMMY_MAIN() { return 1; }
7472 /* The GNU C library defines this for functions which it implements
7473 to always fail with ENOSYS. Some functions are actually named
7474 something starting with __ and the normal name is an alias. */
7475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7485 rm -f conftest.
$ac_objext conftest
$ac_exeext
7486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7487 (eval $ac_link) 2>&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try
='test -s conftest$ac_exeext'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; }; then
7497 eval "$as_ac_var=yes"
7499 echo "$as_me: failed program was:" >&5
7500 cat conftest.
$ac_ext >&5
7501 eval "$as_ac_var=no"
7503 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7507 if test `eval echo '${'$as_ac_var'}'` = yes; then
7508 cat >>confdefs.h
<<_ACEOF
7509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7515 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7516 if test "${with_libiconv_prefix+set}" = set; then
7517 withval
="$with_libiconv_prefix"
7519 for dir
in `echo "$withval" | tr : ' '`; do
7520 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7521 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7526 echo "$as_me:$LINENO: checking for iconv" >&5
7527 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7528 if test "${am_cv_func_iconv+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 am_cv_func_iconv
="no, consider installing GNU libiconv"
7534 cat >conftest.
$ac_ext <<_ACEOF
7535 #line $LINENO "configure"
7536 #include "confdefs.h"
7539 #ifdef F77_DUMMY_MAIN
7543 int F77_DUMMY_MAIN() { return 1; }
7548 iconv_t cd = iconv_open("","");
7549 iconv(cd,NULL,NULL,NULL,NULL);
7555 rm -f conftest.
$ac_objext conftest
$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557 (eval $ac_link) 2>&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } &&
7561 { ac_try
='test -s conftest$ac_exeext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 am_cv_func_iconv
=yes
7569 echo "$as_me: failed program was:" >&5
7570 cat conftest.
$ac_ext >&5
7572 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7573 if test "$am_cv_func_iconv" != yes; then
7574 am_save_LIBS
="$LIBS"
7575 LIBS
="$LIBS -liconv"
7576 cat >conftest.
$ac_ext <<_ACEOF
7577 #line $LINENO "configure"
7578 #include "confdefs.h"
7581 #ifdef F77_DUMMY_MAIN
7585 int F77_DUMMY_MAIN() { return 1; }
7590 iconv_t cd = iconv_open("","");
7591 iconv(cd,NULL,NULL,NULL,NULL);
7597 rm -f conftest.
$ac_objext conftest
$ac_exeext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7599 (eval $ac_link) 2>&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try
='test -s conftest$ac_exeext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7610 am_cv_func_iconv
=yes
7612 echo "$as_me: failed program was:" >&5
7613 cat conftest.
$ac_ext >&5
7615 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7616 LIBS
="$am_save_LIBS"
7620 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7621 echo "${ECHO_T}$am_cv_func_iconv" >&6
7622 if test "$am_cv_func_iconv" = yes; then
7624 cat >>confdefs.h
<<\_ACEOF
7625 #define HAVE_ICONV 1
7628 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7629 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7630 if test "${am_cv_proto_iconv+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 cat >conftest.
$ac_ext <<_ACEOF
7635 #line $LINENO "configure"
7636 #include "confdefs.h"
7644 #if defined(__STDC__) || defined(__cplusplus)
7645 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7650 #ifdef F77_DUMMY_MAIN
7654 int F77_DUMMY_MAIN() { return 1; }
7664 rm -f conftest.
$ac_objext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7666 (eval $ac_compile) 2>&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } &&
7670 { ac_try
='test -s conftest.$ac_objext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 am_cv_proto_iconv_arg1
=""
7678 echo "$as_me: failed program was:" >&5
7679 cat conftest.
$ac_ext >&5
7680 am_cv_proto_iconv_arg1
="const"
7682 rm -f conftest.
$ac_objext conftest.
$ac_ext
7683 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);"
7686 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7687 echo "$as_me:$LINENO: result: ${ac_t:-
7688 }$am_cv_proto_iconv" >&5
7689 echo "${ECHO_T}${ac_t:-
7690 }$am_cv_proto_iconv" >&6
7692 cat >>confdefs.h
<<_ACEOF
7693 #define ICONV_CONST $am_cv_proto_iconv_arg1
7698 if test "$am_cv_lib_iconv" = yes; then
7702 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7703 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7704 if test "${am_cv_langinfo_codeset+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 cat >conftest.
$ac_ext <<_ACEOF
7708 #line $LINENO "configure"
7709 #include "confdefs.h"
7710 #include <langinfo.h>
7711 #ifdef F77_DUMMY_MAIN
7715 int F77_DUMMY_MAIN() { return 1; }
7720 char* cs = nl_langinfo(CODESET);
7725 rm -f conftest.
$ac_objext conftest
$ac_exeext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7727 (eval $ac_link) 2>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try
='test -s conftest$ac_exeext'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
7737 am_cv_langinfo_codeset
=yes
7739 echo "$as_me: failed program was:" >&5
7740 cat conftest.
$ac_ext >&5
7741 am_cv_langinfo_codeset
=no
7743 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7746 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7747 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7748 if test $am_cv_langinfo_codeset = yes; then
7750 cat >>confdefs.h
<<\_ACEOF
7751 #define HAVE_LANGINFO_CODESET 1
7756 if test $ac_cv_header_locale_h = yes; then
7757 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7758 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7759 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 cat >conftest.
$ac_ext <<_ACEOF
7763 #line $LINENO "configure"
7764 #include "confdefs.h"
7766 #ifdef F77_DUMMY_MAIN
7770 int F77_DUMMY_MAIN() { return 1; }
7780 rm -f conftest.
$ac_objext conftest
$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try
='test -s conftest$ac_exeext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 am_cv_val_LC_MESSAGES
=yes
7794 echo "$as_me: failed program was:" >&5
7795 cat conftest.
$ac_ext >&5
7796 am_cv_val_LC_MESSAGES
=no
7798 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7800 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7801 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7802 if test $am_cv_val_LC_MESSAGES = yes; then
7804 cat >>confdefs.h
<<\_ACEOF
7805 #define HAVE_LC_MESSAGES 1
7810 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7811 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7812 # Check whether --enable-nls or --disable-nls was given.
7813 if test "${enable_nls+set}" = set; then
7814 enableval
="$enable_nls"
7819 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7820 echo "${ECHO_T}$USE_NLS" >&6
7822 BUILD_INCLUDED_LIBINTL
=no
7823 USE_INCLUDED_LIBINTL
=no
7826 if test "$USE_NLS" = "yes"; then
7828 cat >>confdefs.h
<<\_ACEOF
7829 #define ENABLE_NLS 1
7832 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7833 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7835 # Check whether --with-included-gettext or --without-included-gettext was given.
7836 if test "${with_included_gettext+set}" = set; then
7837 withval
="$with_included_gettext"
7838 nls_cv_force_use_gnu_gettext
=$withval
7840 nls_cv_force_use_gnu_gettext
=no
7842 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7843 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7845 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7846 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7849 if test "${ac_cv_header_libintl_h+set}" = set; then
7850 echo "$as_me:$LINENO: checking for libintl.h" >&5
7851 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7852 if test "${ac_cv_header_libintl_h+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7856 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7858 # Is the header compilable?
7859 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7860 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7861 cat >conftest.
$ac_ext <<_ACEOF
7862 #line $LINENO "configure"
7863 #include "confdefs.h"
7864 $ac_includes_default
7865 #include <libintl.h>
7867 rm -f conftest.
$ac_objext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869 (eval $ac_compile) 2>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try
='test -s conftest.$ac_objext'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; }; then
7879 ac_header_compiler
=yes
7881 echo "$as_me: failed program was:" >&5
7882 cat conftest.
$ac_ext >&5
7883 ac_header_compiler
=no
7885 rm -f conftest.
$ac_objext conftest.
$ac_ext
7886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7887 echo "${ECHO_T}$ac_header_compiler" >&6
7889 # Is the header present?
7890 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7891 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7892 cat >conftest.
$ac_ext <<_ACEOF
7893 #line $LINENO "configure"
7894 #include "confdefs.h"
7895 #include <libintl.h>
7897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7898 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7900 egrep -v '^ *\+' conftest.er1
>conftest.err
7902 cat conftest.err
>&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } >/dev
/null
; then
7905 if test -s conftest.err
; then
7906 ac_cpp_err
=$ac_c_preproc_warn_flag
7913 if test -z "$ac_cpp_err"; then
7914 ac_header_preproc
=yes
7916 echo "$as_me: failed program was:" >&5
7917 cat conftest.
$ac_ext >&5
7918 ac_header_preproc
=no
7920 rm -f conftest.err conftest.
$ac_ext
7921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7922 echo "${ECHO_T}$ac_header_preproc" >&6
7924 # So? What about this header?
7925 case $ac_header_compiler:$ac_header_preproc in
7927 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7928 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7929 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7930 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7932 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7933 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7934 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7935 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7936 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7937 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7939 echo "$as_me:$LINENO: checking for libintl.h" >&5
7940 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7941 if test "${ac_cv_header_libintl_h+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 ac_cv_header_libintl_h
=$ac_header_preproc
7946 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7947 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7950 if test $ac_cv_header_libintl_h = yes; then
7951 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7952 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7953 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 cat >conftest.
$ac_ext <<_ACEOF
7957 #line $LINENO "configure"
7958 #include "confdefs.h"
7959 #include <libintl.h>
7960 extern int _nl_msg_cat_cntr;
7961 #ifdef F77_DUMMY_MAIN
7965 int F77_DUMMY_MAIN() { return 1; }
7970 bindtextdomain ("", "");
7971 return (int) gettext ("") + _nl_msg_cat_cntr
7976 rm -f conftest.
$ac_objext conftest
$ac_exeext
7977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7978 (eval $ac_link) 2>&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
7982 { ac_try
='test -s conftest$ac_exeext'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 gt_cv_func_gnugettext1_libc
=yes
7990 echo "$as_me: failed program was:" >&5
7991 cat conftest.
$ac_ext >&5
7992 gt_cv_func_gnugettext1_libc
=no
7994 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7996 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7997 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7999 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8000 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8001 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8002 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 gt_save_LIBS
="$LIBS"
8006 LIBS
="$LIBS -lintl $LIBICONV"
8007 cat >conftest.
$ac_ext <<_ACEOF
8008 #line $LINENO "configure"
8009 #include "confdefs.h"
8010 #include <libintl.h>
8011 extern int _nl_msg_cat_cntr;
8012 #ifdef F77_DUMMY_MAIN
8016 int F77_DUMMY_MAIN() { return 1; }
8021 bindtextdomain ("", "");
8022 return (int) gettext ("") + _nl_msg_cat_cntr
8027 rm -f conftest.
$ac_objext conftest
$ac_exeext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8029 (eval $ac_link) 2>&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try
='test -s conftest$ac_exeext'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 gt_cv_func_gnugettext1_libintl
=yes
8041 echo "$as_me: failed program was:" >&5
8042 cat conftest.
$ac_ext >&5
8043 gt_cv_func_gnugettext1_libintl
=no
8045 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8046 LIBS
="$gt_save_LIBS"
8048 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
8049 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
8052 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8053 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8054 && test "$PACKAGE" != gettext; }; then
8056 cat >>confdefs.h
<<\_ACEOF
8057 #define HAVE_GETTEXT 1
8060 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8061 INTLLIBS
="-lintl $LIBICONV"
8064 gt_save_LIBS
="$LIBS"
8065 LIBS
="$LIBS $INTLLIBS"
8067 for ac_func
in dcgettext
8069 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8070 echo "$as_me:$LINENO: checking for $ac_func" >&5
8071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8072 if eval "test \"\${$as_ac_var+set}\" = set"; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 cat >conftest.
$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8077 #include "confdefs.h"
8078 /* System header to define __stub macros and hopefully few prototypes,
8079 which can conflict with char $ac_func (); below. */
8081 /* Override any gcc2 internal prototype to avoid an error. */
8085 /* We use char because int might match the return type of a gcc2
8086 builtin and then its argument prototype would still apply. */
8090 #ifdef F77_DUMMY_MAIN
8094 int F77_DUMMY_MAIN() { return 1; }
8099 /* The GNU C library defines this for functions which it implements
8100 to always fail with ENOSYS. Some functions are actually named
8101 something starting with __ and the normal name is an alias. */
8102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8112 rm -f conftest.
$ac_objext conftest
$ac_exeext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114 (eval $ac_link) 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try
='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 eval "$as_ac_var=yes"
8126 echo "$as_me: failed program was:" >&5
8127 cat conftest.
$ac_ext >&5
8128 eval "$as_ac_var=no"
8130 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8134 if test `eval echo '${'$as_ac_var'}'` = yes; then
8135 cat >>confdefs.h
<<_ACEOF
8136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8142 LIBS
="$gt_save_LIBS"
8144 # Extract the first word of "msgfmt", so it can be a program name with args.
8145 set dummy msgfmt
; ac_word
=$2
8146 echo "$as_me:$LINENO: checking for $ac_word" >&5
8147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8148 if test "${ac_cv_path_MSGFMT+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8156 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8157 for ac_dir
in $PATH; do
8158 test -z "$ac_dir" && ac_dir
=.
8159 if test -f $ac_dir/$ac_word; then
8160 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8161 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8167 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8171 MSGFMT
="$ac_cv_path_MSGFMT"
8172 if test "$MSGFMT" != ":"; then
8173 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8174 echo "${ECHO_T}$MSGFMT" >&6
8176 echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6
8180 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8181 set dummy gmsgfmt
; ac_word
=$2
8182 echo "$as_me:$LINENO: checking for $ac_word" >&5
8183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8184 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8196 test -z "$as_dir" && as_dir
=.
8197 for ac_exec_ext
in '' $ac_executable_extensions; do
8198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8210 GMSGFMT
=$ac_cv_path_GMSGFMT
8212 if test -n "$GMSGFMT"; then
8213 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8214 echo "${ECHO_T}$GMSGFMT" >&6
8216 echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6
8220 # Extract the first word of "xgettext", so it can be a program name with args.
8221 set dummy xgettext
; ac_word
=$2
8222 echo "$as_me:$LINENO: checking for $ac_word" >&5
8223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8224 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8233 for ac_dir
in $PATH; do
8234 test -z "$ac_dir" && ac_dir
=.
8235 if test -f $ac_dir/$ac_word; then
8236 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8237 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8243 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8247 XGETTEXT
="$ac_cv_path_XGETTEXT"
8248 if test "$XGETTEXT" != ":"; then
8249 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8250 echo "${ECHO_T}$XGETTEXT" >&6
8252 echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6
8261 if test "$CATOBJEXT" = "NONE"; then
8262 nls_cv_use_gnu_gettext
=yes
8266 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8267 INTLOBJS
="\$(GETTOBJS)"
8268 # Extract the first word of "msgfmt", so it can be a program name with args.
8269 set dummy msgfmt
; ac_word
=$2
8270 echo "$as_me:$LINENO: checking for $ac_word" >&5
8271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8272 if test "${ac_cv_path_MSGFMT+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8280 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8281 for ac_dir
in $PATH; do
8282 test -z "$ac_dir" && ac_dir
=.
8283 if test -f $ac_dir/$ac_word; then
8284 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8285 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8291 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8295 MSGFMT
="$ac_cv_path_MSGFMT"
8296 if test "$MSGFMT" != ":"; then
8297 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8298 echo "${ECHO_T}$MSGFMT" >&6
8300 echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6
8304 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8305 set dummy gmsgfmt
; ac_word
=$2
8306 echo "$as_me:$LINENO: checking for $ac_word" >&5
8307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8308 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir
=.
8321 for ac_exec_ext
in '' $ac_executable_extensions; do
8322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8334 GMSGFMT
=$ac_cv_path_GMSGFMT
8336 if test -n "$GMSGFMT"; then
8337 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8338 echo "${ECHO_T}$GMSGFMT" >&6
8340 echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6
8344 # Extract the first word of "xgettext", so it can be a program name with args.
8345 set dummy xgettext
; 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_path_XGETTEXT+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8356 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8357 for ac_dir
in $PATH; do
8358 test -z "$ac_dir" && ac_dir
=.
8359 if test -f $ac_dir/$ac_word; then
8360 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8361 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8367 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8371 XGETTEXT
="$ac_cv_path_XGETTEXT"
8372 if test "$XGETTEXT" != ":"; then
8373 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8374 echo "${ECHO_T}$XGETTEXT" >&6
8376 echo "$as_me:$LINENO: result: no" >&5
8377 echo "${ECHO_T}no" >&6
8380 BUILD_INCLUDED_LIBINTL
=yes
8381 USE_INCLUDED_LIBINTL
=yes
8383 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8384 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8387 if test "$GMSGFMT" != ":"; then
8388 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8391 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8392 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8397 if test "$XGETTEXT" != ":"; then
8398 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8401 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8402 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8409 ac_config_commands
="$ac_config_commands default-2"
8411 if test "$PACKAGE" = gettext; then
8412 BUILD_INCLUDED_LIBINTL
=yes
8415 for ac_prog
in bison
8417 # Extract the first word of "$ac_prog", so it can be a program name with args.
8418 set dummy
$ac_prog; ac_word
=$2
8419 echo "$as_me:$LINENO: checking for $ac_word" >&5
8420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8421 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 if test -n "$INTLBISON"; then
8425 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8431 test -z "$as_dir" && as_dir
=.
8432 for ac_exec_ext
in '' $ac_executable_extensions; do
8433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8434 ac_cv_prog_INTLBISON
="$ac_prog"
8435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 INTLBISON
=$ac_cv_prog_INTLBISON
8444 if test -n "$INTLBISON"; then
8445 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8446 echo "${ECHO_T}$INTLBISON" >&6
8448 echo "$as_me:$LINENO: result: no" >&5
8449 echo "${ECHO_T}no" >&6
8452 test -n "$INTLBISON" && break
8455 if test -z "$INTLBISON"; then
8458 echo "$as_me:$LINENO: checking version of bison" >&5
8459 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8460 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8461 case $ac_prog_version in
8462 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8463 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8464 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8465 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8467 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8468 echo "${ECHO_T}$ac_prog_version" >&6
8470 if test $ac_verc_fail = yes; then
8474 for lang
in $ALL_LINGUAS; do
8475 GMOFILES
="$GMOFILES $lang.gmo"
8476 POFILES
="$POFILES $lang.po"
8480 nls_cv_header_libgt
=
8488 if test "x$CATOBJEXT" != "x"; then
8489 if test "x$ALL_LINGUAS" = "x"; then
8492 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8493 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8495 for presentlang
in $ALL_LINGUAS; do
8497 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8498 # Use the presentlang catalog if desiredlang is
8499 # a. equal to presentlang, or
8500 # b. a variant of presentlang (because in this case,
8501 # presentlang can be used as a fallback for messages
8502 # which are not translated in the desiredlang catalog).
8503 case "$desiredlang" in
8504 "$presentlang"*) useit
=yes;;
8507 if test $useit = yes; then
8508 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8511 LINGUAS
=$NEW_LINGUAS
8512 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8513 echo "${ECHO_T}$LINGUAS" >&6
8516 if test -n "$LINGUAS"; then
8517 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8522 if test -n "$ac_aux_dir"; then
8523 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8525 if test -z "$MKINSTALLDIRS"; then
8526 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8529 INTL_LIBTOOL_SUFFIX_PREFIX
=
8531 # This is necessary so that .o files in LIBOBJS are also built via
8532 # the ANSI2KNR-filtering rules.
8533 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8535 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8536 cat >confcache
<<\_ACEOF
8537 # This file is a shell script that caches the results of configure
8538 # tests run on this system so they can be shared between configure
8539 # scripts and configure runs, see configure's option --config-cache.
8540 # It is not useful on other systems. If it contains results you don't
8541 # want to keep, you may remove or edit it.
8543 # config.status only pays attention to the cache file if you give it
8544 # the --recheck option to rerun configure.
8546 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8552 # The following way of writing the cache mishandles newlines in values,
8553 # but we know of no workaround that is simple, portable, and efficient.
8554 # So, don't put newlines in cache variables' values.
8555 # Ultrix sh set writes to stderr and can't be redirected directly,
8556 # and sets the high bit in the cache file unless we assign to the vars.
8559 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8561 # `set' does not quote correctly, so add quotes (double-quote
8562 # substitution turns \\\\ into \\, and sed turns \\ into \).
8565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8568 # `set' quotes correctly as required by POSIX, so do not add quotes.
8570 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8579 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8581 if cmp -s $cache_file confcache
; then :; else
8582 if test -w $cache_file; then
8583 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8584 cat confcache
>$cache_file
8586 echo "not updating unwritable cache $cache_file"
8591 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8592 # Let make expand exec_prefix.
8593 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8595 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8596 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8597 # trailing colons and then remove the whole line if VPATH becomes empty
8598 # (actually we leave an empty line to preserve line numbers).
8599 if test "x$srcdir" = x.
; then
8600 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8601 s/:*\$(srcdir):*/:/;
8602 s/:*\${srcdir}:*/:/;
8604 s/^\([^=]*=[ ]*\):*/\1/;
8610 DEFS
=-DHAVE_CONFIG_H
8612 : ${CONFIG_STATUS=./config.status}
8613 ac_clean_files_save
=$ac_clean_files
8614 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8615 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8616 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8617 cat >$CONFIG_STATUS <<_ACEOF
8619 # Generated automatically by $as_me.
8620 # Run this file to recreate the current configuration.
8621 # Compiler output produced by configure, useful for debugging
8622 # configure, is in config.log if it exists.
8625 SHELL=\${CONFIG_SHELL-$SHELL}
8628 cat >>$CONFIG_STATUS <<\_ACEOF
8630 ## --------------------- ##
8631 ## M4sh Initialization. ##
8632 ## --------------------- ##
8634 # Be Bourne compatible
8635 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8638 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8642 # Name of the executable.
8643 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
8645 # Rewrite early, but we need PATH_SEPARATOR.
8646 # The user is always right.
8647 if test "${PATH_SEPARATOR+set}" != set; then
8648 echo "#! $SHELL" >conftest.sh
8649 echo "exit 0" >>conftest.sh
8650 chmod +x conftest.sh
8651 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8662 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
8663 test "x$as_lineno_1" != "x$as_lineno_2" &&
8664 test "x$as_lineno_3" = "x$as_lineno_2"
8666 if eval "$as_command"; then
8669 # Find who we are. Look in the path if we contain no path at all
8672 *[\\/]* ) as_myself=$0 ;;
8673 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 test -z "$as_dir" && as_dir=.
8678 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8683 # We did not find ourselves, most probably we were run as `sh COMMAND
'
8684 # in which case we are not to be found in the path.
8685 if test "x$as_myself" = x; then
8688 if test ! -f "$as_myself"; then
8689 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8690 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8691 { (exit 1); exit 1; }; }
8693 case $CONFIG_SHELL in
8695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 for as_dir in /bin:/usr/bin:$PATH
8699 test -z "$as_dir" && as_dir=.
8700 for as_base in sh bash ksh sh5; do
8703 if ("$as_dir/$as_base" -c "$as_command") 2>/dev/null; then
8704 CONFIG_SHELL=$as_dir/$as_base
8706 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8713 if test ! -f "$as_me.lineno" ||
8714 test x`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \
8715 != x"$as_me.lineno"; then
8716 # Be sure to write the pattern so that it doesn't replace itself
:
8717 # it must not match itself.
8719 /[$]LINENO/ { printf "%d:", NR }
8722 sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \
8724 chmod +x
$as_me.lineno
8727 # Don't try to exec as it changes $[0], causing all sort of problems
8728 # (the dirname of $[0] is not the place where we might find the
8729 # original and so on. Autoconf is especially sensible to this).
8731 # Exit status is that of the last command.
8735 # Avoid depending upon Character Ranges.
8736 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8737 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8738 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8739 as_cr_digits
='0123456789'
8740 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8742 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8743 *c
*,-n*) ECHO_N
= ECHO_C
='
8745 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8746 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8749 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8755 rm -f conf$$ conf$$.exe conf$$.
file
8757 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8758 # We could just check for DJGPP; but this test a) works b) is more generic
8759 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8760 if test -f conf$$.exe
; then
8761 # Don't use ln at all; we don't have any links
8766 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8771 rm -f conf$$ conf$$.exe conf$$.
file
8773 as_executable_p
="test -f"
8775 # Sed expression to map a string onto a valid CPP name.
8776 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8778 # Sed expression to map a string onto a valid variable name.
8779 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8781 # Support unset when possible.
8782 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8789 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
8790 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
8791 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
8792 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
8793 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
8794 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
8795 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
8796 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
8799 # We need space, tab and new line, in precisely that order.
8805 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
8809 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8810 # report actual input values of CONFIG_FILES etc. instead of their
8811 # values after options handling. Logging --version etc. is OK.
8815 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8816 ## Running $as_me. ##
8821 This file was extended by GNU Bison $as_me 1.29d, which was
8822 generated by GNU Autoconf 2.52e. Invocation command line was
8824 CONFIG_FILES = $CONFIG_FILES
8825 CONFIG_HEADERS = $CONFIG_HEADERS
8826 CONFIG_LINKS = $CONFIG_LINKS
8827 CONFIG_COMMANDS = $CONFIG_COMMANDS
8831 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8835 # Files that config.status was made for.
8836 if test -n "$ac_config_files"; then
8837 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8840 if test -n "$ac_config_headers"; then
8841 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8844 if test -n "$ac_config_links"; then
8845 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8848 if test -n "$ac_config_commands"; then
8849 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8852 cat >>$CONFIG_STATUS <<\_ACEOF
8855 \`$as_me' instantiates files from templates according to the
8856 current configuration.
8858 Usage: $0 [OPTIONS] [FILE]...
8860 -h, --help print this help, then exit
8861 -V, --version print version number, then exit
8862 -d, --debug don't remove temporary files
8863 --recheck update $as_me by reconfiguring in the same conditions
8864 --file=FILE[:TEMPLATE]
8865 instantiate the configuration file FILE
8866 --header=FILE[:TEMPLATE]
8867 instantiate the configuration header FILE
8869 Configuration files:
8872 Configuration headers:
8875 Configuration commands:
8878 Report bugs to <bug-autoconf@gnu.org>."
8881 cat >>$CONFIG_STATUS <<_ACEOF
8883 GNU Bison config.status 1.29d
8884 configured by $0, generated by GNU Autoconf 2.52e,
8885 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8887 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8888 Free Software Foundation, Inc.
8889 This config.status script is free software; the Free Software Foundation
8890 gives unlimited permission to copy, distribute and modify it."
8895 cat >>$CONFIG_STATUS <<\_ACEOF
8896 # If no file are specified by the user, then we need to provide default
8897 # value. By we need to know if files were specified by the user.
8903 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8904 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8906 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
8910 *) # This is not an option, so the user has probably given explicit
8912 ac_need_defaults
=false
;;
8916 # Handling of the options.
8918 cat >>$CONFIG_STATUS <<_ACEOF
8919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8920 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8921 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8923 cat >>$CONFIG_STATUS <<\_ACEOF
8924 --version | --vers* | -V )
8925 echo "$ac_cs_version"; exit 0 ;;
8927 # Conflict between --help and --header
8928 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8929 Try \`$0 --help' for more information." >&5
8930 echo "$as_me: error: ambiguous option: $1
8931 Try \`$0 --help' for more information." >&2;}
8932 { (exit 1); exit 1; }; };;
8933 --help | --hel | -h )
8934 echo "$ac_cs_usage"; exit 0 ;;
8935 --debug | --d* | -d )
8937 --file | --fil | --fi | --f )
8939 CONFIG_FILES
="$CONFIG_FILES $1"
8940 ac_need_defaults
=false
;;
8941 --header | --heade | --head | --hea )
8943 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
8944 ac_need_defaults
=false
;;
8947 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8948 Try \`$0 --help' for more information." >&5
8949 echo "$as_me: error: unrecognized option: $1
8950 Try \`$0 --help' for more information." >&2;}
8951 { (exit 1); exit 1; }; } ;;
8953 *) ac_config_targets
="$ac_config_targets $1" ;;
8961 cat >>$CONFIG_STATUS <<_ACEOF
8963 # INIT-COMMANDS section.
8966 PACKAGE_NAME='$PACKAGE_NAME'
8967 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8968 PACKAGE_VERSION='$PACKAGE_VERSION'
8969 PACKAGE_STRING='$PACKAGE_STRING'
8970 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8972 AMDEP_TRUE="$AMDEP_TRUE"
8973 ac_aux_dir="$ac_aux_dir"
8977 cat >>$CONFIG_STATUS <<\_ACEOF
8978 for ac_config_target
in $ac_config_targets
8980 case "$ac_config_target" in
8981 # Handling of arguments.
8982 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
8983 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
8984 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8985 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
8986 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
8987 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
8988 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
8989 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8990 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8991 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
8992 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8993 "tests/package.m4" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/package.m4" ;;
8994 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
8995 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
8996 "default-2" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
8997 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
8998 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8999 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9000 { (exit 1); exit 1; }; };;
9004 # If the user did not use the arguments to specify the items to instantiate,
9005 # then the envvar interface is used. Set only those that are not.
9006 # We use the long form for the default assignment because of an extremely
9007 # bizarre bug on SunOS 4.1.3.
9008 if $ac_need_defaults; then
9009 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9010 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9011 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9014 # Create a temporary directory, and hook for its removal unless debugging.
9017 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9018 trap '{ (exit 1); exit 1; }' 1 2 13 15
9021 # Create a (secure) tmp directory for tmp files.
9024 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9025 test -n "$tmp" && test -d "$tmp"
9028 tmp
=$TMPDIR/cs$$
-$RANDOM
9029 (umask 077 && mkdir $tmp)
9032 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9033 { (exit 1); exit 1; }
9038 cat >>$CONFIG_STATUS <<_ACEOF
9041 # CONFIG_FILES section.
9044 # No need to generate the scripts if there are no CONFIG_FILES.
9045 # This happens for instance when ./config.status config.h
9046 if test -n "\$CONFIG_FILES"; then
9047 # Protect against being on the right side of a sed subst in config.status.
9048 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9049 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9050 s,@SHELL@,$SHELL,;t t
9051 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9052 s,@exec_prefix@,$exec_prefix,;t t
9053 s,@prefix@,$prefix,;t t
9054 s,@program_transform_name@,$program_transform_name,;t t
9055 s,@bindir@,$bindir,;t t
9056 s,@sbindir@,$sbindir,;t t
9057 s,@libexecdir@,$libexecdir,;t t
9058 s,@datadir@,$datadir,;t t
9059 s,@sysconfdir@,$sysconfdir,;t t
9060 s,@sharedstatedir@,$sharedstatedir,;t t
9061 s,@localstatedir@,$localstatedir,;t t
9062 s,@libdir@,$libdir,;t t
9063 s,@includedir@,$includedir,;t t
9064 s,@oldincludedir@,$oldincludedir,;t t
9065 s,@infodir@,$infodir,;t t
9066 s,@mandir@,$mandir,;t t
9067 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9068 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9069 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9070 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9071 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9072 s,@build_alias@,$build_alias,;t t
9073 s,@host_alias@,$host_alias,;t t
9074 s,@target_alias@,$target_alias,;t t
9076 s,@ECHO_C@,$ECHO_C,;t t
9077 s,@ECHO_N@,$ECHO_N,;t t
9078 s,@ECHO_T@,$ECHO_T,;t t
9080 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9081 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9082 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9083 s,@PACKAGE@,$PACKAGE,;t t
9084 s,@VERSION@,$VERSION,;t t
9085 s,@EXEEXT@,$EXEEXT,;t t
9086 s,@OBJEXT@,$OBJEXT,;t t
9087 s,@ACLOCAL@,$ACLOCAL,;t t
9088 s,@AUTOCONF@,$AUTOCONF,;t t
9089 s,@AUTOMAKE@,$AUTOMAKE,;t t
9090 s,@AUTOHEADER@,$AUTOHEADER,;t t
9091 s,@MAKEINFO@,$MAKEINFO,;t t
9092 s,@AMTAR@,$AMTAR,;t t
9093 s,@install_sh@,$install_sh,;t t
9094 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9096 s,@SET_MAKE@,$SET_MAKE,;t t
9097 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9098 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9099 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9100 s,@DEPDIR@,$DEPDIR,;t t
9102 s,@CFLAGS@,$CFLAGS,;t t
9103 s,@LDFLAGS@,$LDFLAGS,;t t
9104 s,@CPPFLAGS@,$CPPFLAGS,;t t
9105 s,@ac_ct_CC@,$ac_ct_CC,;t t
9106 s,@am__include@,$am__include,;t t
9107 s,@am__quote@,$am__quote,;t t
9108 s,@CCDEPMODE@,$CCDEPMODE,;t t
9110 s,@RANLIB@,$RANLIB,;t t
9111 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9113 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9115 s,@ANSI2KNR@,$ANSI2KNR,;t t
9116 s,@ALLOCA@,$ALLOCA,;t t
9117 s,@LIBOBJS@,$LIBOBJS,;t t
9118 s,@build@,$build,;t t
9119 s,@build_cpu@,$build_cpu,;t t
9120 s,@build_vendor@,$build_vendor,;t t
9121 s,@build_os@,$build_os,;t t
9123 s,@host_cpu@,$host_cpu,;t t
9124 s,@host_vendor@,$host_vendor,;t t
9125 s,@host_os@,$host_os,;t t
9126 s,@GLIBC21@,$GLIBC21,;t t
9127 s,@LIBICONV@,$LIBICONV,;t t
9128 s,@USE_NLS@,$USE_NLS,;t t
9129 s,@MSGFMT@,$MSGFMT,;t t
9130 s,@GMSGFMT@,$GMSGFMT,;t t
9131 s,@XGETTEXT@,$XGETTEXT,;t t
9132 s,@INTLBISON@,$INTLBISON,;t t
9133 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9134 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9135 s,@CATALOGS@,$CATALOGS,;t t
9136 s,@CATOBJEXT@,$CATOBJEXT,;t t
9137 s,@GMOFILES@,$GMOFILES,;t t
9138 s,@INTLLIBS@,$INTLLIBS,;t t
9139 s,@INTLOBJS@,$INTLOBJS,;t t
9140 s,@POFILES@,$POFILES,;t t
9141 s,@POSUB@,$POSUB,;t t
9142 s,@DATADIRNAME@,$DATADIRNAME,;t t
9143 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9144 s,@GENCAT@,$GENCAT,;t t
9145 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9146 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9151 cat >>$CONFIG_STATUS <<\_ACEOF
9152 # Split the substitutions into bite-sized pieces for seds with
9153 # small command number limits, like on Digital OSF/1 and HP-UX.
9155 ac_sed_frag
=1 # Number of current file.
9156 ac_beg
=1 # First line for current file.
9157 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9160 while $ac_more_lines; do
9161 if test $ac_beg -gt 1; then
9162 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9164 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9166 if test ! -s $tmp/subs.frag
; then
9169 # The purpose of the label and of the branching condition is to
9170 # speed up the sed processing (if there are no `@' at all, there
9171 # is no need to browse any of the substitutions).
9172 # These are the two extra sed commands mentioned above.
9174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9175 if test -z "$ac_sed_cmds"; then
9176 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9178 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9180 ac_sed_frag
=`expr $ac_sed_frag + 1`
9182 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9185 if test -z "$ac_sed_cmds"; then
9188 fi # test -n "$CONFIG_FILES"
9191 cat >>$CONFIG_STATUS <<\_ACEOF
9192 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9193 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9195 - | *:- | *:-:* ) # input from stdin
9197 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9198 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9199 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9200 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9201 * ) ac_file_in
=$ac_file.
in ;;
9204 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9205 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9206 X"$ac_file" : 'X\(//\)[^/]' \| \
9207 X"$ac_file" : 'X\(//\)$' \| \
9208 X"$ac_file" : 'X\(/\)' \| \
9209 . : '\(.\)' 2>/dev/null ||
9211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9213 /^X\(\/\/\)$/{ s//\1/; q; }
9214 /^X\(\/\).*/{ s//\1/; q; }
9217 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9221 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9222 case $as_mkdir_dir in
9223 # Skip DOS drivespec
9224 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9226 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9227 test -d "$as_incr_dir" ||
9228 mkdir "$as_incr_dir" ||
9229 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9230 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9231 { (exit 1); exit 1; }; }
9238 if test "$ac_dir" != .
; then
9239 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9240 # A "../" for each directory in $ac_dir_suffix.
9241 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9243 ac_dir_suffix
= ac_top_builddir
=
9247 .
) # No --srcdir option. We are building in place.
9249 if test -z "$ac_top_builddir"; then
9252 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9254 [\\/]* | ?
:[\\/]* ) # Absolute path.
9255 ac_srcdir
=$srcdir$ac_dir_suffix;
9256 ac_top_srcdir
=$srcdir ;;
9258 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9259 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9261 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9263 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9264 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9265 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9266 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9269 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9270 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9273 if test x
"$ac_file" != x
-; then
9274 { echo "$as_me:$LINENO: creating $ac_file" >&5
9275 echo "$as_me: creating $ac_file" >&6;}
9278 # Let's still pretend it is `configure' which instantiates (i.e., don't
9279 # use $as_me), people would be surprised to read:
9280 # /* config.h. Generated automatically by config.status. */
9281 configure_input
="Generated automatically from `echo $ac_file_in |
9282 sed 's,.*/,,'` by configure."
9284 # First look for the input files in the build tree, otherwise in the
9286 ac_file_inputs
=`IFS=:
9287 for f in $ac_file_in; do
9289 -) echo $tmp/stdin ;;
9291 # Absolute (can't be DOS-style, as IFS=:)
9292 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9293 echo "$as_me: error: cannot find input file: $f" >&2;}
9294 { (exit 1); exit 1; }; }
9297 if test -f "$f"; then
9300 elif test -f "$srcdir/$f"; then
9305 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9306 echo "$as_me: error: cannot find input file: $f" >&2;}
9307 { (exit 1); exit 1; }; }
9310 done` || { (exit 1); exit 1; }
9312 cat >>$CONFIG_STATUS <<_ACEOF
9316 cat >>$CONFIG_STATUS <<\_ACEOF
9318 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9319 s
,@configure_input@
,$configure_input,;t t
9320 s
,@srcdir@
,$ac_srcdir,;t t
9321 s
,@srcpath@
,$ac_srcpath,;t t
9322 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9323 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9324 s
,@builddir@
,$ac_builddir,;t t
9325 s
,@buildpath@
,$ac_buildpath,;t t
9326 s
,@top_builddir@
,$ac_top_builddir,;t t
9327 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9328 s
,@INSTALL@
,$ac_INSTALL,;t t
9329 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9331 if test x"$ac_file" != x-; then
9332 mv $tmp/out $ac_file
9338 # Run the commands associated with the file.
9340 tests/bison ) chmod +x tests/bison ;;
9344 cat >>$CONFIG_STATUS <<\_ACEOF
9347 # CONFIG_HEADER section.
9350 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9351 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9353 # ac_d sets the value in "#define NAME VALUE" lines.
9354 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9355 ac_dB
='[ ].*$,\1#\2'
9358 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9359 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9360 ac_uB
='$,\1#\2define\3'
9364 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9365 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9367 - | *:- | *:-:* ) # input from stdin
9369 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9370 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9371 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9372 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9373 * ) ac_file_in
=$ac_file.
in ;;
9376 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9377 echo "$as_me: creating $ac_file" >&6;}
9379 # First look for the input files in the build tree, otherwise in the
9381 ac_file_inputs
=`IFS=:
9382 for f in $ac_file_in; do
9384 -) echo $tmp/stdin ;;
9386 # Absolute (can't be DOS-style, as IFS=:)
9387 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9388 echo "$as_me: error: cannot find input file: $f" >&2;}
9389 { (exit 1); exit 1; }; }
9392 if test -f "$f"; then
9395 elif test -f "$srcdir/$f"; then
9400 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9401 echo "$as_me: error: cannot find input file: $f" >&2;}
9402 { (exit 1); exit 1; }; }
9405 done` || { (exit 1); exit 1; }
9406 # Remove the trailing spaces.
9407 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9411 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9412 # `conftest.undefs', that substitutes the proper values into
9413 # config.h.in to produce config.h. The first handles `#define'
9414 # templates, and the second `#undef' templates.
9415 # And first: Protect against being on the right side of a sed subst in
9416 # config.status. Protect against being in an unquoted here document
9418 rm -f conftest.defines conftest.undefs
9419 # Using a here document instead of a string reduces the quoting nightmare.
9420 # Putting comments in sed scripts is not portable.
9422 # `end' is used to avoid that the second main sed command (meant for
9423 # 0-ary CPP macros) applies to n-ary macro definitions.
9424 # See the Autoconf documentation for `clear'.
9425 cat >confdef2sed.
sed <<\_ACEOF
9430 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9432 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9435 # If some macros were called several times there might be several times
9436 # the same #defines, which is useless. Nevertheless, we may not want to
9437 # sort them, since we want the *last* AC-DEFINE to be honored.
9438 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9439 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9440 rm -f confdef2sed.sed
9442 # This sed command replaces #undef with comments. This is necessary, for
9443 # example, in the case of _POSIX_SOURCE, which is predefined and required
9444 # on some systems where configure will not decide to define it.
9445 cat >>conftest.undefs <<\_ACEOF
9446 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9449 # Break up conftest.defines because some shells have a limit on the size
9450 # of here documents, and old seds have small limits too (100 cmds).
9451 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9452 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9453 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9454 echo ' :' >>$CONFIG_STATUS
9456 while grep . conftest.defines >/dev/null
9458 # Write a limited-size here document to $tmp/defines.sed.
9459 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9460 # Speed up: don't consider the non `#define' lines.
9461 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9462 # Work around the forget-to-reset-the-flag bug.
9463 echo 't clr' >>$CONFIG_STATUS
9464 echo ': clr' >>$CONFIG_STATUS
9465 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9467 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9471 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9472 rm -f conftest.defines
9473 mv conftest.
tail conftest.defines
9475 rm -f conftest.defines
9476 echo ' fi # egrep' >>$CONFIG_STATUS
9477 echo >>$CONFIG_STATUS
9479 # Break up conftest.undefs because some shells have a limit on the size
9480 # of here documents, and old seds have small limits too (100 cmds).
9481 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9483 while grep . conftest.undefs
>/dev
/null
9485 # Write a limited-size here document to $tmp/undefs.sed.
9486 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9487 # Speed up: don't consider the non
`#undef'
9488 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9489 # Work around the forget-to-reset-the-flag bug.
9490 echo 't clr' >>$CONFIG_STATUS
9491 echo ': clr' >>$CONFIG_STATUS
9492 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9494 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9498 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9499 rm -f conftest.undefs
9500 mv conftest.tail conftest.undefs
9502 rm -f conftest.undefs
9504 cat >>$CONFIG_STATUS <<\_ACEOF
9505 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9506 # use $as_me), people would be surprised to read:
9507 # /* config.h. Generated automatically by config.status. */
9508 if test x
"$ac_file" = x
-; then
9509 echo "/* Generated automatically by configure. */" >$tmp/config.h
9511 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9513 cat $tmp/in >>$tmp/config.h
9515 if test x
"$ac_file" != x
-; then
9516 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9517 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9518 echo "$as_me: $ac_file is unchanged" >&6;}
9520 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9521 X"$ac_file" : 'X\(//\)[^/]' \| \
9522 X"$ac_file" : 'X\(//\)$' \| \
9523 X"$ac_file" : 'X\(/\)' \| \
9524 . : '\(.\)' 2>/dev/null ||
9526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9528 /^X\(\/\/\)$/{ s//\1/; q; }
9529 /^X\(\/\).*/{ s//\1/; q; }
9532 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9536 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9537 case $as_mkdir_dir in
9538 # Skip DOS drivespec
9539 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9541 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9542 test -d "$as_incr_dir" ||
9543 mkdir "$as_incr_dir" ||
9544 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9545 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9546 { (exit 1); exit 1; }; }
9552 mv $tmp/config.h
$ac_file
9558 # Run the commands associated with the file.
9560 config.h
) # update the timestamp
9561 echo timestamp
>"./stamp-h1"
9566 cat >>$CONFIG_STATUS <<\_ACEOF
9569 # CONFIG_COMMANDS section.
9571 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9572 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9573 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9574 ac_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9575 X"$ac_dest" : 'X\(//\)[^/]' \| \
9576 X"$ac_dest" : 'X\(//\)$' \| \
9577 X"$ac_dest" : 'X\(/\)' \| \
9578 . : '\(.\)' 2>/dev/null ||
9580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9582 /^X\(\/\/\)$/{ s//\1/; q; }
9583 /^X\(\/\).*/{ s//\1/; q; }
9587 if test "$ac_dir" != .
; then
9588 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9589 # A "../" for each directory in $ac_dir_suffix.
9590 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9592 ac_dir_suffix
= ac_top_builddir
=
9596 .
) # No --srcdir option. We are building in place.
9598 if test -z "$ac_top_builddir"; then
9601 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9603 [\\/]* | ?
:[\\/]* ) # Absolute path.
9604 ac_srcdir
=$srcdir$ac_dir_suffix;
9605 ac_top_srcdir
=$srcdir ;;
9607 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9608 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9610 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9612 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9613 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9614 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9615 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9617 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9618 echo "$as_me: executing $ac_dest commands" >&6;}
9620 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9621 # Signature of the current package.
9622 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9623 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9624 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9625 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9626 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9629 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9630 # Configurable variable values for building test suites.
9632 # Copyright 2000, 2001 Free Software Foundation, Inc.
9635 buildpath='$ac_buildpath'
9637 srcpath='$ac_srcpath'
9638 top_srcdir='$ac_top_srcdir'
9639 top_srcpath='$ac_top_srcpath'
9640 top_builddir='$ac_top_builddir'
9641 top_buildpath='$ac_top_buildpath'
9643 AUTOTEST_PATH='tests'
9645 SHELL=\${CONFIG_SHELL-'$SHELL'}
9649 test x
"$AMDEP_TRUE" != x
"" ||
9650 for mf
in $CONFIG_FILES; do
9652 Makefile
) dirpart
=.
;;
9653 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9656 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9657 # Extract the definition of DEP_FILES from the Makefile without
9659 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9660 test -z "$DEPDIR" && continue
9661 # When using ansi2knr, U may be empty or an underscore; expand it
9662 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9663 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9664 # We invoke sed twice because it is the simplest approach to
9665 # changing $(DEPDIR) to its actual value in the expansion.
9666 for file in `sed -n -e '
9667 /^DEP_FILES = .*\\\\$/ {
9676 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9677 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9678 # Make sure the directory exists.
9679 test -f "$dirpart/$file" && continue
9680 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9681 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9682 # echo "creating $dirpart/$file"
9683 echo '# dummy' > "$dirpart/$file"
9687 default
-2 ) for ac_file
in $CONFIG_FILES; do
9688 # Support "outfile[:infile[:infile...]]"
9690 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9692 # PO directories have a Makefile.in generated from Makefile.in.in.
9693 case "$ac_file" in */Makefile.
in)
9694 # Adjust a relative srcdir.
9695 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9696 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9697 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9698 # In autoconf-2.13 it is called $ac_given_srcdir.
9699 # In autoconf-2.50 it is called $srcdir.
9700 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9701 case "$ac_given_srcdir" in
9702 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9703 /*) top_srcdir
="$ac_given_srcdir" ;;
9704 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9706 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9707 rm -f "$ac_dir/POTFILES"
9708 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9709 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9710 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9711 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9720 cat >>$CONFIG_STATUS <<\_ACEOF
9722 { (exit 0); exit 0; }
9724 chmod +x
$CONFIG_STATUS
9725 ac_clean_files
=$ac_clean_files_save
9727 # configure is writing to config.log, and then calls config.status.
9728 # config.status does its own redirection, appending to config.log.
9729 # Unfortunately, on DOS this fails, as config.log is still kept open
9730 # by configure, so config.status won't be able to write to it; its
9731 # output is simply discarded. So we exec the FD to /dev/null,
9732 # effectively closing config.log, so it can be properly (re)opened and
9733 # appended to by config.status. When coming back to configure, we
9734 # need to make the FD available again.
9735 if test "$no_create" != yes; then
9738 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9741 # would make configure fail if this is the last instruction.
9742 $ac_cs_success || { (exit 1); exit 1; }