2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52e for GNU Bison 1.30a.
5 # Report bugs to <bug-bison@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
30 # Name of the executable.
31 as_me
=`(basename "$0") 2>/dev/null ||
32 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33 X"$0" : 'X\(//\)$' \| \
34 X"$0" : 'X\(/\)$' \| \
35 . : '\(.\)' 2>/dev/null ||
37 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
38 /^X\/\(\/\/\)$/{ s//\1/; q; }
39 /^X\/\(\/\).*/{ s//\1/; q; }
42 # Rewrite early, but we need PATH_SEPARATOR.
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! $SHELL" >conftest.sh
46 echo "exit 0" >>conftest.sh
48 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
59 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
60 test "x$as_lineno_1" != "x$as_lineno_2" &&
61 test "x$as_lineno_3" = "x$as_lineno_2"
63 # Find who we are. Look in the path if we contain no path at all
66 *[\\/]* ) as_myself
=$0 ;;
67 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
71 test -z "$as_dir" && as_dir
=.
72 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
77 # We did not find ourselves, most probably we were run as `sh COMMAND'
78 # in which case we are not to be found in the path.
79 if test "x$as_myself" = x
; then
82 if test ! -f "$as_myself"; then
83 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
84 { (exit 1); exit 1; }; }
88 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
89 for as_dir
in /bin
:/usr
/bin
:$PATH
92 test -z "$as_dir" && as_dir
=.
93 for as_base
in sh bash ksh sh5
; do
96 if ("$as_dir/$as_base" -c '{
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2"
102 }') 2>/dev
/null
; then
103 CONFIG_SHELL
=$as_dir/$as_base
105 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
112 if test ! -f "$as_me.lineno" ||
113 test x
`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \
114 != x
"$as_me.lineno"; then
115 # Be sure to write the pattern so that it doesn't replace itself:
116 # it must not match itself.
118 /[$]LINENO/ { printf "%d:", NR }
121 sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \
123 chmod +x
$as_me.lineno
126 # Don't try to exec as it changes $[0], causing all sort of problems
127 # (the dirname of $[0] is not the place where we might find the
128 # original and so on. Autoconf is especially sensible to this).
130 # Exit status is that of the last command.
134 # Avoid depending upon Character Ranges.
135 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
136 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
137 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
138 as_cr_digits
='0123456789'
139 as_cr_alnum
=$as_cr_Letters$as_cr_digits
141 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
142 *c
*,-n*) ECHO_N
= ECHO_C
='
144 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
145 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
148 if expr a
: '\(a\)' >/dev
/null
2>&1; then
154 rm -f conf$$ conf$$.exe conf$$.
file
156 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
157 # We could just check for DJGPP; but this test a) works b) is more generic
158 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
159 if test -f conf$$.exe
; then
160 # Don't use ln at all; we don't have any links
165 elif ln conf$$.
file conf$$
2>/dev
/null
; then
170 rm -f conf$$ conf$$.exe conf$$.
file
172 as_executable_p
="test -f"
174 # Sed expression to map a string onto a valid CPP name.
175 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
177 # Sed expression to map a string onto a valid variable name.
178 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
180 # Support unset when possible.
181 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
188 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
189 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
190 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
191 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
192 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
193 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
194 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
195 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
198 # We need space, tab and new line, in precisely that order.
204 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
207 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
208 # so uname gets run too.
209 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
216 ac_default_prefix
=/usr
/local
221 SHELL
=${CONFIG_SHELL-/bin/sh}
223 # Maximum number of lines to put in a shell here document.
224 # This variable seems obsolete. It should probably be removed, and
225 # only ac_max_sed_lines should be used.
226 : ${ac_max_here_lines=38}
228 # Factoring default headers for most tests.
229 ac_includes_default
="\
232 # include <sys/types.h>
235 # include <sys/stat.h>
246 # if !STDC_HEADERS && HAVE_MEMORY_H
252 # include <strings.h>
255 # include <inttypes.h>
265 # Initialize some variables set by options.
267 ac_init_version
=false
268 # The variables have the same names as the options, with
269 # dashes changed to underlines.
277 program_transform_name
=s
,x
,x
,
285 # Installation directory options.
286 # These are left unexpanded so users can "make install exec_prefix=/foo"
287 # and all the variables that are supposed to be based on exec_prefix
288 # by default will actually change.
289 # Use braces instead of parens because sh, perl, etc. also accept them.
290 bindir
='${exec_prefix}/bin'
291 sbindir
='${exec_prefix}/sbin'
292 libexecdir
='${exec_prefix}/libexec'
293 datadir
='${prefix}/share'
294 sysconfdir
='${prefix}/etc'
295 sharedstatedir
='${prefix}/com'
296 localstatedir
='${prefix}/var'
297 libdir
='${exec_prefix}/lib'
298 includedir
='${prefix}/include'
299 oldincludedir
='/usr/include'
300 infodir
='${prefix}/info'
301 mandir
='${prefix}/man'
303 # Identity of this package.
304 PACKAGE_NAME
='GNU Bison'
305 PACKAGE_TARNAME
='bison'
306 PACKAGE_VERSION
='1.30a'
307 PACKAGE_STRING
='GNU Bison 1.30a'
308 PACKAGE_BUGREPORT
='bug-bison@gnu.org'
313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
320 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
322 # Accept the important Cygnus configure options, so we can diagnose typos.
326 -bindir | --bindir | --bindi | --bind | --bin | --bi)
328 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
331 -build | --build | --buil | --bui | --bu)
332 ac_prev
=build_alias
;;
333 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
334 build_alias
=$ac_optarg ;;
336 -cache-file | --cache-file | --cache-fil | --cache-fi \
337 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
338 ac_prev
=cache_file
;;
339 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
340 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
341 cache_file
=$ac_optarg ;;
344 cache_file
=config.cache
;;
346 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
348 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
350 datadir
=$ac_optarg ;;
352 -disable-* | --disable-*)
353 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
354 # Reject names that are not valid shell variable names.
355 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
356 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
357 { (exit 1); exit 1; }; }
358 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
359 eval "enable_$ac_feature=no" ;;
361 -enable-* | --enable-*)
362 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
363 # Reject names that are not valid shell variable names.
364 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
365 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
366 { (exit 1); exit 1; }; }
367 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
369 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
372 eval "enable_$ac_feature='$ac_optarg'" ;;
374 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376 | --exec | --exe | --ex)
377 ac_prev
=exec_prefix
;;
378 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380 | --exec=* | --exe=* | --ex=*)
381 exec_prefix
=$ac_optarg ;;
383 -gas | --gas | --ga | --g)
384 # Obsolete; use --with-gas.
387 -help | --help | --hel | --he | -h)
389 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
390 ac_init_help
=recursive
;;
391 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
392 ac_init_help
=short
;;
394 -host | --host | --hos | --ho)
395 ac_prev
=host_alias
;;
396 -host=* | --host=* | --hos=* | --ho=*)
397 host_alias
=$ac_optarg ;;
399 -includedir | --includedir | --includedi | --included | --include \
400 | --includ | --inclu | --incl | --inc)
401 ac_prev
=includedir
;;
402 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
403 | --includ=* | --inclu=* | --incl=* | --inc=*)
404 includedir
=$ac_optarg ;;
406 -infodir | --infodir | --infodi | --infod | --info | --inf)
408 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
409 infodir
=$ac_optarg ;;
411 -libdir | --libdir | --libdi | --libd)
413 -libdir=* | --libdir=* | --libdi=* | --libd=*)
416 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
417 | --libexe | --libex | --libe)
418 ac_prev
=libexecdir
;;
419 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
420 | --libexe=* | --libex=* | --libe=*)
421 libexecdir
=$ac_optarg ;;
423 -localstatedir | --localstatedir | --localstatedi | --localstated \
424 | --localstate | --localstat | --localsta | --localst \
425 | --locals | --local | --loca | --loc | --lo)
426 ac_prev
=localstatedir
;;
427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
428 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
429 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
430 localstatedir
=$ac_optarg ;;
432 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
434 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
438 # Obsolete; use --without-fp.
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
449 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
450 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
451 | --oldin | --oldi | --old | --ol | --o)
452 ac_prev
=oldincludedir
;;
453 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
454 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
455 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
456 oldincludedir
=$ac_optarg ;;
458 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
460 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
463 -program-prefix | --program-prefix | --program-prefi | --program-pref \
464 | --program-pre | --program-pr | --program-p)
465 ac_prev
=program_prefix
;;
466 -program-prefix=* | --program-prefix=* | --program-prefi=* \
467 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
468 program_prefix
=$ac_optarg ;;
470 -program-suffix | --program-suffix | --program-suffi | --program-suff \
471 | --program-suf | --program-su | --program-s)
472 ac_prev
=program_suffix
;;
473 -program-suffix=* | --program-suffix=* | --program-suffi=* \
474 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
475 program_suffix
=$ac_optarg ;;
477 -program-transform-name | --program-transform-name \
478 | --program-transform-nam | --program-transform-na \
479 | --program-transform-n | --program-transform- \
480 | --program-transform | --program-transfor \
481 | --program-transfo | --program-transf \
482 | --program-trans | --program-tran \
483 | --progr-tra | --program-tr | --program-t)
484 ac_prev
=program_transform_name
;;
485 -program-transform-name=* | --program-transform-name=* \
486 | --program-transform-nam=* | --program-transform-na=* \
487 | --program-transform-n=* | --program-transform-=* \
488 | --program-transform=* | --program-transfor=* \
489 | --program-transfo=* | --program-transf=* \
490 | --program-trans=* | --program-tran=* \
491 | --progr-tra=* | --program-tr=* | --program-t=*)
492 program_transform_name
=$ac_optarg ;;
494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
495 | -silent | --silent | --silen | --sile | --sil)
498 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
500 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
502 sbindir
=$ac_optarg ;;
504 -sharedstatedir | --sharedstatedir | --sharedstatedi \
505 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
506 | --sharedst | --shareds | --shared | --share | --shar \
508 ac_prev
=sharedstatedir
;;
509 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
510 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
511 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
513 sharedstatedir
=$ac_optarg ;;
515 -site | --site | --sit)
517 -site=* | --site=* | --sit=*)
520 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
522 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
525 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
526 | --syscon | --sysco | --sysc | --sys | --sy)
527 ac_prev
=sysconfdir
;;
528 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
529 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
530 sysconfdir
=$ac_optarg ;;
532 -target | --target | --targe | --targ | --tar | --ta | --t)
533 ac_prev
=target_alias
;;
534 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
535 target_alias
=$ac_optarg ;;
537 -v | -verbose | --verbose | --verbos | --verbo | --verb)
540 -version | --version | --versio | --versi | --vers | -V)
544 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
547 { echo "$as_me: error: invalid package name: $ac_package" >&2
548 { (exit 1); exit 1; }; }
549 ac_package
=`echo $ac_package| sed 's/-/_/g'`
551 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
554 eval "with_$ac_package='$ac_optarg'" ;;
556 -without-* | --without-*)
557 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
560 { echo "$as_me: error: invalid package name: $ac_package" >&2
561 { (exit 1); exit 1; }; }
562 ac_package
=`echo $ac_package | sed 's/-/_/g'`
563 eval "with_$ac_package=no" ;;
566 # Obsolete; use --with-x.
569 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
570 | --x-incl | --x-inc | --x-in | --x-i)
571 ac_prev
=x_includes
;;
572 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
573 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
574 x_includes
=$ac_optarg ;;
576 -x-libraries | --x-libraries | --x-librarie | --x-librari \
577 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
578 ac_prev
=x_libraries
;;
579 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
580 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
581 x_libraries
=$ac_optarg ;;
583 -*) { echo "$as_me: error: unrecognized option: $ac_option
584 Try \`$0 --help' for more information." >&2
585 { (exit 1); exit 1; }; }
589 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
593 { (exit 1); exit 1; }; }
594 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
595 eval "$ac_envvar='$ac_optarg'"
599 # FIXME: should be removed in autoconf 3.0.
600 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
601 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
602 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
603 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609 if test -n "$ac_prev"; then
610 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
611 { echo "$as_me: error: missing argument to $ac_option" >&2
612 { (exit 1); exit 1; }; }
615 # Be sure to have absolute paths.
616 for ac_var
in exec_prefix prefix
618 eval ac_val
=$
`echo $ac_var`
620 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
621 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
622 { (exit 1); exit 1; }; };;
626 # Be sure to have absolute paths.
627 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
628 localstatedir libdir includedir oldincludedir infodir mandir
630 eval ac_val
=$
`echo $ac_var`
632 [\\/$
]* | ?
:[\\/]* ) ;;
633 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
634 { (exit 1); exit 1; }; };;
638 # There might be people who depend on the old broken behavior: `$host'
639 # used to hold the argument of --host etc.
644 # FIXME: should be removed in autoconf 3.0.
645 if test "x$host_alias" != x
; then
646 if test "x$build_alias" = x
; then
647 cross_compiling
=maybe
648 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
649 If a cross compiler is detected then cross compile mode will be used." >&2
650 elif test "x$build_alias" != "x$host_alias"; then
656 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
658 test "$silent" = yes && exec 6>/dev
/null
660 # Find the source files, if location was not specified.
661 if test -z "$srcdir"; then
662 ac_srcdir_defaulted
=yes
663 # Try the directory containing this script, then its parent.
664 ac_confdir
=`(dirname "$0") 2>/dev/null ||
665 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
666 X"$0" : 'X\(//\)[^/]' \| \
667 X"$0" : 'X\(//\)$' \| \
668 X"$0" : 'X\(/\)' \| \
669 . : '\(.\)' 2>/dev/null ||
671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
673 /^X\(\/\/\)$/{ s//\1/; q; }
674 /^X\(\/\).*/{ s//\1/; q; }
677 if test ! -r $srcdir/$ac_unique_file; then
681 ac_srcdir_defaulted
=no
683 if test ! -r $srcdir/$ac_unique_file; then
684 if test "$ac_srcdir_defaulted" = yes; then
685 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
686 { (exit 1); exit 1; }; }
688 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
689 { (exit 1); exit 1; }; }
692 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
693 ac_env_build_alias_set
=${build_alias+set}
694 ac_env_build_alias_value
=$build_alias
695 ac_cv_env_build_alias_set
=${build_alias+set}
696 ac_cv_env_build_alias_value
=$build_alias
697 ac_env_host_alias_set
=${host_alias+set}
698 ac_env_host_alias_value
=$host_alias
699 ac_cv_env_host_alias_set
=${host_alias+set}
700 ac_cv_env_host_alias_value
=$host_alias
701 ac_env_target_alias_set
=${target_alias+set}
702 ac_env_target_alias_value
=$target_alias
703 ac_cv_env_target_alias_set
=${target_alias+set}
704 ac_cv_env_target_alias_value
=$target_alias
705 ac_env_CC_set
=${CC+set}
707 ac_cv_env_CC_set
=${CC+set}
708 ac_cv_env_CC_value
=$CC
709 ac_env_CFLAGS_set
=${CFLAGS+set}
710 ac_env_CFLAGS_value
=$CFLAGS
711 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
712 ac_cv_env_CFLAGS_value
=$CFLAGS
713 ac_env_LDFLAGS_set
=${LDFLAGS+set}
714 ac_env_LDFLAGS_value
=$LDFLAGS
715 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
716 ac_cv_env_LDFLAGS_value
=$LDFLAGS
717 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
718 ac_env_CPPFLAGS_value
=$CPPFLAGS
719 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
720 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
721 ac_env_CPP_set
=${CPP+set}
722 ac_env_CPP_value
=$CPP
723 ac_cv_env_CPP_set
=${CPP+set}
724 ac_cv_env_CPP_value
=$CPP
727 # Report the --help message.
729 if test "$ac_init_help" = "long"; then
730 # Omit some internal or obsolete options to make the list less imposing.
731 # This message is too long to be a string in the A/UX 3.1 sh.
733 \`configure' configures GNU Bison 1.30a to adapt to many kinds of systems.
735 Usage: $0 [OPTION]... [VAR=VALUE]...
737 To assign environment variables (e.g., CC, CFLAGS...), specify them as
738 VAR=VALUE. See below for descriptions of some of the useful variables.
740 Defaults for the options are specified in brackets.
743 -h, --help display this help and exit
744 --help=short display options specific to this package
745 --help=recursive display the short help of all the included packages
746 -V, --version display version information and exit
747 -q, --quiet, --silent do not print \`checking...' messages
748 --cache-file=FILE cache test results in FILE [disabled]
749 -C, --config-cache alias for \`--cache-file=config.cache'
750 -n, --no-create do not create output files
751 --srcdir=DIR find the sources in DIR [configure dir or \`..']
756 Installation directories:
757 --prefix=PREFIX install architecture-independent files in PREFIX
759 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
762 By default, \`make install' will install all the files in
763 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
764 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
765 for instance \`--prefix=\$HOME'.
767 For better control, use the options below.
769 Fine tuning of the installation directories:
770 --bindir=DIR user executables [EPREFIX/bin]
771 --sbindir=DIR system admin executables [EPREFIX/sbin]
772 --libexecdir=DIR program executables [EPREFIX/libexec]
773 --datadir=DIR read-only architecture-independent data [PREFIX/share]
774 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
775 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
776 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
777 --libdir=DIR object code libraries [EPREFIX/lib]
778 --includedir=DIR C header files [PREFIX/include]
779 --oldincludedir=DIR C header files for non-gcc [/usr/include]
780 --infodir=DIR info documentation [PREFIX/info]
781 --mandir=DIR man documentation [PREFIX/man]
787 --program-prefix=PREFIX prepend PREFIX to installed program names
788 --program-suffix=SUFFIX append SUFFIX to installed program names
789 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
792 --build=BUILD configure
for building on BUILD
[guessed
]
793 --host=HOST build programs to run on HOST
[BUILD
]
797 if test -n "$ac_init_help"; then
798 case $ac_init_help in
799 short
| recursive
) echo "Configuration of GNU Bison 1.30a:";;
804 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
805 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
806 --disable-dependency-tracking Speeds up one
-time builds
807 --enable-dependency-tracking Do not reject slow dependency extractors
808 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
809 --disable-nls do not use Native Language Support
812 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
813 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
814 --with-dmalloc use dmalloc
, as
in
815 http
://www.dmalloc.com
/dmalloc.
tar.gz
816 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
817 --with-included-gettext use the GNU
gettext library included here
819 Some influential environment variables
:
820 CC C compiler
command
821 CFLAGS C compiler flags
822 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
823 nonstandard directory
<lib dir
>
824 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
825 headers
in a nonstandard directory
<include dir
>
828 Use these variables to override the choices made by
`configure' or to help
829 it to find libraries and programs with nonstandard names/locations.
831 Report bugs to <bug-bison@gnu.org>.
835 if test "$ac_init_help" = "recursive"; then
836 # If there are subdirs, report their specific --help.
838 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
839 test -d $ac_dir || continue
842 if test "$ac_dir" != .; then
843 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
844 # A "../" for each directory in $ac_dir_suffix.
845 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
847 ac_dir_suffix= ac_top_builddir=
851 .) # No --srcdir option. We are building in place.
853 if test -z "$ac_top_builddir"; then
856 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
858 [\\/]* | ?:[\\/]* ) # Absolute path.
859 ac_srcdir=$srcdir$ac_dir_suffix;
860 ac_top_srcdir=$srcdir ;;
862 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
863 ac_top_srcdir=$ac_top_builddir$srcdir ;;
865 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
867 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
868 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
869 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
870 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
873 # Check for guested configure; otherwise get Cygnus style configure.
874 if test -f $ac_srcdir/configure.gnu; then
876 $SHELL $ac_srcdir/configure.gnu --help=recursive
877 elif test -f $ac_srcdir/configure; then
879 $SHELL $ac_srcdir/configure --help=recursive
880 elif test -f $ac_srcdir/configure.ac ||
881 test -f $ac_srcdir/configure.in; then
885 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
891 test -n "$ac_init_help" && exit 0
892 if $ac_init_version; then
894 GNU Bison configure 1.30a
895 generated by GNU Autoconf 2.52e
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
909 It was created by GNU Bison $as_me 1.30a, which was
910 generated by GNU Autoconf 2.52e. Invocation command line was
921 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
922 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
923 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
924 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
925 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
927 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
928 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
930 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
931 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
932 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
933 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
934 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
935 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
936 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
944 test -z "$as_dir" && as_dir=.
958 # Keep a trace of the command line.
959 # Strip out --no-create and --no-recursion so they do not pile up.
960 # Also quote any args containing shell meta-characters.
966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967 | --no-cr | --no-c) ;;
968 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
969 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
970 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
971 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
972 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
974 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
977 # Get rid of the leading space.
980 # When interrupted or exit'd, cleanup temporary files, and complete
981 # config.log. We remove comments because anyway the quotes in there
982 # would cause problems or look ugly.
983 # WARNING: Be sure not to use single quotes in there, as some shells,
984 # such as our DU 5.0 friend, will then `close
' the trap.
986 # Save into config.log some information that might help in debugging.
990 ## ---------------- ##
991 ## Cache variables. ##
992 ## ---------------- ##
995 # The following way of writing the cache mishandles newlines in values,
998 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1001 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1006 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1011 if test -s confdefs.h
; then
1018 sed "/^$/d" confdefs.h
1021 test "$ac_signal" != 0 &&
1022 echo "$as_me: caught signal $ac_signal"
1023 echo "$as_me: exit $exit_status"
1025 rm -rf conftest
* confdefs
* core core.
* *.core conf$$
* $ac_clean_files &&
1028 for ac_signal in 1 2 13 15; do
1029 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1034 rm -rf conftest* confdefs.h
1035 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1038 # Let the site file select an alternate cache file if it wants to.
1039 # Prefer explicitly selected file to automatically selected ones.
1040 if test -z "$CONFIG_SITE"; then
1041 if test "x$prefix" != xNONE; then
1042 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1044 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1047 for ac_site_file in $CONFIG_SITE; do
1048 if test -r "$ac_site_file"; then
1049 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1050 echo "$as_me: loading site script $ac_site_file" >&6;}
1051 sed 's
/^
/| /' "$ac_site_file" >&5
1056 if test -r "$cache_file"; then
1057 # Some versions of bash will fail to source /dev/null (special
1058 # files actually), so we avoid doing that.
1059 if test -f "$cache_file"; then
1060 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1061 echo "$as_me: loading cache $cache_file" >&6;}
1063 [\\/]* | ?:[\\/]* ) . $cache_file;;
1064 *) . ./$cache_file;;
1068 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1069 echo "$as_me: creating cache $cache_file" >&6;}
1073 # Check that the precious variables saved in the cache have kept the same
1075 ac_cache_corrupted=false
1076 for ac_var in `(set) 2>&1 |
1077 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1078 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1079 eval ac_new_set=\$ac_env_${ac_var}_set
1080 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1081 eval ac_new_val="\$ac_env_${ac_var}_value"
1082 case $ac_old_set,$ac_new_set in
1084 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1085 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1086 ac_cache_corrupted=: ;;
1088 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1089 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1090 ac_cache_corrupted=: ;;
1093 if test "x$ac_old_val" != "x$ac_new_val"; then
1094 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1095 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1096 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1097 echo "$as_me: former value: $ac_old_val" >&2;}
1098 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1099 echo "$as_me: current value: $ac_new_val" >&2;}
1100 ac_cache_corrupted=:
1103 # Pass precious variables to config.status. It doesn't matter if
1104 # we pass some twice (in addition to the command line arguments).
1105 if test "$ac_new_set" = set; then
1107 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1108 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1109 ac_configure_args="$ac_configure_args '$ac_arg'"
1111 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1116 if $ac_cache_corrupted; then
1117 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1118 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1119 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1120 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1121 { (exit 1); exit 1; }; }
1125 ac_cpp='$CPP $CPPFLAGS'
1126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1127 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1131 for ac_dir in config $srcdir/config; do
1132 if test -f $ac_dir/install-sh; then
1134 ac_install_sh="$ac_aux_dir/install-sh -c"
1136 elif test -f $ac_dir/install.sh; then
1138 ac_install_sh="$ac_aux_dir/install.sh -c"
1140 elif test -f $ac_dir/shtool; then
1142 ac_install_sh="$ac_aux_dir/shtool install -c"
1146 if test -z "$ac_aux_dir"; then
1147 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1148 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1149 { (exit 1); exit 1; }; }
1151 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1152 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1153 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1155 # Find a good install program. We prefer a C program (faster),
1156 # so one script is as good as another. But avoid the broken or
1157 # incompatible versions:
1158 # SysV /etc/install, /usr/sbin/install
1159 # SunOS /usr/etc/install
1160 # IRIX /sbin/install
1162 # AmigaOS /C/install, which installs bootblocks on floppy discs
1163 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1164 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1165 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1166 # ./install, which can be erroneously created by make from ./install.sh.
1167 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1168 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1169 if test -z "$INSTALL"; then
1170 if test "${ac_cv_path_install+set}" = set; then
1171 echo $ECHO_N "(cached) $ECHO_C" >&6
1173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1177 test -z "$as_dir" && as_dir
=.
1178 # Account for people who put trailing slashes in PATH elements.
1180 .
/ | .
// | /cC
/* | \
1181 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1184 # OSF1 and SCO ODT 3.0 have their own names for install.
1185 # Don't use installbsd from OSF since it installs stuff as root
1187 for ac_prog
in ginstall scoinst
install; do
1188 for ac_exec_ext
in '' $ac_executable_extensions; do
1189 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1190 if test $ac_prog = install &&
1191 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1192 # AIX install. It has an incompatible calling convention.
1194 elif test $ac_prog = install &&
1195 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1196 # program-specific install script used by HP pwplus--don't use.
1199 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1210 if test "${ac_cv_path_install+set}" = set; then
1211 INSTALL
=$ac_cv_path_install
1213 # As a last resort, use the slow shell script. We don't cache a
1214 # path for INSTALL within a source directory, because that will
1215 # break other packages using the cache if that directory is
1216 # removed, or if the path is relative.
1217 INSTALL
=$ac_install_sh
1220 echo "$as_me:$LINENO: result: $INSTALL" >&5
1221 echo "${ECHO_T}$INSTALL" >&6
1223 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1224 # It thinks the first close brace ends the variable substitution.
1225 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1227 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1229 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1231 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1232 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1235 echo timestamp
> conftest.
file
1236 # Do `set' in a subshell so we don't clobber the current shell's
1237 # arguments. Must try -L first in case configure is actually a
1238 # symlink; some systems play weird games with the mod time of symlinks
1239 # (eg FreeBSD returns the mod time of the symlink's containing
1242 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1243 if test "$*" = "X"; then
1245 set X
`ls -t $srcdir/configure conftest.file`
1248 if test "$*" != "X $srcdir/configure conftest.file" \
1249 && test "$*" != "X conftest.file $srcdir/configure"; then
1251 # If neither matched, then we have a broken ls. This can happen
1252 # if, for instance, CONFIG_SHELL is bash and it inherits a
1253 # broken ls alias from the environment. This has actually
1254 # happened. Such a system could not be considered "sane".
1255 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1256 alias in your environment" >&5
1257 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1258 alias in your environment" >&2;}
1259 { (exit 1); exit 1; }; }
1262 test "$2" = conftest.
file
1268 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1269 Check your system clock" >&5
1270 echo "$as_me: error: newly created file is older than distributed files!
1271 Check your system clock" >&2;}
1272 { (exit 1); exit 1; }; }
1274 echo "$as_me:$LINENO: result: yes" >&5
1275 echo "${ECHO_T}yes" >&6
1276 test "$program_prefix" != NONE
&&
1277 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1278 # Use a double $ so make ignores it.
1279 test "$program_suffix" != NONE
&&
1280 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1281 # Double any \ or $. echo might interpret backslashes.
1282 # By default was `s,x,x', remove it if useless.
1283 cat <<\_ACEOF
>conftest.
sed
1284 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1286 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1289 # expand $ac_aux_dir to an absolute path
1290 am_aux_dir
=`cd $ac_aux_dir && pwd`
1292 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1293 # Use eval to expand $SHELL
1294 if eval "$MISSING --run true"; then
1295 am_missing_run
="$MISSING --run "
1299 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1300 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1303 for ac_prog
in gawk mawk nawk
awk
1305 # Extract the first word of "$ac_prog", so it can be a program name with args.
1306 set dummy
$ac_prog; ac_word
=$2
1307 echo "$as_me:$LINENO: checking for $ac_word" >&5
1308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1309 if test "${ac_cv_prog_AWK+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 if test -n "$AWK"; then
1313 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1319 test -z "$as_dir" && as_dir
=.
1320 for ac_exec_ext
in '' $ac_executable_extensions; do
1321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1322 ac_cv_prog_AWK
="$ac_prog"
1323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1332 if test -n "$AWK"; then
1333 echo "$as_me:$LINENO: result: $AWK" >&5
1334 echo "${ECHO_T}$AWK" >&6
1336 echo "$as_me:$LINENO: result: no" >&5
1337 echo "${ECHO_T}no" >&6
1340 test -n "$AWK" && break
1343 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1344 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1345 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1346 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1349 cat >conftest.
make <<\_ACEOF
1351 @
echo 'ac_maketemp="${MAKE}"'
1353 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1354 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1355 if test -n "$ac_maketemp"; then
1356 eval ac_cv_prog_make_
${ac_make}_set
=yes
1358 eval ac_cv_prog_make_
${ac_make}_set
=no
1362 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1363 echo "$as_me:$LINENO: result: yes" >&5
1364 echo "${ECHO_T}yes" >&6
1367 echo "$as_me:$LINENO: result: no" >&5
1368 echo "${ECHO_T}no" >&6
1369 SET_MAKE
="MAKE=${MAKE-make}"
1372 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1373 if test "${enable_dependency_tracking+set}" = set; then
1374 enableval
="$enable_dependency_tracking"
1377 if test "x$enable_dependency_tracking" != xno
; then
1378 am_depcomp
="$ac_aux_dir/depcomp"
1382 if test "x$enable_dependency_tracking" != xno; then
1390 rm -f .deps
2>/dev
/null
1391 mkdir .deps
2>/dev
/null
1392 if test -d .deps
; then
1395 # MS-DOS does not allow filenames that begin with a dot.
1398 rmdir .deps
2>/dev
/null
1400 # test to see if srcdir already configured
1401 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1402 test -f $srcdir/config.status
; then
1403 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1404 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1405 { (exit 1); exit 1; }; }
1408 # Define the identity of the package.
1412 cat >>confdefs.h
<<_ACEOF
1413 #define PACKAGE "$PACKAGE"
1416 cat >>confdefs.h
<<_ACEOF
1417 #define VERSION "$VERSION"
1420 # Some tools Automake needs.
1422 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1424 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1426 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1428 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1430 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1432 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1434 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1436 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1438 # We need awk for the "check" target. The system "awk" is bad on
1441 # Add the stamp file to the list of files AC keeps track of,
1442 # along with our hook.
1443 ac_config_headers
="$ac_config_headers config.h:config.hin"
1445 # Initialize the test suite.
1446 ac_config_commands
="$ac_config_commands tests/package.m4"
1448 ac_config_commands
="$ac_config_commands tests/atconfig"
1450 ac_config_files
="$ac_config_files tests/bison"
1452 ac_config_files
="$ac_config_files tests/Makefile tests/atlocal"
1454 # Needed by tests/atlocal.in.
1456 # Checks for programs.
1458 ac_cpp
='$CPP $CPPFLAGS'
1459 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1462 if test -n "$ac_tool_prefix"; then
1463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1464 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC
="$CC" # Let the user override the test.
1473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir
=.
1478 for ac_exec_ext
in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 if test -n "$CC"; then
1491 echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1499 if test -z "$ac_cv_prog_CC"; then
1501 # Extract the first word of "gcc", so it can be a program name with args.
1502 set dummy gcc
; ac_word
=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir
=.
1516 for ac_exec_ext
in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_ac_ct_CC
="gcc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1541 if test -z "$CC"; then
1542 if test -n "$ac_tool_prefix"; then
1543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1544 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 if test -n "$CC"; then
1551 ac_cv_prog_CC
="$CC" # Let the user override the test.
1553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1557 test -z "$as_dir" && as_dir
=.
1558 for ac_exec_ext
in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 if test -n "$CC"; then
1571 echo "$as_me:$LINENO: result: $CC" >&5
1572 echo "${ECHO_T}$CC" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1579 if test -z "$ac_cv_prog_CC"; then
1581 # Extract the first word of "cc", so it can be a program name with args.
1582 set dummy cc
; ac_word
=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 if test -n "$ac_ct_CC"; then
1589 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1595 test -z "$as_dir" && as_dir
=.
1596 for ac_exec_ext
in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_ac_ct_CC
="cc"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1608 if test -n "$ac_ct_CC"; then
1609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1610 echo "${ECHO_T}$ac_ct_CC" >&6
1612 echo "$as_me:$LINENO: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1622 if test -z "$CC"; then
1623 # Extract the first word of "cc", so it can be a program name with args.
1624 set dummy cc
; ac_word
=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC
="$CC" # Let the user override the test.
1634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir
=.
1639 for ac_exec_ext
in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1642 ac_prog_rejected
=yes
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 if test $ac_prog_rejected = yes; then
1653 # We found a bogon in the path, so make sure we never use it.
1654 set dummy
$ac_cv_prog_CC
1656 if test $# != 0; then
1657 # We chose a different compiler from the bogus one.
1658 # However, it has the same basename, so the bogon will be chosen
1659 # first if we set CC to just the basename; use the full file name.
1661 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1669 if test -n "$CC"; then
1670 echo "$as_me:$LINENO: result: $CC" >&5
1671 echo "${ECHO_T}$CC" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1678 if test -z "$CC"; then
1679 if test -n "$ac_tool_prefix"; then
1682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1683 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1684 echo "$as_me:$LINENO: checking for $ac_word" >&5
1685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686 if test "${ac_cv_prog_CC+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 if test -n "$CC"; then
1690 ac_cv_prog_CC
="$CC" # Let the user override the test.
1692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1696 test -z "$as_dir" && as_dir
=.
1697 for ac_exec_ext
in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 if test -n "$CC"; then
1710 echo "$as_me:$LINENO: result: $CC" >&5
1711 echo "${ECHO_T}$CC" >&6
1713 echo "$as_me:$LINENO: result: no" >&5
1714 echo "${ECHO_T}no" >&6
1717 test -n "$CC" && break
1720 if test -z "$CC"; then
1724 # Extract the first word of "$ac_prog", so it can be a program name with args.
1725 set dummy
$ac_prog; ac_word
=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 if test -n "$ac_ct_CC"; then
1732 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1738 test -z "$as_dir" && as_dir
=.
1739 for ac_exec_ext
in '' $ac_executable_extensions; do
1740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741 ac_cv_prog_ac_ct_CC
="$ac_prog"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1751 if test -n "$ac_ct_CC"; then
1752 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1753 echo "${ECHO_T}$ac_ct_CC" >&6
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1759 test -n "$ac_ct_CC" && break
1767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1768 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1769 { (exit 1); exit 1; }; }
1771 # Provide some information about the compiler.
1772 echo "$as_me:$LINENO:" \
1773 "checking for C compiler version" >&5
1774 ac_compiler
=`set X $ac_compile; echo $2`
1775 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1776 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }
1780 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1781 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784 (exit $ac_status); }
1785 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1786 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }
1791 cat >conftest.
$ac_ext <<_ACEOF
1792 #line $LINENO "configure"
1793 #include "confdefs.h"
1795 #ifdef F77_DUMMY_MAIN
1799 int F77_DUMMY_MAIN() { return 1; }
1809 ac_clean_files_save
=$ac_clean_files
1810 ac_clean_files
="$ac_clean_files a.out a.exe"
1811 # Try to create an executable without -o first, disregard a.out.
1812 # It will help us diagnose broken compilers, and finding out an intuition
1814 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1815 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1816 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1818 (eval $ac_link_default) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 # Find the output, starting from the most likely. This scheme is
1823 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1826 ls a.out conftest 2>/dev/null;
1827 ls a.* conftest.* 2>/dev/null`; do
1829 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1830 a.out
) # We found the default executable, but exeext='' is most
1833 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1834 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1841 echo "$as_me: failed program was:" >&5
1842 cat conftest.
$ac_ext >&5
1843 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1844 echo "$as_me: error: C compiler cannot create executables" >&2;}
1845 { (exit 77); exit 77; }; }
1848 ac_exeext
=$ac_cv_exeext
1849 echo "$as_me:$LINENO: result: $ac_file" >&5
1850 echo "${ECHO_T}$ac_file" >&6
1852 # Check the compiler produces executables we can run. If not, either
1853 # the compiler is broken, or we cross compile.
1854 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1855 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1856 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1857 # If not cross compiling, check that we can run a simple program.
1858 if test "$cross_compiling" != yes; then
1859 if { ac_try
='./$ac_file'
1860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }; }; then
1867 if test "$cross_compiling" = maybe
; then
1870 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1871 If you meant to cross compile, use \`--host'." >&5
1872 echo "$as_me: error: cannot run C compiled programs.
1873 If you meant to cross compile, use \`--host'." >&2;}
1874 { (exit 1); exit 1; }; }
1878 echo "$as_me:$LINENO: result: yes" >&5
1879 echo "${ECHO_T}yes" >&6
1881 rm -f a.out a.exe conftest
$ac_cv_exeext
1882 ac_clean_files
=$ac_clean_files_save
1883 # Check the compiler produces executables we can run. If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1886 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1887 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1888 echo "${ECHO_T}$cross_compiling" >&6
1890 echo "$as_me:$LINENO: checking for executable suffix" >&5
1891 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1893 (eval $ac_link) 2>&5
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; then
1897 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1898 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1899 # work properly (i.e., refer to `conftest.exe'), while it won't with
1901 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1903 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1904 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1911 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1912 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1913 { (exit 1); exit 1; }; }
1916 rm -f conftest
$ac_cv_exeext
1917 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1918 echo "${ECHO_T}$ac_cv_exeext" >&6
1920 rm -f conftest.
$ac_ext
1921 EXEEXT
=$ac_cv_exeext
1923 echo "$as_me:$LINENO: checking for object suffix" >&5
1924 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1925 if test "${ac_cv_objext+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 cat >conftest.
$ac_ext <<_ACEOF
1929 #line $LINENO "configure"
1930 #include "confdefs.h"
1932 #ifdef F77_DUMMY_MAIN
1936 int F77_DUMMY_MAIN() { return 1; }
1946 rm -f conftest.o conftest.obj
1947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1948 (eval $ac_compile) 2>&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; then
1952 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1954 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1955 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1960 echo "$as_me: failed program was:" >&5
1961 cat conftest.
$ac_ext >&5
1962 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1963 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1964 { (exit 1); exit 1; }; }
1967 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1969 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1970 echo "${ECHO_T}$ac_cv_objext" >&6
1971 OBJEXT
=$ac_cv_objext
1973 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1974 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1975 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 cat >conftest.
$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1980 #include "confdefs.h"
1982 #ifdef F77_DUMMY_MAIN
1986 int F77_DUMMY_MAIN() { return 1; }
1999 rm -f conftest.
$ac_objext
2000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); } &&
2005 { ac_try
='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2013 echo "$as_me: failed program was:" >&5
2014 cat conftest.
$ac_ext >&5
2017 rm -f conftest.
$ac_objext conftest.
$ac_ext
2018 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2021 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2024 ac_test_CFLAGS
=${CFLAGS+set}
2025 ac_save_CFLAGS
=$CFLAGS
2027 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029 if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 cat >conftest.
$ac_ext <<_ACEOF
2033 #line $LINENO "configure"
2034 #include "confdefs.h"
2036 #ifdef F77_DUMMY_MAIN
2040 int F77_DUMMY_MAIN() { return 1; }
2050 rm -f conftest.
$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try
='test -s conftest.$ac_objext'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; }; then
2064 echo "$as_me: failed program was:" >&5
2065 cat conftest.
$ac_ext >&5
2068 rm -f conftest.
$ac_objext conftest.
$ac_ext
2070 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2071 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2072 if test "$ac_test_CFLAGS" = set; then
2073 CFLAGS
=$ac_save_CFLAGS
2074 elif test $ac_cv_prog_cc_g = yes; then
2075 if test "$GCC" = yes; then
2081 if test "$GCC" = yes; then
2087 # Some people use a C++ compiler to compile C. Since we use `exit',
2088 # in C++ we need to declare it. In case someone uses the same compiler
2089 # for both compiling C and C++ we need to have the C++ compiler decide
2090 # the declaration of exit, since it's the most demanding environment.
2091 cat >conftest.
$ac_ext <<_ACEOF
2096 rm -f conftest.
$ac_objext
2097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2098 (eval $ac_compile) 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
2102 { ac_try
='test -s conftest.$ac_objext'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; }; then
2108 for ac_declaration
in \
2110 '#include <stdlib.h>' \
2111 'extern "C" void std::exit (int) throw (); using std::exit;' \
2112 'extern "C" void std::exit (int); using std::exit;' \
2113 'extern "C" void exit (int) throw ();' \
2114 'extern "C" void exit (int);' \
2117 cat >conftest.
$ac_ext <<_ACEOF
2118 #line $LINENO "configure"
2119 #include "confdefs.h"
2122 #ifdef F77_DUMMY_MAIN
2126 int F77_DUMMY_MAIN() { return 1; }
2136 rm -f conftest.
$ac_objext
2137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138 (eval $ac_compile) 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); } &&
2142 { ac_try
='test -s conftest.$ac_objext'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
2150 echo "$as_me: failed program was:" >&5
2151 cat conftest.
$ac_ext >&5
2154 rm -f conftest.
$ac_objext conftest.
$ac_ext
2155 cat >conftest.
$ac_ext <<_ACEOF
2156 #line $LINENO "configure"
2157 #include "confdefs.h"
2159 #ifdef F77_DUMMY_MAIN
2163 int F77_DUMMY_MAIN() { return 1; }
2173 rm -f conftest.
$ac_objext
2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try
='test -s conftest.$ac_objext'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2187 echo "$as_me: failed program was:" >&5
2188 cat conftest.
$ac_ext >&5
2190 rm -f conftest.
$ac_objext conftest.
$ac_ext
2193 if test -n "$ac_declaration"; then
2194 echo '#ifdef __cplusplus' >>confdefs.h
2195 echo $ac_declaration >>confdefs.h
2196 echo '#endif' >>confdefs.h
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.
$ac_ext >&5
2203 rm -f conftest.
$ac_objext conftest.
$ac_ext
2205 ac_cpp
='$CPP $CPPFLAGS'
2206 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2209 ac_config_commands
="$ac_config_commands depfiles"
2211 am_make
=${MAKE-make}
2212 cat > confinc
<< 'END'
2216 # If we don't find an include directive, just comment out the code.
2217 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2218 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2222 # First try GNU make style include.
2223 echo "include confinc" > confmf
2224 # We grep out `Entering directory' and `Leaving directory'
2225 # messages which can occur if `w' ends up in MAKEFLAGS.
2226 # In particular we don't look at `^make:' because GNU make might
2227 # be invoked under some other name (usually "gmake"), in which
2228 # case it prints its new name instead of `make'.
2229 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2234 # Now try BSD make style include.
2235 if test "$am__include" = "#"; then
2236 echo '.include "confinc"' > confmf
2237 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2238 am__include
=.include
2244 echo "$as_me:$LINENO: result: $_am_result" >&5
2245 echo "${ECHO_T}$_am_result" >&6
2246 rm -f confinc confmf
2248 depcc
="$CC" am_compiler_list
=
2250 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2251 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2252 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2256 # We make a subdir and do the tests there. Otherwise we can end up
2257 # making bogus files that we don't know about and never remove. For
2258 # instance it was reported that on HP-UX the gcc test will end up
2259 # making a dummy file named `D' -- because `-MD' means `put the output
2262 # Copy depcomp to subdir because otherwise we won't find it if we're
2263 # using a relative directory.
2264 cp "$am_depcomp" conftest.dir
2267 am_cv_CC_dependencies_compiler_type
=none
2268 if test "$am_compiler_list" = ""; then
2269 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2271 for depmode
in $am_compiler_list; do
2272 # We need to recreate these files for each test, as the compiler may
2273 # overwrite some of them when testing with obscure command lines.
2274 # This happens at least with the AIX C compiler.
2275 echo '#include "conftest.h"' > conftest.c
2276 echo 'int i;' > conftest.h
2277 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2281 # after this tag, mechanisms are not by side-effect, so they'll
2282 # only be used when explicitly requested
2283 if test "x$enable_dependency_tracking" = xyes
; then
2291 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2292 # mode. It turns out that the SunPro C++ compiler does not properly
2293 # handle `-M -o', and we need to detect this.
2294 if depmode
=$depmode \
2295 source=conftest.c object
=conftest.o \
2296 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2297 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2298 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2299 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2300 am_cv_CC_dependencies_compiler_type
=$depmode
2308 am_cv_CC_dependencies_compiler_type
=none
2312 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2313 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2314 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2317 ac_cpp
='$CPP $CPPFLAGS'
2318 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2321 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2322 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2323 # On Suns, sometimes $CPP names a directory.
2324 if test -n "$CPP" && test -d "$CPP"; then
2327 if test -z "$CPP"; then
2328 if test "${ac_cv_prog_CPP+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 # Double quotes because CPP needs to be expanded
2332 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2335 for ac_c_preproc_warn_flag
in '' yes
2337 # Use a header file that comes with gcc, so configuring glibc
2338 # with a fresh cross-compiler works.
2339 # On the NeXT, cc -E runs the code through the compiler's parser,
2340 # not just through cpp. "Syntax error" is here to catch this case.
2341 cat >conftest.
$ac_ext <<_ACEOF
2342 #line $LINENO "configure"
2343 #include "confdefs.h"
2347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2350 egrep -v '^ *\+' conftest.er1
>conftest.err
2352 cat conftest.err
>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev
/null
; then
2355 if test -s conftest.err
; then
2356 ac_cpp_err
=$ac_c_preproc_warn_flag
2363 if test -z "$ac_cpp_err"; then
2366 echo "$as_me: failed program was:" >&5
2367 cat conftest.
$ac_ext >&5
2368 # Broken: fails on valid input.
2371 rm -f conftest.err conftest.
$ac_ext
2373 # OK, works on sane cases. Now check whether non-existent headers
2374 # can be detected and how.
2375 cat >conftest.
$ac_ext <<_ACEOF
2376 #line $LINENO "configure"
2377 #include "confdefs.h"
2378 #include <ac_nonexistent.h>
2380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2381 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2383 egrep -v '^ *\+' conftest.er1
>conftest.err
2385 cat conftest.err
>&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } >/dev
/null
; then
2388 if test -s conftest.err
; then
2389 ac_cpp_err
=$ac_c_preproc_warn_flag
2396 if test -z "$ac_cpp_err"; then
2397 # Broken: success on invalid input.
2400 echo "$as_me: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2402 # Passes both tests.
2406 rm -f conftest.err conftest.
$ac_ext
2409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2410 rm -f conftest.err conftest.
$ac_ext
2411 if $ac_preproc_ok; then
2423 echo "$as_me:$LINENO: result: $CPP" >&5
2424 echo "${ECHO_T}$CPP" >&6
2426 for ac_c_preproc_warn_flag
in '' yes
2428 # Use a header file that comes with gcc, so configuring glibc
2429 # with a fresh cross-compiler works.
2430 # On the NeXT, cc -E runs the code through the compiler's parser,
2431 # not just through cpp. "Syntax error" is here to catch this case.
2432 cat >conftest.
$ac_ext <<_ACEOF
2433 #line $LINENO "configure"
2434 #include "confdefs.h"
2438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2439 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2441 egrep -v '^ *\+' conftest.er1
>conftest.err
2443 cat conftest.err
>&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } >/dev
/null
; then
2446 if test -s conftest.err
; then
2447 ac_cpp_err
=$ac_c_preproc_warn_flag
2454 if test -z "$ac_cpp_err"; then
2457 echo "$as_me: failed program was:" >&5
2458 cat conftest.
$ac_ext >&5
2459 # Broken: fails on valid input.
2462 rm -f conftest.err conftest.
$ac_ext
2464 # OK, works on sane cases. Now check whether non-existent headers
2465 # can be detected and how.
2466 cat >conftest.
$ac_ext <<_ACEOF
2467 #line $LINENO "configure"
2468 #include "confdefs.h"
2469 #include <ac_nonexistent.h>
2471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2472 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2474 egrep -v '^ *\+' conftest.er1
>conftest.err
2476 cat conftest.err
>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } >/dev
/null
; then
2479 if test -s conftest.err
; then
2480 ac_cpp_err
=$ac_c_preproc_warn_flag
2487 if test -z "$ac_cpp_err"; then
2488 # Broken: success on invalid input.
2491 echo "$as_me: failed program was:" >&5
2492 cat conftest.
$ac_ext >&5
2493 # Passes both tests.
2497 rm -f conftest.err conftest.
$ac_ext
2500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2501 rm -f conftest.err conftest.
$ac_ext
2502 if $ac_preproc_ok; then
2505 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2506 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2507 { (exit 1); exit 1; }; }
2511 ac_cpp
='$CPP $CPPFLAGS'
2512 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2516 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2517 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2518 if test "${ac_cv_header_stdc+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 cat >conftest.
$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2523 #include "confdefs.h"
2530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2533 egrep -v '^ *\+' conftest.er1
>conftest.err
2535 cat conftest.err
>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } >/dev
/null
; then
2538 if test -s conftest.err
; then
2539 ac_cpp_err
=$ac_c_preproc_warn_flag
2546 if test -z "$ac_cpp_err"; then
2547 ac_cv_header_stdc
=yes
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2551 ac_cv_header_stdc
=no
2553 rm -f conftest.err conftest.
$ac_ext
2555 if test $ac_cv_header_stdc = yes; then
2556 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2557 cat >conftest.
$ac_ext <<_ACEOF
2558 #line $LINENO "configure"
2559 #include "confdefs.h"
2563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2564 egrep "memchr" >/dev
/null
2>&1; then
2567 ac_cv_header_stdc
=no
2573 if test $ac_cv_header_stdc = yes; then
2574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2575 cat >conftest.
$ac_ext <<_ACEOF
2576 #line $LINENO "configure"
2577 #include "confdefs.h"
2581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2582 egrep "free" >/dev
/null
2>&1; then
2585 ac_cv_header_stdc
=no
2591 if test $ac_cv_header_stdc = yes; then
2592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2593 if test "$cross_compiling" = yes; then
2596 cat >conftest.
$ac_ext <<_ACEOF
2597 #line $LINENO "configure"
2598 #include "confdefs.h"
2600 #if ((' ' & 0x0FF) == 0x020)
2601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2604 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2605 || ('j' <= (c) && (c) <= 'r') \
2606 || ('s' <= (c) && (c) <= 'z'))
2607 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2610 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2615 for (i = 0; i < 256; i++)
2616 if (XOR (islower (i), ISLOWER (i))
2617 || toupper (i) != TOUPPER (i))
2622 rm -f conftest
$ac_exeext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2624 (eval $ac_link) 2>&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2635 echo "$as_me: program exited with status $ac_status" >&5
2636 echo "$as_me: failed program was:" >&5
2637 cat conftest.
$ac_ext >&5
2639 ac_cv_header_stdc
=no
2641 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2645 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2646 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2647 if test $ac_cv_header_stdc = yes; then
2649 cat >>confdefs.h
<<\_ACEOF
2650 #define STDC_HEADERS 1
2655 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2657 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2658 inttypes.h stdint.h unistd.h
2660 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2661 echo "$as_me:$LINENO: checking for $ac_header" >&5
2662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 cat >conftest.
$ac_ext <<_ACEOF
2667 #line $LINENO "configure"
2668 #include "confdefs.h"
2669 $ac_includes_default
2671 #include <$ac_header>
2673 rm -f conftest.
$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try
='test -s conftest.$ac_objext'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2685 eval "$as_ac_Header=yes"
2687 echo "$as_me: failed program was:" >&5
2688 cat conftest.
$ac_ext >&5
2689 eval "$as_ac_Header=no"
2691 rm -f conftest.
$ac_objext conftest.
$ac_ext
2693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2696 cat >>confdefs.h
<<_ACEOF
2697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2704 if test "${ac_cv_header_minix_config_h+set}" = set; then
2705 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2706 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2707 if test "${ac_cv_header_minix_config_h+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2711 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2713 # Is the header compilable?
2714 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2715 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2716 cat >conftest.
$ac_ext <<_ACEOF
2717 #line $LINENO "configure"
2718 #include "confdefs.h"
2719 $ac_includes_default
2720 #include <minix/config.h>
2722 rm -f conftest.
$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try
='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 ac_header_compiler
=yes
2736 echo "$as_me: failed program was:" >&5
2737 cat conftest.
$ac_ext >&5
2738 ac_header_compiler
=no
2740 rm -f conftest.
$ac_objext conftest.
$ac_ext
2741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2742 echo "${ECHO_T}$ac_header_compiler" >&6
2744 # Is the header present?
2745 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2746 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2747 cat >conftest.
$ac_ext <<_ACEOF
2748 #line $LINENO "configure"
2749 #include "confdefs.h"
2750 #include <minix/config.h>
2752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2753 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2755 egrep -v '^ *\+' conftest.er1
>conftest.err
2757 cat conftest.err
>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } >/dev
/null
; then
2760 if test -s conftest.err
; then
2761 ac_cpp_err
=$ac_c_preproc_warn_flag
2768 if test -z "$ac_cpp_err"; then
2769 ac_header_preproc
=yes
2771 echo "$as_me: failed program was:" >&5
2772 cat conftest.
$ac_ext >&5
2773 ac_header_preproc
=no
2775 rm -f conftest.err conftest.
$ac_ext
2776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2777 echo "${ECHO_T}$ac_header_preproc" >&6
2779 # So? What about this header?
2780 case $ac_header_compiler:$ac_header_preproc in
2782 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2783 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2784 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2785 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2787 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2788 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2789 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2790 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2791 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2792 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2794 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2795 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2796 if test "${ac_cv_header_minix_config_h+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 ac_cv_header_minix_config_h
=$ac_header_preproc
2801 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2802 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2805 if test $ac_cv_header_minix_config_h = yes; then
2811 if test "$MINIX" = yes; then
2813 cat >>confdefs.h
<<\_ACEOF
2814 #define _POSIX_SOURCE 1
2817 cat >>confdefs.h
<<\_ACEOF
2818 #define _POSIX_1_SOURCE 2
2821 cat >>confdefs.h
<<\_ACEOF
2827 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2828 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2829 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 ac_check_lib_save_LIBS
=$LIBS
2833 LIBS
="-lcposix $LIBS"
2834 cat >conftest.
$ac_ext <<_ACEOF
2835 #line $LINENO "configure"
2836 #include "confdefs.h"
2838 /* Override any gcc2 internal prototype to avoid an error. */
2842 /* We use char because int might match the return type of a gcc2
2843 builtin and then its argument prototype would still apply. */
2845 #ifdef F77_DUMMY_MAIN
2849 int F77_DUMMY_MAIN() { return 1; }
2859 rm -f conftest.
$ac_objext conftest
$ac_exeext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2861 (eval $ac_link) 2>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try
='test -s conftest$ac_exeext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 ac_cv_lib_cposix_strerror
=yes
2873 echo "$as_me: failed program was:" >&5
2874 cat conftest.
$ac_ext >&5
2875 ac_cv_lib_cposix_strerror
=no
2877 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2878 LIBS
=$ac_check_lib_save_LIBS
2880 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2881 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2882 if test $ac_cv_lib_cposix_strerror = yes; then
2883 LIBS
="$LIBS -lcposix"
2886 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2887 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2888 if test "${am_cv_prog_cc_stdc+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 am_cv_prog_cc_stdc
=no
2893 # Don't try gcc -ansi; that turns off useful extensions and
2894 # breaks some systems' header files.
2895 # AIX -qlanglvl=ansi
2896 # Ultrix and OSF/1 -std1
2897 # HP-UX 10.20 and later -Ae
2898 # HP-UX older versions -Aa -D_HPUX_SOURCE
2899 # SVR4 -Xc -D__EXTENSIONS__
2900 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2902 CC
="$ac_save_CC $ac_arg"
2903 cat >conftest.
$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 #include "confdefs.h"
2908 #include <sys/types.h>
2909 #include <sys/stat.h>
2910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2911 struct buf { int x; };
2912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2913 static char *e (p, i)
2919 static char *f (char * (*g) (char **, int), char **p, ...)
2924 s = g (p, va_arg (v,int));
2928 int test (int i, double x);
2929 struct s1 {int (*f) (int a);};
2930 struct s2 {int (*f) (double a);};
2931 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2935 #ifdef F77_DUMMY_MAIN
2939 int F77_DUMMY_MAIN() { return 1; }
2945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2951 rm -f conftest.
$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953 (eval $ac_compile) 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try
='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 am_cv_prog_cc_stdc
="$ac_arg"; break
2965 echo "$as_me: failed program was:" >&5
2966 cat conftest.
$ac_ext >&5
2968 rm -f conftest.
$ac_objext conftest.
$ac_ext
2974 if test -z "$am_cv_prog_cc_stdc"; then
2975 echo "$as_me:$LINENO: result: none needed" >&5
2976 echo "${ECHO_T}none needed" >&6
2978 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2979 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2981 case "x$am_cv_prog_cc_stdc" in
2983 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2988 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2989 echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2991 if test "${ac_cv_prog_RANLIB+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 if test -n "$RANLIB"; then
2995 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir
=.
3002 for ac_exec_ext
in '' $ac_executable_extensions; do
3003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 RANLIB
=$ac_cv_prog_RANLIB
3014 if test -n "$RANLIB"; then
3015 echo "$as_me:$LINENO: result: $RANLIB" >&5
3016 echo "${ECHO_T}$RANLIB" >&6
3018 echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3023 if test -z "$ac_cv_prog_RANLIB"; then
3024 ac_ct_RANLIB
=$RANLIB
3025 # Extract the first word of "ranlib", so it can be a program name with args.
3026 set dummy ranlib
; ac_word
=$2
3027 echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3029 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 if test -n "$ac_ct_RANLIB"; then
3033 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir
=.
3040 for ac_exec_ext
in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3052 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3053 if test -n "$ac_ct_RANLIB"; then
3054 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3055 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3057 echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6
3061 RANLIB
=$ac_ct_RANLIB
3063 RANLIB
="$ac_cv_prog_RANLIB"
3066 AUTOM4TE
=${AUTOM4TE-"${am_missing_run}autom4te"}
3068 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3069 if test "${enable_gcc_warnings+set}" = set; then
3070 enableval
="$enable_gcc_warnings"
3071 case "${enableval}" in
3073 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3074 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3075 { (exit 1); exit 1; }; } ;;
3080 if test "${enableval}" = yes; then
3081 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3082 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3084 ac_save_CFLAGS
="$CFLAGS"
3085 CFLAGS
="$CFLAGS -Wall"
3086 cat >conftest.
$ac_ext <<_ACEOF
3087 #line $LINENO "configure"
3088 #include "confdefs.h"
3090 #ifdef F77_DUMMY_MAIN
3094 int F77_DUMMY_MAIN() { return 1; }
3104 rm -f conftest.
$ac_objext
3105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3106 (eval $ac_compile) 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try
='test -s conftest.$ac_objext'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3117 echo "$as_me:$LINENO: result: yes" >&5
3118 echo "${ECHO_T}yes" >&6
3120 echo "$as_me: failed program was:" >&5
3121 cat conftest.
$ac_ext >&5
3122 echo "$as_me:$LINENO: result: no" >&5
3123 echo "${ECHO_T}no" >&6
3125 rm -f conftest.
$ac_objext conftest.
$ac_ext
3126 CFLAGS
="$ac_save_CFLAGS"
3127 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3128 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3130 ac_save_CFLAGS
="$CFLAGS"
3132 cat >conftest.
$ac_ext <<_ACEOF
3133 #line $LINENO "configure"
3134 #include "confdefs.h"
3136 #ifdef F77_DUMMY_MAIN
3140 int F77_DUMMY_MAIN() { return 1; }
3150 rm -f conftest.
$ac_objext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 (eval $ac_compile) 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try
='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3163 echo "$as_me:$LINENO: result: yes" >&5
3164 echo "${ECHO_T}yes" >&6
3166 echo "$as_me: failed program was:" >&5
3167 cat conftest.
$ac_ext >&5
3168 echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6
3171 rm -f conftest.
$ac_objext conftest.
$ac_ext
3172 CFLAGS
="$ac_save_CFLAGS"
3173 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3174 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3176 ac_save_CFLAGS
="$CFLAGS"
3177 CFLAGS
="$CFLAGS -Wbad-function-cast"
3178 cat >conftest.
$ac_ext <<_ACEOF
3179 #line $LINENO "configure"
3180 #include "confdefs.h"
3182 #ifdef F77_DUMMY_MAIN
3186 int F77_DUMMY_MAIN() { return 1; }
3196 rm -f conftest.
$ac_objext
3197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198 (eval $ac_compile) 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } &&
3202 { ac_try
='test -s conftest.$ac_objext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3209 echo "$as_me:$LINENO: result: yes" >&5
3210 echo "${ECHO_T}yes" >&6
3212 echo "$as_me: failed program was:" >&5
3213 cat conftest.
$ac_ext >&5
3214 echo "$as_me:$LINENO: result: no" >&5
3215 echo "${ECHO_T}no" >&6
3217 rm -f conftest.
$ac_objext conftest.
$ac_ext
3218 CFLAGS
="$ac_save_CFLAGS"
3219 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3220 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3222 ac_save_CFLAGS
="$CFLAGS"
3223 CFLAGS
="$CFLAGS -Wcast-align"
3224 cat >conftest.
$ac_ext <<_ACEOF
3225 #line $LINENO "configure"
3226 #include "confdefs.h"
3228 #ifdef F77_DUMMY_MAIN
3232 int F77_DUMMY_MAIN() { return 1; }
3242 rm -f conftest.
$ac_objext
3243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3244 (eval $ac_compile) 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } &&
3248 { ac_try
='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3255 echo "$as_me:$LINENO: result: yes" >&5
3256 echo "${ECHO_T}yes" >&6
3258 echo "$as_me: failed program was:" >&5
3259 cat conftest.
$ac_ext >&5
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3263 rm -f conftest.
$ac_objext conftest.
$ac_ext
3264 CFLAGS
="$ac_save_CFLAGS"
3265 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3266 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3268 ac_save_CFLAGS
="$CFLAGS"
3269 CFLAGS
="$CFLAGS -Wcast-qual"
3270 cat >conftest.
$ac_ext <<_ACEOF
3271 #line $LINENO "configure"
3272 #include "confdefs.h"
3274 #ifdef F77_DUMMY_MAIN
3278 int F77_DUMMY_MAIN() { return 1; }
3288 rm -f conftest.
$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 { ac_try
='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3301 echo "$as_me:$LINENO: result: yes" >&5
3302 echo "${ECHO_T}yes" >&6
3304 echo "$as_me: failed program was:" >&5
3305 cat conftest.
$ac_ext >&5
3306 echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3309 rm -f conftest.
$ac_objext conftest.
$ac_ext
3310 CFLAGS
="$ac_save_CFLAGS"
3311 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3312 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3314 ac_save_CFLAGS
="$CFLAGS"
3315 CFLAGS
="$CFLAGS -Wformat"
3316 cat >conftest.
$ac_ext <<_ACEOF
3317 #line $LINENO "configure"
3318 #include "confdefs.h"
3320 #ifdef F77_DUMMY_MAIN
3324 int F77_DUMMY_MAIN() { return 1; }
3334 rm -f conftest.
$ac_objext
3335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try
='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3347 echo "$as_me:$LINENO: result: yes" >&5
3348 echo "${ECHO_T}yes" >&6
3350 echo "$as_me: failed program was:" >&5
3351 cat conftest.
$ac_ext >&5
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3355 rm -f conftest.
$ac_objext conftest.
$ac_ext
3356 CFLAGS
="$ac_save_CFLAGS"
3357 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3358 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3360 ac_save_CFLAGS
="$CFLAGS"
3361 CFLAGS
="$CFLAGS -Wmissing-declarations"
3362 cat >conftest.
$ac_ext <<_ACEOF
3363 #line $LINENO "configure"
3364 #include "confdefs.h"
3366 #ifdef F77_DUMMY_MAIN
3370 int F77_DUMMY_MAIN() { return 1; }
3380 rm -f conftest.
$ac_objext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3382 (eval $ac_compile) 2>&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try
='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3393 echo "$as_me:$LINENO: result: yes" >&5
3394 echo "${ECHO_T}yes" >&6
3396 echo "$as_me: failed program was:" >&5
3397 cat conftest.
$ac_ext >&5
3398 echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3401 rm -f conftest.
$ac_objext conftest.
$ac_ext
3402 CFLAGS
="$ac_save_CFLAGS"
3403 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3404 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3406 ac_save_CFLAGS
="$CFLAGS"
3407 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3408 cat >conftest.
$ac_ext <<_ACEOF
3409 #line $LINENO "configure"
3410 #include "confdefs.h"
3412 #ifdef F77_DUMMY_MAIN
3416 int F77_DUMMY_MAIN() { return 1; }
3426 rm -f conftest.
$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try
='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3439 echo "$as_me:$LINENO: result: yes" >&5
3440 echo "${ECHO_T}yes" >&6
3442 echo "$as_me: failed program was:" >&5
3443 cat conftest.
$ac_ext >&5
3444 echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3447 rm -f conftest.
$ac_objext conftest.
$ac_ext
3448 CFLAGS
="$ac_save_CFLAGS"
3449 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3450 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3452 ac_save_CFLAGS
="$CFLAGS"
3453 CFLAGS
="$CFLAGS -Wnested-externs"
3454 cat >conftest.
$ac_ext <<_ACEOF
3455 #line $LINENO "configure"
3456 #include "confdefs.h"
3458 #ifdef F77_DUMMY_MAIN
3462 int F77_DUMMY_MAIN() { return 1; }
3472 rm -f conftest.
$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } &&
3478 { ac_try
='test -s conftest.$ac_objext'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3485 echo "$as_me:$LINENO: result: yes" >&5
3486 echo "${ECHO_T}yes" >&6
3488 echo "$as_me: failed program was:" >&5
3489 cat conftest.
$ac_ext >&5
3490 echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3493 rm -f conftest.
$ac_objext conftest.
$ac_ext
3494 CFLAGS
="$ac_save_CFLAGS"
3495 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3496 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3498 ac_save_CFLAGS
="$CFLAGS"
3499 CFLAGS
="$CFLAGS -Wshadow"
3500 cat >conftest.
$ac_ext <<_ACEOF
3501 #line $LINENO "configure"
3502 #include "confdefs.h"
3504 #ifdef F77_DUMMY_MAIN
3508 int F77_DUMMY_MAIN() { return 1; }
3518 rm -f conftest.
$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try
='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3531 echo "$as_me:$LINENO: result: yes" >&5
3532 echo "${ECHO_T}yes" >&6
3534 echo "$as_me: failed program was:" >&5
3535 cat conftest.
$ac_ext >&5
3536 echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3539 rm -f conftest.
$ac_objext conftest.
$ac_ext
3540 CFLAGS
="$ac_save_CFLAGS"
3541 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3542 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3544 ac_save_CFLAGS
="$CFLAGS"
3545 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3546 cat >conftest.
$ac_ext <<_ACEOF
3547 #line $LINENO "configure"
3548 #include "confdefs.h"
3550 #ifdef F77_DUMMY_MAIN
3554 int F77_DUMMY_MAIN() { return 1; }
3564 rm -f conftest.
$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try
='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3577 echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6
3580 echo "$as_me: failed program was:" >&5
3581 cat conftest.
$ac_ext >&5
3582 echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3585 rm -f conftest.
$ac_objext conftest.
$ac_ext
3586 CFLAGS
="$ac_save_CFLAGS"
3587 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3588 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3590 ac_save_CFLAGS
="$CFLAGS"
3591 CFLAGS
="$CFLAGS -Wwrite-strings"
3592 cat >conftest.
$ac_ext <<_ACEOF
3593 #line $LINENO "configure"
3594 #include "confdefs.h"
3596 #ifdef F77_DUMMY_MAIN
3600 int F77_DUMMY_MAIN() { return 1; }
3610 rm -f conftest.
$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try
='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3623 echo "$as_me:$LINENO: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6
3626 echo "$as_me: failed program was:" >&5
3627 cat conftest.
$ac_ext >&5
3628 echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6
3631 rm -f conftest.
$ac_objext conftest.
$ac_ext
3632 CFLAGS
="$ac_save_CFLAGS"
3633 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3636 # Checks for libraries.
3638 cat >>confdefs.h
<<\_ACEOF
3639 #define _GNU_SOURCE 1
3642 # Checks for header files.
3643 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3644 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3645 if test "${ac_cv_header_stdc+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 cat >conftest.
$ac_ext <<_ACEOF
3649 #line $LINENO "configure"
3650 #include "confdefs.h"
3657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3660 egrep -v '^ *\+' conftest.er1
>conftest.err
3662 cat conftest.err
>&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } >/dev
/null
; then
3665 if test -s conftest.err
; then
3666 ac_cpp_err
=$ac_c_preproc_warn_flag
3673 if test -z "$ac_cpp_err"; then
3674 ac_cv_header_stdc
=yes
3676 echo "$as_me: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3678 ac_cv_header_stdc
=no
3680 rm -f conftest.err conftest.
$ac_ext
3682 if test $ac_cv_header_stdc = yes; then
3683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3684 cat >conftest.
$ac_ext <<_ACEOF
3685 #line $LINENO "configure"
3686 #include "confdefs.h"
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 egrep "memchr" >/dev
/null
2>&1; then
3694 ac_cv_header_stdc
=no
3700 if test $ac_cv_header_stdc = yes; then
3701 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3702 cat >conftest.
$ac_ext <<_ACEOF
3703 #line $LINENO "configure"
3704 #include "confdefs.h"
3708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3709 egrep "free" >/dev
/null
2>&1; then
3712 ac_cv_header_stdc
=no
3718 if test $ac_cv_header_stdc = yes; then
3719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3720 if test "$cross_compiling" = yes; then
3723 cat >conftest.
$ac_ext <<_ACEOF
3724 #line $LINENO "configure"
3725 #include "confdefs.h"
3727 #if ((' ' & 0x0FF) == 0x020)
3728 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3729 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3731 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3732 || ('j' <= (c) && (c) <= 'r') \
3733 || ('s' <= (c) && (c) <= 'z'))
3734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3742 for (i = 0; i < 256; i++)
3743 if (XOR (islower (i), ISLOWER (i))
3744 || toupper (i) != TOUPPER (i))
3749 rm -f conftest
$ac_exeext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3751 (eval $ac_link) 2>&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3762 echo "$as_me: program exited with status $ac_status" >&5
3763 echo "$as_me: failed program was:" >&5
3764 cat conftest.
$ac_ext >&5
3766 ac_cv_header_stdc
=no
3768 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3772 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3773 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3774 if test $ac_cv_header_stdc = yes; then
3776 cat >>confdefs.h
<<\_ACEOF
3777 #define STDC_HEADERS 1
3782 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3784 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786 echo "$as_me:$LINENO: checking for $ac_header" >&5
3787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 # Is the header compilable?
3795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3797 cat >conftest.
$ac_ext <<_ACEOF
3798 #line $LINENO "configure"
3799 #include "confdefs.h"
3800 $ac_includes_default
3801 #include <$ac_header>
3803 rm -f conftest.
$ac_objext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3805 (eval $ac_compile) 2>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try
='test -s conftest.$ac_objext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_header_compiler
=yes
3817 echo "$as_me: failed program was:" >&5
3818 cat conftest.
$ac_ext >&5
3819 ac_header_compiler
=no
3821 rm -f conftest.
$ac_objext conftest.
$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3823 echo "${ECHO_T}$ac_header_compiler" >&6
3825 # Is the header present?
3826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3828 cat >conftest.
$ac_ext <<_ACEOF
3829 #line $LINENO "configure"
3830 #include "confdefs.h"
3831 #include <$ac_header>
3833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3836 egrep -v '^ *\+' conftest.er1
>conftest.err
3838 cat conftest.err
>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev
/null
; then
3841 if test -s conftest.err
; then
3842 ac_cpp_err
=$ac_c_preproc_warn_flag
3849 if test -z "$ac_cpp_err"; then
3850 ac_header_preproc
=yes
3852 echo "$as_me: failed program was:" >&5
3853 cat conftest.
$ac_ext >&5
3854 ac_header_preproc
=no
3856 rm -f conftest.err conftest.
$ac_ext
3857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3858 echo "${ECHO_T}$ac_header_preproc" >&6
3860 # So? What about this header?
3861 case $ac_header_compiler:$ac_header_preproc in
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3875 echo "$as_me:$LINENO: checking for $ac_header" >&5
3876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 eval "$as_ac_Header=$ac_header_preproc"
3882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3887 cat >>confdefs.h
<<_ACEOF
3888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3895 # Checks for typedefs.
3897 # Checks for structures.
3899 # Checks for compiler characteristics.
3900 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3901 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3902 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 ac_cv_prog_cc_stdc
=no
3907 cat >conftest.
$ac_ext <<_ACEOF
3908 #line $LINENO "configure"
3909 #include "confdefs.h"
3912 #include <sys/types.h>
3913 #include <sys/stat.h>
3914 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3915 struct buf { int x; };
3916 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3917 static char *e (p, i)
3923 static char *f (char * (*g) (char **, int), char **p, ...)
3928 s = g (p, va_arg (v,int));
3932 int test (int i, double x);
3933 struct s1 {int (*f) (int a);};
3934 struct s2 {int (*f) (double a);};
3935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3938 #ifdef F77_DUMMY_MAIN
3942 int F77_DUMMY_MAIN() { return 1; }
3947 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3952 # Don't try gcc -ansi; that turns off useful extensions and
3953 # breaks some systems' header files.
3954 # AIX -qlanglvl=ansi
3955 # Ultrix and OSF/1 -std1
3956 # HP-UX 10.20 and later -Ae
3957 # HP-UX older versions -Aa -D_HPUX_SOURCE
3958 # SVR4 -Xc -D__EXTENSIONS__
3959 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3961 CC
="$ac_save_CC $ac_arg"
3962 rm -f conftest.
$ac_objext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try
='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 ac_cv_prog_cc_stdc
=$ac_arg
3977 echo "$as_me: failed program was:" >&5
3978 cat conftest.
$ac_ext >&5
3980 rm -f conftest.
$ac_objext
3982 rm -f conftest.
$ac_ext conftest.
$ac_objext
3987 case "x$ac_cv_prog_cc_stdc" in
3989 echo "$as_me:$LINENO: result: none needed" >&5
3990 echo "${ECHO_T}none needed" >&6 ;;
3992 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3993 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3994 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3997 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3998 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3999 if test "${ac_cv_c_const+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 cat >conftest.
$ac_ext <<_ACEOF
4003 #line $LINENO "configure"
4004 #include "confdefs.h"
4006 #ifdef F77_DUMMY_MAIN
4010 int F77_DUMMY_MAIN() { return 1; }
4015 /* FIXME: Include the comments suggested by Paul. */
4017 /* Ultrix mips cc rejects this. */
4018 typedef int charset[2];
4020 /* SunOS 4.1.1 cc rejects this. */
4021 char const *const *ccp;
4023 /* NEC SVR4.0.2 mips cc rejects this. */
4024 struct point {int x, y;};
4025 static struct point const zero = {0,0};
4026 /* AIX XL C 1.02.0.0 rejects this.
4027 It does not let you subtract one const X* pointer from another in
4028 an arm of an if-expression whose if-part is not a constant
4030 const char *g = "string";
4031 ccp = &g + (g ? g-g : 0);
4032 /* HPUX 7.0 cc rejects these. */
4035 ccp = (char const *const *) p;
4036 { /* SCO 3.2v4 cc rejects this. */
4038 char const *s = 0 ? (char *) 0 : (char const *) 0;
4042 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4044 const int *foo = &x[0];
4047 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4048 typedef const int *iptr;
4052 { /* AIX XL C 1.02.0.0 rejects this saying
4053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4054 struct s { int j; const int *ap[3]; };
4055 struct s *b; b->j = 5;
4057 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4066 rm -f conftest.
$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try
='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4080 echo "$as_me: failed program was:" >&5
4081 cat conftest.
$ac_ext >&5
4084 rm -f conftest.
$ac_objext conftest.
$ac_ext
4086 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4087 echo "${ECHO_T}$ac_cv_c_const" >&6
4088 if test $ac_cv_c_const = no
; then
4090 cat >>confdefs.h
<<\_ACEOF
4096 echo "$as_me:$LINENO: checking for inline" >&5
4097 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4098 if test "${ac_cv_c_inline+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 for ac_kw
in inline __inline__ __inline
; do
4103 cat >conftest.
$ac_ext <<_ACEOF
4104 #line $LINENO "configure"
4105 #include "confdefs.h"
4107 static $ac_kw int static_foo () {return 0; }
4108 $ac_kw int foo () {return 0; }
4112 rm -f conftest.
$ac_objext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try
='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_c_inline
=$ac_kw; break
4126 echo "$as_me: failed program was:" >&5
4127 cat conftest.
$ac_ext >&5
4129 rm -f conftest.
$ac_objext conftest.
$ac_ext
4133 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4134 echo "${ECHO_T}$ac_cv_c_inline" >&6
4135 case $ac_cv_c_inline in
4138 cat >>confdefs.h
<<\_ACEOF
4142 *) cat >>confdefs.h
<<_ACEOF
4143 #define inline $ac_cv_c_inline
4148 echo "$as_me:$LINENO: checking for function prototypes" >&5
4149 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4150 if test "$am_cv_prog_cc_stdc" != no
; then
4151 echo "$as_me:$LINENO: result: yes" >&5
4152 echo "${ECHO_T}yes" >&6
4154 cat >>confdefs.h
<<\_ACEOF
4155 #define PROTOTYPES 1
4160 echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4162 U
=_ ANSI2KNR
=.
/ansi2knr
4164 # Ensure some checks needed by ansi2knr itself.
4165 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4166 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4167 if test "${ac_cv_header_stdc+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 cat >conftest.
$ac_ext <<_ACEOF
4171 #line $LINENO "configure"
4172 #include "confdefs.h"
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4182 egrep -v '^ *\+' conftest.er1
>conftest.err
4184 cat conftest.err
>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev
/null
; then
4187 if test -s conftest.err
; then
4188 ac_cpp_err
=$ac_c_preproc_warn_flag
4195 if test -z "$ac_cpp_err"; then
4196 ac_cv_header_stdc
=yes
4198 echo "$as_me: failed program was:" >&5
4199 cat conftest.
$ac_ext >&5
4200 ac_cv_header_stdc
=no
4202 rm -f conftest.err conftest.
$ac_ext
4204 if test $ac_cv_header_stdc = yes; then
4205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4206 cat >conftest.
$ac_ext <<_ACEOF
4207 #line $LINENO "configure"
4208 #include "confdefs.h"
4212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4213 egrep "memchr" >/dev
/null
2>&1; then
4216 ac_cv_header_stdc
=no
4222 if test $ac_cv_header_stdc = yes; then
4223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4224 cat >conftest.
$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4226 #include "confdefs.h"
4230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231 egrep "free" >/dev
/null
2>&1; then
4234 ac_cv_header_stdc
=no
4240 if test $ac_cv_header_stdc = yes; then
4241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4242 if test "$cross_compiling" = yes; then
4245 cat >conftest.
$ac_ext <<_ACEOF
4246 #line $LINENO "configure"
4247 #include "confdefs.h"
4249 #if ((' ' & 0x0FF) == 0x020)
4250 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4251 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4253 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4254 || ('j' <= (c) && (c) <= 'r') \
4255 || ('s' <= (c) && (c) <= 'z'))
4256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4264 for (i = 0; i < 256; i++)
4265 if (XOR (islower (i), ISLOWER (i))
4266 || toupper (i) != TOUPPER (i))
4271 rm -f conftest
$ac_exeext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273 (eval $ac_link) 2>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4284 echo "$as_me: program exited with status $ac_status" >&5
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4288 ac_cv_header_stdc
=no
4290 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4295 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4296 if test $ac_cv_header_stdc = yes; then
4298 cat >>confdefs.h
<<\_ACEOF
4299 #define STDC_HEADERS 1
4304 for ac_header
in string.h
4306 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4308 echo "$as_me:$LINENO: checking for $ac_header" >&5
4309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4316 # Is the header compilable?
4317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4319 cat >conftest.
$ac_ext <<_ACEOF
4320 #line $LINENO "configure"
4321 #include "confdefs.h"
4322 $ac_includes_default
4323 #include <$ac_header>
4325 rm -f conftest.
$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try
='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_header_compiler
=yes
4339 echo "$as_me: failed program was:" >&5
4340 cat conftest.
$ac_ext >&5
4341 ac_header_compiler
=no
4343 rm -f conftest.
$ac_objext conftest.
$ac_ext
4344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4345 echo "${ECHO_T}$ac_header_compiler" >&6
4347 # Is the header present?
4348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4350 cat >conftest.
$ac_ext <<_ACEOF
4351 #line $LINENO "configure"
4352 #include "confdefs.h"
4353 #include <$ac_header>
4355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4356 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4358 egrep -v '^ *\+' conftest.er1
>conftest.err
4360 cat conftest.err
>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } >/dev
/null
; then
4363 if test -s conftest.err
; then
4364 ac_cpp_err
=$ac_c_preproc_warn_flag
4371 if test -z "$ac_cpp_err"; then
4372 ac_header_preproc
=yes
4374 echo "$as_me: failed program was:" >&5
4375 cat conftest.
$ac_ext >&5
4376 ac_header_preproc
=no
4378 rm -f conftest.err conftest.
$ac_ext
4379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4380 echo "${ECHO_T}$ac_header_preproc" >&6
4382 # So? What about this header?
4383 case $ac_header_compiler:$ac_header_preproc in
4385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4397 echo "$as_me:$LINENO: checking for $ac_header" >&5
4398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 eval "$as_ac_Header=$ac_header_preproc"
4404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4409 cat >>confdefs.h
<<_ACEOF
4410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4417 # Checks for library functions.
4418 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4419 # for constant arguments. Useless!
4420 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4421 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4422 if test "${ac_cv_working_alloca_h+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 cat >conftest.
$ac_ext <<_ACEOF
4426 #line $LINENO "configure"
4427 #include "confdefs.h"
4429 #ifdef F77_DUMMY_MAIN
4433 int F77_DUMMY_MAIN() { return 1; }
4438 char *p = (char *) alloca (2 * sizeof (int));
4443 rm -f conftest.
$ac_objext conftest
$ac_exeext
4444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4445 (eval $ac_link) 2>&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } &&
4449 { ac_try
='test -s conftest$ac_exeext'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 ac_cv_working_alloca_h
=yes
4457 echo "$as_me: failed program was:" >&5
4458 cat conftest.
$ac_ext >&5
4459 ac_cv_working_alloca_h
=no
4461 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4463 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4464 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4465 if test $ac_cv_working_alloca_h = yes; then
4467 cat >>confdefs.h
<<\_ACEOF
4468 #define HAVE_ALLOCA_H 1
4473 echo "$as_me:$LINENO: checking for alloca" >&5
4474 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4475 if test "${ac_cv_func_alloca_works+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 cat >conftest.
$ac_ext <<_ACEOF
4479 #line $LINENO "configure"
4480 #include "confdefs.h"
4482 # define alloca __builtin_alloca
4485 # include <malloc.h>
4486 # define alloca _alloca
4489 # include <alloca.h>
4494 # ifndef alloca /* predefined by HP cc +Olibcalls */
4502 #ifdef F77_DUMMY_MAIN
4506 int F77_DUMMY_MAIN() { return 1; }
4511 char *p = (char *) alloca (1);
4516 rm -f conftest.
$ac_objext conftest
$ac_exeext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4518 (eval $ac_link) 2>&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try
='test -s conftest$ac_exeext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_func_alloca_works
=yes
4530 echo "$as_me: failed program was:" >&5
4531 cat conftest.
$ac_ext >&5
4532 ac_cv_func_alloca_works
=no
4534 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4536 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4537 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4539 if test $ac_cv_func_alloca_works = yes; then
4541 cat >>confdefs.h
<<\_ACEOF
4542 #define HAVE_ALLOCA 1
4546 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4547 # that cause trouble. Some versions do not even contain alloca or
4548 # contain a buggy version. If you still want to use their alloca,
4549 # use ar to extract alloca.o from them instead of compiling alloca.c.
4551 ALLOCA
=alloca.
$ac_objext
4553 cat >>confdefs.h
<<\_ACEOF
4557 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4558 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4559 if test "${ac_cv_os_cray+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 cat >conftest.
$ac_ext <<_ACEOF
4563 #line $LINENO "configure"
4564 #include "confdefs.h"
4565 #if defined(CRAY) && ! defined(CRAY2)
4572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4573 egrep "webecray" >/dev
/null
2>&1; then
4581 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4582 echo "${ECHO_T}$ac_cv_os_cray" >&6
4583 if test $ac_cv_os_cray = yes; then
4584 for ac_func
in _getb67 GETB67 getb67
; do
4585 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4586 echo "$as_me:$LINENO: checking for $ac_func" >&5
4587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4588 if eval "test \"\${$as_ac_var+set}\" = set"; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 cat >conftest.
$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4593 #include "confdefs.h"
4594 /* System header to define __stub macros and hopefully few prototypes,
4595 which can conflict with char $ac_func (); below. */
4597 /* Override any gcc2 internal prototype to avoid an error. */
4601 /* We use char because int might match the return type of a gcc2
4602 builtin and then its argument prototype would still apply. */
4606 #ifdef F77_DUMMY_MAIN
4610 int F77_DUMMY_MAIN() { return 1; }
4615 /* The GNU C library defines this for functions which it implements
4616 to always fail with ENOSYS. Some functions are actually named
4617 something starting with __ and the normal name is an alias. */
4618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4628 rm -f conftest.
$ac_objext conftest
$ac_exeext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4630 (eval $ac_link) 2>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try
='test -s conftest$ac_exeext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 eval "$as_ac_var=yes"
4642 echo "$as_me: failed program was:" >&5
4643 cat conftest.
$ac_ext >&5
4644 eval "$as_ac_var=no"
4646 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4650 if test `eval echo '${'$as_ac_var'}'` = yes; then
4652 cat >>confdefs.h
<<_ACEOF
4653 #define CRAY_STACKSEG_END $ac_func
4662 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4663 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4664 if test "${ac_cv_c_stack_direction+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 if test "$cross_compiling" = yes; then
4668 ac_cv_c_stack_direction
=0
4670 cat >conftest.
$ac_ext <<_ACEOF
4671 #line $LINENO "configure"
4672 #include "confdefs.h"
4674 find_stack_direction ()
4676 static char *addr = 0;
4681 return find_stack_direction ();
4684 return (&dummy > addr) ? 1 : -1;
4690 exit (find_stack_direction () < 0);
4693 rm -f conftest
$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695 (eval $ac_link) 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_cv_c_stack_direction
=1
4706 echo "$as_me: program exited with status $ac_status" >&5
4707 echo "$as_me: failed program was:" >&5
4708 cat conftest.
$ac_ext >&5
4710 ac_cv_c_stack_direction
=-1
4712 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4715 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4716 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4718 cat >>confdefs.h
<<_ACEOF
4719 #define STACK_DIRECTION $ac_cv_c_stack_direction
4724 for ac_func
in mkstemp setlocale
4726 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4727 echo "$as_me:$LINENO: checking for $ac_func" >&5
4728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4729 if eval "test \"\${$as_ac_var+set}\" = set"; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 cat >conftest.
$ac_ext <<_ACEOF
4733 #line $LINENO "configure"
4734 #include "confdefs.h"
4735 /* System header to define __stub macros and hopefully few prototypes,
4736 which can conflict with char $ac_func (); below. */
4738 /* Override any gcc2 internal prototype to avoid an error. */
4742 /* We use char because int might match the return type of a gcc2
4743 builtin and then its argument prototype would still apply. */
4747 #ifdef F77_DUMMY_MAIN
4751 int F77_DUMMY_MAIN() { return 1; }
4756 /* The GNU C library defines this for functions which it implements
4757 to always fail with ENOSYS. Some functions are actually named
4758 something starting with __ and the normal name is an alias. */
4759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4769 rm -f conftest.
$ac_objext conftest
$ac_exeext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771 (eval $ac_link) 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } &&
4775 { ac_try
='test -s conftest$ac_exeext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 eval "$as_ac_var=yes"
4783 echo "$as_me: failed program was:" >&5
4784 cat conftest.
$ac_ext >&5
4785 eval "$as_ac_var=no"
4787 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4791 if test `eval echo '${'$as_ac_var'}'` = yes; then
4792 cat >>confdefs.h
<<_ACEOF
4793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4799 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4800 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4801 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 cat >conftest.
$ac_ext <<_ACEOF
4805 #line $LINENO "configure"
4806 #include "confdefs.h"
4807 $ac_includes_default
4808 #ifdef F77_DUMMY_MAIN
4812 int F77_DUMMY_MAIN() { return 1; }
4818 char *p = (char *) stpcpy;
4825 rm -f conftest.
$ac_objext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_cv_have_decl_stpcpy
=yes
4839 echo "$as_me: failed program was:" >&5
4840 cat conftest.
$ac_ext >&5
4841 ac_cv_have_decl_stpcpy
=no
4843 rm -f conftest.
$ac_objext conftest.
$ac_ext
4845 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4846 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4847 if test $ac_cv_have_decl_stpcpy = yes; then
4849 cat >>confdefs.h
<<_ACEOF
4850 #define HAVE_DECL_STPCPY 1
4854 cat >>confdefs.h
<<_ACEOF
4855 #define HAVE_DECL_STPCPY 0
4859 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4860 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4861 if test "${ac_cv_have_decl_strndup+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 cat >conftest.
$ac_ext <<_ACEOF
4865 #line $LINENO "configure"
4866 #include "confdefs.h"
4867 $ac_includes_default
4868 #ifdef F77_DUMMY_MAIN
4872 int F77_DUMMY_MAIN() { return 1; }
4878 char *p = (char *) strndup;
4885 rm -f conftest.
$ac_objext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887 (eval $ac_compile) 2>&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try
='test -s conftest.$ac_objext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_have_decl_strndup
=yes
4899 echo "$as_me: failed program was:" >&5
4900 cat conftest.
$ac_ext >&5
4901 ac_cv_have_decl_strndup
=no
4903 rm -f conftest.
$ac_objext conftest.
$ac_ext
4905 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4906 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4907 if test $ac_cv_have_decl_strndup = yes; then
4909 cat >>confdefs.h
<<_ACEOF
4910 #define HAVE_DECL_STRNDUP 1
4914 cat >>confdefs.h
<<_ACEOF
4915 #define HAVE_DECL_STRNDUP 0
4919 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4920 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4921 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 cat >conftest.
$ac_ext <<_ACEOF
4925 #line $LINENO "configure"
4926 #include "confdefs.h"
4927 $ac_includes_default
4928 #ifdef F77_DUMMY_MAIN
4932 int F77_DUMMY_MAIN() { return 1; }
4938 char *p = (char *) strnlen;
4945 rm -f conftest.
$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try
='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_have_decl_strnlen
=yes
4959 echo "$as_me: failed program was:" >&5
4960 cat conftest.
$ac_ext >&5
4961 ac_cv_have_decl_strnlen
=no
4963 rm -f conftest.
$ac_objext conftest.
$ac_ext
4965 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
4966 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4967 if test $ac_cv_have_decl_strnlen = yes; then
4969 cat >>confdefs.h
<<_ACEOF
4970 #define HAVE_DECL_STRNLEN 1
4974 cat >>confdefs.h
<<_ACEOF
4975 #define HAVE_DECL_STRNLEN 0
4979 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
4980 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4981 if test "${ac_cv_have_decl_memchr+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 cat >conftest.
$ac_ext <<_ACEOF
4985 #line $LINENO "configure"
4986 #include "confdefs.h"
4987 $ac_includes_default
4988 #ifdef F77_DUMMY_MAIN
4992 int F77_DUMMY_MAIN() { return 1; }
4998 char *p = (char *) memchr;
5005 rm -f conftest.
$ac_objext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try
='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 ac_cv_have_decl_memchr
=yes
5019 echo "$as_me: failed program was:" >&5
5020 cat conftest.
$ac_ext >&5
5021 ac_cv_have_decl_memchr
=no
5023 rm -f conftest.
$ac_objext conftest.
$ac_ext
5025 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5026 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5027 if test $ac_cv_have_decl_memchr = yes; then
5029 cat >>confdefs.h
<<_ACEOF
5030 #define HAVE_DECL_MEMCHR 1
5034 cat >>confdefs.h
<<_ACEOF
5035 #define HAVE_DECL_MEMCHR 0
5040 for ac_func
in stpcpy strndup strnlen strspn memchr
5042 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5043 echo "$as_me:$LINENO: checking for $ac_func" >&5
5044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5045 if eval "test \"\${$as_ac_var+set}\" = set"; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 cat >conftest.
$ac_ext <<_ACEOF
5049 #line $LINENO "configure"
5050 #include "confdefs.h"
5051 /* System header to define __stub macros and hopefully few prototypes,
5052 which can conflict with char $ac_func (); below. */
5054 /* Override any gcc2 internal prototype to avoid an error. */
5058 /* We use char because int might match the return type of a gcc2
5059 builtin and then its argument prototype would still apply. */
5063 #ifdef F77_DUMMY_MAIN
5067 int F77_DUMMY_MAIN() { return 1; }
5072 /* The GNU C library defines this for functions which it implements
5073 to always fail with ENOSYS. Some functions are actually named
5074 something starting with __ and the normal name is an alias. */
5075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5085 rm -f conftest.
$ac_objext conftest
$ac_exeext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5087 (eval $ac_link) 2>&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try
='test -s conftest$ac_exeext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 eval "$as_ac_var=yes"
5099 echo "$as_me: failed program was:" >&5
5100 cat conftest.
$ac_ext >&5
5101 eval "$as_ac_var=no"
5103 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5107 if test `eval echo '${'$as_ac_var'}'` = yes; then
5108 cat >>confdefs.h
<<_ACEOF
5109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5113 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5117 cat >>confdefs.h
<<\_ACEOF
5118 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5121 echo "$as_me:$LINENO: checking for working malloc" >&5
5122 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5123 if test "${jm_cv_func_working_malloc+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 if test "$cross_compiling" = yes; then
5127 jm_cv_func_working_malloc
=no
5129 cat >conftest.
$ac_ext <<_ACEOF
5130 #line $LINENO "configure"
5131 #include "confdefs.h"
5137 exit (malloc (0) ? 0 : 1);
5141 rm -f conftest
$ac_exeext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5143 (eval $ac_link) 2>&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; }; then
5152 jm_cv_func_working_malloc
=yes
5154 echo "$as_me: program exited with status $ac_status" >&5
5155 echo "$as_me: failed program was:" >&5
5156 cat conftest.
$ac_ext >&5
5158 jm_cv_func_working_malloc
=no
5160 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5164 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5165 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5166 if test $jm_cv_func_working_malloc = no
; then
5167 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5169 cat >>confdefs.h
<<\_ACEOF
5170 #define malloc rpl_malloc
5175 cat >>confdefs.h
<<\_ACEOF
5176 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5179 echo "$as_me:$LINENO: checking for working realloc" >&5
5180 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5181 if test "${jm_cv_func_working_realloc+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 if test "$cross_compiling" = yes; then
5185 jm_cv_func_working_realloc
=no
5187 cat >conftest.
$ac_ext <<_ACEOF
5188 #line $LINENO "configure"
5189 #include "confdefs.h"
5195 exit (realloc (0, 0) ? 0 : 1);
5199 rm -f conftest
$ac_exeext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5201 (eval $ac_link) 2>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 jm_cv_func_working_realloc
=yes
5212 echo "$as_me: program exited with status $ac_status" >&5
5213 echo "$as_me: failed program was:" >&5
5214 cat conftest.
$ac_ext >&5
5216 jm_cv_func_working_realloc
=no
5218 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5222 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5223 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5224 if test $jm_cv_func_working_realloc = no
; then
5225 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5227 cat >>confdefs.h
<<\_ACEOF
5228 #define realloc rpl_realloc
5233 for ac_func
in isascii iswprint mbsinit
5235 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5236 echo "$as_me:$LINENO: checking for $ac_func" >&5
5237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5238 if eval "test \"\${$as_ac_var+set}\" = set"; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 cat >conftest.
$ac_ext <<_ACEOF
5242 #line $LINENO "configure"
5243 #include "confdefs.h"
5244 /* System header to define __stub macros and hopefully few prototypes,
5245 which can conflict with char $ac_func (); below. */
5247 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5256 #ifdef F77_DUMMY_MAIN
5260 int F77_DUMMY_MAIN() { return 1; }
5265 /* The GNU C library defines this for functions which it implements
5266 to always fail with ENOSYS. Some functions are actually named
5267 something starting with __ and the normal name is an alias. */
5268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5278 rm -f conftest.
$ac_objext conftest
$ac_exeext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5280 (eval $ac_link) 2>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try
='test -s conftest$ac_exeext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 eval "$as_ac_var=yes"
5292 echo "$as_me: failed program was:" >&5
5293 cat conftest.
$ac_ext >&5
5294 eval "$as_ac_var=no"
5296 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5300 if test `eval echo '${'$as_ac_var'}'` = yes; then
5301 cat >>confdefs.h
<<_ACEOF
5302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5308 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5309 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5310 if test "${jm_cv_func_mbrtowc+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 cat >conftest.
$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5315 #include "confdefs.h"
5317 #ifdef F77_DUMMY_MAIN
5321 int F77_DUMMY_MAIN() { return 1; }
5326 mbstate_t state; return ! (sizeof state && mbrtowc);
5331 rm -f conftest.
$ac_objext conftest
$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333 (eval $ac_link) 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try
='test -s conftest$ac_exeext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 jm_cv_func_mbrtowc
=yes
5345 echo "$as_me: failed program was:" >&5
5346 cat conftest.
$ac_ext >&5
5347 jm_cv_func_mbrtowc
=no
5349 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5351 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5352 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5353 if test $jm_cv_func_mbrtowc = yes; then
5355 cat >>confdefs.h
<<\_ACEOF
5356 #define HAVE_MBRTOWC 1
5361 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5363 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5365 echo "$as_me:$LINENO: checking for $ac_header" >&5
5366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5373 # Is the header compilable?
5374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5376 cat >conftest.
$ac_ext <<_ACEOF
5377 #line $LINENO "configure"
5378 #include "confdefs.h"
5379 $ac_includes_default
5380 #include <$ac_header>
5382 rm -f conftest.
$ac_objext
5383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5384 (eval $ac_compile) 2>&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try
='test -s conftest.$ac_objext'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 ac_header_compiler
=yes
5396 echo "$as_me: failed program was:" >&5
5397 cat conftest.
$ac_ext >&5
5398 ac_header_compiler
=no
5400 rm -f conftest.
$ac_objext conftest.
$ac_ext
5401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5402 echo "${ECHO_T}$ac_header_compiler" >&6
5404 # Is the header present?
5405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5407 cat >conftest.
$ac_ext <<_ACEOF
5408 #line $LINENO "configure"
5409 #include "confdefs.h"
5410 #include <$ac_header>
5412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5415 egrep -v '^ *\+' conftest.er1
>conftest.err
5417 cat conftest.err
>&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } >/dev
/null
; then
5420 if test -s conftest.err
; then
5421 ac_cpp_err
=$ac_c_preproc_warn_flag
5428 if test -z "$ac_cpp_err"; then
5429 ac_header_preproc
=yes
5431 echo "$as_me: failed program was:" >&5
5432 cat conftest.
$ac_ext >&5
5433 ac_header_preproc
=no
5435 rm -f conftest.err conftest.
$ac_ext
5436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5437 echo "${ECHO_T}$ac_header_preproc" >&6
5439 # So? What about this header?
5440 case $ac_header_compiler:$ac_header_preproc in
5442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5454 echo "$as_me:$LINENO: checking for $ac_header" >&5
5455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 eval "$as_ac_Header=$ac_header_preproc"
5461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5466 cat >>confdefs.h
<<_ACEOF
5467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5474 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5475 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5476 if test "${ac_cv_header_stdc+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 cat >conftest.
$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5481 #include "confdefs.h"
5488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5489 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5491 egrep -v '^ *\+' conftest.er1
>conftest.err
5493 cat conftest.err
>&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev
/null
; then
5496 if test -s conftest.err
; then
5497 ac_cpp_err
=$ac_c_preproc_warn_flag
5504 if test -z "$ac_cpp_err"; then
5505 ac_cv_header_stdc
=yes
5507 echo "$as_me: failed program was:" >&5
5508 cat conftest.
$ac_ext >&5
5509 ac_cv_header_stdc
=no
5511 rm -f conftest.err conftest.
$ac_ext
5513 if test $ac_cv_header_stdc = yes; then
5514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5515 cat >conftest.
$ac_ext <<_ACEOF
5516 #line $LINENO "configure"
5517 #include "confdefs.h"
5521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522 egrep "memchr" >/dev
/null
2>&1; then
5525 ac_cv_header_stdc
=no
5531 if test $ac_cv_header_stdc = yes; then
5532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5533 cat >conftest.
$ac_ext <<_ACEOF
5534 #line $LINENO "configure"
5535 #include "confdefs.h"
5539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5540 egrep "free" >/dev
/null
2>&1; then
5543 ac_cv_header_stdc
=no
5549 if test $ac_cv_header_stdc = yes; then
5550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5551 if test "$cross_compiling" = yes; then
5554 cat >conftest.
$ac_ext <<_ACEOF
5555 #line $LINENO "configure"
5556 #include "confdefs.h"
5558 #if ((' ' & 0x0FF) == 0x020)
5559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5562 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5563 || ('j' <= (c) && (c) <= 'r') \
5564 || ('s' <= (c) && (c) <= 'z'))
5565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5573 for (i = 0; i < 256; i++)
5574 if (XOR (islower (i), ISLOWER (i))
5575 || toupper (i) != TOUPPER (i))
5580 rm -f conftest
$ac_exeext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5582 (eval $ac_link) 2>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5593 echo "$as_me: program exited with status $ac_status" >&5
5594 echo "$as_me: failed program was:" >&5
5595 cat conftest.
$ac_ext >&5
5597 ac_cv_header_stdc
=no
5599 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5603 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5604 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5605 if test $ac_cv_header_stdc = yes; then
5607 cat >>confdefs.h
<<\_ACEOF
5608 #define STDC_HEADERS 1
5613 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5614 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5615 if test "${ac_cv_c_backslash_a+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 cat >conftest.
$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 #include "confdefs.h"
5622 #ifdef F77_DUMMY_MAIN
5626 int F77_DUMMY_MAIN() { return 1; }
5635 char buf['\a' == 'a' ? -1 : 1];
5637 return buf[0] != "\a"[0];
5643 rm -f conftest.
$ac_objext
5644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5645 (eval $ac_compile) 2>&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } &&
5649 { ac_try
='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_cv_c_backslash_a
=yes
5657 echo "$as_me: failed program was:" >&5
5658 cat conftest.
$ac_ext >&5
5659 ac_cv_c_backslash_a
=no
5661 rm -f conftest.
$ac_objext conftest.
$ac_ext
5663 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5664 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5665 if test $ac_cv_c_backslash_a = yes; then
5667 cat >>confdefs.h
<<\_ACEOF
5668 #define HAVE_C_BACKSLASH_A 1
5673 for ac_header
in stdlib.h
5675 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5677 echo "$as_me:$LINENO: checking for $ac_header" >&5
5678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5685 # Is the header compilable?
5686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5688 cat >conftest.
$ac_ext <<_ACEOF
5689 #line $LINENO "configure"
5690 #include "confdefs.h"
5691 $ac_includes_default
5692 #include <$ac_header>
5694 rm -f conftest.
$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try
='test -s conftest.$ac_objext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_header_compiler
=yes
5708 echo "$as_me: failed program was:" >&5
5709 cat conftest.
$ac_ext >&5
5710 ac_header_compiler
=no
5712 rm -f conftest.
$ac_objext conftest.
$ac_ext
5713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5714 echo "${ECHO_T}$ac_header_compiler" >&6
5716 # Is the header present?
5717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5719 cat >conftest.
$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 #include "confdefs.h"
5722 #include <$ac_header>
5724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5725 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5727 egrep -v '^ *\+' conftest.er1
>conftest.err
5729 cat conftest.err
>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev
/null
; then
5732 if test -s conftest.err
; then
5733 ac_cpp_err
=$ac_c_preproc_warn_flag
5740 if test -z "$ac_cpp_err"; then
5741 ac_header_preproc
=yes
5743 echo "$as_me: failed program was:" >&5
5744 cat conftest.
$ac_ext >&5
5745 ac_header_preproc
=no
5747 rm -f conftest.err conftest.
$ac_ext
5748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5749 echo "${ECHO_T}$ac_header_preproc" >&6
5751 # So? What about this header?
5752 case $ac_header_compiler:$ac_header_preproc in
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5766 echo "$as_me:$LINENO: checking for $ac_header" >&5
5767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 eval "$as_ac_Header=$ac_header_preproc"
5773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5778 cat >>confdefs.h
<<_ACEOF
5779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5787 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5788 if test "${ac_cv_type_mbstate_t+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 cat >conftest.
$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 #include "confdefs.h"
5796 # include <stdlib.h>
5799 #ifdef F77_DUMMY_MAIN
5803 int F77_DUMMY_MAIN() { return 1; }
5808 mbstate_t x; return sizeof x;
5813 rm -f conftest.
$ac_objext
5814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815 (eval $ac_compile) 2>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try
='test -s conftest.$ac_objext'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
5825 ac_cv_type_mbstate_t
=yes
5827 echo "$as_me: failed program was:" >&5
5828 cat conftest.
$ac_ext >&5
5829 ac_cv_type_mbstate_t
=no
5831 rm -f conftest.
$ac_objext conftest.
$ac_ext
5833 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5834 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5835 if test $ac_cv_type_mbstate_t = no
; then
5837 cat >>confdefs.h
<<\_ACEOF
5838 #define mbstate_t int
5843 echo "$as_me:$LINENO: checking for function prototypes" >&5
5844 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5845 if test "$am_cv_prog_cc_stdc" != no
; then
5846 echo "$as_me:$LINENO: result: yes" >&5
5847 echo "${ECHO_T}yes" >&6
5849 cat >>confdefs.h
<<\_ACEOF
5850 #define PROTOTYPES 1
5855 echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6
5857 U
=_ ANSI2KNR
=.
/ansi2knr
5859 # Ensure some checks needed by ansi2knr itself.
5860 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5861 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5862 if test "${ac_cv_header_stdc+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 cat >conftest.
$ac_ext <<_ACEOF
5866 #line $LINENO "configure"
5867 #include "confdefs.h"
5874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5875 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5877 egrep -v '^ *\+' conftest.er1
>conftest.err
5879 cat conftest.err
>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } >/dev
/null
; then
5882 if test -s conftest.err
; then
5883 ac_cpp_err
=$ac_c_preproc_warn_flag
5890 if test -z "$ac_cpp_err"; then
5891 ac_cv_header_stdc
=yes
5893 echo "$as_me: failed program was:" >&5
5894 cat conftest.
$ac_ext >&5
5895 ac_cv_header_stdc
=no
5897 rm -f conftest.err conftest.
$ac_ext
5899 if test $ac_cv_header_stdc = yes; then
5900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5901 cat >conftest.
$ac_ext <<_ACEOF
5902 #line $LINENO "configure"
5903 #include "confdefs.h"
5907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5908 egrep "memchr" >/dev
/null
2>&1; then
5911 ac_cv_header_stdc
=no
5917 if test $ac_cv_header_stdc = yes; then
5918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5919 cat >conftest.
$ac_ext <<_ACEOF
5920 #line $LINENO "configure"
5921 #include "confdefs.h"
5925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5926 egrep "free" >/dev
/null
2>&1; then
5929 ac_cv_header_stdc
=no
5935 if test $ac_cv_header_stdc = yes; then
5936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5937 if test "$cross_compiling" = yes; then
5940 cat >conftest.
$ac_ext <<_ACEOF
5941 #line $LINENO "configure"
5942 #include "confdefs.h"
5944 #if ((' ' & 0x0FF) == 0x020)
5945 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5946 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5948 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5949 || ('j' <= (c) && (c) <= 'r') \
5950 || ('s' <= (c) && (c) <= 'z'))
5951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5959 for (i = 0; i < 256; i++)
5960 if (XOR (islower (i), ISLOWER (i))
5961 || toupper (i) != TOUPPER (i))
5966 rm -f conftest
$ac_exeext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5968 (eval $ac_link) 2>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5979 echo "$as_me: program exited with status $ac_status" >&5
5980 echo "$as_me: failed program was:" >&5
5981 cat conftest.
$ac_ext >&5
5983 ac_cv_header_stdc
=no
5985 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5989 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5990 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5991 if test $ac_cv_header_stdc = yes; then
5993 cat >>confdefs.h
<<\_ACEOF
5994 #define STDC_HEADERS 1
5999 for ac_header
in string.h
6001 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6003 echo "$as_me:$LINENO: checking for $ac_header" >&5
6004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6011 # Is the header compilable?
6012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6014 cat >conftest.
$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 #include "confdefs.h"
6017 $ac_includes_default
6018 #include <$ac_header>
6020 rm -f conftest.
$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try
='test -s conftest.$ac_objext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_header_compiler
=yes
6034 echo "$as_me: failed program was:" >&5
6035 cat conftest.
$ac_ext >&5
6036 ac_header_compiler
=no
6038 rm -f conftest.
$ac_objext conftest.
$ac_ext
6039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6040 echo "${ECHO_T}$ac_header_compiler" >&6
6042 # Is the header present?
6043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6045 cat >conftest.
$ac_ext <<_ACEOF
6046 #line $LINENO "configure"
6047 #include "confdefs.h"
6048 #include <$ac_header>
6050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6053 egrep -v '^ *\+' conftest.er1
>conftest.err
6055 cat conftest.err
>&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev
/null
; then
6058 if test -s conftest.err
; then
6059 ac_cpp_err
=$ac_c_preproc_warn_flag
6066 if test -z "$ac_cpp_err"; then
6067 ac_header_preproc
=yes
6069 echo "$as_me: failed program was:" >&5
6070 cat conftest.
$ac_ext >&5
6071 ac_header_preproc
=no
6073 rm -f conftest.err conftest.
$ac_ext
6074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6075 echo "${ECHO_T}$ac_header_preproc" >&6
6077 # So? What about this header?
6078 case $ac_header_compiler:$ac_header_preproc in
6080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6092 echo "$as_me:$LINENO: checking for $ac_header" >&5
6093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 eval "$as_ac_Header=$ac_header_preproc"
6099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6104 cat >>confdefs.h
<<_ACEOF
6105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6112 for ac_func
in strerror vprintf doprnt
6114 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6115 echo "$as_me:$LINENO: checking for $ac_func" >&5
6116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6117 if eval "test \"\${$as_ac_var+set}\" = set"; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 cat >conftest.
$ac_ext <<_ACEOF
6121 #line $LINENO "configure"
6122 #include "confdefs.h"
6123 /* System header to define __stub macros and hopefully few prototypes,
6124 which can conflict with char $ac_func (); below. */
6126 /* Override any gcc2 internal prototype to avoid an error. */
6130 /* We use char because int might match the return type of a gcc2
6131 builtin and then its argument prototype would still apply. */
6135 #ifdef F77_DUMMY_MAIN
6139 int F77_DUMMY_MAIN() { return 1; }
6144 /* The GNU C library defines this for functions which it implements
6145 to always fail with ENOSYS. Some functions are actually named
6146 something starting with __ and the normal name is an alias. */
6147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6157 rm -f conftest.
$ac_objext conftest
$ac_exeext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159 (eval $ac_link) 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try
='test -s conftest$ac_exeext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 eval "$as_ac_var=yes"
6171 echo "$as_me: failed program was:" >&5
6172 cat conftest.
$ac_ext >&5
6173 eval "$as_ac_var=no"
6175 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6179 if test `eval echo '${'$as_ac_var'}'` = yes; then
6180 cat >>confdefs.h
<<_ACEOF
6181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6187 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
6188 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
6189 if test "${ac_cv_have_decl_strerror+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 cat >conftest.
$ac_ext <<_ACEOF
6193 #line $LINENO "configure"
6194 #include "confdefs.h"
6195 $ac_includes_default
6196 #ifdef F77_DUMMY_MAIN
6200 int F77_DUMMY_MAIN() { return 1; }
6206 char *p = (char *) strerror;
6213 rm -f conftest.
$ac_objext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try
='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_have_decl_strerror
=yes
6227 echo "$as_me: failed program was:" >&5
6228 cat conftest.
$ac_ext >&5
6229 ac_cv_have_decl_strerror
=no
6231 rm -f conftest.
$ac_objext conftest.
$ac_ext
6233 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
6234 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
6235 if test $ac_cv_have_decl_strerror = yes; then
6237 cat >>confdefs.h
<<_ACEOF
6238 #define HAVE_DECL_STRERROR 1
6242 cat >>confdefs.h
<<_ACEOF
6243 #define HAVE_DECL_STRERROR 0
6248 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6249 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6250 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 cat >conftest.
$ac_ext <<_ACEOF
6254 #line $LINENO "configure"
6255 #include "confdefs.h"
6256 $ac_includes_default
6257 #ifdef F77_DUMMY_MAIN
6261 int F77_DUMMY_MAIN() { return 1; }
6267 char *p = (char *) strerror_r;
6274 rm -f conftest.
$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try
='test -s conftest.$ac_objext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_cv_have_decl_strerror_r
=yes
6288 echo "$as_me: failed program was:" >&5
6289 cat conftest.
$ac_ext >&5
6290 ac_cv_have_decl_strerror_r
=no
6292 rm -f conftest.
$ac_objext conftest.
$ac_ext
6294 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6295 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6296 if test $ac_cv_have_decl_strerror_r = yes; then
6298 cat >>confdefs.h
<<_ACEOF
6299 #define HAVE_DECL_STRERROR_R 1
6303 cat >>confdefs.h
<<_ACEOF
6304 #define HAVE_DECL_STRERROR_R 0
6309 for ac_func
in strerror_r
6311 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6312 echo "$as_me:$LINENO: checking for $ac_func" >&5
6313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6314 if eval "test \"\${$as_ac_var+set}\" = set"; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 cat >conftest.
$ac_ext <<_ACEOF
6318 #line $LINENO "configure"
6319 #include "confdefs.h"
6320 /* System header to define __stub macros and hopefully few prototypes,
6321 which can conflict with char $ac_func (); below. */
6323 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6332 #ifdef F77_DUMMY_MAIN
6336 int F77_DUMMY_MAIN() { return 1; }
6341 /* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6354 rm -f conftest.
$ac_objext conftest
$ac_exeext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6356 (eval $ac_link) 2>&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try
='test -s conftest$ac_exeext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 eval "$as_ac_var=yes"
6368 echo "$as_me: failed program was:" >&5
6369 cat conftest.
$ac_ext >&5
6370 eval "$as_ac_var=no"
6372 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6376 if test `eval echo '${'$as_ac_var'}'` = yes; then
6377 cat >>confdefs.h
<<_ACEOF
6378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6384 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6385 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
6386 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 ac_cv_func_strerror_r_char_p
=no
6391 if test $ac_cv_have_decl_strerror_r = yes; then
6392 cat >conftest.
$ac_ext <<_ACEOF
6393 #line $LINENO "configure"
6394 #include "confdefs.h"
6395 $ac_includes_default
6396 #ifdef F77_DUMMY_MAIN
6400 int F77_DUMMY_MAIN() { return 1; }
6407 char x = *strerror_r (0, buf, sizeof buf);
6408 char *p = strerror_r (0, buf, sizeof buf);
6414 rm -f conftest.
$ac_objext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try
='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_func_strerror_r_char_p
=yes
6428 echo "$as_me: failed program was:" >&5
6429 cat conftest.
$ac_ext >&5
6431 rm -f conftest.
$ac_objext conftest.
$ac_ext
6433 # strerror_r is not declared. Choose between
6434 # systems that have relatively inaccessible declarations for the
6435 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6436 # former has a strerror_r that returns char*, while the latter
6437 # has a strerror_r that returns `int'.
6438 # This test should segfault on the DEC system.
6439 if test "$cross_compiling" = yes; then
6442 cat >conftest.
$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 #include "confdefs.h"
6445 $ac_includes_default
6446 extern char *strerror_r ();
6447 #ifdef F77_DUMMY_MAIN
6451 int F77_DUMMY_MAIN() { return 1; }
6457 char x = *strerror_r (0, buf, sizeof buf);
6458 exit (!isalpha (x));
6463 rm -f conftest
$ac_exeext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465 (eval $ac_link) 2>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6474 ac_cv_func_strerror_r_char_p
=yes
6476 echo "$as_me: program exited with status $ac_status" >&5
6477 echo "$as_me: failed program was:" >&5
6478 cat conftest.
$ac_ext >&5
6480 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
6486 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
6487 if test $ac_cv_func_strerror_r_char_p = yes; then
6489 cat >>confdefs.h
<<\_ACEOF
6490 #define STRERROR_R_CHAR_P 1
6495 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6496 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6497 if test "${ac_cv_header_stdc+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 cat >conftest.
$ac_ext <<_ACEOF
6501 #line $LINENO "configure"
6502 #include "confdefs.h"
6509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6510 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6512 egrep -v '^ *\+' conftest.er1
>conftest.err
6514 cat conftest.err
>&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } >/dev
/null
; then
6517 if test -s conftest.err
; then
6518 ac_cpp_err
=$ac_c_preproc_warn_flag
6525 if test -z "$ac_cpp_err"; then
6526 ac_cv_header_stdc
=yes
6528 echo "$as_me: failed program was:" >&5
6529 cat conftest.
$ac_ext >&5
6530 ac_cv_header_stdc
=no
6532 rm -f conftest.err conftest.
$ac_ext
6534 if test $ac_cv_header_stdc = yes; then
6535 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6536 cat >conftest.
$ac_ext <<_ACEOF
6537 #line $LINENO "configure"
6538 #include "confdefs.h"
6542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6543 egrep "memchr" >/dev
/null
2>&1; then
6546 ac_cv_header_stdc
=no
6552 if test $ac_cv_header_stdc = yes; then
6553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6554 cat >conftest.
$ac_ext <<_ACEOF
6555 #line $LINENO "configure"
6556 #include "confdefs.h"
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561 egrep "free" >/dev
/null
2>&1; then
6564 ac_cv_header_stdc
=no
6570 if test $ac_cv_header_stdc = yes; then
6571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6572 if test "$cross_compiling" = yes; then
6575 cat >conftest.
$ac_ext <<_ACEOF
6576 #line $LINENO "configure"
6577 #include "confdefs.h"
6579 #if ((' ' & 0x0FF) == 0x020)
6580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6583 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6584 || ('j' <= (c) && (c) <= 'r') \
6585 || ('s' <= (c) && (c) <= 'z'))
6586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6594 for (i = 0; i < 256; i++)
6595 if (XOR (islower (i), ISLOWER (i))
6596 || toupper (i) != TOUPPER (i))
6601 rm -f conftest
$ac_exeext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6603 (eval $ac_link) 2>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6614 echo "$as_me: program exited with status $ac_status" >&5
6615 echo "$as_me: failed program was:" >&5
6616 cat conftest.
$ac_ext >&5
6618 ac_cv_header_stdc
=no
6620 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6624 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6625 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6626 if test $ac_cv_header_stdc = yes; then
6628 cat >>confdefs.h
<<\_ACEOF
6629 #define STDC_HEADERS 1
6634 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6635 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6637 # Check whether --with-dmalloc or --without-dmalloc was given.
6638 if test "${with_dmalloc+set}" = set; then
6639 withval
="$with_dmalloc"
6640 if test "$withval" = yes; then
6641 echo "$as_me:$LINENO: result: yes" >&5
6642 echo "${ECHO_T}yes" >&6
6644 cat >>confdefs.h
<<\_ACEOF
6645 #define WITH_DMALLOC 1
6648 LIBS
="$LIBS -ldmalloc"
6649 LDFLAGS
="$LDFLAGS -g"
6651 echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6
6655 echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6
6659 ALL_LINGUAS
="de es et fr ja nl tr ru"
6660 # Make sure we can run config.sub.
6661 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6662 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6663 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6664 { (exit 1); exit 1; }; }
6666 echo "$as_me:$LINENO: checking build system type" >&5
6667 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6668 if test "${ac_cv_build+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 ac_cv_build_alias
=$build_alias
6672 test -z "$ac_cv_build_alias" &&
6673 ac_cv_build_alias
=`$ac_config_guess`
6674 test -z "$ac_cv_build_alias" &&
6675 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6676 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6677 { (exit 1); exit 1; }; }
6678 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6680 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6681 { (exit 1); exit 1; }; }
6684 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6685 echo "${ECHO_T}$ac_cv_build" >&6
6687 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6688 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6689 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6691 echo "$as_me:$LINENO: checking host system type" >&5
6692 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6693 if test "${ac_cv_host+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 ac_cv_host_alias
=$host_alias
6697 test -z "$ac_cv_host_alias" &&
6698 ac_cv_host_alias
=$ac_cv_build_alias
6699 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6700 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6701 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6702 { (exit 1); exit 1; }; }
6705 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6706 echo "${ECHO_T}$ac_cv_host" >&6
6708 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6709 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6710 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6712 echo "$as_me:$LINENO: checking for off_t" >&5
6713 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6714 if test "${ac_cv_type_off_t+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.
$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 #include "confdefs.h"
6720 $ac_includes_default
6721 #ifdef F77_DUMMY_MAIN
6725 int F77_DUMMY_MAIN() { return 1; }
6738 rm -f conftest.
$ac_objext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6740 (eval $ac_compile) 2>&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try
='test -s conftest.$ac_objext'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 ac_cv_type_off_t
=yes
6752 echo "$as_me: failed program was:" >&5
6753 cat conftest.
$ac_ext >&5
6756 rm -f conftest.
$ac_objext conftest.
$ac_ext
6758 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6759 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6760 if test $ac_cv_type_off_t = yes; then
6764 cat >>confdefs.h
<<_ACEOF
6770 echo "$as_me:$LINENO: checking for size_t" >&5
6771 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6772 if test "${ac_cv_type_size_t+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 cat >conftest.
$ac_ext <<_ACEOF
6776 #line $LINENO "configure"
6777 #include "confdefs.h"
6778 $ac_includes_default
6779 #ifdef F77_DUMMY_MAIN
6783 int F77_DUMMY_MAIN() { return 1; }
6790 if (sizeof (size_t))
6796 rm -f conftest.
$ac_objext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798 (eval $ac_compile) 2>&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try
='test -s conftest.$ac_objext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 ac_cv_type_size_t
=yes
6810 echo "$as_me: failed program was:" >&5
6811 cat conftest.
$ac_ext >&5
6812 ac_cv_type_size_t
=no
6814 rm -f conftest.
$ac_objext conftest.
$ac_ext
6816 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6817 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6818 if test $ac_cv_type_size_t = yes; then
6822 cat >>confdefs.h
<<_ACEOF
6823 #define size_t unsigned
6828 for ac_header
in stdlib.h unistd.h
6830 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6832 echo "$as_me:$LINENO: checking for $ac_header" >&5
6833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6840 # Is the header compilable?
6841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6843 cat >conftest.
$ac_ext <<_ACEOF
6844 #line $LINENO "configure"
6845 #include "confdefs.h"
6846 $ac_includes_default
6847 #include <$ac_header>
6849 rm -f conftest.
$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851 (eval $ac_compile) 2>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try
='test -s conftest.$ac_objext'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 ac_header_compiler
=yes
6863 echo "$as_me: failed program was:" >&5
6864 cat conftest.
$ac_ext >&5
6865 ac_header_compiler
=no
6867 rm -f conftest.
$ac_objext conftest.
$ac_ext
6868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6869 echo "${ECHO_T}$ac_header_compiler" >&6
6871 # Is the header present?
6872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6874 cat >conftest.
$ac_ext <<_ACEOF
6875 #line $LINENO "configure"
6876 #include "confdefs.h"
6877 #include <$ac_header>
6879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6880 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6882 egrep -v '^ *\+' conftest.er1
>conftest.err
6884 cat conftest.err
>&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } >/dev
/null
; then
6887 if test -s conftest.err
; then
6888 ac_cpp_err
=$ac_c_preproc_warn_flag
6895 if test -z "$ac_cpp_err"; then
6896 ac_header_preproc
=yes
6898 echo "$as_me: failed program was:" >&5
6899 cat conftest.
$ac_ext >&5
6900 ac_header_preproc
=no
6902 rm -f conftest.err conftest.
$ac_ext
6903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6904 echo "${ECHO_T}$ac_header_preproc" >&6
6906 # So? What about this header?
6907 case $ac_header_compiler:$ac_header_preproc in
6909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6921 echo "$as_me:$LINENO: checking for $ac_header" >&5
6922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 eval "$as_ac_Header=$ac_header_preproc"
6928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6933 cat >>confdefs.h
<<_ACEOF
6934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6941 for ac_func
in getpagesize
6943 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6944 echo "$as_me:$LINENO: checking for $ac_func" >&5
6945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6946 if eval "test \"\${$as_ac_var+set}\" = set"; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 cat >conftest.
$ac_ext <<_ACEOF
6950 #line $LINENO "configure"
6951 #include "confdefs.h"
6952 /* System header to define __stub macros and hopefully few prototypes,
6953 which can conflict with char $ac_func (); below. */
6955 /* Override any gcc2 internal prototype to avoid an error. */
6959 /* We use char because int might match the return type of a gcc2
6960 builtin and then its argument prototype would still apply. */
6964 #ifdef F77_DUMMY_MAIN
6968 int F77_DUMMY_MAIN() { return 1; }
6973 /* The GNU C library defines this for functions which it implements
6974 to always fail with ENOSYS. Some functions are actually named
6975 something starting with __ and the normal name is an alias. */
6976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6986 rm -f conftest.
$ac_objext conftest
$ac_exeext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6988 (eval $ac_link) 2>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try
='test -s conftest$ac_exeext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 eval "$as_ac_var=yes"
7000 echo "$as_me: failed program was:" >&5
7001 cat conftest.
$ac_ext >&5
7002 eval "$as_ac_var=no"
7004 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7008 if test `eval echo '${'$as_ac_var'}'` = yes; then
7009 cat >>confdefs.h
<<_ACEOF
7010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7016 echo "$as_me:$LINENO: checking for working mmap" >&5
7017 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7018 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 if test "$cross_compiling" = yes; then
7022 ac_cv_func_mmap_fixed_mapped
=no
7024 cat >conftest.
$ac_ext <<_ACEOF
7025 #line $LINENO "configure"
7026 #include "confdefs.h"
7027 $ac_includes_default
7028 /* Thanks to Mike Haertel and Jim Avera for this test.
7029 Here is a matrix of mmap possibilities:
7030 mmap private not fixed
7031 mmap private fixed at somewhere currently unmapped
7032 mmap private fixed at somewhere already mapped
7033 mmap shared not fixed
7034 mmap shared fixed at somewhere currently unmapped
7035 mmap shared fixed at somewhere already mapped
7036 For private mappings, we should verify that changes cannot be read()
7037 back from the file, nor mmap's back from the file at a different
7038 address. (There have been systems where private was not correctly
7039 implemented like the infamous i386 svr4.0, and systems where the
7040 VM page cache was not coherent with the file system buffer cache
7041 like early versions of FreeBSD and possibly contemporary NetBSD.)
7042 For shared mappings, we should conversely verify that changes get
7043 propogated back to all the places they're supposed to be.
7045 Grep wants private fixed already mapped.
7046 The main things grep needs to know about mmap are:
7047 * does it exist and is it safe to write into the mmap'd area
7048 * how to use it (BSD variants) */
7051 #include <sys/mman.h>
7053 #if !STDC_HEADERS && !HAVE_STDLIB_H
7057 /* This mess was copied from the GNU getpagesize.h. */
7058 #if !HAVE_GETPAGESIZE
7059 /* Assume that all systems that can run configure have sys/param.h. */
7060 # if !HAVE_SYS_PARAM_H
7061 # define HAVE_SYS_PARAM_H 1
7064 # ifdef _SC_PAGESIZE
7065 # define getpagesize() sysconf(_SC_PAGESIZE)
7066 # else /* no _SC_PAGESIZE */
7067 # if HAVE_SYS_PARAM_H
7068 # include <sys/param.h>
7069 # ifdef EXEC_PAGESIZE
7070 # define getpagesize() EXEC_PAGESIZE
7071 # else /* no EXEC_PAGESIZE */
7073 # define getpagesize() NBPG * CLSIZE
7076 # endif /* no CLSIZE */
7077 # else /* no NBPG */
7079 # define getpagesize() NBPC
7080 # else /* no NBPC */
7082 # define getpagesize() PAGESIZE
7083 # endif /* PAGESIZE */
7084 # endif /* no NBPC */
7085 # endif /* no NBPG */
7086 # endif /* no EXEC_PAGESIZE */
7087 # else /* no HAVE_SYS_PARAM_H */
7088 # define getpagesize() 8192 /* punt totally */
7089 # endif /* no HAVE_SYS_PARAM_H */
7090 # endif /* no _SC_PAGESIZE */
7092 #endif /* no HAVE_GETPAGESIZE */
7097 char *data, *data2, *data3;
7101 pagesize = getpagesize ();
7103 /* First, make a file with some known garbage in it. */
7104 data = (char *) malloc (pagesize);
7107 for (i = 0; i < pagesize; ++i)
7108 *(data + i) = rand ();
7110 fd = creat ("conftest.mmap", 0600);
7113 if (write (fd, data, pagesize) != pagesize)
7117 /* Next, try to mmap the file at a fixed address which already has
7118 something else allocated at it. If we can, also make sure that
7119 we see the same garbage. */
7120 fd = open ("conftest.mmap", O_RDWR);
7123 data2 = (char *) malloc (2 * pagesize);
7126 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7127 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7128 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7130 for (i = 0; i < pagesize; ++i)
7131 if (*(data + i) != *(data2 + i))
7134 /* Finally, make sure that changes to the mapped area do not
7135 percolate back to the file as seen by read(). (This is a bug on
7136 some variants of i386 svr4.0.) */
7137 for (i = 0; i < pagesize; ++i)
7138 *(data2 + i) = *(data2 + i) + 1;
7139 data3 = (char *) malloc (pagesize);
7142 if (read (fd, data3, pagesize) != pagesize)
7144 for (i = 0; i < pagesize; ++i)
7145 if (*(data + i) != *(data3 + i))
7151 rm -f conftest
$ac_exeext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7153 (eval $ac_link) 2>&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 ac_cv_func_mmap_fixed_mapped
=yes
7164 echo "$as_me: program exited with status $ac_status" >&5
7165 echo "$as_me: failed program was:" >&5
7166 cat conftest.
$ac_ext >&5
7168 ac_cv_func_mmap_fixed_mapped
=no
7170 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7174 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7175 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7177 cat >>confdefs.h
<<\_ACEOF
7184 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7185 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7186 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 cat >conftest.
$ac_ext <<_ACEOF
7190 #line $LINENO "configure"
7191 #include "confdefs.h"
7193 #include <features.h>
7194 #ifdef __GNU_LIBRARY__
7195 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7203 ac_cv_gnu_library_2_1
=yes
7205 ac_cv_gnu_library_2_1
=no
7210 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7211 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7213 GLIBC21
="$ac_cv_gnu_library_2_1"
7215 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7216 stdlib.h string.h unistd.h sys
/param.h
7218 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7220 echo "$as_me:$LINENO: checking for $ac_header" >&5
7221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7228 # Is the header compilable?
7229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7231 cat >conftest.
$ac_ext <<_ACEOF
7232 #line $LINENO "configure"
7233 #include "confdefs.h"
7234 $ac_includes_default
7235 #include <$ac_header>
7237 rm -f conftest.
$ac_objext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try
='test -s conftest.$ac_objext'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 ac_header_compiler
=yes
7251 echo "$as_me: failed program was:" >&5
7252 cat conftest.
$ac_ext >&5
7253 ac_header_compiler
=no
7255 rm -f conftest.
$ac_objext conftest.
$ac_ext
7256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7257 echo "${ECHO_T}$ac_header_compiler" >&6
7259 # Is the header present?
7260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7262 cat >conftest.
$ac_ext <<_ACEOF
7263 #line $LINENO "configure"
7264 #include "confdefs.h"
7265 #include <$ac_header>
7267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7268 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7270 egrep -v '^ *\+' conftest.er1
>conftest.err
7272 cat conftest.err
>&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } >/dev
/null
; then
7275 if test -s conftest.err
; then
7276 ac_cpp_err
=$ac_c_preproc_warn_flag
7283 if test -z "$ac_cpp_err"; then
7284 ac_header_preproc
=yes
7286 echo "$as_me: failed program was:" >&5
7287 cat conftest.
$ac_ext >&5
7288 ac_header_preproc
=no
7290 rm -f conftest.err conftest.
$ac_ext
7291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7292 echo "${ECHO_T}$ac_header_preproc" >&6
7294 # So? What about this header?
7295 case $ac_header_compiler:$ac_header_preproc in
7297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7309 echo "$as_me:$LINENO: checking for $ac_header" >&5
7310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 eval "$as_ac_Header=$ac_header_preproc"
7316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7321 cat >>confdefs.h
<<_ACEOF
7322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7329 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7330 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7331 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7333 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7334 echo "$as_me:$LINENO: checking for $ac_func" >&5
7335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7336 if eval "test \"\${$as_ac_var+set}\" = set"; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 cat >conftest.
$ac_ext <<_ACEOF
7340 #line $LINENO "configure"
7341 #include "confdefs.h"
7342 /* System header to define __stub macros and hopefully few prototypes,
7343 which can conflict with char $ac_func (); below. */
7345 /* Override any gcc2 internal prototype to avoid an error. */
7349 /* We use char because int might match the return type of a gcc2
7350 builtin and then its argument prototype would still apply. */
7354 #ifdef F77_DUMMY_MAIN
7358 int F77_DUMMY_MAIN() { return 1; }
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7376 rm -f conftest.
$ac_objext conftest
$ac_exeext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7378 (eval $ac_link) 2>&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try
='test -s conftest$ac_exeext'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; }; then
7388 eval "$as_ac_var=yes"
7390 echo "$as_me: failed program was:" >&5
7391 cat conftest.
$ac_ext >&5
7392 eval "$as_ac_var=no"
7394 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7398 if test `eval echo '${'$as_ac_var'}'` = yes; then
7399 cat >>confdefs.h
<<_ACEOF
7400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7406 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7407 if test "${with_libiconv_prefix+set}" = set; then
7408 withval
="$with_libiconv_prefix"
7410 for dir
in `echo "$withval" | tr : ' '`; do
7411 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7412 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7417 echo "$as_me:$LINENO: checking for iconv" >&5
7418 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7419 if test "${am_cv_func_iconv+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 am_cv_func_iconv
="no, consider installing GNU libiconv"
7425 cat >conftest.
$ac_ext <<_ACEOF
7426 #line $LINENO "configure"
7427 #include "confdefs.h"
7430 #ifdef F77_DUMMY_MAIN
7434 int F77_DUMMY_MAIN() { return 1; }
7439 iconv_t cd = iconv_open("","");
7440 iconv(cd,NULL,NULL,NULL,NULL);
7446 rm -f conftest.
$ac_objext conftest
$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try
='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 am_cv_func_iconv
=yes
7460 echo "$as_me: failed program was:" >&5
7461 cat conftest.
$ac_ext >&5
7463 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7464 if test "$am_cv_func_iconv" != yes; then
7465 am_save_LIBS
="$LIBS"
7466 LIBS
="$LIBS -liconv"
7467 cat >conftest.
$ac_ext <<_ACEOF
7468 #line $LINENO "configure"
7469 #include "confdefs.h"
7472 #ifdef F77_DUMMY_MAIN
7476 int F77_DUMMY_MAIN() { return 1; }
7481 iconv_t cd = iconv_open("","");
7482 iconv(cd,NULL,NULL,NULL,NULL);
7488 rm -f conftest.
$ac_objext conftest
$ac_exeext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490 (eval $ac_link) 2>&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } &&
7494 { ac_try
='test -s conftest$ac_exeext'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; }; then
7501 am_cv_func_iconv
=yes
7503 echo "$as_me: failed program was:" >&5
7504 cat conftest.
$ac_ext >&5
7506 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7507 LIBS
="$am_save_LIBS"
7511 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7512 echo "${ECHO_T}$am_cv_func_iconv" >&6
7513 if test "$am_cv_func_iconv" = yes; then
7515 cat >>confdefs.h
<<\_ACEOF
7516 #define HAVE_ICONV 1
7519 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7520 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7521 if test "${am_cv_proto_iconv+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 cat >conftest.
$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7527 #include "confdefs.h"
7535 #if defined(__STDC__) || defined(__cplusplus)
7536 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7541 #ifdef F77_DUMMY_MAIN
7545 int F77_DUMMY_MAIN() { return 1; }
7555 rm -f conftest.
$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } &&
7561 { ac_try
='test -s conftest.$ac_objext'
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_proto_iconv_arg1
=""
7569 echo "$as_me: failed program was:" >&5
7570 cat conftest.
$ac_ext >&5
7571 am_cv_proto_iconv_arg1
="const"
7573 rm -f conftest.
$ac_objext conftest.
$ac_ext
7574 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);"
7577 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7578 echo "$as_me:$LINENO: result: ${ac_t:-
7579 }$am_cv_proto_iconv" >&5
7580 echo "${ECHO_T}${ac_t:-
7581 }$am_cv_proto_iconv" >&6
7583 cat >>confdefs.h
<<_ACEOF
7584 #define ICONV_CONST $am_cv_proto_iconv_arg1
7589 if test "$am_cv_lib_iconv" = yes; then
7593 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7594 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7595 if test "${am_cv_langinfo_codeset+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 cat >conftest.
$ac_ext <<_ACEOF
7599 #line $LINENO "configure"
7600 #include "confdefs.h"
7601 #include <langinfo.h>
7602 #ifdef F77_DUMMY_MAIN
7606 int F77_DUMMY_MAIN() { return 1; }
7611 char* cs = nl_langinfo(CODESET);
7616 rm -f conftest.
$ac_objext conftest
$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try
='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 am_cv_langinfo_codeset
=yes
7630 echo "$as_me: failed program was:" >&5
7631 cat conftest.
$ac_ext >&5
7632 am_cv_langinfo_codeset
=no
7634 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7637 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7638 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7639 if test $am_cv_langinfo_codeset = yes; then
7641 cat >>confdefs.h
<<\_ACEOF
7642 #define HAVE_LANGINFO_CODESET 1
7647 if test $ac_cv_header_locale_h = yes; then
7648 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7649 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7650 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 cat >conftest.
$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7655 #include "confdefs.h"
7657 #ifdef F77_DUMMY_MAIN
7661 int F77_DUMMY_MAIN() { return 1; }
7671 rm -f conftest.
$ac_objext conftest
$ac_exeext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7673 (eval $ac_link) 2>&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try
='test -s conftest$ac_exeext'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; }; then
7683 am_cv_val_LC_MESSAGES
=yes
7685 echo "$as_me: failed program was:" >&5
7686 cat conftest.
$ac_ext >&5
7687 am_cv_val_LC_MESSAGES
=no
7689 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7691 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7692 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7693 if test $am_cv_val_LC_MESSAGES = yes; then
7695 cat >>confdefs.h
<<\_ACEOF
7696 #define HAVE_LC_MESSAGES 1
7701 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7702 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7703 # Check whether --enable-nls or --disable-nls was given.
7704 if test "${enable_nls+set}" = set; then
7705 enableval
="$enable_nls"
7710 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7711 echo "${ECHO_T}$USE_NLS" >&6
7713 BUILD_INCLUDED_LIBINTL
=no
7714 USE_INCLUDED_LIBINTL
=no
7717 if test "$USE_NLS" = "yes"; then
7719 cat >>confdefs.h
<<\_ACEOF
7720 #define ENABLE_NLS 1
7723 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7724 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7726 # Check whether --with-included-gettext or --without-included-gettext was given.
7727 if test "${with_included_gettext+set}" = set; then
7728 withval
="$with_included_gettext"
7729 nls_cv_force_use_gnu_gettext
=$withval
7731 nls_cv_force_use_gnu_gettext
=no
7733 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7734 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7736 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7737 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7740 if test "${ac_cv_header_libintl_h+set}" = set; then
7741 echo "$as_me:$LINENO: checking for libintl.h" >&5
7742 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7743 if test "${ac_cv_header_libintl_h+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7747 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7749 # Is the header compilable?
7750 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7751 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7752 cat >conftest.
$ac_ext <<_ACEOF
7753 #line $LINENO "configure"
7754 #include "confdefs.h"
7755 $ac_includes_default
7756 #include <libintl.h>
7758 rm -f conftest.
$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try
='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_header_compiler
=yes
7772 echo "$as_me: failed program was:" >&5
7773 cat conftest.
$ac_ext >&5
7774 ac_header_compiler
=no
7776 rm -f conftest.
$ac_objext conftest.
$ac_ext
7777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7778 echo "${ECHO_T}$ac_header_compiler" >&6
7780 # Is the header present?
7781 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7782 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7783 cat >conftest.
$ac_ext <<_ACEOF
7784 #line $LINENO "configure"
7785 #include "confdefs.h"
7786 #include <libintl.h>
7788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7789 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7791 egrep -v '^ *\+' conftest.er1
>conftest.err
7793 cat conftest.err
>&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } >/dev
/null
; then
7796 if test -s conftest.err
; then
7797 ac_cpp_err
=$ac_c_preproc_warn_flag
7804 if test -z "$ac_cpp_err"; then
7805 ac_header_preproc
=yes
7807 echo "$as_me: failed program was:" >&5
7808 cat conftest.
$ac_ext >&5
7809 ac_header_preproc
=no
7811 rm -f conftest.err conftest.
$ac_ext
7812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7813 echo "${ECHO_T}$ac_header_preproc" >&6
7815 # So? What about this header?
7816 case $ac_header_compiler:$ac_header_preproc in
7818 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7819 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7820 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7821 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7823 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7824 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7825 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7826 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7827 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7828 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7830 echo "$as_me:$LINENO: checking for libintl.h" >&5
7831 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7832 if test "${ac_cv_header_libintl_h+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_cv_header_libintl_h
=$ac_header_preproc
7837 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7838 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7841 if test $ac_cv_header_libintl_h = yes; then
7842 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7843 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7844 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 cat >conftest.
$ac_ext <<_ACEOF
7848 #line $LINENO "configure"
7849 #include "confdefs.h"
7850 #include <libintl.h>
7851 extern int _nl_msg_cat_cntr;
7852 #ifdef F77_DUMMY_MAIN
7856 int F77_DUMMY_MAIN() { return 1; }
7861 bindtextdomain ("", "");
7862 return (int) gettext ("") + _nl_msg_cat_cntr
7867 rm -f conftest.
$ac_objext conftest
$ac_exeext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7869 (eval $ac_link) 2>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try
='test -s conftest$ac_exeext'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; }; then
7879 gt_cv_func_gnugettext1_libc
=yes
7881 echo "$as_me: failed program was:" >&5
7882 cat conftest.
$ac_ext >&5
7883 gt_cv_func_gnugettext1_libc
=no
7885 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7887 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7888 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7890 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7891 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7892 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7893 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 gt_save_LIBS
="$LIBS"
7897 LIBS
="$LIBS -lintl $LIBICONV"
7898 cat >conftest.
$ac_ext <<_ACEOF
7899 #line $LINENO "configure"
7900 #include "confdefs.h"
7901 #include <libintl.h>
7902 extern int _nl_msg_cat_cntr;
7903 #ifdef F77_DUMMY_MAIN
7907 int F77_DUMMY_MAIN() { return 1; }
7912 bindtextdomain ("", "");
7913 return (int) gettext ("") + _nl_msg_cat_cntr
7918 rm -f conftest.
$ac_objext conftest
$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920 (eval $ac_link) 2>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try
='test -s conftest$ac_exeext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 gt_cv_func_gnugettext1_libintl
=yes
7932 echo "$as_me: failed program was:" >&5
7933 cat conftest.
$ac_ext >&5
7934 gt_cv_func_gnugettext1_libintl
=no
7936 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7937 LIBS
="$gt_save_LIBS"
7939 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7940 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7943 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7944 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7945 && test "$PACKAGE" != gettext; }; then
7947 cat >>confdefs.h
<<\_ACEOF
7948 #define HAVE_GETTEXT 1
7951 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7952 INTLLIBS
="-lintl $LIBICONV"
7955 gt_save_LIBS
="$LIBS"
7956 LIBS
="$LIBS $INTLLIBS"
7958 for ac_func
in dcgettext
7960 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7961 echo "$as_me:$LINENO: checking for $ac_func" >&5
7962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7963 if eval "test \"\${$as_ac_var+set}\" = set"; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 cat >conftest.
$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7968 #include "confdefs.h"
7969 /* System header to define __stub macros and hopefully few prototypes,
7970 which can conflict with char $ac_func (); below. */
7972 /* Override any gcc2 internal prototype to avoid an error. */
7976 /* We use char because int might match the return type of a gcc2
7977 builtin and then its argument prototype would still apply. */
7981 #ifdef F77_DUMMY_MAIN
7985 int F77_DUMMY_MAIN() { return 1; }
7990 /* The GNU C library defines this for functions which it implements
7991 to always fail with ENOSYS. Some functions are actually named
7992 something starting with __ and the normal name is an alias. */
7993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8003 rm -f conftest.
$ac_objext conftest
$ac_exeext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005 (eval $ac_link) 2>&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } &&
8009 { ac_try
='test -s conftest$ac_exeext'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 eval "$as_ac_var=yes"
8017 echo "$as_me: failed program was:" >&5
8018 cat conftest.
$ac_ext >&5
8019 eval "$as_ac_var=no"
8021 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8025 if test `eval echo '${'$as_ac_var'}'` = yes; then
8026 cat >>confdefs.h
<<_ACEOF
8027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8033 LIBS
="$gt_save_LIBS"
8035 # Extract the first word of "msgfmt", so it can be a program name with args.
8036 set dummy msgfmt
; ac_word
=$2
8037 echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8039 if test "${ac_cv_path_MSGFMT+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8047 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8048 for ac_dir
in $PATH; do
8049 test -z "$ac_dir" && ac_dir
=.
8050 if test -f $ac_dir/$ac_word; then
8051 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8052 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8058 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8062 MSGFMT
="$ac_cv_path_MSGFMT"
8063 if test "$MSGFMT" != ":"; then
8064 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8065 echo "${ECHO_T}$MSGFMT" >&6
8067 echo "$as_me:$LINENO: result: no" >&5
8068 echo "${ECHO_T}no" >&6
8071 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8072 set dummy gmsgfmt
; ac_word
=$2
8073 echo "$as_me:$LINENO: checking for $ac_word" >&5
8074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8075 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8087 test -z "$as_dir" && as_dir
=.
8088 for ac_exec_ext
in '' $ac_executable_extensions; do
8089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8097 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8101 GMSGFMT
=$ac_cv_path_GMSGFMT
8103 if test -n "$GMSGFMT"; then
8104 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8105 echo "${ECHO_T}$GMSGFMT" >&6
8107 echo "$as_me:$LINENO: result: no" >&5
8108 echo "${ECHO_T}no" >&6
8111 # Extract the first word of "xgettext", so it can be a program name with args.
8112 set dummy xgettext
; ac_word
=$2
8113 echo "$as_me:$LINENO: checking for $ac_word" >&5
8114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8115 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8124 for ac_dir
in $PATH; do
8125 test -z "$ac_dir" && ac_dir
=.
8126 if test -f $ac_dir/$ac_word; then
8127 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8128 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8134 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8138 XGETTEXT
="$ac_cv_path_XGETTEXT"
8139 if test "$XGETTEXT" != ":"; then
8140 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8141 echo "${ECHO_T}$XGETTEXT" >&6
8143 echo "$as_me:$LINENO: result: no" >&5
8144 echo "${ECHO_T}no" >&6
8152 if test "$CATOBJEXT" = "NONE"; then
8153 nls_cv_use_gnu_gettext
=yes
8157 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8158 INTLOBJS
="\$(GETTOBJS)"
8159 # Extract the first word of "msgfmt", so it can be a program name with args.
8160 set dummy msgfmt
; ac_word
=$2
8161 echo "$as_me:$LINENO: checking for $ac_word" >&5
8162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8163 if test "${ac_cv_path_MSGFMT+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8171 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8172 for ac_dir
in $PATH; do
8173 test -z "$ac_dir" && ac_dir
=.
8174 if test -f $ac_dir/$ac_word; then
8175 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8176 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8182 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8186 MSGFMT
="$ac_cv_path_MSGFMT"
8187 if test "$MSGFMT" != ":"; then
8188 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8189 echo "${ECHO_T}$MSGFMT" >&6
8191 echo "$as_me:$LINENO: result: no" >&5
8192 echo "${ECHO_T}no" >&6
8195 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8196 set dummy gmsgfmt
; ac_word
=$2
8197 echo "$as_me:$LINENO: checking for $ac_word" >&5
8198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8199 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8211 test -z "$as_dir" && as_dir
=.
8212 for ac_exec_ext
in '' $ac_executable_extensions; do
8213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8214 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8225 GMSGFMT
=$ac_cv_path_GMSGFMT
8227 if test -n "$GMSGFMT"; then
8228 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8229 echo "${ECHO_T}$GMSGFMT" >&6
8231 echo "$as_me:$LINENO: result: no" >&5
8232 echo "${ECHO_T}no" >&6
8235 # Extract the first word of "xgettext", so it can be a program name with args.
8236 set dummy xgettext
; ac_word
=$2
8237 echo "$as_me:$LINENO: checking for $ac_word" >&5
8238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8239 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8247 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8248 for ac_dir
in $PATH; do
8249 test -z "$ac_dir" && ac_dir
=.
8250 if test -f $ac_dir/$ac_word; then
8251 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8252 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8258 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8262 XGETTEXT
="$ac_cv_path_XGETTEXT"
8263 if test "$XGETTEXT" != ":"; then
8264 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8265 echo "${ECHO_T}$XGETTEXT" >&6
8267 echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6
8271 BUILD_INCLUDED_LIBINTL
=yes
8272 USE_INCLUDED_LIBINTL
=yes
8274 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8275 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8278 if test "$GMSGFMT" != ":"; then
8279 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8282 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8283 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8288 if test "$XGETTEXT" != ":"; then
8289 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8292 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8293 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8300 ac_config_commands
="$ac_config_commands default-1"
8302 if test "$PACKAGE" = gettext; then
8303 BUILD_INCLUDED_LIBINTL
=yes
8306 for ac_prog
in bison
8308 # Extract the first word of "$ac_prog", so it can be a program name with args.
8309 set dummy
$ac_prog; ac_word
=$2
8310 echo "$as_me:$LINENO: checking for $ac_word" >&5
8311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8312 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 if test -n "$INTLBISON"; then
8316 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8322 test -z "$as_dir" && as_dir
=.
8323 for ac_exec_ext
in '' $ac_executable_extensions; do
8324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_INTLBISON
="$ac_prog"
8326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 INTLBISON
=$ac_cv_prog_INTLBISON
8335 if test -n "$INTLBISON"; then
8336 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8337 echo "${ECHO_T}$INTLBISON" >&6
8339 echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6
8343 test -n "$INTLBISON" && break
8346 if test -z "$INTLBISON"; then
8349 echo "$as_me:$LINENO: checking version of bison" >&5
8350 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8351 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8352 case $ac_prog_version in
8353 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8354 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8355 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8356 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8358 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8359 echo "${ECHO_T}$ac_prog_version" >&6
8361 if test $ac_verc_fail = yes; then
8365 for lang
in $ALL_LINGUAS; do
8366 GMOFILES
="$GMOFILES $lang.gmo"
8367 POFILES
="$POFILES $lang.po"
8371 nls_cv_header_libgt
=
8379 if test "x$CATOBJEXT" != "x"; then
8380 if test "x$ALL_LINGUAS" = "x"; then
8383 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8384 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8386 for presentlang
in $ALL_LINGUAS; do
8388 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8389 # Use the presentlang catalog if desiredlang is
8390 # a. equal to presentlang, or
8391 # b. a variant of presentlang (because in this case,
8392 # presentlang can be used as a fallback for messages
8393 # which are not translated in the desiredlang catalog).
8394 case "$desiredlang" in
8395 "$presentlang"*) useit
=yes;;
8398 if test $useit = yes; then
8399 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8402 LINGUAS
=$NEW_LINGUAS
8403 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8404 echo "${ECHO_T}$LINGUAS" >&6
8407 if test -n "$LINGUAS"; then
8408 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8413 if test -n "$ac_aux_dir"; then
8414 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8416 if test -z "$MKINSTALLDIRS"; then
8417 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8420 INTL_LIBTOOL_SUFFIX_PREFIX
=
8422 # This is necessary so that .o files in LIBOBJS are also built via
8423 # the ANSI2KNR-filtering rules.
8424 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8426 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile"
8427 cat >confcache
<<\_ACEOF
8428 # This file is a shell script that caches the results of configure
8429 # tests run on this system so they can be shared between configure
8430 # scripts and configure runs, see configure's option --config-cache.
8431 # It is not useful on other systems. If it contains results you don't
8432 # want to keep, you may remove or edit it.
8434 # config.status only pays attention to the cache file if you give it
8435 # the --recheck option to rerun configure.
8437 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8443 # The following way of writing the cache mishandles newlines in values,
8444 # but we know of no workaround that is simple, portable, and efficient.
8445 # So, don't put newlines in cache variables' values.
8446 # Ultrix sh set writes to stderr and can't be redirected directly,
8447 # and sets the high bit in the cache file unless we assign to the vars.
8450 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8452 # `set' does not quote correctly, so add quotes (double-quote
8453 # substitution turns \\\\ into \\, and sed turns \\ into \).
8456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8459 # `set' quotes correctly as required by POSIX, so do not add quotes.
8461 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8468 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8470 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8472 if cmp -s $cache_file confcache
; then :; else
8473 if test -w $cache_file; then
8474 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8475 cat confcache
>$cache_file
8477 echo "not updating unwritable cache $cache_file"
8482 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8483 # Let make expand exec_prefix.
8484 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8486 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8487 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8488 # trailing colons and then remove the whole line if VPATH becomes empty
8489 # (actually we leave an empty line to preserve line numbers).
8490 if test "x$srcdir" = x.
; then
8491 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8492 s/:*\$(srcdir):*/:/;
8493 s/:*\${srcdir}:*/:/;
8495 s/^\([^=]*=[ ]*\):*/\1/;
8501 DEFS
=-DHAVE_CONFIG_H
8503 : ${CONFIG_STATUS=./config.status}
8504 ac_clean_files_save
=$ac_clean_files
8505 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8506 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8507 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8508 cat >$CONFIG_STATUS <<_ACEOF
8510 # Generated by $as_me.
8511 # Run this file to recreate the current configuration.
8512 # Compiler output produced by configure, useful for debugging
8513 # configure, is in config.log if it exists.
8516 SHELL=\${CONFIG_SHELL-$SHELL}
8519 cat >>$CONFIG_STATUS <<\_ACEOF
8521 ## --------------------- ##
8522 ## M4sh Initialization. ##
8523 ## --------------------- ##
8525 # Be Bourne compatible
8526 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8529 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8533 # Name of the executable.
8534 as_me
=`(basename "$0") 2>/dev/null ||
8535 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8536 X"$0" : 'X\(//\)$' \| \
8537 X"$0" : 'X\(/\)$' \| \
8538 . : '\(.\)' 2>/dev/null ||
8540 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8541 /^X\/\(\/\/\)$/{ s//\1/; q; }
8542 /^X\/\(\/\).*/{ s//\1/; q; }
8545 # Rewrite early, but we need PATH_SEPARATOR.
8546 # The user is always right.
8547 if test "${PATH_SEPARATOR+set}" != set; then
8548 echo "#! $SHELL" >conftest.sh
8549 echo "exit 0" >>conftest.sh
8550 chmod +x conftest.sh
8551 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
8562 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8563 test "x$as_lineno_1" != "x$as_lineno_2" &&
8564 test "x$as_lineno_3" = "x$as_lineno_2"
8566 # Find who we are. Look in the path if we contain no path at all
8569 *[\\/]* ) as_myself
=$0 ;;
8570 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8574 test -z "$as_dir" && as_dir
=.
8575 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8580 # We did not find ourselves, most probably we were run as `sh COMMAND'
8581 # in which case we are not to be found in the path.
8582 if test "x$as_myself" = x
; then
8585 if test ! -f "$as_myself"; then
8586 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8587 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8588 { (exit 1); exit 1; }; }
8590 case $CONFIG_SHELL in
8592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8593 for as_dir
in /bin
:/usr
/bin
:$PATH
8596 test -z "$as_dir" && as_dir
=.
8597 for as_base
in sh bash ksh sh5
; do
8600 if ("$as_dir/$as_base" -c '{
8603 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8604 test "x$as_lineno_1" != "x$as_lineno_2" &&
8605 test "x$as_lineno_3" = "x$as_lineno_2"
8606 }') 2>/dev
/null
; then
8607 CONFIG_SHELL
=$as_dir/$as_base
8609 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8616 if test ! -f "$as_me.lineno" ||
8617 test x
`ls -1dt "$as_me.lineno" "$as_myself" 2>/dev/null | sed 1q` \
8618 != x
"$as_me.lineno"; then
8619 # Be sure to write the pattern so that it doesn't replace itself:
8620 # it must not match itself.
8622 /[$]LINENO/ { printf "%d:", NR }
8625 sed '/[$]LINENO/s/^\([0-9][0-9]*\):\(.*\)[$]LINENO/\2\1/' \
8627 chmod +x
$as_me.lineno
8630 # Don't try to exec as it changes $[0], causing all sort of problems
8631 # (the dirname of $[0] is not the place where we might find the
8632 # original and so on. Autoconf is especially sensible to this).
8634 # Exit status is that of the last command.
8638 # Avoid depending upon Character Ranges.
8639 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8640 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8641 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8642 as_cr_digits
='0123456789'
8643 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8645 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8646 *c
*,-n*) ECHO_N
= ECHO_C
='
8648 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8649 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8652 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8658 rm -f conf$$ conf$$.exe conf$$.
file
8660 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8661 # We could just check for DJGPP; but this test a) works b) is more generic
8662 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8663 if test -f conf$$.exe
; then
8664 # Don't use ln at all; we don't have any links
8669 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8674 rm -f conf$$ conf$$.exe conf$$.
file
8676 as_executable_p
="test -f"
8678 # Sed expression to map a string onto a valid CPP name.
8679 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8681 # Sed expression to map a string onto a valid variable name.
8682 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8684 # Support unset when possible.
8685 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8692 $as_unset LANG
|| test "${LANG+set}" != set || { LANG
=C
; export LANG
; }
8693 $as_unset LC_ALL
|| test "${LC_ALL+set}" != set || { LC_ALL
=C
; export LC_ALL
; }
8694 $as_unset LC_TIME
|| test "${LC_TIME+set}" != set || { LC_TIME
=C
; export LC_TIME
; }
8695 $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set || { LC_CTYPE
=C
; export LC_CTYPE
; }
8696 $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set || { LANGUAGE
=C
; export LANGUAGE
; }
8697 $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set || { LC_COLLATE
=C
; export LC_COLLATE
; }
8698 $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set || { LC_NUMERIC
=C
; export LC_NUMERIC
; }
8699 $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set || { LC_MESSAGES
=C
; export LC_MESSAGES
; }
8702 # We need space, tab and new line, in precisely that order.
8708 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
8712 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8713 # report actual input values of CONFIG_FILES etc. instead of their
8714 # values after options handling. Logging --version etc. is OK.
8718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8719 ## Running $as_me. ##
8724 This file was extended by GNU Bison $as_me 1.30a, which was
8725 generated by GNU Autoconf 2.52e. Invocation command line was
8727 CONFIG_FILES = $CONFIG_FILES
8728 CONFIG_HEADERS = $CONFIG_HEADERS
8729 CONFIG_LINKS = $CONFIG_LINKS
8730 CONFIG_COMMANDS = $CONFIG_COMMANDS
8734 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8738 # Files that config.status was made for.
8739 if test -n "$ac_config_files"; then
8740 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8743 if test -n "$ac_config_headers"; then
8744 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8747 if test -n "$ac_config_links"; then
8748 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8751 if test -n "$ac_config_commands"; then
8752 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8755 cat >>$CONFIG_STATUS <<\_ACEOF
8758 \`$as_me' instantiates files from templates according to the
8759 current configuration.
8761 Usage: $0 [OPTIONS] [FILE]...
8763 -h, --help print this help, then exit
8764 -V, --version print version number, then exit
8765 -d, --debug don't remove temporary files
8766 --recheck update $as_me by reconfiguring in the same conditions
8767 --file=FILE[:TEMPLATE]
8768 instantiate the configuration file FILE
8769 --header=FILE[:TEMPLATE]
8770 instantiate the configuration header FILE
8772 Configuration files:
8775 Configuration headers:
8778 Configuration commands:
8781 Report bugs to <bug-autoconf@gnu.org>."
8784 cat >>$CONFIG_STATUS <<_ACEOF
8786 GNU Bison config.status 1.30a
8787 configured by $0, generated by GNU Autoconf 2.52e,
8788 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8790 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8791 Free Software Foundation, Inc.
8792 This config.status script is free software; the Free Software Foundation
8793 gives unlimited permission to copy, distribute and modify it."
8798 cat >>$CONFIG_STATUS <<\_ACEOF
8799 # If no file are specified by the user, then we need to provide default
8800 # value. By we need to know if files were specified by the user.
8806 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8807 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8809 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
8813 *) # This is not an option, so the user has probably given explicit
8815 ac_need_defaults
=false
;;
8819 # Handling of the options.
8821 cat >>$CONFIG_STATUS <<_ACEOF
8822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8823 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8824 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8826 cat >>$CONFIG_STATUS <<\_ACEOF
8827 --version | --vers* | -V )
8828 echo "$ac_cs_version"; exit 0 ;;
8830 # Conflict between --help and --header
8831 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8832 Try \`$0 --help' for more information." >&5
8833 echo "$as_me: error: ambiguous option: $1
8834 Try \`$0 --help' for more information." >&2;}
8835 { (exit 1); exit 1; }; };;
8836 --help | --hel | -h )
8837 echo "$ac_cs_usage"; exit 0 ;;
8838 --debug | --d* | -d )
8840 --file | --fil | --fi | --f )
8842 CONFIG_FILES
="$CONFIG_FILES $1"
8843 ac_need_defaults
=false
;;
8844 --header | --heade | --head | --hea )
8846 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
8847 ac_need_defaults
=false
;;
8850 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8851 Try \`$0 --help' for more information." >&5
8852 echo "$as_me: error: unrecognized option: $1
8853 Try \`$0 --help' for more information." >&2;}
8854 { (exit 1); exit 1; }; } ;;
8856 *) ac_config_targets
="$ac_config_targets $1" ;;
8864 cat >>$CONFIG_STATUS <<_ACEOF
8866 # INIT-COMMANDS section.
8869 PACKAGE_NAME='$PACKAGE_NAME'
8870 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8871 PACKAGE_VERSION='$PACKAGE_VERSION'
8872 PACKAGE_STRING='$PACKAGE_STRING'
8873 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8875 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8879 cat >>$CONFIG_STATUS <<\_ACEOF
8880 for ac_config_target
in $ac_config_targets
8882 case "$ac_config_target" in
8883 # Handling of arguments.
8884 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
8885 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8886 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
8887 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8888 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
8889 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
8890 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
8891 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
8892 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8893 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8894 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
8895 "tests/package.m4" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/package.m4" ;;
8896 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
8897 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8898 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
8899 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
8900 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8901 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8902 { (exit 1); exit 1; }; };;
8906 # If the user did not use the arguments to specify the items to instantiate,
8907 # then the envvar interface is used. Set only those that are not.
8908 # We use the long form for the default assignment because of an extremely
8909 # bizarre bug on SunOS 4.1.3.
8910 if $ac_need_defaults; then
8911 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8912 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8916 # Create a temporary directory, and hook for its removal unless debugging.
8919 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8920 trap '{ (exit 1); exit 1; }' 1 2 13 15
8923 # Create a (secure) tmp directory for tmp files.
8926 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8927 test -n "$tmp" && test -d "$tmp"
8930 tmp
=$TMPDIR/cs$$
-$RANDOM
8931 (umask 077 && mkdir $tmp)
8934 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8935 { (exit 1); exit 1; }
8940 cat >>$CONFIG_STATUS <<_ACEOF
8943 # CONFIG_FILES section.
8946 # No need to generate the scripts if there are no CONFIG_FILES.
8947 # This happens for instance when ./config.status config.h
8948 if test -n "\$CONFIG_FILES"; then
8949 # Protect against being on the right side of a sed subst in config.status.
8950 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8951 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8952 s,@SHELL@,$SHELL,;t t
8953 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8954 s,@exec_prefix@,$exec_prefix,;t t
8955 s,@prefix@,$prefix,;t t
8956 s,@program_transform_name@,$program_transform_name,;t t
8957 s,@bindir@,$bindir,;t t
8958 s,@sbindir@,$sbindir,;t t
8959 s,@libexecdir@,$libexecdir,;t t
8960 s,@datadir@,$datadir,;t t
8961 s,@sysconfdir@,$sysconfdir,;t t
8962 s,@sharedstatedir@,$sharedstatedir,;t t
8963 s,@localstatedir@,$localstatedir,;t t
8964 s,@libdir@,$libdir,;t t
8965 s,@includedir@,$includedir,;t t
8966 s,@oldincludedir@,$oldincludedir,;t t
8967 s,@infodir@,$infodir,;t t
8968 s,@mandir@,$mandir,;t t
8969 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8970 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8971 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8972 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8973 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8974 s,@build_alias@,$build_alias,;t t
8975 s,@host_alias@,$host_alias,;t t
8976 s,@target_alias@,$target_alias,;t t
8978 s,@ECHO_C@,$ECHO_C,;t t
8979 s,@ECHO_N@,$ECHO_N,;t t
8980 s,@ECHO_T@,$ECHO_T,;t t
8982 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8983 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8984 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8985 s,@PACKAGE@,$PACKAGE,;t t
8986 s,@VERSION@,$VERSION,;t t
8987 s,@ACLOCAL@,$ACLOCAL,;t t
8988 s,@AUTOCONF@,$AUTOCONF,;t t
8989 s,@AUTOMAKE@,$AUTOMAKE,;t t
8990 s,@AUTOHEADER@,$AUTOHEADER,;t t
8991 s,@MAKEINFO@,$MAKEINFO,;t t
8992 s,@AMTAR@,$AMTAR,;t t
8993 s,@install_sh@,$install_sh,;t t
8994 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8996 s,@SET_MAKE@,$SET_MAKE,;t t
8997 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8998 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8999 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9000 s,@DEPDIR@,$DEPDIR,;t t
9003 s,@CFLAGS@,$CFLAGS,;t t
9004 s,@LDFLAGS@,$LDFLAGS,;t t
9005 s,@CPPFLAGS@,$CPPFLAGS,;t t
9006 s,@ac_ct_CC@,$ac_ct_CC,;t t
9007 s,@EXEEXT@,$EXEEXT,;t t
9008 s,@OBJEXT@,$OBJEXT,;t t
9009 s,@am__include@,$am__include,;t t
9010 s,@am__quote@,$am__quote,;t t
9011 s,@CCDEPMODE@,$CCDEPMODE,;t t
9013 s,@RANLIB@,$RANLIB,;t t
9014 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9015 s,@AUTOM4TE@,$AUTOM4TE,;t t
9016 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9018 s,@ANSI2KNR@,$ANSI2KNR,;t t
9019 s,@ALLOCA@,$ALLOCA,;t t
9020 s,@LIBOBJS@,$LIBOBJS,;t t
9021 s,@build@,$build,;t t
9022 s,@build_cpu@,$build_cpu,;t t
9023 s,@build_vendor@,$build_vendor,;t t
9024 s,@build_os@,$build_os,;t t
9026 s,@host_cpu@,$host_cpu,;t t
9027 s,@host_vendor@,$host_vendor,;t t
9028 s,@host_os@,$host_os,;t t
9029 s,@GLIBC21@,$GLIBC21,;t t
9030 s,@LIBICONV@,$LIBICONV,;t t
9031 s,@USE_NLS@,$USE_NLS,;t t
9032 s,@MSGFMT@,$MSGFMT,;t t
9033 s,@GMSGFMT@,$GMSGFMT,;t t
9034 s,@XGETTEXT@,$XGETTEXT,;t t
9035 s,@INTLBISON@,$INTLBISON,;t t
9036 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9037 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9038 s,@CATALOGS@,$CATALOGS,;t t
9039 s,@CATOBJEXT@,$CATOBJEXT,;t t
9040 s,@GMOFILES@,$GMOFILES,;t t
9041 s,@INTLLIBS@,$INTLLIBS,;t t
9042 s,@INTLOBJS@,$INTLOBJS,;t t
9043 s,@POFILES@,$POFILES,;t t
9044 s,@POSUB@,$POSUB,;t t
9045 s,@DATADIRNAME@,$DATADIRNAME,;t t
9046 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9047 s,@GENCAT@,$GENCAT,;t t
9048 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9049 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9054 cat >>$CONFIG_STATUS <<\_ACEOF
9055 # Split the substitutions into bite-sized pieces for seds with
9056 # small command number limits, like on Digital OSF/1 and HP-UX.
9058 ac_sed_frag
=1 # Number of current file.
9059 ac_beg
=1 # First line for current file.
9060 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9063 while $ac_more_lines; do
9064 if test $ac_beg -gt 1; then
9065 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9067 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9069 if test ! -s $tmp/subs.frag
; then
9072 # The purpose of the label and of the branching condition is to
9073 # speed up the sed processing (if there are no `@' at all, there
9074 # is no need to browse any of the substitutions).
9075 # These are the two extra sed commands mentioned above.
9077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9078 if test -z "$ac_sed_cmds"; then
9079 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9081 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9083 ac_sed_frag
=`expr $ac_sed_frag + 1`
9085 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9088 if test -z "$ac_sed_cmds"; then
9091 fi # test -n "$CONFIG_FILES"
9094 cat >>$CONFIG_STATUS <<\_ACEOF
9095 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9096 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9098 - | *:- | *:-:* ) # input from stdin
9100 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9101 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9102 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9103 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9104 * ) ac_file_in
=$ac_file.
in ;;
9107 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9108 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9110 X"$ac_file" : 'X\(//\)[^/]' \| \
9111 X"$ac_file" : 'X\(//\)$' \| \
9112 X"$ac_file" : 'X\(/\)' \| \
9113 . : '\(.\)' 2>/dev/null ||
9115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9117 /^X\(\/\/\)$/{ s//\1/; q; }
9118 /^X\(\/\).*/{ s//\1/; q; }
9121 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9125 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9126 case $as_mkdir_dir in
9127 # Skip DOS drivespec
9128 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9130 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9131 test -d "$as_incr_dir" ||
9132 mkdir "$as_incr_dir" ||
9133 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9134 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9135 { (exit 1); exit 1; }; }
9142 if test "$ac_dir" != .
; then
9143 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9144 # A "../" for each directory in $ac_dir_suffix.
9145 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9147 ac_dir_suffix
= ac_top_builddir
=
9151 .
) # No --srcdir option. We are building in place.
9153 if test -z "$ac_top_builddir"; then
9156 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9158 [\\/]* | ?
:[\\/]* ) # Absolute path.
9159 ac_srcdir
=$srcdir$ac_dir_suffix;
9160 ac_top_srcdir
=$srcdir ;;
9162 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9163 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9165 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9167 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9168 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9169 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9170 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9173 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9174 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9177 if test x
"$ac_file" != x
-; then
9178 { echo "$as_me:$LINENO: creating $ac_file" >&5
9179 echo "$as_me: creating $ac_file" >&6;}
9182 # Let's still pretend it is `configure' which instantiates (i.e., don't
9183 # use $as_me), people would be surprised to read:
9184 # /* config.h. Generated by config.status. */
9185 if test x
"$ac_file" = x
-; then
9188 configure_input
="$ac_file. "
9190 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9191 sed 's,.*/,,'` by configure."
9193 # First look for the input files in the build tree, otherwise in the
9195 ac_file_inputs
=`IFS=:
9196 for f in $ac_file_in; do
9198 -) echo $tmp/stdin ;;
9200 # Absolute (can't be DOS-style, as IFS=:)
9201 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9202 echo "$as_me: error: cannot find input file: $f" >&2;}
9203 { (exit 1); exit 1; }; }
9206 if test -f "$f"; then
9209 elif test -f "$srcdir/$f"; then
9214 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9215 echo "$as_me: error: cannot find input file: $f" >&2;}
9216 { (exit 1); exit 1; }; }
9219 done` || { (exit 1); exit 1; }
9221 cat >>$CONFIG_STATUS <<_ACEOF
9225 cat >>$CONFIG_STATUS <<\_ACEOF
9227 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9228 s
,@configure_input@
,$configure_input,;t t
9229 s
,@srcdir@
,$ac_srcdir,;t t
9230 s
,@srcpath@
,$ac_srcpath,;t t
9231 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9232 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9233 s
,@builddir@
,$ac_builddir,;t t
9234 s
,@buildpath@
,$ac_buildpath,;t t
9235 s
,@top_builddir@
,$ac_top_builddir,;t t
9236 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9237 s
,@INSTALL@
,$ac_INSTALL,;t t
9238 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9240 if test x"$ac_file" != x-; then
9241 mv $tmp/out $ac_file
9247 # Run the commands associated with the file.
9249 tests/bison ) chmod +x tests/bison ;;
9253 cat >>$CONFIG_STATUS <<\_ACEOF
9256 # CONFIG_HEADER section.
9259 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9260 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9262 # ac_d sets the value in "#define NAME VALUE" lines.
9263 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9264 ac_dB
='[ ].*$,\1#\2'
9267 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9268 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9269 ac_uB
='$,\1#\2define\3'
9273 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9274 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9276 - | *:- | *:-:* ) # input from stdin
9278 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9279 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9280 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9281 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9282 * ) ac_file_in
=$ac_file.
in ;;
9285 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9286 echo "$as_me: creating $ac_file" >&6;}
9288 # First look for the input files in the build tree, otherwise in the
9290 ac_file_inputs
=`IFS=:
9291 for f in $ac_file_in; do
9293 -) echo $tmp/stdin ;;
9295 # Absolute (can't be DOS-style, as IFS=:)
9296 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9297 echo "$as_me: error: cannot find input file: $f" >&2;}
9298 { (exit 1); exit 1; }; }
9301 if test -f "$f"; then
9304 elif test -f "$srcdir/$f"; then
9309 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9310 echo "$as_me: error: cannot find input file: $f" >&2;}
9311 { (exit 1); exit 1; }; }
9314 done` || { (exit 1); exit 1; }
9315 # Remove the trailing spaces.
9316 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9320 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9321 # `conftest.undefs', that substitutes the proper values into
9322 # config.h.in to produce config.h. The first handles `#define'
9323 # templates, and the second `#undef' templates.
9324 # And first: Protect against being on the right side of a sed subst in
9325 # config.status. Protect against being in an unquoted here document
9327 rm -f conftest.defines conftest.undefs
9328 # Using a here document instead of a string reduces the quoting nightmare.
9329 # Putting comments in sed scripts is not portable.
9331 # `end' is used to avoid that the second main sed command (meant for
9332 # 0-ary CPP macros) applies to n-ary macro definitions.
9333 # See the Autoconf documentation for `clear'.
9334 cat >confdef2sed.
sed <<\_ACEOF
9339 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9341 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9344 # If some macros were called several times there might be several times
9345 # the same #defines, which is useless. Nevertheless, we may not want to
9346 # sort them, since we want the *last* AC-DEFINE to be honored.
9347 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9348 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9349 rm -f confdef2sed.sed
9351 # This sed command replaces #undef with comments. This is necessary, for
9352 # example, in the case of _POSIX_SOURCE, which is predefined and required
9353 # on some systems where configure will not decide to define it.
9354 cat >>conftest.undefs <<\_ACEOF
9355 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9358 # Break up conftest.defines because some shells have a limit on the size
9359 # of here documents, and old seds have small limits too (100 cmds).
9360 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9361 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9362 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9363 echo ' :' >>$CONFIG_STATUS
9365 while grep . conftest.defines >/dev/null
9367 # Write a limited-size here document to $tmp/defines.sed.
9368 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9369 # Speed up: don't consider the non `#define' lines.
9370 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9371 # Work around the forget-to-reset-the-flag bug.
9372 echo 't clr' >>$CONFIG_STATUS
9373 echo ': clr' >>$CONFIG_STATUS
9374 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9376 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9380 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9381 rm -f conftest.defines
9382 mv conftest.
tail conftest.defines
9384 rm -f conftest.defines
9385 echo ' fi # egrep' >>$CONFIG_STATUS
9386 echo >>$CONFIG_STATUS
9388 # Break up conftest.undefs because some shells have a limit on the size
9389 # of here documents, and old seds have small limits too (100 cmds).
9390 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9392 while grep . conftest.undefs
>/dev
/null
9394 # Write a limited-size here document to $tmp/undefs.sed.
9395 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9396 # Speed up: don't consider the non
`#undef'
9397 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9398 # Work around the forget-to-reset-the-flag bug.
9399 echo 't clr' >>$CONFIG_STATUS
9400 echo ': clr' >>$CONFIG_STATUS
9401 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9403 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9407 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9408 rm -f conftest.undefs
9409 mv conftest.tail conftest.undefs
9411 rm -f conftest.undefs
9413 cat >>$CONFIG_STATUS <<\_ACEOF
9414 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9415 # use $as_me), people would be surprised to read:
9416 # /* config.h. Generated by config.status. */
9417 if test x
"$ac_file" = x
-; then
9418 echo "/* Generated by configure. */" >$tmp/config.h
9420 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9422 cat $tmp/in >>$tmp/config.h
9424 if test x
"$ac_file" != x
-; then
9425 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9426 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9427 echo "$as_me: $ac_file is unchanged" >&6;}
9429 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9431 X"$ac_file" : 'X\(//\)[^/]' \| \
9432 X"$ac_file" : 'X\(//\)$' \| \
9433 X"$ac_file" : 'X\(/\)' \| \
9434 . : '\(.\)' 2>/dev/null ||
9436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9438 /^X\(\/\/\)$/{ s//\1/; q; }
9439 /^X\(\/\).*/{ s//\1/; q; }
9442 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9446 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9447 case $as_mkdir_dir in
9448 # Skip DOS drivespec
9449 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9451 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9452 test -d "$as_incr_dir" ||
9453 mkdir "$as_incr_dir" ||
9454 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9455 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9456 { (exit 1); exit 1; }; }
9462 mv $tmp/config.h
$ac_file
9468 # Run the commands associated with the file.
9470 config.h
) # update the timestamp
9471 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
9476 cat >>$CONFIG_STATUS <<\_ACEOF
9479 # CONFIG_COMMANDS section.
9481 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9482 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9483 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9484 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9485 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9486 X"$ac_dest" : 'X\(//\)[^/]' \| \
9487 X"$ac_dest" : 'X\(//\)$' \| \
9488 X"$ac_dest" : 'X\(/\)' \| \
9489 . : '\(.\)' 2>/dev/null ||
9491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9493 /^X\(\/\/\)$/{ s//\1/; q; }
9494 /^X\(\/\).*/{ s//\1/; q; }
9498 if test "$ac_dir" != .
; then
9499 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9500 # A "../" for each directory in $ac_dir_suffix.
9501 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9503 ac_dir_suffix
= ac_top_builddir
=
9507 .
) # No --srcdir option. We are building in place.
9509 if test -z "$ac_top_builddir"; then
9512 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9514 [\\/]* | ?
:[\\/]* ) # Absolute path.
9515 ac_srcdir
=$srcdir$ac_dir_suffix;
9516 ac_top_srcdir
=$srcdir ;;
9518 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9519 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9521 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9523 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9524 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9525 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9526 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9528 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9529 echo "$as_me: executing $ac_dest commands" >&6;}
9531 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9532 # Signature of the current package.
9533 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9534 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9535 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9536 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9537 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9540 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9541 # Configurable variable values for building test suites.
9543 # Copyright 2000, 2001 Free Software Foundation, Inc.
9546 buildpath='$ac_buildpath'
9548 srcpath='$ac_srcpath'
9549 top_srcdir='$ac_top_srcdir'
9550 top_srcpath='$ac_top_srcpath'
9551 top_builddir='$ac_top_builddir'
9552 top_buildpath='$ac_top_buildpath'
9554 AUTOTEST_PATH='tests'
9556 SHELL=\${CONFIG_SHELL-'$SHELL'}
9559 depfiles
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
9561 Makefile
) dirpart
=.
;;
9562 */Makefile
) dirpart
=`(dirname "$mf") 2>/dev/null ||
9563 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9564 X"$mf" : 'X\(//\)[^/]' \| \
9565 X"$mf" : 'X\(//\)$' \| \
9566 X"$mf" : 'X\(/\)' \| \
9567 . : '\(.\)' 2>/dev/null ||
9569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9571 /^X\(\/\/\)$/{ s//\1/; q; }
9572 /^X\(\/\).*/{ s//\1/; q; }
9576 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9577 # Extract the definition of DEP_FILES from the Makefile without
9579 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9580 test -z "$DEPDIR" && continue
9581 # When using ansi2knr, U may be empty or an underscore; expand it
9582 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9583 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9584 # We invoke sed twice because it is the simplest approach to
9585 # changing $(DEPDIR) to its actual value in the expansion.
9586 for file in `sed -n -e '
9587 /^DEP_FILES = .*\\\\$/ {
9596 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9597 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9598 # Make sure the directory exists.
9599 test -f "$dirpart/$file" && continue
9600 fdir
=`(dirname "$file") 2>/dev/null ||
9601 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9602 X"$file" : 'X\(//\)[^/]' \| \
9603 X"$file" : 'X\(//\)$' \| \
9604 X"$file" : 'X\(/\)' \| \
9605 . : '\(.\)' 2>/dev/null ||
9607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9609 /^X\(\/\/\)$/{ s//\1/; q; }
9610 /^X\(\/\).*/{ s//\1/; q; }
9612 { case $dirpart/$fdir in
9613 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9616 as_dummy
=$dirpart/$fdir
9617 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9618 case $as_mkdir_dir in
9619 # Skip DOS drivespec
9620 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9622 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9623 test -d "$as_incr_dir" ||
9624 mkdir "$as_incr_dir" ||
9625 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
9626 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
9627 { (exit 1); exit 1; }; }
9632 # echo "creating $dirpart/$file"
9633 echo '# dummy' > "$dirpart/$file"
9637 default
-1 ) for ac_file
in $CONFIG_FILES; do
9638 # Support "outfile[:infile[:infile...]]"
9640 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9642 # PO directories have a Makefile.in generated from Makefile.in.in.
9643 case "$ac_file" in */Makefile.
in)
9644 # Adjust a relative srcdir.
9645 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9646 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9647 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9648 # In autoconf-2.13 it is called $ac_given_srcdir.
9649 # In autoconf-2.50 it is called $srcdir.
9650 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9651 case "$ac_given_srcdir" in
9652 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9653 /*) top_srcdir
="$ac_given_srcdir" ;;
9654 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9656 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9657 rm -f "$ac_dir/POTFILES"
9658 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9659 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9660 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9661 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9670 cat >>$CONFIG_STATUS <<\_ACEOF
9672 { (exit 0); exit 0; }
9674 chmod +x
$CONFIG_STATUS
9675 ac_clean_files
=$ac_clean_files_save
9677 # configure is writing to config.log, and then calls config.status.
9678 # config.status does its own redirection, appending to config.log.
9679 # Unfortunately, on DOS this fails, as config.log is still kept open
9680 # by configure, so config.status won't be able to write to it; its
9681 # output is simply discarded. So we exec the FD to /dev/null,
9682 # effectively closing config.log, so it can be properly (re)opened and
9683 # appended to by config.status. When coming back to configure, we
9684 # need to make the FD available again.
9685 if test "$no_create" != yes; then
9688 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9690 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9691 # would make configure fail if this is the last instruction.
9692 $ac_cs_success || { (exit 1); exit 1; }