2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53a for GNU Bison 1.34a.
5 # Report bugs to <bug-bison@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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.
11 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17 if mkdir -p .
2>/dev
/null
; then
25 ## --------------------- ##
26 ## M4sh Initialization. ##
27 ## --------------------- ##
29 # Be Bourne compatible
30 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
33 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
38 # Support unset when possible.
39 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
45 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
46 { $as_unset LANG
|| test "${LANG+set}" != set; } ||
47 { LANG
=C
; export LANG
; }
48 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
49 { $as_unset LC_ALL
|| test "${LC_ALL+set}" != set; } ||
50 { LC_ALL
=C
; export LC_ALL
; }
51 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
52 { $as_unset LC_TIME
|| test "${LC_TIME+set}" != set; } ||
53 { LC_TIME
=C
; export LC_TIME
; }
54 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
55 { $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set; } ||
56 { LC_CTYPE
=C
; export LC_CTYPE
; }
57 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
58 { $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set; } ||
59 { LANGUAGE
=C
; export LANGUAGE
; }
60 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
61 { $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set; } ||
62 { LC_COLLATE
=C
; export LC_COLLATE
; }
63 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
64 { $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set; } ||
65 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
66 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
67 { $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set; } ||
68 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
71 # Name of the executable.
72 as_me
=`(basename "$0") 2>/dev/null ||
73 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74 X"$0" : 'X\(//\)$' \| \
75 X"$0" : 'X\(/\)$' \| \
76 . : '\(.\)' 2>/dev/null ||
78 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79 /^X\/\(\/\/\)$/{ s//\1/; q; }
80 /^X\/\(\/\).*/{ s//\1/; q; }
83 # PATH needs CR, and LINENO needs CR and PATH.
84 # Avoid depending upon Character Ranges.
85 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
86 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
87 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
88 as_cr_digits
='0123456789'
89 as_cr_alnum
=$as_cr_Letters$as_cr_digits
91 # The user is always right.
92 if test "${PATH_SEPARATOR+set}" != set; then
93 echo "#! /bin/sh" >conftest.sh
94 echo "exit 0" >>conftest.sh
96 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
107 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
108 test "x$as_lineno_1" != "x$as_lineno_2" &&
109 test "x$as_lineno_3" = "x$as_lineno_2" || {
110 # Find who we are. Look in the path if we contain no path at all
113 *[\\/]* ) as_myself
=$0 ;;
114 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
118 test -z "$as_dir" && as_dir
=.
119 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
124 # We did not find ourselves, most probably we were run as `sh COMMAND'
125 # in which case we are not to be found in the path.
126 if test "x$as_myself" = x
; then
129 if test ! -f "$as_myself"; then
130 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
131 { (exit 1); exit 1; }; }
133 case $CONFIG_SHELL in
135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
136 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
139 test -z "$as_dir" && as_dir
=.
140 for as_base
in sh bash ksh sh5
; do
143 if ("$as_dir/$as_base" -c '
146 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
147 test "x$as_lineno_1" != "x$as_lineno_2" &&
148 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno
||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 as_executable_p
="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
237 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix
=/usr
/local
255 SHELL
=${CONFIG_SHELL-/bin/sh}
257 # Maximum number of lines to put in a shell here document.
258 # This variable seems obsolete. It should probably be removed, and
259 # only ac_max_sed_lines should be used.
260 : ${ac_max_here_lines=38}
262 # Identity of this package.
263 PACKAGE_NAME
='GNU Bison'
264 PACKAGE_TARNAME
='bison'
265 PACKAGE_VERSION
='1.34a'
266 PACKAGE_STRING
='GNU Bison 1.34a'
267 PACKAGE_BUGREPORT
='bug-bison@gnu.org'
269 # Factoring default headers for most tests.
270 ac_includes_default
="\
273 # include <sys/types.h>
276 # include <sys/stat.h>
287 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <strings.h>
296 # include <inttypes.h>
307 # Initialize some variables set by options.
309 ac_init_version
=false
310 # The variables have the same names as the options, with
311 # dashes changed to underlines.
319 program_transform_name
=s
,x
,x
,
327 # Installation directory options.
328 # These are left unexpanded so users can "make install exec_prefix=/foo"
329 # and all the variables that are supposed to be based on exec_prefix
330 # by default will actually change.
331 # Use braces instead of parens because sh, perl, etc. also accept them.
332 bindir
='${exec_prefix}/bin'
333 sbindir
='${exec_prefix}/sbin'
334 libexecdir
='${exec_prefix}/libexec'
335 datadir
='${prefix}/share'
336 sysconfdir
='${prefix}/etc'
337 sharedstatedir
='${prefix}/com'
338 localstatedir
='${prefix}/var'
339 libdir
='${exec_prefix}/lib'
340 includedir
='${prefix}/include'
341 oldincludedir
='/usr/include'
342 infodir
='${prefix}/info'
343 mandir
='${prefix}/man'
348 # If the previous option needs an argument, assign it.
349 if test -n "$ac_prev"; then
350 eval "$ac_prev=\$ac_option"
355 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
357 # Accept the important Cygnus configure options, so we can diagnose typos.
361 -bindir | --bindir | --bindi | --bind | --bin | --bi)
363 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
366 -build | --build | --buil | --bui | --bu)
367 ac_prev
=build_alias
;;
368 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
369 build_alias
=$ac_optarg ;;
371 -cache-file | --cache-file | --cache-fil | --cache-fi \
372 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
373 ac_prev
=cache_file
;;
374 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
375 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
376 cache_file
=$ac_optarg ;;
379 cache_file
=config.cache
;;
381 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
383 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
385 datadir
=$ac_optarg ;;
387 -disable-* | --disable-*)
388 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
391 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
392 { (exit 1); exit 1; }; }
393 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
394 eval "enable_$ac_feature=no" ;;
396 -enable-* | --enable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
407 eval "enable_$ac_feature='$ac_optarg'" ;;
409 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
410 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
411 | --exec | --exe | --ex)
412 ac_prev
=exec_prefix
;;
413 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
414 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
415 | --exec=* | --exe=* | --ex=*)
416 exec_prefix
=$ac_optarg ;;
418 -gas | --gas | --ga | --g)
419 # Obsolete; use --with-gas.
422 -help | --help | --hel | --he | -h)
424 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
425 ac_init_help
=recursive
;;
426 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
427 ac_init_help
=short
;;
429 -host | --host | --hos | --ho)
430 ac_prev
=host_alias
;;
431 -host=* | --host=* | --hos=* | --ho=*)
432 host_alias
=$ac_optarg ;;
434 -includedir | --includedir | --includedi | --included | --include \
435 | --includ | --inclu | --incl | --inc)
436 ac_prev
=includedir
;;
437 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
438 | --includ=* | --inclu=* | --incl=* | --inc=*)
439 includedir
=$ac_optarg ;;
441 -infodir | --infodir | --infodi | --infod | --info | --inf)
443 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
444 infodir
=$ac_optarg ;;
446 -libdir | --libdir | --libdi | --libd)
448 -libdir=* | --libdir=* | --libdi=* | --libd=*)
451 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
452 | --libexe | --libex | --libe)
453 ac_prev
=libexecdir
;;
454 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
455 | --libexe=* | --libex=* | --libe=*)
456 libexecdir
=$ac_optarg ;;
458 -localstatedir | --localstatedir | --localstatedi | --localstated \
459 | --localstate | --localstat | --localsta | --localst \
460 | --locals | --local | --loca | --loc | --lo)
461 ac_prev
=localstatedir
;;
462 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
463 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
464 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
465 localstatedir
=$ac_optarg ;;
467 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
469 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
473 # Obsolete; use --without-fp.
476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
477 | --no-cr | --no-c | -n)
480 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
481 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
484 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
485 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
486 | --oldin | --oldi | --old | --ol | --o)
487 ac_prev
=oldincludedir
;;
488 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
489 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
490 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
491 oldincludedir
=$ac_optarg ;;
493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
498 -program-prefix | --program-prefix | --program-prefi | --program-pref \
499 | --program-pre | --program-pr | --program-p)
500 ac_prev
=program_prefix
;;
501 -program-prefix=* | --program-prefix=* | --program-prefi=* \
502 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
503 program_prefix
=$ac_optarg ;;
505 -program-suffix | --program-suffix | --program-suffi | --program-suff \
506 | --program-suf | --program-su | --program-s)
507 ac_prev
=program_suffix
;;
508 -program-suffix=* | --program-suffix=* | --program-suffi=* \
509 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
510 program_suffix
=$ac_optarg ;;
512 -program-transform-name | --program-transform-name \
513 | --program-transform-nam | --program-transform-na \
514 | --program-transform-n | --program-transform- \
515 | --program-transform | --program-transfor \
516 | --program-transfo | --program-transf \
517 | --program-trans | --program-tran \
518 | --progr-tra | --program-tr | --program-t)
519 ac_prev
=program_transform_name
;;
520 -program-transform-name=* | --program-transform-name=* \
521 | --program-transform-nam=* | --program-transform-na=* \
522 | --program-transform-n=* | --program-transform-=* \
523 | --program-transform=* | --program-transfor=* \
524 | --program-transfo=* | --program-transf=* \
525 | --program-trans=* | --program-tran=* \
526 | --progr-tra=* | --program-tr=* | --program-t=*)
527 program_transform_name
=$ac_optarg ;;
529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
530 | -silent | --silent | --silen | --sile | --sil)
533 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
535 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
537 sbindir
=$ac_optarg ;;
539 -sharedstatedir | --sharedstatedir | --sharedstatedi \
540 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
541 | --sharedst | --shareds | --shared | --share | --shar \
543 ac_prev
=sharedstatedir
;;
544 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
545 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
546 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
548 sharedstatedir
=$ac_optarg ;;
550 -site | --site | --sit)
552 -site=* | --site=* | --sit=*)
555 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
557 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
560 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
561 | --syscon | --sysco | --sysc | --sys | --sy)
562 ac_prev
=sysconfdir
;;
563 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
564 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
565 sysconfdir
=$ac_optarg ;;
567 -target | --target | --targe | --targ | --tar | --ta | --t)
568 ac_prev
=target_alias
;;
569 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
570 target_alias
=$ac_optarg ;;
572 -v | -verbose | --verbose | --verbos | --verbo | --verb)
575 -version | --version | --versio | --versi | --vers | -V)
579 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
580 # Reject names that are not valid shell variable names.
581 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
582 { echo "$as_me: error: invalid package name: $ac_package" >&2
583 { (exit 1); exit 1; }; }
584 ac_package
=`echo $ac_package| sed 's/-/_/g'`
586 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
589 eval "with_$ac_package='$ac_optarg'" ;;
591 -without-* | --without-*)
592 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package
=`echo $ac_package | sed 's/-/_/g'`
598 eval "with_$ac_package=no" ;;
601 # Obsolete; use --with-x.
604 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
605 | --x-incl | --x-inc | --x-in | --x-i)
606 ac_prev
=x_includes
;;
607 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
608 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
609 x_includes
=$ac_optarg ;;
611 -x-libraries | --x-libraries | --x-librarie | --x-librari \
612 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
613 ac_prev
=x_libraries
;;
614 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
615 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
616 x_libraries
=$ac_optarg ;;
618 -*) { echo "$as_me: error: unrecognized option: $ac_option
619 Try \`$0 --help' for more information." >&2
620 { (exit 1); exit 1; }; }
624 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
625 # Reject names that are not valid shell variable names.
626 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
627 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
628 { (exit 1); exit 1; }; }
629 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
630 eval "$ac_envvar='$ac_optarg'"
634 # FIXME: should be removed in autoconf 3.0.
635 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
636 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
637 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
638 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
644 if test -n "$ac_prev"; then
645 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
646 { echo "$as_me: error: missing argument to $ac_option" >&2
647 { (exit 1); exit 1; }; }
650 # Be sure to have absolute paths.
651 for ac_var
in exec_prefix prefix
653 eval ac_val
=$
`echo $ac_var`
655 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
656 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
657 { (exit 1); exit 1; }; };;
661 # Be sure to have absolute paths.
662 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
663 localstatedir libdir includedir oldincludedir infodir mandir
665 eval ac_val
=$
`echo $ac_var`
667 [\\/$
]* | ?
:[\\/]* ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
673 # There might be people who depend on the old broken behavior: `$host'
674 # used to hold the argument of --host etc.
675 # FIXME: To remove some day.
680 # FIXME: To remove some day.
681 if test "x$host_alias" != x
; then
682 if test "x$build_alias" = x
; then
683 cross_compiling
=maybe
684 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
685 If a cross compiler is detected then cross compile mode will be used." >&2
686 elif test "x$build_alias" != "x$host_alias"; then
692 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
694 test "$silent" = yes && exec 6>/dev
/null
697 # Find the source files, if location was not specified.
698 if test -z "$srcdir"; then
699 ac_srcdir_defaulted
=yes
700 # Try the directory containing this script, then its parent.
701 ac_confdir
=`(dirname "$0") 2>/dev/null ||
702 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
703 X"$0" : 'X\(//\)[^/]' \| \
704 X"$0" : 'X\(//\)$' \| \
705 X"$0" : 'X\(/\)' \| \
706 . : '\(.\)' 2>/dev/null ||
708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
710 /^X\(\/\/\)$/{ s//\1/; q; }
711 /^X\(\/\).*/{ s//\1/; q; }
714 if test ! -r $srcdir/$ac_unique_file; then
718 ac_srcdir_defaulted
=no
720 if test ! -r $srcdir/$ac_unique_file; then
721 if test "$ac_srcdir_defaulted" = yes; then
722 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
723 { (exit 1); exit 1; }; }
725 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
726 { (exit 1); exit 1; }; }
729 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
730 ac_env_build_alias_set
=${build_alias+set}
731 ac_env_build_alias_value
=$build_alias
732 ac_cv_env_build_alias_set
=${build_alias+set}
733 ac_cv_env_build_alias_value
=$build_alias
734 ac_env_host_alias_set
=${host_alias+set}
735 ac_env_host_alias_value
=$host_alias
736 ac_cv_env_host_alias_set
=${host_alias+set}
737 ac_cv_env_host_alias_value
=$host_alias
738 ac_env_target_alias_set
=${target_alias+set}
739 ac_env_target_alias_value
=$target_alias
740 ac_cv_env_target_alias_set
=${target_alias+set}
741 ac_cv_env_target_alias_value
=$target_alias
742 ac_env_CC_set
=${CC+set}
744 ac_cv_env_CC_set
=${CC+set}
745 ac_cv_env_CC_value
=$CC
746 ac_env_CFLAGS_set
=${CFLAGS+set}
747 ac_env_CFLAGS_value
=$CFLAGS
748 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
749 ac_cv_env_CFLAGS_value
=$CFLAGS
750 ac_env_LDFLAGS_set
=${LDFLAGS+set}
751 ac_env_LDFLAGS_value
=$LDFLAGS
752 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
753 ac_cv_env_LDFLAGS_value
=$LDFLAGS
754 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
755 ac_env_CPPFLAGS_value
=$CPPFLAGS
756 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
757 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
758 ac_env_CPP_set
=${CPP+set}
759 ac_env_CPP_value
=$CPP
760 ac_cv_env_CPP_set
=${CPP+set}
761 ac_cv_env_CPP_value
=$CPP
764 # Report the --help message.
766 if test "$ac_init_help" = "long"; then
767 # Omit some internal or obsolete options to make the list less imposing.
768 # This message is too long to be a string in the A/UX 3.1 sh.
770 \`configure' configures GNU Bison 1.34a to adapt to many kinds of systems.
772 Usage: $0 [OPTION]... [VAR=VALUE]...
774 To assign environment variables (e.g., CC, CFLAGS...), specify them as
775 VAR=VALUE. See below for descriptions of some of the useful variables.
777 Defaults for the options are specified in brackets.
780 -h, --help display this help and exit
781 --help=short display options specific to this package
782 --help=recursive display the short help of all the included packages
783 -V, --version display version information and exit
784 -q, --quiet, --silent do not print \`checking...' messages
785 --cache-file=FILE cache test results in FILE [disabled]
786 -C, --config-cache alias for \`--cache-file=config.cache'
787 -n, --no-create do not create output files
788 --srcdir=DIR find the sources in DIR [configure dir or \`..']
793 Installation directories:
794 --prefix=PREFIX install architecture-independent files in PREFIX
796 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
799 By default, \`make install' will install all the files in
800 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
801 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
802 for instance \`--prefix=\$HOME'.
804 For better control, use the options below.
806 Fine tuning of the installation directories:
807 --bindir=DIR user executables [EPREFIX/bin]
808 --sbindir=DIR system admin executables [EPREFIX/sbin]
809 --libexecdir=DIR program executables [EPREFIX/libexec]
810 --datadir=DIR read-only architecture-independent data [PREFIX/share]
811 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
812 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
813 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
814 --libdir=DIR object code libraries [EPREFIX/lib]
815 --includedir=DIR C header files [PREFIX/include]
816 --oldincludedir=DIR C header files for non-gcc [/usr/include]
817 --infodir=DIR info documentation [PREFIX/info]
818 --mandir=DIR man documentation [PREFIX/man]
824 --program-prefix=PREFIX prepend PREFIX to installed program names
825 --program-suffix=SUFFIX append SUFFIX to installed program names
826 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
829 --build=BUILD configure
for building on BUILD
[guessed
]
830 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
834 if test -n "$ac_init_help"; then
835 case $ac_init_help in
836 short
| recursive
) echo "Configuration of GNU Bison 1.34a:";;
841 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
842 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
843 --disable-dependency-tracking Speeds up one
-time builds
844 --enable-dependency-tracking Do not reject slow dependency extractors
845 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
846 --disable-nls do not use Native Language Support
849 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
850 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
851 --with-dmalloc use dmalloc
, as
in
852 http
://www.dmalloc.com
/dmalloc.
tar.gz
853 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
854 --with-included-gettext use the GNU
gettext library included here
856 Some influential environment variables
:
857 CC C compiler
command
858 CFLAGS C compiler flags
859 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
860 nonstandard directory
<lib dir
>
861 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
862 headers
in a nonstandard directory
<include dir
>
865 Use these variables to override the choices made by
`configure' or to help
866 it to find libraries and programs with nonstandard names/locations.
868 Report bugs to <bug-bison@gnu.org>.
872 if test "$ac_init_help" = "recursive"; then
873 # If there are subdirs, report their specific --help.
875 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
876 test -d $ac_dir || continue
879 if test "$ac_dir" != .; then
880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
881 # A "../" for each directory in $ac_dir_suffix.
882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884 ac_dir_suffix= ac_top_builddir=
888 .) # No --srcdir option. We are building in place.
890 if test -z "$ac_top_builddir"; then
893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 [\\/]* | ?:[\\/]* ) # Absolute path.
896 ac_srcdir=$srcdir$ac_dir_suffix;
897 ac_top_srcdir=$srcdir ;;
899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
905 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
910 # Check for guested configure; otherwise get Cygnus style configure.
911 if test -f $ac_srcdir/configure.gnu; then
913 $SHELL $ac_srcdir/configure.gnu --help=recursive
914 elif test -f $ac_srcdir/configure; then
916 $SHELL $ac_srcdir/configure --help=recursive
917 elif test -f $ac_srcdir/configure.ac ||
918 test -f $ac_srcdir/configure.in; then
922 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 test -n "$ac_init_help" && exit 0
929 if $ac_init_version; then
931 GNU Bison configure 1.34a
932 generated by GNU Autoconf 2.53a
934 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
935 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
946 It was created by GNU Bison $as_me 1.34a, which was
947 generated by GNU Autoconf 2.53a. Invocation command line was
958 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
959 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
960 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
961 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
962 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
964 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
965 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
967 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
968 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
969 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
970 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
971 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
972 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
973 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981 test -z "$as_dir" && as_dir=.
997 # Keep a trace of the command line.
998 # Strip out --no-create and --no-recursion so they do not pile up.
999 # Also quote any args containing shell meta-characters.
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n ) continue ;;
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1011 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1013 case " $ac_configure_args " in
1014 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1015 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1018 # Get rid of the leading space.
1021 # When interrupted or exit'd, cleanup temporary files, and complete
1022 # config.log. We remove comments because anyway the quotes in there
1023 # would cause problems or look ugly.
1024 # WARNING: Be sure not to use single quotes in there, as some shells,
1025 # such as our DU 5.0 friend, will then `close
' the trap.
1026 trap 'exit_status
=$?
1027 # Save into config.log some information that might help in debugging.
1031 ## ---------------- ##
1032 ## Cache variables. ##
1033 ## ---------------- ##
1036 # The following way of writing the cache mishandles newlines in values,
1039 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1042 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1047 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1052 if test -s confdefs.h
; then
1059 sed "/^$/d" confdefs.h
1062 test "$ac_signal" != 0 &&
1063 echo "$as_me: caught signal $ac_signal"
1064 echo "$as_me: exit $exit_status"
1066 rm -f core core.
* *.core
&&
1067 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1070 for ac_signal in 1 2 13 15; do
1071 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1075 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1076 rm -rf conftest* confdefs.h
1077 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1080 # Predefined preprocessor variables.
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_NAME "$PACKAGE_NAME"
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1097 cat >>confdefs.h <<_ACEOF
1098 #define PACKAGE_STRING "$PACKAGE_STRING"
1102 cat >>confdefs.h <<_ACEOF
1103 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1107 # Let the site file select an alternate cache file if it wants to.
1108 # Prefer explicitly selected file to automatically selected ones.
1109 if test -z "$CONFIG_SITE"; then
1110 if test "x$prefix" != xNONE; then
1111 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1113 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1116 for ac_site_file in $CONFIG_SITE; do
1117 if test -r "$ac_site_file"; then
1118 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1119 echo "$as_me: loading site script $ac_site_file" >&6;}
1120 sed 's
/^
/| /' "$ac_site_file" >&5
1125 if test -r "$cache_file"; then
1126 # Some versions of bash will fail to source /dev/null (special
1127 # files actually), so we avoid doing that.
1128 if test -f "$cache_file"; then
1129 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1130 echo "$as_me: loading cache $cache_file" >&6;}
1132 [\\/]* | ?:[\\/]* ) . $cache_file;;
1133 *) . ./$cache_file;;
1137 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1138 echo "$as_me: creating cache $cache_file" >&6;}
1142 # Check that the precious variables saved in the cache have kept the same
1144 ac_cache_corrupted=false
1145 for ac_var in `(set) 2>&1 |
1146 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1147 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1148 eval ac_new_set=\$ac_env_${ac_var}_set
1149 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1150 eval ac_new_val="\$ac_env_${ac_var}_value"
1151 case $ac_old_set,$ac_new_set in
1153 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1154 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1155 ac_cache_corrupted=: ;;
1157 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1158 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1159 ac_cache_corrupted=: ;;
1162 if test "x$ac_old_val" != "x$ac_new_val"; then
1163 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1164 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1165 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1166 echo "$as_me: former value: $ac_old_val" >&2;}
1167 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1168 echo "$as_me: current value: $ac_new_val" >&2;}
1169 ac_cache_corrupted=:
1172 # Pass precious variables to config.status.
1173 if test "$ac_new_set" = set; then
1175 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1176 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1177 *) ac_arg=$ac_var=$ac_new_val ;;
1179 case " $ac_configure_args " in
1180 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1181 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1185 if $ac_cache_corrupted; then
1186 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1187 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1188 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1189 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1190 { (exit 1); exit 1; }; }
1194 ac_cpp='$CPP $CPPFLAGS'
1195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1196 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1225 for ac_dir in config $srcdir/config; do
1226 if test -f $ac_dir/install-sh; then
1228 ac_install_sh="$ac_aux_dir/install-sh -c"
1230 elif test -f $ac_dir/install.sh; then
1232 ac_install_sh="$ac_aux_dir/install.sh -c"
1234 elif test -f $ac_dir/shtool; then
1236 ac_install_sh="$ac_aux_dir/shtool install -c"
1240 if test -z "$ac_aux_dir"; then
1241 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1242 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1243 { (exit 1); exit 1; }; }
1245 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1246 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1247 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1250 am__api_version="1.6"
1251 # Find a good install program. We prefer a C program (faster),
1252 # so one script is as good as another. But avoid the broken or
1253 # incompatible versions:
1254 # SysV /etc/install, /usr/sbin/install
1255 # SunOS /usr/etc/install
1256 # IRIX /sbin/install
1258 # AmigaOS /C/install, which installs bootblocks on floppy discs
1259 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1262 # ./install, which can be erroneously created by make from ./install.sh.
1263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1265 if test -z "$INSTALL"; then
1266 if test "${ac_cv_path_install+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1273 test -z "$as_dir" && as_dir
=.
1274 # Account for people who put trailing slashes in PATH elements.
1276 .
/ | .
// | /cC
/* | \
1277 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1280 # OSF1 and SCO ODT 3.0 have their own names for install.
1281 # Don't use installbsd from OSF since it installs stuff as root
1283 for ac_prog
in ginstall scoinst
install; do
1284 for ac_exec_ext
in '' $ac_executable_extensions; do
1285 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1286 if test $ac_prog = install &&
1287 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1288 # AIX install. It has an incompatible calling convention.
1290 elif test $ac_prog = install &&
1291 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1292 # program-specific install script used by HP pwplus--don't use.
1295 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1307 if test "${ac_cv_path_install+set}" = set; then
1308 INSTALL
=$ac_cv_path_install
1310 # As a last resort, use the slow shell script. We don't cache a
1311 # path for INSTALL within a source directory, because that will
1312 # break other packages using the cache if that directory is
1313 # removed, or if the path is relative.
1314 INSTALL
=$ac_install_sh
1317 echo "$as_me:$LINENO: result: $INSTALL" >&5
1318 echo "${ECHO_T}$INSTALL" >&6
1320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1321 # It thinks the first close brace ends the variable substitution.
1322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1326 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1328 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1329 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1332 echo timestamp
> conftest.
file
1333 # Do `set' in a subshell so we don't clobber the current shell's
1334 # arguments. Must try -L first in case configure is actually a
1335 # symlink; some systems play weird games with the mod time of symlinks
1336 # (eg FreeBSD returns the mod time of the symlink's containing
1339 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1340 if test "$*" = "X"; then
1342 set X
`ls -t $srcdir/configure conftest.file`
1345 if test "$*" != "X $srcdir/configure conftest.file" \
1346 && test "$*" != "X conftest.file $srcdir/configure"; then
1348 # If neither matched, then we have a broken ls. This can happen
1349 # if, for instance, CONFIG_SHELL is bash and it inherits a
1350 # broken ls alias from the environment. This has actually
1351 # happened. Such a system could not be considered "sane".
1352 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1353 alias in your environment" >&5
1354 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1355 alias in your environment" >&2;}
1356 { (exit 1); exit 1; }; }
1359 test "$2" = conftest.
file
1365 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1366 Check your system clock" >&5
1367 echo "$as_me: error: newly created file is older than distributed files!
1368 Check your system clock" >&2;}
1369 { (exit 1); exit 1; }; }
1371 echo "$as_me:$LINENO: result: yes" >&5
1372 echo "${ECHO_T}yes" >&6
1373 test "$program_prefix" != NONE
&&
1374 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1375 # Use a double $ so make ignores it.
1376 test "$program_suffix" != NONE
&&
1377 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1378 # Double any \ or $. echo might interpret backslashes.
1379 # By default was `s,x,x', remove it if useless.
1380 cat <<\_ACEOF
>conftest.
sed
1381 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1383 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1387 # expand $ac_aux_dir to an absolute path
1388 am_aux_dir
=`cd $ac_aux_dir && pwd`
1390 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1391 # Use eval to expand $SHELL
1392 if eval "$MISSING --run true"; then
1393 am_missing_run
="$MISSING --run "
1396 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1397 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1400 for ac_prog
in gawk mawk nawk
awk
1402 # Extract the first word of "$ac_prog", so it can be a program name with args.
1403 set dummy
$ac_prog; ac_word
=$2
1404 echo "$as_me:$LINENO: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_AWK+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 if test -n "$AWK"; then
1410 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1416 test -z "$as_dir" && as_dir
=.
1417 for ac_exec_ext
in '' $ac_executable_extensions; do
1418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419 ac_cv_prog_AWK
="$ac_prog"
1420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1429 if test -n "$AWK"; then
1430 echo "$as_me:$LINENO: result: $AWK" >&5
1431 echo "${ECHO_T}$AWK" >&6
1433 echo "$as_me:$LINENO: result: no" >&5
1434 echo "${ECHO_T}no" >&6
1437 test -n "$AWK" && break
1440 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1441 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1442 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1443 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 cat >conftest.
make <<\_ACEOF
1448 @
echo 'ac_maketemp="${MAKE}"'
1450 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1451 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1452 if test -n "$ac_maketemp"; then
1453 eval ac_cv_prog_make_
${ac_make}_set
=yes
1455 eval ac_cv_prog_make_
${ac_make}_set
=no
1459 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1460 echo "$as_me:$LINENO: result: yes" >&5
1461 echo "${ECHO_T}yes" >&6
1464 echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1466 SET_MAKE
="MAKE=${MAKE-make}"
1469 # test to see if srcdir already configured
1470 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1471 test -f $srcdir/config.status
; then
1472 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1473 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1474 { (exit 1); exit 1; }; }
1477 # Define the identity of the package.
1482 cat >>confdefs.h
<<_ACEOF
1483 #define PACKAGE "$PACKAGE"
1487 cat >>confdefs.h
<<_ACEOF
1488 #define VERSION "$VERSION"
1491 # Some tools Automake needs.
1493 ACLOCAL
=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1496 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1499 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
1502 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1505 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1508 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1510 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1512 # Installed binaries are usually stripped using `strip' when the user
1513 # run `make install-strip'. However `strip' might not be the right
1514 # tool to use in cross-compilation environments, therefore Automake
1515 # will honor the `STRIP' environment variable to overrule this program.
1516 if test "$cross_compiling" != no
; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1519 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_STRIP+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 if test -n "$STRIP"; then
1526 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1532 test -z "$as_dir" && as_dir
=.
1533 for ac_exec_ext
in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 STRIP
=$ac_cv_prog_STRIP
1545 if test -n "$STRIP"; then
1546 echo "$as_me:$LINENO: result: $STRIP" >&5
1547 echo "${ECHO_T}$STRIP" >&6
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1554 if test -z "$ac_cv_prog_STRIP"; then
1556 # Extract the first word of "strip", so it can be a program name with args.
1557 set dummy strip
; ac_word
=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 if test -n "$ac_ct_STRIP"; then
1564 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir
=.
1571 for ac_exec_ext
in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_STRIP
="strip"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1583 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1584 if test -n "$ac_ct_STRIP"; then
1585 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1586 echo "${ECHO_T}$ac_ct_STRIP" >&6
1588 echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1594 STRIP
="$ac_cv_prog_STRIP"
1598 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1600 # We need awk for the "check" target. The system "awk" is bad on
1605 # Add the stamp file to the list of files AC keeps track of,
1606 # along with our hook.
1607 ac_config_headers
="$ac_config_headers config.h:config.hin"
1612 # Initialize the test suite.
1613 ac_config_commands
="$ac_config_commands tests/atconfig"
1616 ac_config_files
="$ac_config_files tests/bison"
1618 ac_config_files
="$ac_config_files tests/Makefile tests/atlocal"
1620 # Needed by tests/atlocal.in.
1623 # Checks for programs.
1625 ac_cpp
='$CPP $CPPFLAGS'
1626 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1627 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1628 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1629 if test -n "$ac_tool_prefix"; then
1630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1631 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_CC+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 if test -n "$CC"; then
1638 ac_cv_prog_CC
="$CC" # Let the user override the test.
1640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1644 test -z "$as_dir" && as_dir
=.
1645 for ac_exec_ext
in '' $ac_executable_extensions; do
1646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1647 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 if test -n "$CC"; then
1658 echo "$as_me:$LINENO: result: $CC" >&5
1659 echo "${ECHO_T}$CC" >&6
1661 echo "$as_me:$LINENO: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1666 if test -z "$ac_cv_prog_CC"; then
1668 # Extract the first word of "gcc", so it can be a program name with args.
1669 set dummy gcc
; ac_word
=$2
1670 echo "$as_me:$LINENO: checking for $ac_word" >&5
1671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 if test -n "$ac_ct_CC"; then
1676 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir
=.
1683 for ac_exec_ext
in '' $ac_executable_extensions; do
1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685 ac_cv_prog_ac_ct_CC
="gcc"
1686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1695 if test -n "$ac_ct_CC"; then
1696 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1697 echo "${ECHO_T}$ac_ct_CC" >&6
1699 echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1708 if test -z "$CC"; then
1709 if test -n "$ac_tool_prefix"; then
1710 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1711 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_CC+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 if test -n "$CC"; then
1718 ac_cv_prog_CC
="$CC" # Let the user override the test.
1720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1724 test -z "$as_dir" && as_dir
=.
1725 for ac_exec_ext
in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 if test -n "$CC"; then
1738 echo "$as_me:$LINENO: result: $CC" >&5
1739 echo "${ECHO_T}$CC" >&6
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1746 if test -z "$ac_cv_prog_CC"; then
1748 # Extract the first word of "cc", so it can be a program name with args.
1749 set dummy cc
; ac_word
=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 if test -n "$ac_ct_CC"; then
1756 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1762 test -z "$as_dir" && as_dir
=.
1763 for ac_exec_ext
in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_ac_ct_CC
="cc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1775 if test -n "$ac_ct_CC"; then
1776 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1777 echo "${ECHO_T}$ac_ct_CC" >&6
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1789 if test -z "$CC"; then
1790 # Extract the first word of "cc", so it can be a program name with args.
1791 set dummy cc
; ac_word
=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_CC+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 if test -n "$CC"; then
1798 ac_cv_prog_CC
="$CC" # Let the user override the test.
1801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1805 test -z "$as_dir" && as_dir
=.
1806 for ac_exec_ext
in '' $ac_executable_extensions; do
1807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1809 ac_prog_rejected
=yes
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 if test $ac_prog_rejected = yes; then
1820 # We found a bogon in the path, so make sure we never use it.
1821 set dummy
$ac_cv_prog_CC
1823 if test $# != 0; then
1824 # We chose a different compiler from the bogus one.
1825 # However, it has the same basename, so the bogon will be chosen
1826 # first if we set CC to just the basename; use the full file name.
1828 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1836 if test -n "$CC"; then
1837 echo "$as_me:$LINENO: result: $CC" >&5
1838 echo "${ECHO_T}$CC" >&6
1840 echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1845 if test -z "$CC"; then
1846 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1850 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC
="$CC" # Let the user override the test.
1859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir
=.
1864 for ac_exec_ext
in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878 echo "${ECHO_T}$CC" >&6
1880 echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1884 test -n "$CC" && break
1887 if test -z "$CC"; then
1891 # Extract the first word of "$ac_prog", so it can be a program name with args.
1892 set dummy
$ac_prog; ac_word
=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 if test -n "$ac_ct_CC"; then
1899 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir
=.
1906 for ac_exec_ext
in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 ac_cv_prog_ac_ct_CC
="$ac_prog"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1918 if test -n "$ac_ct_CC"; then
1919 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1920 echo "${ECHO_T}$ac_ct_CC" >&6
1922 echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1926 test -n "$ac_ct_CC" && break
1935 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1936 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1937 { (exit 1); exit 1; }; }
1939 # Provide some information about the compiler.
1940 echo "$as_me:$LINENO:" \
1941 "checking for C compiler version" >&5
1942 ac_compiler
=`set X $ac_compile; echo $2`
1943 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1944 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1949 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1954 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1959 cat >conftest.
$ac_ext <<_ACEOF
1960 #line $LINENO "configure"
1961 #include "confdefs.h"
1963 #ifdef F77_DUMMY_MAIN
1967 int F77_DUMMY_MAIN() { return 1; }
1977 ac_clean_files_save
=$ac_clean_files
1978 ac_clean_files
="$ac_clean_files a.out a.exe"
1979 # Try to create an executable without -o first, disregard a.out.
1980 # It will help us diagnose broken compilers, and finding out an intuition
1982 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1983 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1984 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1985 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1986 (eval $ac_link_default) 2>&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }; then
1990 # Find the output, starting from the most likely. This scheme is
1991 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1994 # Be careful to initialize this variable, since it used to be cached.
1995 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1997 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1998 ls a.out conftest 2>/dev/null;
1999 ls a.* conftest.* 2>/dev/null`; do
2001 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
2002 a.out
) # We found the default executable, but exeext='' is most
2005 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2006 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2013 echo "$as_me: failed program was:" >&5
2014 cat conftest.
$ac_ext >&5
2015 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2016 echo "$as_me: error: C compiler cannot create executables" >&2;}
2017 { (exit 77); exit 77; }; }
2020 ac_exeext
=$ac_cv_exeext
2021 echo "$as_me:$LINENO: result: $ac_file" >&5
2022 echo "${ECHO_T}$ac_file" >&6
2024 # Check the compiler produces executables we can run. If not, either
2025 # the compiler is broken, or we cross compile.
2026 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2027 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2028 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2029 # If not cross compiling, check that we can run a simple program.
2030 if test "$cross_compiling" != yes; then
2031 if { ac_try
='./$ac_file'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2039 if test "$cross_compiling" = maybe
; then
2042 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2043 If you meant to cross compile, use \`--host'." >&5
2044 echo "$as_me: error: cannot run C compiled programs.
2045 If you meant to cross compile, use \`--host'." >&2;}
2046 { (exit 1); exit 1; }; }
2050 echo "$as_me:$LINENO: result: yes" >&5
2051 echo "${ECHO_T}yes" >&6
2053 rm -f a.out a.exe conftest
$ac_cv_exeext
2054 ac_clean_files
=$ac_clean_files_save
2055 # Check the compiler produces executables we can run. If not, either
2056 # the compiler is broken, or we cross compile.
2057 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2058 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2059 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2060 echo "${ECHO_T}$cross_compiling" >&6
2062 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2063 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2065 (eval $ac_link) 2>&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; then
2069 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2070 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2071 # work properly (i.e., refer to `conftest.exe'), while it won't with
2073 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2075 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
2076 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2083 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2084 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2085 { (exit 1); exit 1; }; }
2088 rm -f conftest
$ac_cv_exeext
2089 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090 echo "${ECHO_T}$ac_cv_exeext" >&6
2092 rm -f conftest.
$ac_ext
2093 EXEEXT
=$ac_cv_exeext
2095 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097 if test "${ac_cv_objext+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 cat >conftest.
$ac_ext <<_ACEOF
2101 #line $LINENO "configure"
2102 #include "confdefs.h"
2104 #ifdef F77_DUMMY_MAIN
2108 int F77_DUMMY_MAIN() { return 1; }
2118 rm -f conftest.o conftest.obj
2119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2120 (eval $ac_compile) 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; then
2124 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2126 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
2127 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2132 echo "$as_me: failed program was:" >&5
2133 cat conftest.
$ac_ext >&5
2134 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2135 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2136 { (exit 1); exit 1; }; }
2139 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2141 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2142 echo "${ECHO_T}$ac_cv_objext" >&6
2143 OBJEXT
=$ac_cv_objext
2145 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2146 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2147 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 cat >conftest.
$ac_ext <<_ACEOF
2151 #line $LINENO "configure"
2152 #include "confdefs.h"
2154 #ifdef F77_DUMMY_MAIN
2158 int F77_DUMMY_MAIN() { return 1; }
2171 rm -f conftest.
$ac_objext
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try
='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.
$ac_ext >&5
2189 rm -f conftest.
$ac_objext conftest.
$ac_ext
2190 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2193 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2194 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2195 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2196 ac_test_CFLAGS
=${CFLAGS+set}
2197 ac_save_CFLAGS
=$CFLAGS
2199 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2200 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2201 if test "${ac_cv_prog_cc_g+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 cat >conftest.
$ac_ext <<_ACEOF
2205 #line $LINENO "configure"
2206 #include "confdefs.h"
2208 #ifdef F77_DUMMY_MAIN
2212 int F77_DUMMY_MAIN() { return 1; }
2222 rm -f conftest.
$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try
='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2236 echo "$as_me: failed program was:" >&5
2237 cat conftest.
$ac_ext >&5
2240 rm -f conftest.
$ac_objext conftest.
$ac_ext
2242 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2244 if test "$ac_test_CFLAGS" = set; then
2245 CFLAGS
=$ac_save_CFLAGS
2246 elif test $ac_cv_prog_cc_g = yes; then
2247 if test "$GCC" = yes; then
2253 if test "$GCC" = yes; then
2259 # Some people use a C++ compiler to compile C. Since we use `exit',
2260 # in C++ we need to declare it. In case someone uses the same compiler
2261 # for both compiling C and C++ we need to have the C++ compiler decide
2262 # the declaration of exit, since it's the most demanding environment.
2263 cat >conftest.
$ac_ext <<_ACEOF
2268 rm -f conftest.
$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
2274 { ac_try
='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 for ac_declaration
in \
2282 '#include <stdlib.h>' \
2283 'extern "C" void std::exit (int) throw (); using std::exit;' \
2284 'extern "C" void std::exit (int); using std::exit;' \
2285 'extern "C" void exit (int) throw ();' \
2286 'extern "C" void exit (int);' \
2289 cat >conftest.
$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2291 #include "confdefs.h"
2294 #ifdef F77_DUMMY_MAIN
2298 int F77_DUMMY_MAIN() { return 1; }
2308 rm -f conftest.
$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try
='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 echo "$as_me: failed program was:" >&5
2323 cat conftest.
$ac_ext >&5
2326 rm -f conftest.
$ac_objext conftest.
$ac_ext
2327 cat >conftest.
$ac_ext <<_ACEOF
2328 #line $LINENO "configure"
2329 #include "confdefs.h"
2331 #ifdef F77_DUMMY_MAIN
2335 int F77_DUMMY_MAIN() { return 1; }
2345 rm -f conftest.
$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try
='test -s conftest.$ac_objext'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2359 echo "$as_me: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2362 rm -f conftest.
$ac_objext conftest.
$ac_ext
2365 if test -n "$ac_declaration"; then
2366 echo '#ifdef __cplusplus' >>confdefs.h
2367 echo $ac_declaration >>confdefs.h
2368 echo '#endif' >>confdefs.h
2372 echo "$as_me: failed program was:" >&5
2373 cat conftest.
$ac_ext >&5
2375 rm -f conftest.
$ac_objext conftest.
$ac_ext
2377 ac_cpp
='$CPP $CPPFLAGS'
2378 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2379 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2380 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2381 rm -f .deps
2>/dev
/null
2382 mkdir .deps
2>/dev
/null
2383 if test -d .deps
; then
2386 # MS-DOS does not allow filenames that begin with a dot.
2389 rmdir .deps
2>/dev
/null
2392 ac_config_commands
="$ac_config_commands depfiles"
2395 am_make
=${MAKE-make}
2396 cat > confinc
<< 'END'
2400 # If we don't find an include directive, just comment out the code.
2401 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2402 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2406 # First try GNU make style include.
2407 echo "include confinc" > confmf
2408 # We grep out `Entering directory' and `Leaving directory'
2409 # messages which can occur if `w' ends up in MAKEFLAGS.
2410 # In particular we don't look at `^make:' because GNU make might
2411 # be invoked under some other name (usually "gmake"), in which
2412 # case it prints its new name instead of `make'.
2413 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2418 # Now try BSD make style include.
2419 if test "$am__include" = "#"; then
2420 echo '.include "confinc"' > confmf
2421 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2422 am__include
=.include
2429 echo "$as_me:$LINENO: result: $_am_result" >&5
2430 echo "${ECHO_T}$_am_result" >&6
2431 rm -f confinc confmf
2433 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2434 if test "${enable_dependency_tracking+set}" = set; then
2435 enableval
="$enable_dependency_tracking"
2438 if test "x$enable_dependency_tracking" != xno
; then
2439 am_depcomp
="$ac_aux_dir/depcomp"
2444 if test "x$enable_dependency_tracking" != xno; then
2455 depcc
="$CC" am_compiler_list
=
2457 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2458 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2459 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2463 # We make a subdir and do the tests there. Otherwise we can end up
2464 # making bogus files that we don't know about and never remove. For
2465 # instance it was reported that on HP-UX the gcc test will end up
2466 # making a dummy file named `D' -- because `-MD' means `put the output
2469 # Copy depcomp to subdir because otherwise we won't find it if we're
2470 # using a relative directory.
2471 cp "$am_depcomp" conftest.dir
2474 am_cv_CC_dependencies_compiler_type
=none
2475 if test "$am_compiler_list" = ""; then
2476 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2478 for depmode
in $am_compiler_list; do
2479 # We need to recreate these files for each test, as the compiler may
2480 # overwrite some of them when testing with obscure command lines.
2481 # This happens at least with the AIX C compiler.
2482 echo '#include "conftest.h"' > conftest.c
2483 echo 'int i;' > conftest.h
2484 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2488 # after this tag, mechanisms are not by side-effect, so they'll
2489 # only be used when explicitly requested
2490 if test "x$enable_dependency_tracking" = xyes
; then
2498 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2499 # mode. It turns out that the SunPro C++ compiler does not properly
2500 # handle `-M -o', and we need to detect this.
2501 if depmode
=$depmode \
2502 source=conftest.c object
=conftest.o \
2503 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2504 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2505 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2506 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2507 am_cv_CC_dependencies_compiler_type
=$depmode
2515 am_cv_CC_dependencies_compiler_type
=none
2519 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2520 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2521 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2526 ac_cpp
='$CPP $CPPFLAGS'
2527 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2530 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2531 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2532 # On Suns, sometimes $CPP names a directory.
2533 if test -n "$CPP" && test -d "$CPP"; then
2536 if test -z "$CPP"; then
2537 if test "${ac_cv_prog_CPP+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 # Double quotes because CPP needs to be expanded
2541 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2544 for ac_c_preproc_warn_flag
in '' yes
2546 # Use a header file that comes with gcc, so configuring glibc
2547 # with a fresh cross-compiler works.
2548 # On the NeXT, cc -E runs the code through the compiler's parser,
2549 # not just through cpp. "Syntax error" is here to catch this case.
2550 cat >conftest.
$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2552 #include "confdefs.h"
2556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2557 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2559 egrep -v '^ *\+' conftest.er1
>conftest.err
2561 cat conftest.err
>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } >/dev
/null
; then
2564 if test -s conftest.err
; then
2565 ac_cpp_err
=$ac_c_preproc_warn_flag
2572 if test -z "$ac_cpp_err"; then
2575 echo "$as_me: failed program was:" >&5
2576 cat conftest.
$ac_ext >&5
2577 # Broken: fails on valid input.
2580 rm -f conftest.err conftest.
$ac_ext
2582 # OK, works on sane cases. Now check whether non-existent headers
2583 # can be detected and how.
2584 cat >conftest.
$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2586 #include "confdefs.h"
2587 #include <ac_nonexistent.h>
2589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2590 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2592 egrep -v '^ *\+' conftest.er1
>conftest.err
2594 cat conftest.err
>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } >/dev
/null
; then
2597 if test -s conftest.err
; then
2598 ac_cpp_err
=$ac_c_preproc_warn_flag
2605 if test -z "$ac_cpp_err"; then
2606 # Broken: success on invalid input.
2609 echo "$as_me: failed program was:" >&5
2610 cat conftest.
$ac_ext >&5
2611 # Passes both tests.
2615 rm -f conftest.err conftest.
$ac_ext
2618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2619 rm -f conftest.err conftest.
$ac_ext
2620 if $ac_preproc_ok; then
2632 echo "$as_me:$LINENO: result: $CPP" >&5
2633 echo "${ECHO_T}$CPP" >&6
2635 for ac_c_preproc_warn_flag
in '' yes
2637 # Use a header file that comes with gcc, so configuring glibc
2638 # with a fresh cross-compiler works.
2639 # On the NeXT, cc -E runs the code through the compiler's parser,
2640 # not just through cpp. "Syntax error" is here to catch this case.
2641 cat >conftest.
$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2648 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2650 egrep -v '^ *\+' conftest.er1
>conftest.err
2652 cat conftest.err
>&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } >/dev
/null
; then
2655 if test -s conftest.err
; then
2656 ac_cpp_err
=$ac_c_preproc_warn_flag
2663 if test -z "$ac_cpp_err"; then
2666 echo "$as_me: failed program was:" >&5
2667 cat conftest.
$ac_ext >&5
2668 # Broken: fails on valid input.
2671 rm -f conftest.err conftest.
$ac_ext
2673 # OK, works on sane cases. Now check whether non-existent headers
2674 # can be detected and how.
2675 cat >conftest.
$ac_ext <<_ACEOF
2676 #line $LINENO "configure"
2677 #include "confdefs.h"
2678 #include <ac_nonexistent.h>
2680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2681 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2683 egrep -v '^ *\+' conftest.er1
>conftest.err
2685 cat conftest.err
>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } >/dev
/null
; then
2688 if test -s conftest.err
; then
2689 ac_cpp_err
=$ac_c_preproc_warn_flag
2696 if test -z "$ac_cpp_err"; then
2697 # Broken: success on invalid input.
2700 echo "$as_me: failed program was:" >&5
2701 cat conftest.
$ac_ext >&5
2702 # Passes both tests.
2706 rm -f conftest.err conftest.
$ac_ext
2709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2710 rm -f conftest.err conftest.
$ac_ext
2711 if $ac_preproc_ok; then
2714 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2715 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2716 { (exit 1); exit 1; }; }
2720 ac_cpp
='$CPP $CPPFLAGS'
2721 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2726 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2727 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2728 if test "${ac_cv_header_stdc+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 cat >conftest.
$ac_ext <<_ACEOF
2732 #line $LINENO "configure"
2733 #include "confdefs.h"
2740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2741 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2743 egrep -v '^ *\+' conftest.er1
>conftest.err
2745 cat conftest.err
>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } >/dev
/null
; then
2748 if test -s conftest.err
; then
2749 ac_cpp_err
=$ac_c_preproc_warn_flag
2756 if test -z "$ac_cpp_err"; then
2757 ac_cv_header_stdc
=yes
2759 echo "$as_me: failed program was:" >&5
2760 cat conftest.
$ac_ext >&5
2761 ac_cv_header_stdc
=no
2763 rm -f conftest.err conftest.
$ac_ext
2765 if test $ac_cv_header_stdc = yes; then
2766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2767 cat >conftest.
$ac_ext <<_ACEOF
2768 #line $LINENO "configure"
2769 #include "confdefs.h"
2773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2774 egrep "memchr" >/dev
/null
2>&1; then
2777 ac_cv_header_stdc
=no
2783 if test $ac_cv_header_stdc = yes; then
2784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2785 cat >conftest.
$ac_ext <<_ACEOF
2786 #line $LINENO "configure"
2787 #include "confdefs.h"
2791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2792 egrep "free" >/dev
/null
2>&1; then
2795 ac_cv_header_stdc
=no
2801 if test $ac_cv_header_stdc = yes; then
2802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2803 if test "$cross_compiling" = yes; then
2806 cat >conftest.
$ac_ext <<_ACEOF
2807 #line $LINENO "configure"
2808 #include "confdefs.h"
2810 #if ((' ' & 0x0FF) == 0x020)
2811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2814 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2815 || ('j' <= (c) && (c) <= 'r') \
2816 || ('s' <= (c) && (c) <= 'z'))
2817 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2820 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2825 for (i = 0; i < 256; i++)
2826 if (XOR (islower (i), ISLOWER (i))
2827 || toupper (i) != TOUPPER (i))
2832 rm -f conftest
$ac_exeext
2833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834 (eval $ac_link) 2>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2845 echo "$as_me: program exited with status $ac_status" >&5
2846 echo "$as_me: failed program was:" >&5
2847 cat conftest.
$ac_ext >&5
2849 ac_cv_header_stdc
=no
2851 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2855 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2856 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2857 if test $ac_cv_header_stdc = yes; then
2859 cat >>confdefs.h
<<\_ACEOF
2860 #define STDC_HEADERS 1
2865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2875 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2876 inttypes.h stdint.h unistd.h
2878 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2879 echo "$as_me:$LINENO: checking for $ac_header" >&5
2880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 cat >conftest.
$ac_ext <<_ACEOF
2885 #line $LINENO "configure"
2886 #include "confdefs.h"
2887 $ac_includes_default
2889 #include <$ac_header>
2891 rm -f conftest.
$ac_objext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2893 (eval $ac_compile) 2>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try
='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2903 eval "$as_ac_Header=yes"
2905 echo "$as_me: failed program was:" >&5
2906 cat conftest.
$ac_ext >&5
2907 eval "$as_ac_Header=no"
2909 rm -f conftest.
$ac_objext conftest.
$ac_ext
2911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2914 cat >>confdefs.h
<<_ACEOF
2915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2923 if test "${ac_cv_header_minix_config_h+set}" = set; then
2924 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2925 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2926 if test "${ac_cv_header_minix_config_h+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2930 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2932 # Is the header compilable?
2933 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2934 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2935 cat >conftest.
$ac_ext <<_ACEOF
2936 #line $LINENO "configure"
2937 #include "confdefs.h"
2938 $ac_includes_default
2939 #include <minix/config.h>
2941 rm -f conftest.
$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } &&
2947 { ac_try
='test -s conftest.$ac_objext'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 ac_header_compiler
=yes
2955 echo "$as_me: failed program was:" >&5
2956 cat conftest.
$ac_ext >&5
2957 ac_header_compiler
=no
2959 rm -f conftest.
$ac_objext conftest.
$ac_ext
2960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2961 echo "${ECHO_T}$ac_header_compiler" >&6
2963 # Is the header present?
2964 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2965 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2966 cat >conftest.
$ac_ext <<_ACEOF
2967 #line $LINENO "configure"
2968 #include "confdefs.h"
2969 #include <minix/config.h>
2971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2972 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2974 egrep -v '^ *\+' conftest.er1
>conftest.err
2976 cat conftest.err
>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } >/dev
/null
; then
2979 if test -s conftest.err
; then
2980 ac_cpp_err
=$ac_c_preproc_warn_flag
2987 if test -z "$ac_cpp_err"; then
2988 ac_header_preproc
=yes
2990 echo "$as_me: failed program was:" >&5
2991 cat conftest.
$ac_ext >&5
2992 ac_header_preproc
=no
2994 rm -f conftest.err conftest.
$ac_ext
2995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2996 echo "${ECHO_T}$ac_header_preproc" >&6
2998 # So? What about this header?
2999 case $ac_header_compiler:$ac_header_preproc in
3001 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3002 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3003 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3004 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3006 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3007 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3008 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3009 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3010 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3011 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3013 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3014 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3015 if test "${ac_cv_header_minix_config_h+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 ac_cv_header_minix_config_h
=$ac_header_preproc
3020 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3021 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3024 if test $ac_cv_header_minix_config_h = yes; then
3031 if test "$MINIX" = yes; then
3033 cat >>confdefs.h
<<\_ACEOF
3034 #define _POSIX_SOURCE 1
3038 cat >>confdefs.h
<<\_ACEOF
3039 #define _POSIX_1_SOURCE 2
3043 cat >>confdefs.h
<<\_ACEOF
3050 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3051 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3052 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 ac_check_lib_save_LIBS
=$LIBS
3056 LIBS
="-lcposix $LIBS"
3057 cat >conftest.
$ac_ext <<_ACEOF
3058 #line $LINENO "configure"
3059 #include "confdefs.h"
3061 /* Override any gcc2 internal prototype to avoid an error. */
3065 /* We use char because int might match the return type of a gcc2
3066 builtin and then its argument prototype would still apply. */
3068 #ifdef F77_DUMMY_MAIN
3072 int F77_DUMMY_MAIN() { return 1; }
3082 rm -f conftest.
$ac_objext conftest
$ac_exeext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3084 (eval $ac_link) 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try
='test -s conftest$ac_exeext'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3094 ac_cv_lib_cposix_strerror
=yes
3096 echo "$as_me: failed program was:" >&5
3097 cat conftest.
$ac_ext >&5
3098 ac_cv_lib_cposix_strerror
=no
3100 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3101 LIBS
=$ac_check_lib_save_LIBS
3103 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3104 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3105 if test $ac_cv_lib_cposix_strerror = yes; then
3106 LIBS
="$LIBS -lcposix"
3114 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3115 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3116 if test "${am_cv_prog_cc_stdc+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 am_cv_prog_cc_stdc
=no
3121 # Don't try gcc -ansi; that turns off useful extensions and
3122 # breaks some systems' header files.
3123 # AIX -qlanglvl=ansi
3124 # Ultrix and OSF/1 -std1
3125 # HP-UX 10.20 and later -Ae
3126 # HP-UX older versions -Aa -D_HPUX_SOURCE
3127 # SVR4 -Xc -D__EXTENSIONS__
3128 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3130 CC
="$ac_save_CC $ac_arg"
3131 cat >conftest.
$ac_ext <<_ACEOF
3132 #line $LINENO "configure"
3133 #include "confdefs.h"
3136 #include <sys/types.h>
3137 #include <sys/stat.h>
3138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3139 struct buf { int x; };
3140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3141 static char *e (p, i)
3147 static char *f (char * (*g) (char **, int), char **p, ...)
3152 s = g (p, va_arg (v,int));
3156 int test (int i, double x);
3157 struct s1 {int (*f) (int a);};
3158 struct s2 {int (*f) (double a);};
3159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3163 #ifdef F77_DUMMY_MAIN
3167 int F77_DUMMY_MAIN() { return 1; }
3173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3179 rm -f conftest.
$ac_objext
3180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3181 (eval $ac_compile) 2>&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try
='test -s conftest.$ac_objext'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 am_cv_prog_cc_stdc
="$ac_arg"; break
3193 echo "$as_me: failed program was:" >&5
3194 cat conftest.
$ac_ext >&5
3196 rm -f conftest.
$ac_objext conftest.
$ac_ext
3202 if test -z "$am_cv_prog_cc_stdc"; then
3203 echo "$as_me:$LINENO: result: none needed" >&5
3204 echo "${ECHO_T}none needed" >&6
3206 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3207 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3209 case "x$am_cv_prog_cc_stdc" in
3211 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
3214 if test -n "$ac_tool_prefix"; then
3215 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3216 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3217 echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_prog_RANLIB+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 if test -n "$RANLIB"; then
3223 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3229 test -z "$as_dir" && as_dir
=.
3230 for ac_exec_ext
in '' $ac_executable_extensions; do
3231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 RANLIB
=$ac_cv_prog_RANLIB
3242 if test -n "$RANLIB"; then
3243 echo "$as_me:$LINENO: result: $RANLIB" >&5
3244 echo "${ECHO_T}$RANLIB" >&6
3246 echo "$as_me:$LINENO: result: no" >&5
3247 echo "${ECHO_T}no" >&6
3251 if test -z "$ac_cv_prog_RANLIB"; then
3252 ac_ct_RANLIB
=$RANLIB
3253 # Extract the first word of "ranlib", so it can be a program name with args.
3254 set dummy ranlib
; ac_word
=$2
3255 echo "$as_me:$LINENO: checking for $ac_word" >&5
3256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3257 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 if test -n "$ac_ct_RANLIB"; then
3261 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3267 test -z "$as_dir" && as_dir
=.
3268 for ac_exec_ext
in '' $ac_executable_extensions; do
3269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3280 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3281 if test -n "$ac_ct_RANLIB"; then
3282 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3283 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3285 echo "$as_me:$LINENO: result: no" >&5
3286 echo "${ECHO_T}no" >&6
3289 RANLIB
=$ac_ct_RANLIB
3291 RANLIB
="$ac_cv_prog_RANLIB"
3295 AUTOM4TE
=${AUTOM4TE-"${am_missing_run}autom4te"}
3298 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3299 if test "${enable_gcc_warnings+set}" = set; then
3300 enableval
="$enable_gcc_warnings"
3301 case "${enableval}" in
3303 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3304 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3305 { (exit 1); exit 1; }; } ;;
3310 if test "${enableval}" = yes; then
3311 echo "$as_me:$LINENO: checking whether compiler accepts -Werror" >&5
3312 echo $ECHO_N "checking whether compiler accepts -Werror... $ECHO_C" >&6
3314 ac_save_CFLAGS
="$CFLAGS"
3315 CFLAGS
="$CFLAGS -Werror"
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 -Werror"
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 WERROR_CFLAGS
=$WARNING_CFLAGS
3360 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3361 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3363 ac_save_CFLAGS
="$CFLAGS"
3364 CFLAGS
="$CFLAGS -Wall"
3365 cat >conftest.
$ac_ext <<_ACEOF
3366 #line $LINENO "configure"
3367 #include "confdefs.h"
3369 #ifdef F77_DUMMY_MAIN
3373 int F77_DUMMY_MAIN() { return 1; }
3383 rm -f conftest.
$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } &&
3389 { ac_try
='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3396 echo "$as_me:$LINENO: result: yes" >&5
3397 echo "${ECHO_T}yes" >&6
3399 echo "$as_me: failed program was:" >&5
3400 cat conftest.
$ac_ext >&5
3401 echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6
3404 rm -f conftest.
$ac_objext conftest.
$ac_ext
3405 CFLAGS
="$ac_save_CFLAGS"
3406 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3407 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3409 ac_save_CFLAGS
="$CFLAGS"
3411 cat >conftest.
$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 #include "confdefs.h"
3415 #ifdef F77_DUMMY_MAIN
3419 int F77_DUMMY_MAIN() { return 1; }
3429 rm -f conftest.
$ac_objext
3430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try
='test -s conftest.$ac_objext'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; }; then
3441 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3442 echo "$as_me:$LINENO: result: yes" >&5
3443 echo "${ECHO_T}yes" >&6
3445 echo "$as_me: failed program was:" >&5
3446 cat conftest.
$ac_ext >&5
3447 echo "$as_me:$LINENO: result: no" >&5
3448 echo "${ECHO_T}no" >&6
3450 rm -f conftest.
$ac_objext conftest.
$ac_ext
3451 CFLAGS
="$ac_save_CFLAGS"
3452 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3453 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3455 ac_save_CFLAGS
="$CFLAGS"
3456 CFLAGS
="$CFLAGS -Wbad-function-cast"
3457 cat >conftest.
$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3459 #include "confdefs.h"
3461 #ifdef F77_DUMMY_MAIN
3465 int F77_DUMMY_MAIN() { return 1; }
3475 rm -f conftest.
$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } &&
3481 { ac_try
='test -s conftest.$ac_objext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3488 echo "$as_me:$LINENO: result: yes" >&5
3489 echo "${ECHO_T}yes" >&6
3491 echo "$as_me: failed program was:" >&5
3492 cat conftest.
$ac_ext >&5
3493 echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3496 rm -f conftest.
$ac_objext conftest.
$ac_ext
3497 CFLAGS
="$ac_save_CFLAGS"
3498 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3499 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3501 ac_save_CFLAGS
="$CFLAGS"
3502 CFLAGS
="$CFLAGS -Wcast-align"
3503 cat >conftest.
$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 #include "confdefs.h"
3507 #ifdef F77_DUMMY_MAIN
3511 int F77_DUMMY_MAIN() { return 1; }
3521 rm -f conftest.
$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try
='test -s conftest.$ac_objext'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3534 echo "$as_me:$LINENO: result: yes" >&5
3535 echo "${ECHO_T}yes" >&6
3537 echo "$as_me: failed program was:" >&5
3538 cat conftest.
$ac_ext >&5
3539 echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3542 rm -f conftest.
$ac_objext conftest.
$ac_ext
3543 CFLAGS
="$ac_save_CFLAGS"
3544 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3545 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3547 ac_save_CFLAGS
="$CFLAGS"
3548 CFLAGS
="$CFLAGS -Wcast-qual"
3549 cat >conftest.
$ac_ext <<_ACEOF
3550 #line $LINENO "configure"
3551 #include "confdefs.h"
3553 #ifdef F77_DUMMY_MAIN
3557 int F77_DUMMY_MAIN() { return 1; }
3567 rm -f conftest.
$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try
='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
3579 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3580 echo "$as_me:$LINENO: result: yes" >&5
3581 echo "${ECHO_T}yes" >&6
3583 echo "$as_me: failed program was:" >&5
3584 cat conftest.
$ac_ext >&5
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3588 rm -f conftest.
$ac_objext conftest.
$ac_ext
3589 CFLAGS
="$ac_save_CFLAGS"
3590 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3591 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3593 ac_save_CFLAGS
="$CFLAGS"
3594 CFLAGS
="$CFLAGS -Wformat"
3595 cat >conftest.
$ac_ext <<_ACEOF
3596 #line $LINENO "configure"
3597 #include "confdefs.h"
3599 #ifdef F77_DUMMY_MAIN
3603 int F77_DUMMY_MAIN() { return 1; }
3613 rm -f conftest.
$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
3619 { ac_try
='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3626 echo "$as_me:$LINENO: result: yes" >&5
3627 echo "${ECHO_T}yes" >&6
3629 echo "$as_me: failed program was:" >&5
3630 cat conftest.
$ac_ext >&5
3631 echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6
3634 rm -f conftest.
$ac_objext conftest.
$ac_ext
3635 CFLAGS
="$ac_save_CFLAGS"
3636 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3637 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3639 ac_save_CFLAGS
="$CFLAGS"
3640 CFLAGS
="$CFLAGS -Wmissing-declarations"
3641 cat >conftest.
$ac_ext <<_ACEOF
3642 #line $LINENO "configure"
3643 #include "confdefs.h"
3645 #ifdef F77_DUMMY_MAIN
3649 int F77_DUMMY_MAIN() { return 1; }
3659 rm -f conftest.
$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try
='test -s conftest.$ac_objext'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3672 echo "$as_me:$LINENO: result: yes" >&5
3673 echo "${ECHO_T}yes" >&6
3675 echo "$as_me: failed program was:" >&5
3676 cat conftest.
$ac_ext >&5
3677 echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3680 rm -f conftest.
$ac_objext conftest.
$ac_ext
3681 CFLAGS
="$ac_save_CFLAGS"
3682 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3683 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3685 ac_save_CFLAGS
="$CFLAGS"
3686 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3687 cat >conftest.
$ac_ext <<_ACEOF
3688 #line $LINENO "configure"
3689 #include "confdefs.h"
3691 #ifdef F77_DUMMY_MAIN
3695 int F77_DUMMY_MAIN() { return 1; }
3705 rm -f conftest.
$ac_objext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try
='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3718 echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6
3721 echo "$as_me: failed program was:" >&5
3722 cat conftest.
$ac_ext >&5
3723 echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6
3726 rm -f conftest.
$ac_objext conftest.
$ac_ext
3727 CFLAGS
="$ac_save_CFLAGS"
3728 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3729 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3731 ac_save_CFLAGS
="$CFLAGS"
3732 CFLAGS
="$CFLAGS -Wnested-externs"
3733 cat >conftest.
$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3735 #include "confdefs.h"
3737 #ifdef F77_DUMMY_MAIN
3741 int F77_DUMMY_MAIN() { return 1; }
3751 rm -f conftest.
$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } &&
3757 { ac_try
='test -s conftest.$ac_objext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3763 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3764 echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6
3767 echo "$as_me: failed program was:" >&5
3768 cat conftest.
$ac_ext >&5
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3772 rm -f conftest.
$ac_objext conftest.
$ac_ext
3773 CFLAGS
="$ac_save_CFLAGS"
3774 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3775 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3777 ac_save_CFLAGS
="$CFLAGS"
3778 CFLAGS
="$CFLAGS -Wshadow"
3779 cat >conftest.
$ac_ext <<_ACEOF
3780 #line $LINENO "configure"
3781 #include "confdefs.h"
3783 #ifdef F77_DUMMY_MAIN
3787 int F77_DUMMY_MAIN() { return 1; }
3797 rm -f conftest.
$ac_objext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799 (eval $ac_compile) 2>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try
='test -s conftest.$ac_objext'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; }; then
3809 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3810 echo "$as_me:$LINENO: result: yes" >&5
3811 echo "${ECHO_T}yes" >&6
3813 echo "$as_me: failed program was:" >&5
3814 cat conftest.
$ac_ext >&5
3815 echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3818 rm -f conftest.
$ac_objext conftest.
$ac_ext
3819 CFLAGS
="$ac_save_CFLAGS"
3820 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3821 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3823 ac_save_CFLAGS
="$CFLAGS"
3824 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3825 cat >conftest.
$ac_ext <<_ACEOF
3826 #line $LINENO "configure"
3827 #include "confdefs.h"
3829 #ifdef F77_DUMMY_MAIN
3833 int F77_DUMMY_MAIN() { return 1; }
3843 rm -f conftest.
$ac_objext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try
='test -s conftest.$ac_objext'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; }; then
3855 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3856 echo "$as_me:$LINENO: result: yes" >&5
3857 echo "${ECHO_T}yes" >&6
3859 echo "$as_me: failed program was:" >&5
3860 cat conftest.
$ac_ext >&5
3861 echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6
3864 rm -f conftest.
$ac_objext conftest.
$ac_ext
3865 CFLAGS
="$ac_save_CFLAGS"
3866 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3867 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3869 ac_save_CFLAGS
="$CFLAGS"
3870 CFLAGS
="$CFLAGS -Wwrite-strings"
3871 cat >conftest.
$ac_ext <<_ACEOF
3872 #line $LINENO "configure"
3873 #include "confdefs.h"
3875 #ifdef F77_DUMMY_MAIN
3879 int F77_DUMMY_MAIN() { return 1; }
3889 rm -f conftest.
$ac_objext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891 (eval $ac_compile) 2>&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try
='test -s conftest.$ac_objext'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; }; then
3901 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3902 echo "$as_me:$LINENO: result: yes" >&5
3903 echo "${ECHO_T}yes" >&6
3905 echo "$as_me: failed program was:" >&5
3906 cat conftest.
$ac_ext >&5
3907 echo "$as_me:$LINENO: result: no" >&5
3908 echo "${ECHO_T}no" >&6
3910 rm -f conftest.
$ac_objext conftest.
$ac_ext
3911 CFLAGS
="$ac_save_CFLAGS"
3914 # Checks for libraries.
3916 cat >>confdefs.h
<<\_ACEOF
3917 #define _GNU_SOURCE 1
3921 # Checks for header files.
3922 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3924 if test "${ac_cv_header_stdc+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 cat >conftest.
$ac_ext <<_ACEOF
3928 #line $LINENO "configure"
3929 #include "confdefs.h"
3936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3937 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3939 egrep -v '^ *\+' conftest.er1
>conftest.err
3941 cat conftest.err
>&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } >/dev
/null
; then
3944 if test -s conftest.err
; then
3945 ac_cpp_err
=$ac_c_preproc_warn_flag
3952 if test -z "$ac_cpp_err"; then
3953 ac_cv_header_stdc
=yes
3955 echo "$as_me: failed program was:" >&5
3956 cat conftest.
$ac_ext >&5
3957 ac_cv_header_stdc
=no
3959 rm -f conftest.err conftest.
$ac_ext
3961 if test $ac_cv_header_stdc = yes; then
3962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3963 cat >conftest.
$ac_ext <<_ACEOF
3964 #line $LINENO "configure"
3965 #include "confdefs.h"
3969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3970 egrep "memchr" >/dev
/null
2>&1; then
3973 ac_cv_header_stdc
=no
3979 if test $ac_cv_header_stdc = yes; then
3980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3981 cat >conftest.
$ac_ext <<_ACEOF
3982 #line $LINENO "configure"
3983 #include "confdefs.h"
3987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3988 egrep "free" >/dev
/null
2>&1; then
3991 ac_cv_header_stdc
=no
3997 if test $ac_cv_header_stdc = yes; then
3998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3999 if test "$cross_compiling" = yes; then
4002 cat >conftest.
$ac_ext <<_ACEOF
4003 #line $LINENO "configure"
4004 #include "confdefs.h"
4006 #if ((' ' & 0x0FF) == 0x020)
4007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4010 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4011 || ('j' <= (c) && (c) <= 'r') \
4012 || ('s' <= (c) && (c) <= 'z'))
4013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4021 for (i = 0; i < 256; i++)
4022 if (XOR (islower (i), ISLOWER (i))
4023 || toupper (i) != TOUPPER (i))
4028 rm -f conftest
$ac_exeext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4041 echo "$as_me: program exited with status $ac_status" >&5
4042 echo "$as_me: failed program was:" >&5
4043 cat conftest.
$ac_ext >&5
4045 ac_cv_header_stdc
=no
4047 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4051 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4052 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4053 if test $ac_cv_header_stdc = yes; then
4055 cat >>confdefs.h
<<\_ACEOF
4056 #define STDC_HEADERS 1
4067 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
4069 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4071 echo "$as_me:$LINENO: checking for $ac_header" >&5
4072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4079 # Is the header compilable?
4080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4082 cat >conftest.
$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4084 #include "confdefs.h"
4085 $ac_includes_default
4086 #include <$ac_header>
4088 rm -f conftest.
$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try
='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 ac_header_compiler
=yes
4102 echo "$as_me: failed program was:" >&5
4103 cat conftest.
$ac_ext >&5
4104 ac_header_compiler
=no
4106 rm -f conftest.
$ac_objext conftest.
$ac_ext
4107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4108 echo "${ECHO_T}$ac_header_compiler" >&6
4110 # Is the header present?
4111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4113 cat >conftest.
$ac_ext <<_ACEOF
4114 #line $LINENO "configure"
4115 #include "confdefs.h"
4116 #include <$ac_header>
4118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4119 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4121 egrep -v '^ *\+' conftest.er1
>conftest.err
4123 cat conftest.err
>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev
/null
; then
4126 if test -s conftest.err
; then
4127 ac_cpp_err
=$ac_c_preproc_warn_flag
4134 if test -z "$ac_cpp_err"; then
4135 ac_header_preproc
=yes
4137 echo "$as_me: failed program was:" >&5
4138 cat conftest.
$ac_ext >&5
4139 ac_header_preproc
=no
4141 rm -f conftest.err conftest.
$ac_ext
4142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4143 echo "${ECHO_T}$ac_header_preproc" >&6
4145 # So? What about this header?
4146 case $ac_header_compiler:$ac_header_preproc in
4148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4160 echo "$as_me:$LINENO: checking for $ac_header" >&5
4161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 eval "$as_ac_Header=$ac_header_preproc"
4167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4172 cat >>confdefs.h
<<_ACEOF
4173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4181 # Checks for typedefs.
4183 # Checks for structures.
4185 # Checks for compiler characteristics.
4186 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4187 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4188 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 ac_cv_prog_cc_stdc
=no
4193 cat >conftest.
$ac_ext <<_ACEOF
4194 #line $LINENO "configure"
4195 #include "confdefs.h"
4198 #include <sys/types.h>
4199 #include <sys/stat.h>
4200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4201 struct buf { int x; };
4202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4203 static char *e (p, i)
4209 static char *f (char * (*g) (char **, int), char **p, ...)
4214 s = g (p, va_arg (v,int));
4218 int test (int i, double x);
4219 struct s1 {int (*f) (int a);};
4220 struct s2 {int (*f) (double a);};
4221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4224 #ifdef F77_DUMMY_MAIN
4228 int F77_DUMMY_MAIN() { return 1; }
4233 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4238 # Don't try gcc -ansi; that turns off useful extensions and
4239 # breaks some systems' header files.
4240 # AIX -qlanglvl=ansi
4241 # Ultrix and OSF/1 -std1
4242 # HP-UX 10.20 and later -Ae
4243 # HP-UX older versions -Aa -D_HPUX_SOURCE
4244 # SVR4 -Xc -D__EXTENSIONS__
4245 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4247 CC
="$ac_save_CC $ac_arg"
4248 rm -f conftest.
$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250 (eval $ac_compile) 2>&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } &&
4254 { ac_try
='test -s conftest.$ac_objext'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; }; then
4260 ac_cv_prog_cc_stdc
=$ac_arg
4263 echo "$as_me: failed program was:" >&5
4264 cat conftest.
$ac_ext >&5
4266 rm -f conftest.
$ac_objext
4268 rm -f conftest.
$ac_ext conftest.
$ac_objext
4273 case "x$ac_cv_prog_cc_stdc" in
4275 echo "$as_me:$LINENO: result: none needed" >&5
4276 echo "${ECHO_T}none needed" >&6 ;;
4278 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4279 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4280 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4283 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4284 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4285 if test "${ac_cv_c_const+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 cat >conftest.
$ac_ext <<_ACEOF
4289 #line $LINENO "configure"
4290 #include "confdefs.h"
4292 #ifdef F77_DUMMY_MAIN
4296 int F77_DUMMY_MAIN() { return 1; }
4301 /* FIXME: Include the comments suggested by Paul. */
4303 /* Ultrix mips cc rejects this. */
4304 typedef int charset[2];
4306 /* SunOS 4.1.1 cc rejects this. */
4307 char const *const *ccp;
4309 /* NEC SVR4.0.2 mips cc rejects this. */
4310 struct point {int x, y;};
4311 static struct point const zero = {0,0};
4312 /* AIX XL C 1.02.0.0 rejects this.
4313 It does not let you subtract one const X* pointer from another in
4314 an arm of an if-expression whose if-part is not a constant
4316 const char *g = "string";
4317 ccp = &g + (g ? g-g : 0);
4318 /* HPUX 7.0 cc rejects these. */
4321 ccp = (char const *const *) p;
4322 { /* SCO 3.2v4 cc rejects this. */
4324 char const *s = 0 ? (char *) 0 : (char const *) 0;
4328 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4330 const int *foo = &x[0];
4333 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4334 typedef const int *iptr;
4338 { /* AIX XL C 1.02.0.0 rejects this saying
4339 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4340 struct s { int j; const int *ap[3]; };
4341 struct s *b; b->j = 5;
4343 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4352 rm -f conftest.
$ac_objext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354 (eval $ac_compile) 2>&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try
='test -s conftest.$ac_objext'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4366 echo "$as_me: failed program was:" >&5
4367 cat conftest.
$ac_ext >&5
4370 rm -f conftest.
$ac_objext conftest.
$ac_ext
4372 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4373 echo "${ECHO_T}$ac_cv_c_const" >&6
4374 if test $ac_cv_c_const = no
; then
4376 cat >>confdefs.h
<<\_ACEOF
4382 echo "$as_me:$LINENO: checking for inline" >&5
4383 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4384 if test "${ac_cv_c_inline+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 for ac_kw
in inline __inline__ __inline
; do
4389 cat >conftest.
$ac_ext <<_ACEOF
4390 #line $LINENO "configure"
4391 #include "confdefs.h"
4393 static $ac_kw int static_foo () {return 0; }
4394 $ac_kw int foo () {return 0; }
4398 rm -f conftest.
$ac_objext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try
='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 ac_cv_c_inline
=$ac_kw; break
4412 echo "$as_me: failed program was:" >&5
4413 cat conftest.
$ac_ext >&5
4415 rm -f conftest.
$ac_objext conftest.
$ac_ext
4419 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4420 echo "${ECHO_T}$ac_cv_c_inline" >&6
4421 case $ac_cv_c_inline in
4424 cat >>confdefs.h
<<\_ACEOF
4428 *) cat >>confdefs.h
<<_ACEOF
4429 #define inline $ac_cv_c_inline
4436 echo "$as_me:$LINENO: checking for function prototypes" >&5
4437 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4438 if test "$am_cv_prog_cc_stdc" != no
; then
4439 echo "$as_me:$LINENO: result: yes" >&5
4440 echo "${ECHO_T}yes" >&6
4442 cat >>confdefs.h
<<\_ACEOF
4443 #define PROTOTYPES 1
4448 echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4450 U
=_ ANSI2KNR
=.
/ansi2knr
4452 # Ensure some checks needed by ansi2knr itself.
4453 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4454 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4455 if test "${ac_cv_header_stdc+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 cat >conftest.
$ac_ext <<_ACEOF
4459 #line $LINENO "configure"
4460 #include "confdefs.h"
4467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4468 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4470 egrep -v '^ *\+' conftest.er1
>conftest.err
4472 cat conftest.err
>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } >/dev
/null
; then
4475 if test -s conftest.err
; then
4476 ac_cpp_err
=$ac_c_preproc_warn_flag
4483 if test -z "$ac_cpp_err"; then
4484 ac_cv_header_stdc
=yes
4486 echo "$as_me: failed program was:" >&5
4487 cat conftest.
$ac_ext >&5
4488 ac_cv_header_stdc
=no
4490 rm -f conftest.err conftest.
$ac_ext
4492 if test $ac_cv_header_stdc = yes; then
4493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4494 cat >conftest.
$ac_ext <<_ACEOF
4495 #line $LINENO "configure"
4496 #include "confdefs.h"
4500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4501 egrep "memchr" >/dev
/null
2>&1; then
4504 ac_cv_header_stdc
=no
4510 if test $ac_cv_header_stdc = yes; then
4511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4512 cat >conftest.
$ac_ext <<_ACEOF
4513 #line $LINENO "configure"
4514 #include "confdefs.h"
4518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4519 egrep "free" >/dev
/null
2>&1; then
4522 ac_cv_header_stdc
=no
4528 if test $ac_cv_header_stdc = yes; then
4529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4530 if test "$cross_compiling" = yes; then
4533 cat >conftest.
$ac_ext <<_ACEOF
4534 #line $LINENO "configure"
4535 #include "confdefs.h"
4537 #if ((' ' & 0x0FF) == 0x020)
4538 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4539 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4541 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4542 || ('j' <= (c) && (c) <= 'r') \
4543 || ('s' <= (c) && (c) <= 'z'))
4544 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4552 for (i = 0; i < 256; i++)
4553 if (XOR (islower (i), ISLOWER (i))
4554 || toupper (i) != TOUPPER (i))
4559 rm -f conftest
$ac_exeext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4561 (eval $ac_link) 2>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4572 echo "$as_me: program exited with status $ac_status" >&5
4573 echo "$as_me: failed program was:" >&5
4574 cat conftest.
$ac_ext >&5
4576 ac_cv_header_stdc
=no
4578 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4582 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4583 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4584 if test $ac_cv_header_stdc = yes; then
4586 cat >>confdefs.h
<<\_ACEOF
4587 #define STDC_HEADERS 1
4593 for ac_header
in string.h
4595 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4597 echo "$as_me:$LINENO: checking for $ac_header" >&5
4598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4605 # Is the header compilable?
4606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4608 cat >conftest.
$ac_ext <<_ACEOF
4609 #line $LINENO "configure"
4610 #include "confdefs.h"
4611 $ac_includes_default
4612 #include <$ac_header>
4614 rm -f conftest.
$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try
='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_header_compiler
=yes
4628 echo "$as_me: failed program was:" >&5
4629 cat conftest.
$ac_ext >&5
4630 ac_header_compiler
=no
4632 rm -f conftest.
$ac_objext conftest.
$ac_ext
4633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4634 echo "${ECHO_T}$ac_header_compiler" >&6
4636 # Is the header present?
4637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4639 cat >conftest.
$ac_ext <<_ACEOF
4640 #line $LINENO "configure"
4641 #include "confdefs.h"
4642 #include <$ac_header>
4644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4645 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4647 egrep -v '^ *\+' conftest.er1
>conftest.err
4649 cat conftest.err
>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } >/dev
/null
; then
4652 if test -s conftest.err
; then
4653 ac_cpp_err
=$ac_c_preproc_warn_flag
4660 if test -z "$ac_cpp_err"; then
4661 ac_header_preproc
=yes
4663 echo "$as_me: failed program was:" >&5
4664 cat conftest.
$ac_ext >&5
4665 ac_header_preproc
=no
4667 rm -f conftest.err conftest.
$ac_ext
4668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4669 echo "${ECHO_T}$ac_header_preproc" >&6
4671 # So? What about this header?
4672 case $ac_header_compiler:$ac_header_preproc in
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4686 echo "$as_me:$LINENO: checking for $ac_header" >&5
4687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 eval "$as_ac_Header=$ac_header_preproc"
4693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4698 cat >>confdefs.h
<<_ACEOF
4699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4708 # Checks for library functions.
4709 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4710 # for constant arguments. Useless!
4711 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4712 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4713 if test "${ac_cv_working_alloca_h+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 cat >conftest.
$ac_ext <<_ACEOF
4717 #line $LINENO "configure"
4718 #include "confdefs.h"
4720 #ifdef F77_DUMMY_MAIN
4724 int F77_DUMMY_MAIN() { return 1; }
4729 char *p = (char *) alloca (2 * sizeof (int));
4734 rm -f conftest.
$ac_objext conftest
$ac_exeext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736 (eval $ac_link) 2>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try
='test -s conftest$ac_exeext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 ac_cv_working_alloca_h
=yes
4748 echo "$as_me: failed program was:" >&5
4749 cat conftest.
$ac_ext >&5
4750 ac_cv_working_alloca_h
=no
4752 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4754 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4755 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4756 if test $ac_cv_working_alloca_h = yes; then
4758 cat >>confdefs.h
<<\_ACEOF
4759 #define HAVE_ALLOCA_H 1
4764 echo "$as_me:$LINENO: checking for alloca" >&5
4765 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4766 if test "${ac_cv_func_alloca_works+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 cat >conftest.
$ac_ext <<_ACEOF
4770 #line $LINENO "configure"
4771 #include "confdefs.h"
4773 # define alloca __builtin_alloca
4776 # include <malloc.h>
4777 # define alloca _alloca
4780 # include <alloca.h>
4785 # ifndef alloca /* predefined by HP cc +Olibcalls */
4793 #ifdef F77_DUMMY_MAIN
4797 int F77_DUMMY_MAIN() { return 1; }
4802 char *p = (char *) alloca (1);
4807 rm -f conftest.
$ac_objext conftest
$ac_exeext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809 (eval $ac_link) 2>&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try
='test -s conftest$ac_exeext'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; }; then
4819 ac_cv_func_alloca_works
=yes
4821 echo "$as_me: failed program was:" >&5
4822 cat conftest.
$ac_ext >&5
4823 ac_cv_func_alloca_works
=no
4825 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4827 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4828 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4830 if test $ac_cv_func_alloca_works = yes; then
4832 cat >>confdefs.h
<<\_ACEOF
4833 #define HAVE_ALLOCA 1
4837 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4838 # that cause trouble. Some versions do not even contain alloca or
4839 # contain a buggy version. If you still want to use their alloca,
4840 # use ar to extract alloca.o from them instead of compiling alloca.c.
4842 ALLOCA
=alloca.
$ac_objext
4844 cat >>confdefs.h
<<\_ACEOF
4849 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4850 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4851 if test "${ac_cv_os_cray+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 cat >conftest.
$ac_ext <<_ACEOF
4855 #line $LINENO "configure"
4856 #include "confdefs.h"
4857 #if defined(CRAY) && ! defined(CRAY2)
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 egrep "webecray" >/dev
/null
2>&1; then
4873 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4874 echo "${ECHO_T}$ac_cv_os_cray" >&6
4875 if test $ac_cv_os_cray = yes; then
4876 for ac_func
in _getb67 GETB67 getb67
; do
4877 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4878 echo "$as_me:$LINENO: checking for $ac_func" >&5
4879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4880 if eval "test \"\${$as_ac_var+set}\" = set"; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 cat >conftest.
$ac_ext <<_ACEOF
4884 #line $LINENO "configure"
4885 #include "confdefs.h"
4886 /* System header to define __stub macros and hopefully few prototypes,
4887 which can conflict with char $ac_func (); below. */
4889 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4898 #ifdef F77_DUMMY_MAIN
4902 int F77_DUMMY_MAIN() { return 1; }
4907 /* The GNU C library defines this for functions which it implements
4908 to always fail with ENOSYS. Some functions are actually named
4909 something starting with __ and the normal name is an alias. */
4910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4920 rm -f conftest.
$ac_objext conftest
$ac_exeext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4922 (eval $ac_link) 2>&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try
='test -s conftest$ac_exeext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4932 eval "$as_ac_var=yes"
4934 echo "$as_me: failed program was:" >&5
4935 cat conftest.
$ac_ext >&5
4936 eval "$as_ac_var=no"
4938 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4942 if test `eval echo '${'$as_ac_var'}'` = yes; then
4944 cat >>confdefs.h
<<_ACEOF
4945 #define CRAY_STACKSEG_END $ac_func
4954 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4955 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4956 if test "${ac_cv_c_stack_direction+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 if test "$cross_compiling" = yes; then
4960 ac_cv_c_stack_direction
=0
4962 cat >conftest.
$ac_ext <<_ACEOF
4963 #line $LINENO "configure"
4964 #include "confdefs.h"
4966 find_stack_direction ()
4968 static char *addr = 0;
4973 return find_stack_direction ();
4976 return (&dummy > addr) ? 1 : -1;
4982 exit (find_stack_direction () < 0);
4985 rm -f conftest
$ac_exeext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4987 (eval $ac_link) 2>&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_cv_c_stack_direction
=1
4998 echo "$as_me: program exited with status $ac_status" >&5
4999 echo "$as_me: failed program was:" >&5
5000 cat conftest.
$ac_ext >&5
5002 ac_cv_c_stack_direction
=-1
5004 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5007 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5008 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5010 cat >>confdefs.h
<<_ACEOF
5011 #define STACK_DIRECTION $ac_cv_c_stack_direction
5017 echo "$as_me:$LINENO: checking for obstacks" >&5
5018 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
5019 if test "${ac_cv_func_obstack+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 cat >conftest.
$ac_ext <<_ACEOF
5023 #line $LINENO "configure"
5024 #include "confdefs.h"
5025 #include "obstack.h"
5026 #ifdef F77_DUMMY_MAIN
5030 int F77_DUMMY_MAIN() { return 1; }
5035 struct obstack *mem; obstack_free(mem,(char *) 0)
5040 rm -f conftest.
$ac_objext conftest
$ac_exeext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5042 (eval $ac_link) 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try
='test -s conftest$ac_exeext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_func_obstack
=yes
5054 echo "$as_me: failed program was:" >&5
5055 cat conftest.
$ac_ext >&5
5056 ac_cv_func_obstack
=no
5058 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5060 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
5061 echo "${ECHO_T}$ac_cv_func_obstack" >&6
5062 if test $ac_cv_func_obstack = yes; then
5064 cat >>confdefs.h
<<\_ACEOF
5065 #define HAVE_OBSTACK 1
5069 LIBOBJS
="$LIBOBJS obstack.$ac_objext"
5072 echo "$as_me:$LINENO: checking for error_at_line" >&5
5073 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
5074 if test "${ac_cv_lib_error_at_line+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 cat >conftest.
$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5079 #include "confdefs.h"
5081 #ifdef F77_DUMMY_MAIN
5085 int F77_DUMMY_MAIN() { return 1; }
5090 error_at_line (0, 0, "", 0, "");
5095 rm -f conftest.
$ac_objext conftest
$ac_exeext
5096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5097 (eval $ac_link) 2>&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try
='test -s conftest$ac_exeext'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 ac_cv_lib_error_at_line
=yes
5109 echo "$as_me: failed program was:" >&5
5110 cat conftest.
$ac_ext >&5
5111 ac_cv_lib_error_at_line
=no
5113 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5115 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
5116 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
5117 if test $ac_cv_lib_error_at_line = no
; then
5118 LIBOBJS
="$LIBOBJS error.$ac_objext"
5121 echo "$as_me:$LINENO: checking for working strnlen" >&5
5122 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
5123 if test "${ac_cv_func_strnlen_working+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 if test "$cross_compiling" = yes; then
5127 ac_cv_func_strnlen_working
=no
5129 cat >conftest.
$ac_ext <<_ACEOF
5130 #line $LINENO "configure"
5131 #include "confdefs.h"
5133 #ifdef F77_DUMMY_MAIN
5137 int F77_DUMMY_MAIN() { return 1; }
5144 #define S_LEN (sizeof S - 1)
5146 /* At least one implementation is buggy: that of AIX 4.3 would
5147 give strnlen (S, 1) == 3. */
5150 for (i = 0; i < S_LEN + 1; ++i)
5152 int expected = i <= S_LEN ? i : S_LEN;
5153 if (strnlen (S, i) != expected)
5162 rm -f conftest
$ac_exeext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164 (eval $ac_link) 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_func_strnlen_working
=yes
5175 echo "$as_me: program exited with status $ac_status" >&5
5176 echo "$as_me: failed program was:" >&5
5177 cat conftest.
$ac_ext >&5
5179 ac_cv_func_strnlen_working
=no
5181 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5184 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
5185 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
5186 test $ac_cv_func_strnlen_working = no
&& LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
5190 for ac_func
in mkstemp setlocale
5192 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5193 echo "$as_me:$LINENO: checking for $ac_func" >&5
5194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5195 if eval "test \"\${$as_ac_var+set}\" = set"; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 cat >conftest.
$ac_ext <<_ACEOF
5199 #line $LINENO "configure"
5200 #include "confdefs.h"
5201 /* System header to define __stub macros and hopefully few prototypes,
5202 which can conflict with char $ac_func (); below. */
5204 /* Override any gcc2 internal prototype to avoid an error. */
5208 /* We use char because int might match the return type of a gcc2
5209 builtin and then its argument prototype would still apply. */
5213 #ifdef F77_DUMMY_MAIN
5217 int F77_DUMMY_MAIN() { return 1; }
5222 /* The GNU C library defines this for functions which it implements
5223 to always fail with ENOSYS. Some functions are actually named
5224 something starting with __ and the normal name is an alias. */
5225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5235 rm -f conftest.
$ac_objext conftest
$ac_exeext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try
='test -s conftest$ac_exeext'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 eval "$as_ac_var=yes"
5249 echo "$as_me: failed program was:" >&5
5250 cat conftest.
$ac_ext >&5
5251 eval "$as_ac_var=no"
5253 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5257 if test `eval echo '${'$as_ac_var'}'` = yes; then
5258 cat >>confdefs.h
<<_ACEOF
5259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5265 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
5266 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
5267 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 cat >conftest.
$ac_ext <<_ACEOF
5271 #line $LINENO "configure"
5272 #include "confdefs.h"
5273 $ac_includes_default
5274 #ifdef F77_DUMMY_MAIN
5278 int F77_DUMMY_MAIN() { return 1; }
5284 char *p = (char *) stpcpy;
5291 rm -f conftest.
$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try
='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_cv_have_decl_stpcpy
=yes
5305 echo "$as_me: failed program was:" >&5
5306 cat conftest.
$ac_ext >&5
5307 ac_cv_have_decl_stpcpy
=no
5309 rm -f conftest.
$ac_objext conftest.
$ac_ext
5311 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
5312 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
5313 if test $ac_cv_have_decl_stpcpy = yes; then
5315 cat >>confdefs.h
<<_ACEOF
5316 #define HAVE_DECL_STPCPY 1
5321 cat >>confdefs.h
<<_ACEOF
5322 #define HAVE_DECL_STPCPY 0
5327 echo "$as_me:$LINENO: checking whether strchr is declared" >&5
5328 echo $ECHO_N "checking whether strchr is declared... $ECHO_C" >&6
5329 if test "${ac_cv_have_decl_strchr+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 cat >conftest.
$ac_ext <<_ACEOF
5333 #line $LINENO "configure"
5334 #include "confdefs.h"
5335 $ac_includes_default
5336 #ifdef F77_DUMMY_MAIN
5340 int F77_DUMMY_MAIN() { return 1; }
5346 char *p = (char *) strchr;
5353 rm -f conftest.
$ac_objext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355 (eval $ac_compile) 2>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try
='test -s conftest.$ac_objext'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365 ac_cv_have_decl_strchr
=yes
5367 echo "$as_me: failed program was:" >&5
5368 cat conftest.
$ac_ext >&5
5369 ac_cv_have_decl_strchr
=no
5371 rm -f conftest.
$ac_objext conftest.
$ac_ext
5373 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strchr" >&5
5374 echo "${ECHO_T}$ac_cv_have_decl_strchr" >&6
5375 if test $ac_cv_have_decl_strchr = yes; then
5377 cat >>confdefs.h
<<_ACEOF
5378 #define HAVE_DECL_STRCHR 1
5383 cat >>confdefs.h
<<_ACEOF
5384 #define HAVE_DECL_STRCHR 0
5389 echo "$as_me:$LINENO: checking whether strspn is declared" >&5
5390 echo $ECHO_N "checking whether strspn is declared... $ECHO_C" >&6
5391 if test "${ac_cv_have_decl_strspn+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 cat >conftest.
$ac_ext <<_ACEOF
5395 #line $LINENO "configure"
5396 #include "confdefs.h"
5397 $ac_includes_default
5398 #ifdef F77_DUMMY_MAIN
5402 int F77_DUMMY_MAIN() { return 1; }
5408 char *p = (char *) strspn;
5415 rm -f conftest.
$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } &&
5421 { ac_try
='test -s conftest.$ac_objext'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; }; then
5427 ac_cv_have_decl_strspn
=yes
5429 echo "$as_me: failed program was:" >&5
5430 cat conftest.
$ac_ext >&5
5431 ac_cv_have_decl_strspn
=no
5433 rm -f conftest.
$ac_objext conftest.
$ac_ext
5435 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strspn" >&5
5436 echo "${ECHO_T}$ac_cv_have_decl_strspn" >&6
5437 if test $ac_cv_have_decl_strspn = yes; then
5439 cat >>confdefs.h
<<_ACEOF
5440 #define HAVE_DECL_STRSPN 1
5445 cat >>confdefs.h
<<_ACEOF
5446 #define HAVE_DECL_STRSPN 0
5451 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
5452 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
5453 if test "${ac_cv_have_decl_strnlen+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 cat >conftest.
$ac_ext <<_ACEOF
5457 #line $LINENO "configure"
5458 #include "confdefs.h"
5459 $ac_includes_default
5460 #ifdef F77_DUMMY_MAIN
5464 int F77_DUMMY_MAIN() { return 1; }
5470 char *p = (char *) strnlen;
5477 rm -f conftest.
$ac_objext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479 (eval $ac_compile) 2>&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try
='test -s conftest.$ac_objext'
5484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }; }; then
5489 ac_cv_have_decl_strnlen
=yes
5491 echo "$as_me: failed program was:" >&5
5492 cat conftest.
$ac_ext >&5
5493 ac_cv_have_decl_strnlen
=no
5495 rm -f conftest.
$ac_objext conftest.
$ac_ext
5497 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
5498 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5499 if test $ac_cv_have_decl_strnlen = yes; then
5501 cat >>confdefs.h
<<_ACEOF
5502 #define HAVE_DECL_STRNLEN 1
5507 cat >>confdefs.h
<<_ACEOF
5508 #define HAVE_DECL_STRNLEN 0
5513 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5514 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5515 if test "${ac_cv_have_decl_memchr+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 cat >conftest.
$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5521 $ac_includes_default
5522 #ifdef F77_DUMMY_MAIN
5526 int F77_DUMMY_MAIN() { return 1; }
5532 char *p = (char *) memchr;
5539 rm -f conftest.
$ac_objext
5540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5541 (eval $ac_compile) 2>&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try
='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_have_decl_memchr
=yes
5553 echo "$as_me: failed program was:" >&5
5554 cat conftest.
$ac_ext >&5
5555 ac_cv_have_decl_memchr
=no
5557 rm -f conftest.
$ac_objext conftest.
$ac_ext
5559 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5560 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5561 if test $ac_cv_have_decl_memchr = yes; then
5563 cat >>confdefs.h
<<_ACEOF
5564 #define HAVE_DECL_MEMCHR 1
5569 cat >>confdefs.h
<<_ACEOF
5570 #define HAVE_DECL_MEMCHR 0
5575 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
5576 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
5577 if test "${ac_cv_have_decl_memrchr+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 cat >conftest.
$ac_ext <<_ACEOF
5581 #line $LINENO "configure"
5582 #include "confdefs.h"
5583 $ac_includes_default
5584 #ifdef F77_DUMMY_MAIN
5588 int F77_DUMMY_MAIN() { return 1; }
5594 char *p = (char *) memrchr;
5601 rm -f conftest.
$ac_objext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603 (eval $ac_compile) 2>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try
='test -s conftest.$ac_objext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_cv_have_decl_memrchr
=yes
5615 echo "$as_me: failed program was:" >&5
5616 cat conftest.
$ac_ext >&5
5617 ac_cv_have_decl_memrchr
=no
5619 rm -f conftest.
$ac_objext conftest.
$ac_ext
5621 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
5622 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
5623 if test $ac_cv_have_decl_memrchr = yes; then
5625 cat >>confdefs.h
<<_ACEOF
5626 #define HAVE_DECL_MEMRCHR 1
5631 cat >>confdefs.h
<<_ACEOF
5632 #define HAVE_DECL_MEMRCHR 0
5644 for ac_func
in stpcpy strchr strspn memchr memrchr
5646 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5647 echo "$as_me:$LINENO: checking for $ac_func" >&5
5648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5649 if eval "test \"\${$as_ac_var+set}\" = set"; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 cat >conftest.
$ac_ext <<_ACEOF
5653 #line $LINENO "configure"
5654 #include "confdefs.h"
5655 /* System header to define __stub macros and hopefully few prototypes,
5656 which can conflict with char $ac_func (); below. */
5658 /* Override any gcc2 internal prototype to avoid an error. */
5662 /* We use char because int might match the return type of a gcc2
5663 builtin and then its argument prototype would still apply. */
5667 #ifdef F77_DUMMY_MAIN
5671 int F77_DUMMY_MAIN() { return 1; }
5676 /* The GNU C library defines this for functions which it implements
5677 to always fail with ENOSYS. Some functions are actually named
5678 something starting with __ and the normal name is an alias. */
5679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5689 rm -f conftest.
$ac_objext conftest
$ac_exeext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5691 (eval $ac_link) 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try
='test -s conftest$ac_exeext'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 eval "$as_ac_var=yes"
5703 echo "$as_me: failed program was:" >&5
5704 cat conftest.
$ac_ext >&5
5705 eval "$as_ac_var=no"
5707 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5711 if test `eval echo '${'$as_ac_var'}'` = yes; then
5712 cat >>confdefs.h
<<_ACEOF
5713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5717 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5724 cat >>confdefs.h
<<\_ACEOF
5725 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5729 echo "$as_me:$LINENO: checking for working malloc" >&5
5730 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5731 if test "${jm_cv_func_working_malloc+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 if test "$cross_compiling" = yes; then
5735 jm_cv_func_working_malloc
=no
5737 cat >conftest.
$ac_ext <<_ACEOF
5738 #line $LINENO "configure"
5739 #include "confdefs.h"
5745 exit (malloc (0) ? 0 : 1);
5749 rm -f conftest
$ac_exeext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5751 (eval $ac_link) 2>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
5760 jm_cv_func_working_malloc
=yes
5762 echo "$as_me: program exited with status $ac_status" >&5
5763 echo "$as_me: failed program was:" >&5
5764 cat conftest.
$ac_ext >&5
5766 jm_cv_func_working_malloc
=no
5768 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5772 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5773 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5774 if test $jm_cv_func_working_malloc = no
; then
5775 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5777 cat >>confdefs.h
<<\_ACEOF
5778 #define malloc rpl_malloc
5785 cat >>confdefs.h
<<\_ACEOF
5786 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5790 echo "$as_me:$LINENO: checking for working realloc" >&5
5791 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5792 if test "${jm_cv_func_working_realloc+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 if test "$cross_compiling" = yes; then
5796 jm_cv_func_working_realloc
=no
5798 cat >conftest.
$ac_ext <<_ACEOF
5799 #line $LINENO "configure"
5800 #include "confdefs.h"
5806 exit (realloc (0, 0) ? 0 : 1);
5810 rm -f conftest
$ac_exeext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5812 (eval $ac_link) 2>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 jm_cv_func_working_realloc
=yes
5823 echo "$as_me: program exited with status $ac_status" >&5
5824 echo "$as_me: failed program was:" >&5
5825 cat conftest.
$ac_ext >&5
5827 jm_cv_func_working_realloc
=no
5829 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5833 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5834 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5835 if test $jm_cv_func_working_realloc = no
; then
5836 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5838 cat >>confdefs.h
<<\_ACEOF
5839 #define realloc rpl_realloc
5848 for ac_func
in isascii iswprint mbsinit
5850 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5851 echo "$as_me:$LINENO: checking for $ac_func" >&5
5852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5853 if eval "test \"\${$as_ac_var+set}\" = set"; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 cat >conftest.
$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5858 #include "confdefs.h"
5859 /* System header to define __stub macros and hopefully few prototypes,
5860 which can conflict with char $ac_func (); below. */
5862 /* Override any gcc2 internal prototype to avoid an error. */
5866 /* We use char because int might match the return type of a gcc2
5867 builtin and then its argument prototype would still apply. */
5871 #ifdef F77_DUMMY_MAIN
5875 int F77_DUMMY_MAIN() { return 1; }
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5893 rm -f conftest.
$ac_objext conftest
$ac_exeext
5894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5895 (eval $ac_link) 2>&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } &&
5899 { ac_try
='test -s conftest$ac_exeext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 eval "$as_ac_var=yes"
5907 echo "$as_me: failed program was:" >&5
5908 cat conftest.
$ac_ext >&5
5909 eval "$as_ac_var=no"
5911 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5915 if test `eval echo '${'$as_ac_var'}'` = yes; then
5916 cat >>confdefs.h
<<_ACEOF
5917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5924 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5925 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5926 if test "${jm_cv_func_mbrtowc+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 cat >conftest.
$ac_ext <<_ACEOF
5930 #line $LINENO "configure"
5931 #include "confdefs.h"
5933 #ifdef F77_DUMMY_MAIN
5937 int F77_DUMMY_MAIN() { return 1; }
5942 mbstate_t state; return ! (sizeof state && mbrtowc);
5947 rm -f conftest.
$ac_objext conftest
$ac_exeext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5949 (eval $ac_link) 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try
='test -s conftest$ac_exeext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 jm_cv_func_mbrtowc
=yes
5961 echo "$as_me: failed program was:" >&5
5962 cat conftest.
$ac_ext >&5
5963 jm_cv_func_mbrtowc
=no
5965 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5967 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5968 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5969 if test $jm_cv_func_mbrtowc = yes; then
5971 cat >>confdefs.h
<<\_ACEOF
5972 #define HAVE_MBRTOWC 1
5983 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5985 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5987 echo "$as_me:$LINENO: checking for $ac_header" >&5
5988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5995 # Is the header compilable?
5996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5998 cat >conftest.
$ac_ext <<_ACEOF
5999 #line $LINENO "configure"
6000 #include "confdefs.h"
6001 $ac_includes_default
6002 #include <$ac_header>
6004 rm -f conftest.
$ac_objext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006 (eval $ac_compile) 2>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try
='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_header_compiler
=yes
6018 echo "$as_me: failed program was:" >&5
6019 cat conftest.
$ac_ext >&5
6020 ac_header_compiler
=no
6022 rm -f conftest.
$ac_objext conftest.
$ac_ext
6023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6024 echo "${ECHO_T}$ac_header_compiler" >&6
6026 # Is the header present?
6027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6029 cat >conftest.
$ac_ext <<_ACEOF
6030 #line $LINENO "configure"
6031 #include "confdefs.h"
6032 #include <$ac_header>
6034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6035 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6037 egrep -v '^ *\+' conftest.er1
>conftest.err
6039 cat conftest.err
>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } >/dev
/null
; then
6042 if test -s conftest.err
; then
6043 ac_cpp_err
=$ac_c_preproc_warn_flag
6050 if test -z "$ac_cpp_err"; then
6051 ac_header_preproc
=yes
6053 echo "$as_me: failed program was:" >&5
6054 cat conftest.
$ac_ext >&5
6055 ac_header_preproc
=no
6057 rm -f conftest.err conftest.
$ac_ext
6058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6059 echo "${ECHO_T}$ac_header_preproc" >&6
6061 # So? What about this header?
6062 case $ac_header_compiler:$ac_header_preproc in
6064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6076 echo "$as_me:$LINENO: checking for $ac_header" >&5
6077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 eval "$as_ac_Header=$ac_header_preproc"
6083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6088 cat >>confdefs.h
<<_ACEOF
6089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6096 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6097 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6098 if test "${ac_cv_header_stdc+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 cat >conftest.
$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 #include "confdefs.h"
6110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6111 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6113 egrep -v '^ *\+' conftest.er1
>conftest.err
6115 cat conftest.err
>&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } >/dev
/null
; then
6118 if test -s conftest.err
; then
6119 ac_cpp_err
=$ac_c_preproc_warn_flag
6126 if test -z "$ac_cpp_err"; then
6127 ac_cv_header_stdc
=yes
6129 echo "$as_me: failed program was:" >&5
6130 cat conftest.
$ac_ext >&5
6131 ac_cv_header_stdc
=no
6133 rm -f conftest.err conftest.
$ac_ext
6135 if test $ac_cv_header_stdc = yes; then
6136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6137 cat >conftest.
$ac_ext <<_ACEOF
6138 #line $LINENO "configure"
6139 #include "confdefs.h"
6143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6144 egrep "memchr" >/dev
/null
2>&1; then
6147 ac_cv_header_stdc
=no
6153 if test $ac_cv_header_stdc = yes; then
6154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6155 cat >conftest.
$ac_ext <<_ACEOF
6156 #line $LINENO "configure"
6157 #include "confdefs.h"
6161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6162 egrep "free" >/dev
/null
2>&1; then
6165 ac_cv_header_stdc
=no
6171 if test $ac_cv_header_stdc = yes; then
6172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6173 if test "$cross_compiling" = yes; then
6176 cat >conftest.
$ac_ext <<_ACEOF
6177 #line $LINENO "configure"
6178 #include "confdefs.h"
6180 #if ((' ' & 0x0FF) == 0x020)
6181 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6182 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6184 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6185 || ('j' <= (c) && (c) <= 'r') \
6186 || ('s' <= (c) && (c) <= 'z'))
6187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6195 for (i = 0; i < 256; i++)
6196 if (XOR (islower (i), ISLOWER (i))
6197 || toupper (i) != TOUPPER (i))
6202 rm -f conftest
$ac_exeext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204 (eval $ac_link) 2>&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6215 echo "$as_me: program exited with status $ac_status" >&5
6216 echo "$as_me: failed program was:" >&5
6217 cat conftest.
$ac_ext >&5
6219 ac_cv_header_stdc
=no
6221 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6225 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6226 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6227 if test $ac_cv_header_stdc = yes; then
6229 cat >>confdefs.h
<<\_ACEOF
6230 #define STDC_HEADERS 1
6236 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
6237 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
6238 if test "${ac_cv_c_backslash_a+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 cat >conftest.
$ac_ext <<_ACEOF
6242 #line $LINENO "configure"
6243 #include "confdefs.h"
6245 #ifdef F77_DUMMY_MAIN
6249 int F77_DUMMY_MAIN() { return 1; }
6258 char buf['\a' == 'a' ? -1 : 1];
6260 return buf[0] != "\a"[0];
6266 rm -f conftest.
$ac_objext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6268 (eval $ac_compile) 2>&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } &&
6272 { ac_try
='test -s conftest.$ac_objext'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
6278 ac_cv_c_backslash_a
=yes
6280 echo "$as_me: failed program was:" >&5
6281 cat conftest.
$ac_ext >&5
6282 ac_cv_c_backslash_a
=no
6284 rm -f conftest.
$ac_objext conftest.
$ac_ext
6286 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
6287 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
6288 if test $ac_cv_c_backslash_a = yes; then
6290 cat >>confdefs.h
<<\_ACEOF
6291 #define HAVE_C_BACKSLASH_A 1
6298 for ac_header
in stdlib.h
6300 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302 echo "$as_me:$LINENO: checking for $ac_header" >&5
6303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310 # Is the header compilable?
6311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6313 cat >conftest.
$ac_ext <<_ACEOF
6314 #line $LINENO "configure"
6315 #include "confdefs.h"
6316 $ac_includes_default
6317 #include <$ac_header>
6319 rm -f conftest.
$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try
='test -s conftest.$ac_objext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 ac_header_compiler
=yes
6333 echo "$as_me: failed program was:" >&5
6334 cat conftest.
$ac_ext >&5
6335 ac_header_compiler
=no
6337 rm -f conftest.
$ac_objext conftest.
$ac_ext
6338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6339 echo "${ECHO_T}$ac_header_compiler" >&6
6341 # Is the header present?
6342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6344 cat >conftest.
$ac_ext <<_ACEOF
6345 #line $LINENO "configure"
6346 #include "confdefs.h"
6347 #include <$ac_header>
6349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6350 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6352 egrep -v '^ *\+' conftest.er1
>conftest.err
6354 cat conftest.err
>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev
/null
; then
6357 if test -s conftest.err
; then
6358 ac_cpp_err
=$ac_c_preproc_warn_flag
6365 if test -z "$ac_cpp_err"; then
6366 ac_header_preproc
=yes
6368 echo "$as_me: failed program was:" >&5
6369 cat conftest.
$ac_ext >&5
6370 ac_header_preproc
=no
6372 rm -f conftest.err conftest.
$ac_ext
6373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6374 echo "${ECHO_T}$ac_header_preproc" >&6
6376 # So? What about this header?
6377 case $ac_header_compiler:$ac_header_preproc in
6379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6391 echo "$as_me:$LINENO: checking for $ac_header" >&5
6392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 eval "$as_ac_Header=$ac_header_preproc"
6398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6403 cat >>confdefs.h
<<_ACEOF
6404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6412 echo "$as_me:$LINENO: checking for mbstate_t" >&5
6413 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6414 if test "${ac_cv_type_mbstate_t+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 cat >conftest.
$ac_ext <<_ACEOF
6418 #line $LINENO "configure"
6419 #include "confdefs.h"
6422 # include <stdlib.h>
6425 #ifdef F77_DUMMY_MAIN
6429 int F77_DUMMY_MAIN() { return 1; }
6434 mbstate_t x; return sizeof x;
6439 rm -f conftest.
$ac_objext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try
='test -s conftest.$ac_objext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_cv_type_mbstate_t
=yes
6453 echo "$as_me: failed program was:" >&5
6454 cat conftest.
$ac_ext >&5
6455 ac_cv_type_mbstate_t
=no
6457 rm -f conftest.
$ac_objext conftest.
$ac_ext
6459 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
6460 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
6461 if test $ac_cv_type_mbstate_t = no
; then
6463 cat >>confdefs.h
<<\_ACEOF
6464 #define mbstate_t int
6470 echo "$as_me:$LINENO: checking for function prototypes" >&5
6471 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6472 if test "$am_cv_prog_cc_stdc" != no
; then
6473 echo "$as_me:$LINENO: result: yes" >&5
6474 echo "${ECHO_T}yes" >&6
6476 cat >>confdefs.h
<<\_ACEOF
6477 #define PROTOTYPES 1
6482 echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6
6484 U
=_ ANSI2KNR
=.
/ansi2knr
6486 # Ensure some checks needed by ansi2knr itself.
6487 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6488 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6489 if test "${ac_cv_header_stdc+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 cat >conftest.
$ac_ext <<_ACEOF
6493 #line $LINENO "configure"
6494 #include "confdefs.h"
6501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6502 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6504 egrep -v '^ *\+' conftest.er1
>conftest.err
6506 cat conftest.err
>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } >/dev
/null
; then
6509 if test -s conftest.err
; then
6510 ac_cpp_err
=$ac_c_preproc_warn_flag
6517 if test -z "$ac_cpp_err"; then
6518 ac_cv_header_stdc
=yes
6520 echo "$as_me: failed program was:" >&5
6521 cat conftest.
$ac_ext >&5
6522 ac_cv_header_stdc
=no
6524 rm -f conftest.err conftest.
$ac_ext
6526 if test $ac_cv_header_stdc = yes; then
6527 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6528 cat >conftest.
$ac_ext <<_ACEOF
6529 #line $LINENO "configure"
6530 #include "confdefs.h"
6534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6535 egrep "memchr" >/dev
/null
2>&1; then
6538 ac_cv_header_stdc
=no
6544 if test $ac_cv_header_stdc = yes; then
6545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6546 cat >conftest.
$ac_ext <<_ACEOF
6547 #line $LINENO "configure"
6548 #include "confdefs.h"
6552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6553 egrep "free" >/dev
/null
2>&1; then
6556 ac_cv_header_stdc
=no
6562 if test $ac_cv_header_stdc = yes; then
6563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6564 if test "$cross_compiling" = yes; then
6567 cat >conftest.
$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 #include "confdefs.h"
6571 #if ((' ' & 0x0FF) == 0x020)
6572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6575 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6576 || ('j' <= (c) && (c) <= 'r') \
6577 || ('s' <= (c) && (c) <= 'z'))
6578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6586 for (i = 0; i < 256; i++)
6587 if (XOR (islower (i), ISLOWER (i))
6588 || toupper (i) != TOUPPER (i))
6593 rm -f conftest
$ac_exeext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595 (eval $ac_link) 2>&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6606 echo "$as_me: program exited with status $ac_status" >&5
6607 echo "$as_me: failed program was:" >&5
6608 cat conftest.
$ac_ext >&5
6610 ac_cv_header_stdc
=no
6612 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6616 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6617 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6618 if test $ac_cv_header_stdc = yes; then
6620 cat >>confdefs.h
<<\_ACEOF
6621 #define STDC_HEADERS 1
6627 for ac_header
in string.h
6629 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6631 echo "$as_me:$LINENO: checking for $ac_header" >&5
6632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6639 # Is the header compilable?
6640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6642 cat >conftest.
$ac_ext <<_ACEOF
6643 #line $LINENO "configure"
6644 #include "confdefs.h"
6645 $ac_includes_default
6646 #include <$ac_header>
6648 rm -f conftest.
$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try
='test -s conftest.$ac_objext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_header_compiler
=yes
6662 echo "$as_me: failed program was:" >&5
6663 cat conftest.
$ac_ext >&5
6664 ac_header_compiler
=no
6666 rm -f conftest.
$ac_objext conftest.
$ac_ext
6667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6668 echo "${ECHO_T}$ac_header_compiler" >&6
6670 # Is the header present?
6671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6673 cat >conftest.
$ac_ext <<_ACEOF
6674 #line $LINENO "configure"
6675 #include "confdefs.h"
6676 #include <$ac_header>
6678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6681 egrep -v '^ *\+' conftest.er1
>conftest.err
6683 cat conftest.err
>&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } >/dev
/null
; then
6686 if test -s conftest.err
; then
6687 ac_cpp_err
=$ac_c_preproc_warn_flag
6694 if test -z "$ac_cpp_err"; then
6695 ac_header_preproc
=yes
6697 echo "$as_me: failed program was:" >&5
6698 cat conftest.
$ac_ext >&5
6699 ac_header_preproc
=no
6701 rm -f conftest.err conftest.
$ac_ext
6702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6703 echo "${ECHO_T}$ac_header_preproc" >&6
6705 # So? What about this header?
6706 case $ac_header_compiler:$ac_header_preproc in
6708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6720 echo "$as_me:$LINENO: checking for $ac_header" >&5
6721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 eval "$as_ac_Header=$ac_header_preproc"
6727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6732 cat >>confdefs.h
<<_ACEOF
6733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6746 for ac_func
in strerror vprintf doprnt
6748 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6749 echo "$as_me:$LINENO: checking for $ac_func" >&5
6750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6751 if eval "test \"\${$as_ac_var+set}\" = set"; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 cat >conftest.
$ac_ext <<_ACEOF
6755 #line $LINENO "configure"
6756 #include "confdefs.h"
6757 /* System header to define __stub macros and hopefully few prototypes,
6758 which can conflict with char $ac_func (); below. */
6760 /* Override any gcc2 internal prototype to avoid an error. */
6764 /* We use char because int might match the return type of a gcc2
6765 builtin and then its argument prototype would still apply. */
6769 #ifdef F77_DUMMY_MAIN
6773 int F77_DUMMY_MAIN() { return 1; }
6778 /* The GNU C library defines this for functions which it implements
6779 to always fail with ENOSYS. Some functions are actually named
6780 something starting with __ and the normal name is an alias. */
6781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6791 rm -f conftest.
$ac_objext conftest
$ac_exeext
6792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6793 (eval $ac_link) 2>&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try
='test -s conftest$ac_exeext'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; }; then
6803 eval "$as_ac_var=yes"
6805 echo "$as_me: failed program was:" >&5
6806 cat conftest.
$ac_ext >&5
6807 eval "$as_ac_var=no"
6809 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6813 if test `eval echo '${'$as_ac_var'}'` = yes; then
6814 cat >>confdefs.h
<<_ACEOF
6815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6821 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
6822 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
6823 if test "${ac_cv_have_decl_strerror+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 cat >conftest.
$ac_ext <<_ACEOF
6827 #line $LINENO "configure"
6828 #include "confdefs.h"
6829 $ac_includes_default
6830 #ifdef F77_DUMMY_MAIN
6834 int F77_DUMMY_MAIN() { return 1; }
6840 char *p = (char *) strerror;
6847 rm -f conftest.
$ac_objext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849 (eval $ac_compile) 2>&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try
='test -s conftest.$ac_objext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_cv_have_decl_strerror
=yes
6861 echo "$as_me: failed program was:" >&5
6862 cat conftest.
$ac_ext >&5
6863 ac_cv_have_decl_strerror
=no
6865 rm -f conftest.
$ac_objext conftest.
$ac_ext
6867 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
6868 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
6869 if test $ac_cv_have_decl_strerror = yes; then
6871 cat >>confdefs.h
<<_ACEOF
6872 #define HAVE_DECL_STRERROR 1
6877 cat >>confdefs.h
<<_ACEOF
6878 #define HAVE_DECL_STRERROR 0
6885 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6886 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6887 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 cat >conftest.
$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6892 #include "confdefs.h"
6893 $ac_includes_default
6894 #ifdef F77_DUMMY_MAIN
6898 int F77_DUMMY_MAIN() { return 1; }
6904 char *p = (char *) strerror_r;
6911 rm -f conftest.
$ac_objext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913 (eval $ac_compile) 2>&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
6917 { ac_try
='test -s conftest.$ac_objext'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 ac_cv_have_decl_strerror_r
=yes
6925 echo "$as_me: failed program was:" >&5
6926 cat conftest.
$ac_ext >&5
6927 ac_cv_have_decl_strerror_r
=no
6929 rm -f conftest.
$ac_objext conftest.
$ac_ext
6931 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6932 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6933 if test $ac_cv_have_decl_strerror_r = yes; then
6935 cat >>confdefs.h
<<_ACEOF
6936 #define HAVE_DECL_STRERROR_R 1
6941 cat >>confdefs.h
<<_ACEOF
6942 #define HAVE_DECL_STRERROR_R 0
6950 for ac_func
in strerror_r
6952 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6953 echo "$as_me:$LINENO: checking for $ac_func" >&5
6954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6955 if eval "test \"\${$as_ac_var+set}\" = set"; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 cat >conftest.
$ac_ext <<_ACEOF
6959 #line $LINENO "configure"
6960 #include "confdefs.h"
6961 /* System header to define __stub macros and hopefully few prototypes,
6962 which can conflict with char $ac_func (); below. */
6964 /* Override any gcc2 internal prototype to avoid an error. */
6968 /* We use char because int might match the return type of a gcc2
6969 builtin and then its argument prototype would still apply. */
6973 #ifdef F77_DUMMY_MAIN
6977 int F77_DUMMY_MAIN() { return 1; }
6982 /* The GNU C library defines this for functions which it implements
6983 to always fail with ENOSYS. Some functions are actually named
6984 something starting with __ and the normal name is an alias. */
6985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6995 rm -f conftest.
$ac_objext conftest
$ac_exeext
6996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6997 (eval $ac_link) 2>&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } &&
7001 { ac_try
='test -s conftest$ac_exeext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 eval "$as_ac_var=yes"
7009 echo "$as_me: failed program was:" >&5
7010 cat conftest.
$ac_ext >&5
7011 eval "$as_ac_var=no"
7013 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7017 if test `eval echo '${'$as_ac_var'}'` = yes; then
7018 cat >>confdefs.h
<<_ACEOF
7019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7025 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
7026 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
7027 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 ac_cv_func_strerror_r_char_p
=no
7032 if test $ac_cv_have_decl_strerror_r = yes; then
7033 cat >conftest.
$ac_ext <<_ACEOF
7034 #line $LINENO "configure"
7035 #include "confdefs.h"
7036 $ac_includes_default
7037 #ifdef F77_DUMMY_MAIN
7041 int F77_DUMMY_MAIN() { return 1; }
7048 char x = *strerror_r (0, buf, sizeof buf);
7049 char *p = strerror_r (0, buf, sizeof buf);
7055 rm -f conftest.
$ac_objext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057 (eval $ac_compile) 2>&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try
='test -s conftest.$ac_objext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7067 ac_cv_func_strerror_r_char_p
=yes
7069 echo "$as_me: failed program was:" >&5
7070 cat conftest.
$ac_ext >&5
7072 rm -f conftest.
$ac_objext conftest.
$ac_ext
7074 # strerror_r is not declared. Choose between
7075 # systems that have relatively inaccessible declarations for the
7076 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
7077 # former has a strerror_r that returns char*, while the latter
7078 # has a strerror_r that returns `int'.
7079 # This test should segfault on the DEC system.
7080 if test "$cross_compiling" = yes; then
7083 cat >conftest.
$ac_ext <<_ACEOF
7084 #line $LINENO "configure"
7085 #include "confdefs.h"
7086 $ac_includes_default
7087 extern char *strerror_r ();
7088 #ifdef F77_DUMMY_MAIN
7092 int F77_DUMMY_MAIN() { return 1; }
7098 char x = *strerror_r (0, buf, sizeof buf);
7099 exit (!isalpha (x));
7104 rm -f conftest
$ac_exeext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7106 (eval $ac_link) 2>&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; }; then
7115 ac_cv_func_strerror_r_char_p
=yes
7117 echo "$as_me: program exited with status $ac_status" >&5
7118 echo "$as_me: failed program was:" >&5
7119 cat conftest.
$ac_ext >&5
7121 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7126 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
7127 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
7128 if test $ac_cv_func_strerror_r_char_p = yes; then
7130 cat >>confdefs.h
<<\_ACEOF
7131 #define STRERROR_R_CHAR_P 1
7136 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7137 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7138 if test "${ac_cv_header_stdc+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 cat >conftest.
$ac_ext <<_ACEOF
7142 #line $LINENO "configure"
7143 #include "confdefs.h"
7150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7151 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7153 egrep -v '^ *\+' conftest.er1
>conftest.err
7155 cat conftest.err
>&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } >/dev
/null
; then
7158 if test -s conftest.err
; then
7159 ac_cpp_err
=$ac_c_preproc_warn_flag
7166 if test -z "$ac_cpp_err"; then
7167 ac_cv_header_stdc
=yes
7169 echo "$as_me: failed program was:" >&5
7170 cat conftest.
$ac_ext >&5
7171 ac_cv_header_stdc
=no
7173 rm -f conftest.err conftest.
$ac_ext
7175 if test $ac_cv_header_stdc = yes; then
7176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7177 cat >conftest.
$ac_ext <<_ACEOF
7178 #line $LINENO "configure"
7179 #include "confdefs.h"
7183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7184 egrep "memchr" >/dev
/null
2>&1; then
7187 ac_cv_header_stdc
=no
7193 if test $ac_cv_header_stdc = yes; then
7194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7195 cat >conftest.
$ac_ext <<_ACEOF
7196 #line $LINENO "configure"
7197 #include "confdefs.h"
7201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202 egrep "free" >/dev
/null
2>&1; then
7205 ac_cv_header_stdc
=no
7211 if test $ac_cv_header_stdc = yes; then
7212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7213 if test "$cross_compiling" = yes; then
7216 cat >conftest.
$ac_ext <<_ACEOF
7217 #line $LINENO "configure"
7218 #include "confdefs.h"
7220 #if ((' ' & 0x0FF) == 0x020)
7221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7224 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7225 || ('j' <= (c) && (c) <= 'r') \
7226 || ('s' <= (c) && (c) <= 'z'))
7227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7235 for (i = 0; i < 256; i++)
7236 if (XOR (islower (i), ISLOWER (i))
7237 || toupper (i) != TOUPPER (i))
7242 rm -f conftest
$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7255 echo "$as_me: program exited with status $ac_status" >&5
7256 echo "$as_me: failed program was:" >&5
7257 cat conftest.
$ac_ext >&5
7259 ac_cv_header_stdc
=no
7261 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7265 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7266 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7267 if test $ac_cv_header_stdc = yes; then
7269 cat >>confdefs.h
<<\_ACEOF
7270 #define STDC_HEADERS 1
7276 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
7277 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
7279 # Check whether --with-dmalloc or --without-dmalloc was given.
7280 if test "${with_dmalloc+set}" = set; then
7281 withval
="$with_dmalloc"
7282 if test "$withval" = yes; then
7283 echo "$as_me:$LINENO: result: yes" >&5
7284 echo "${ECHO_T}yes" >&6
7286 cat >>confdefs.h
<<\_ACEOF
7287 #define WITH_DMALLOC 1
7290 LIBS
="$LIBS -ldmalloc"
7291 LDFLAGS
="$LDFLAGS -g"
7293 echo "$as_me:$LINENO: result: no" >&5
7294 echo "${ECHO_T}no" >&6
7297 echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6
7302 ALL_LINGUAS
="de es et fr it ja nl ru sv tr"
7303 # Make sure we can run config.sub.
7304 $ac_config_sub sun4
>/dev
/null
2>&1 ||
7305 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7306 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7307 { (exit 1); exit 1; }; }
7309 echo "$as_me:$LINENO: checking build system type" >&5
7310 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7311 if test "${ac_cv_build+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 ac_cv_build_alias
=$build_alias
7315 test -z "$ac_cv_build_alias" &&
7316 ac_cv_build_alias
=`$ac_config_guess`
7317 test -z "$ac_cv_build_alias" &&
7318 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7319 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7320 { (exit 1); exit 1; }; }
7321 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
7322 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7323 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7324 { (exit 1); exit 1; }; }
7327 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7328 echo "${ECHO_T}$ac_cv_build" >&6
7330 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7331 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7332 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7335 echo "$as_me:$LINENO: checking host system type" >&5
7336 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7337 if test "${ac_cv_host+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 ac_cv_host_alias
=$host_alias
7341 test -z "$ac_cv_host_alias" &&
7342 ac_cv_host_alias
=$ac_cv_build_alias
7343 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
7344 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7345 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7346 { (exit 1); exit 1; }; }
7349 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7350 echo "${ECHO_T}$ac_cv_host" >&6
7352 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7353 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7354 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7357 echo "$as_me:$LINENO: checking for off_t" >&5
7358 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7359 if test "${ac_cv_type_off_t+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 cat >conftest.
$ac_ext <<_ACEOF
7363 #line $LINENO "configure"
7364 #include "confdefs.h"
7365 $ac_includes_default
7366 #ifdef F77_DUMMY_MAIN
7370 int F77_DUMMY_MAIN() { return 1; }
7383 rm -f conftest.
$ac_objext
7384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7385 (eval $ac_compile) 2>&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } &&
7389 { ac_try
='test -s conftest.$ac_objext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 ac_cv_type_off_t
=yes
7397 echo "$as_me: failed program was:" >&5
7398 cat conftest.
$ac_ext >&5
7401 rm -f conftest.
$ac_objext conftest.
$ac_ext
7403 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7404 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7405 if test $ac_cv_type_off_t = yes; then
7409 cat >>confdefs.h
<<_ACEOF
7415 echo "$as_me:$LINENO: checking for size_t" >&5
7416 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7417 if test "${ac_cv_type_size_t+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 cat >conftest.
$ac_ext <<_ACEOF
7421 #line $LINENO "configure"
7422 #include "confdefs.h"
7423 $ac_includes_default
7424 #ifdef F77_DUMMY_MAIN
7428 int F77_DUMMY_MAIN() { return 1; }
7435 if (sizeof (size_t))
7441 rm -f conftest.
$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443 (eval $ac_compile) 2>&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } &&
7447 { ac_try
='test -s conftest.$ac_objext'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 ac_cv_type_size_t
=yes
7455 echo "$as_me: failed program was:" >&5
7456 cat conftest.
$ac_ext >&5
7457 ac_cv_type_size_t
=no
7459 rm -f conftest.
$ac_objext conftest.
$ac_ext
7461 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7462 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7463 if test $ac_cv_type_size_t = yes; then
7467 cat >>confdefs.h
<<_ACEOF
7468 #define size_t unsigned
7475 for ac_header
in stdlib.h unistd.h
7477 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7479 echo "$as_me:$LINENO: checking for $ac_header" >&5
7480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7487 # Is the header compilable?
7488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7490 cat >conftest.
$ac_ext <<_ACEOF
7491 #line $LINENO "configure"
7492 #include "confdefs.h"
7493 $ac_includes_default
7494 #include <$ac_header>
7496 rm -f conftest.
$ac_objext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7498 (eval $ac_compile) 2>&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
7502 { ac_try
='test -s conftest.$ac_objext'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; }; then
7508 ac_header_compiler
=yes
7510 echo "$as_me: failed program was:" >&5
7511 cat conftest.
$ac_ext >&5
7512 ac_header_compiler
=no
7514 rm -f conftest.
$ac_objext conftest.
$ac_ext
7515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7516 echo "${ECHO_T}$ac_header_compiler" >&6
7518 # Is the header present?
7519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7521 cat >conftest.
$ac_ext <<_ACEOF
7522 #line $LINENO "configure"
7523 #include "confdefs.h"
7524 #include <$ac_header>
7526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7527 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7529 egrep -v '^ *\+' conftest.er1
>conftest.err
7531 cat conftest.err
>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } >/dev
/null
; then
7534 if test -s conftest.err
; then
7535 ac_cpp_err
=$ac_c_preproc_warn_flag
7542 if test -z "$ac_cpp_err"; then
7543 ac_header_preproc
=yes
7545 echo "$as_me: failed program was:" >&5
7546 cat conftest.
$ac_ext >&5
7547 ac_header_preproc
=no
7549 rm -f conftest.err conftest.
$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7551 echo "${ECHO_T}$ac_header_preproc" >&6
7553 # So? What about this header?
7554 case $ac_header_compiler:$ac_header_preproc in
7556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7568 echo "$as_me:$LINENO: checking for $ac_header" >&5
7569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 eval "$as_ac_Header=$ac_header_preproc"
7575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7580 cat >>confdefs.h
<<_ACEOF
7581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7589 for ac_func
in getpagesize
7591 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7592 echo "$as_me:$LINENO: checking for $ac_func" >&5
7593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7594 if eval "test \"\${$as_ac_var+set}\" = set"; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 cat >conftest.
$ac_ext <<_ACEOF
7598 #line $LINENO "configure"
7599 #include "confdefs.h"
7600 /* System header to define __stub macros and hopefully few prototypes,
7601 which can conflict with char $ac_func (); below. */
7603 /* Override any gcc2 internal prototype to avoid an error. */
7607 /* We use char because int might match the return type of a gcc2
7608 builtin and then its argument prototype would still apply. */
7612 #ifdef F77_DUMMY_MAIN
7616 int F77_DUMMY_MAIN() { return 1; }
7621 /* The GNU C library defines this for functions which it implements
7622 to always fail with ENOSYS. Some functions are actually named
7623 something starting with __ and the normal name is an alias. */
7624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7634 rm -f conftest.
$ac_objext conftest
$ac_exeext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7636 (eval $ac_link) 2>&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } &&
7640 { ac_try
='test -s conftest$ac_exeext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 eval "$as_ac_var=yes"
7648 echo "$as_me: failed program was:" >&5
7649 cat conftest.
$ac_ext >&5
7650 eval "$as_ac_var=no"
7652 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7656 if test `eval echo '${'$as_ac_var'}'` = yes; then
7657 cat >>confdefs.h
<<_ACEOF
7658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7664 echo "$as_me:$LINENO: checking for working mmap" >&5
7665 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7666 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 if test "$cross_compiling" = yes; then
7670 ac_cv_func_mmap_fixed_mapped
=no
7672 cat >conftest.
$ac_ext <<_ACEOF
7673 #line $LINENO "configure"
7674 #include "confdefs.h"
7675 $ac_includes_default
7676 /* malloc might have been renamed as rpl_malloc. */
7679 /* Thanks to Mike Haertel and Jim Avera for this test.
7680 Here is a matrix of mmap possibilities:
7681 mmap private not fixed
7682 mmap private fixed at somewhere currently unmapped
7683 mmap private fixed at somewhere already mapped
7684 mmap shared not fixed
7685 mmap shared fixed at somewhere currently unmapped
7686 mmap shared fixed at somewhere already mapped
7687 For private mappings, we should verify that changes cannot be read()
7688 back from the file, nor mmap's back from the file at a different
7689 address. (There have been systems where private was not correctly
7690 implemented like the infamous i386 svr4.0, and systems where the
7691 VM page cache was not coherent with the file system buffer cache
7692 like early versions of FreeBSD and possibly contemporary NetBSD.)
7693 For shared mappings, we should conversely verify that changes get
7694 propagated back to all the places they're supposed to be.
7696 Grep wants private fixed already mapped.
7697 The main things grep needs to know about mmap are:
7698 * does it exist and is it safe to write into the mmap'd area
7699 * how to use it (BSD variants) */
7702 #include <sys/mman.h>
7704 #if !STDC_HEADERS && !HAVE_STDLIB_H
7708 /* This mess was copied from the GNU getpagesize.h. */
7709 #if !HAVE_GETPAGESIZE
7710 /* Assume that all systems that can run configure have sys/param.h. */
7711 # if !HAVE_SYS_PARAM_H
7712 # define HAVE_SYS_PARAM_H 1
7715 # ifdef _SC_PAGESIZE
7716 # define getpagesize() sysconf(_SC_PAGESIZE)
7717 # else /* no _SC_PAGESIZE */
7718 # if HAVE_SYS_PARAM_H
7719 # include <sys/param.h>
7720 # ifdef EXEC_PAGESIZE
7721 # define getpagesize() EXEC_PAGESIZE
7722 # else /* no EXEC_PAGESIZE */
7724 # define getpagesize() NBPG * CLSIZE
7727 # endif /* no CLSIZE */
7728 # else /* no NBPG */
7730 # define getpagesize() NBPC
7731 # else /* no NBPC */
7733 # define getpagesize() PAGESIZE
7734 # endif /* PAGESIZE */
7735 # endif /* no NBPC */
7736 # endif /* no NBPG */
7737 # endif /* no EXEC_PAGESIZE */
7738 # else /* no HAVE_SYS_PARAM_H */
7739 # define getpagesize() 8192 /* punt totally */
7740 # endif /* no HAVE_SYS_PARAM_H */
7741 # endif /* no _SC_PAGESIZE */
7743 #endif /* no HAVE_GETPAGESIZE */
7748 char *data, *data2, *data3;
7752 pagesize = getpagesize ();
7754 /* First, make a file with some known garbage in it. */
7755 data = (char *) malloc (pagesize);
7758 for (i = 0; i < pagesize; ++i)
7759 *(data + i) = rand ();
7761 fd = creat ("conftest.mmap", 0600);
7764 if (write (fd, data, pagesize) != pagesize)
7768 /* Next, try to mmap the file at a fixed address which already has
7769 something else allocated at it. If we can, also make sure that
7770 we see the same garbage. */
7771 fd = open ("conftest.mmap", O_RDWR);
7774 data2 = (char *) malloc (2 * pagesize);
7777 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7778 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7779 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7781 for (i = 0; i < pagesize; ++i)
7782 if (*(data + i) != *(data2 + i))
7785 /* Finally, make sure that changes to the mapped area do not
7786 percolate back to the file as seen by read(). (This is a bug on
7787 some variants of i386 svr4.0.) */
7788 for (i = 0; i < pagesize; ++i)
7789 *(data2 + i) = *(data2 + i) + 1;
7790 data3 = (char *) malloc (pagesize);
7793 if (read (fd, data3, pagesize) != pagesize)
7795 for (i = 0; i < pagesize; ++i)
7796 if (*(data + i) != *(data3 + i))
7802 rm -f conftest
$ac_exeext
7803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804 (eval $ac_link) 2>&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); }; }; then
7813 ac_cv_func_mmap_fixed_mapped
=yes
7815 echo "$as_me: program exited with status $ac_status" >&5
7816 echo "$as_me: failed program was:" >&5
7817 cat conftest.
$ac_ext >&5
7819 ac_cv_func_mmap_fixed_mapped
=no
7821 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7824 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7825 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7826 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7828 cat >>confdefs.h
<<\_ACEOF
7836 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7837 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7838 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 cat >conftest.
$ac_ext <<_ACEOF
7842 #line $LINENO "configure"
7843 #include "confdefs.h"
7845 #include <features.h>
7846 #ifdef __GNU_LIBRARY__
7847 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7854 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7855 ac_cv_gnu_library_2_1
=yes
7857 ac_cv_gnu_library_2_1
=no
7864 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7865 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7867 GLIBC21
="$ac_cv_gnu_library_2_1"
7881 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7882 stdlib.h string.h unistd.h sys
/param.h
7884 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7886 echo "$as_me:$LINENO: checking for $ac_header" >&5
7887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7894 # Is the header compilable?
7895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7897 cat >conftest.
$ac_ext <<_ACEOF
7898 #line $LINENO "configure"
7899 #include "confdefs.h"
7900 $ac_includes_default
7901 #include <$ac_header>
7903 rm -f conftest.
$ac_objext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7905 (eval $ac_compile) 2>&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try
='test -s conftest.$ac_objext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7915 ac_header_compiler
=yes
7917 echo "$as_me: failed program was:" >&5
7918 cat conftest.
$ac_ext >&5
7919 ac_header_compiler
=no
7921 rm -f conftest.
$ac_objext conftest.
$ac_ext
7922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7923 echo "${ECHO_T}$ac_header_compiler" >&6
7925 # Is the header present?
7926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7928 cat >conftest.
$ac_ext <<_ACEOF
7929 #line $LINENO "configure"
7930 #include "confdefs.h"
7931 #include <$ac_header>
7933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7934 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7936 egrep -v '^ *\+' conftest.er1
>conftest.err
7938 cat conftest.err
>&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } >/dev
/null
; then
7941 if test -s conftest.err
; then
7942 ac_cpp_err
=$ac_c_preproc_warn_flag
7949 if test -z "$ac_cpp_err"; then
7950 ac_header_preproc
=yes
7952 echo "$as_me: failed program was:" >&5
7953 cat conftest.
$ac_ext >&5
7954 ac_header_preproc
=no
7956 rm -f conftest.err conftest.
$ac_ext
7957 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7958 echo "${ECHO_T}$ac_header_preproc" >&6
7960 # So? What about this header?
7961 case $ac_header_compiler:$ac_header_preproc in
7963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7975 echo "$as_me:$LINENO: checking for $ac_header" >&5
7976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 eval "$as_ac_Header=$ac_header_preproc"
7982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7987 cat >>confdefs.h
<<_ACEOF
7988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8016 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
8017 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
8018 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
8020 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8021 echo "$as_me:$LINENO: checking for $ac_func" >&5
8022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8023 if eval "test \"\${$as_ac_var+set}\" = set"; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 cat >conftest.
$ac_ext <<_ACEOF
8027 #line $LINENO "configure"
8028 #include "confdefs.h"
8029 /* System header to define __stub macros and hopefully few prototypes,
8030 which can conflict with char $ac_func (); below. */
8032 /* Override any gcc2 internal prototype to avoid an error. */
8036 /* We use char because int might match the return type of a gcc2
8037 builtin and then its argument prototype would still apply. */
8041 #ifdef F77_DUMMY_MAIN
8045 int F77_DUMMY_MAIN() { return 1; }
8050 /* The GNU C library defines this for functions which it implements
8051 to always fail with ENOSYS. Some functions are actually named
8052 something starting with __ and the normal name is an alias. */
8053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8063 rm -f conftest.
$ac_objext conftest
$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try
='test -s conftest$ac_exeext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 eval "$as_ac_var=yes"
8077 echo "$as_me: failed program was:" >&5
8078 cat conftest.
$ac_ext >&5
8079 eval "$as_ac_var=no"
8081 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8085 if test `eval echo '${'$as_ac_var'}'` = yes; then
8086 cat >>confdefs.h
<<_ACEOF
8087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8097 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8098 if test "${with_libiconv_prefix+set}" = set; then
8099 withval
="$with_libiconv_prefix"
8101 for dir
in `echo "$withval" | tr : ' '`; do
8102 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
8103 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
8108 echo "$as_me:$LINENO: checking for iconv" >&5
8109 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8110 if test "${am_cv_func_iconv+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 am_cv_func_iconv
="no, consider installing GNU libiconv"
8116 cat >conftest.
$ac_ext <<_ACEOF
8117 #line $LINENO "configure"
8118 #include "confdefs.h"
8121 #ifdef F77_DUMMY_MAIN
8125 int F77_DUMMY_MAIN() { return 1; }
8130 iconv_t cd = iconv_open("","");
8131 iconv(cd,NULL,NULL,NULL,NULL);
8137 rm -f conftest.
$ac_objext conftest
$ac_exeext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8139 (eval $ac_link) 2>&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } &&
8143 { ac_try
='test -s conftest$ac_exeext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 am_cv_func_iconv
=yes
8151 echo "$as_me: failed program was:" >&5
8152 cat conftest.
$ac_ext >&5
8154 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8155 if test "$am_cv_func_iconv" != yes; then
8156 am_save_LIBS
="$LIBS"
8157 LIBS
="$LIBS -liconv"
8158 cat >conftest.
$ac_ext <<_ACEOF
8159 #line $LINENO "configure"
8160 #include "confdefs.h"
8163 #ifdef F77_DUMMY_MAIN
8167 int F77_DUMMY_MAIN() { return 1; }
8172 iconv_t cd = iconv_open("","");
8173 iconv(cd,NULL,NULL,NULL,NULL);
8179 rm -f conftest.
$ac_objext conftest
$ac_exeext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181 (eval $ac_link) 2>&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
8185 { ac_try
='test -s conftest$ac_exeext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8192 am_cv_func_iconv
=yes
8194 echo "$as_me: failed program was:" >&5
8195 cat conftest.
$ac_ext >&5
8197 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8198 LIBS
="$am_save_LIBS"
8202 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8203 echo "${ECHO_T}$am_cv_func_iconv" >&6
8204 if test "$am_cv_func_iconv" = yes; then
8206 cat >>confdefs.h
<<\_ACEOF
8207 #define HAVE_ICONV 1
8210 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8211 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8212 if test "${am_cv_proto_iconv+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 cat >conftest.
$ac_ext <<_ACEOF
8217 #line $LINENO "configure"
8218 #include "confdefs.h"
8226 #if defined(__STDC__) || defined(__cplusplus)
8227 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8232 #ifdef F77_DUMMY_MAIN
8236 int F77_DUMMY_MAIN() { return 1; }
8246 rm -f conftest.
$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try
='test -s conftest.$ac_objext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 am_cv_proto_iconv_arg1
=""
8260 echo "$as_me: failed program was:" >&5
8261 cat conftest.
$ac_ext >&5
8262 am_cv_proto_iconv_arg1
="const"
8264 rm -f conftest.
$ac_objext conftest.
$ac_ext
8265 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);"
8268 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8269 echo "$as_me:$LINENO: result: ${ac_t:-
8270 }$am_cv_proto_iconv" >&5
8271 echo "${ECHO_T}${ac_t:-
8272 }$am_cv_proto_iconv" >&6
8274 cat >>confdefs.h
<<_ACEOF
8275 #define ICONV_CONST $am_cv_proto_iconv_arg1
8280 if test "$am_cv_lib_iconv" = yes; then
8286 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8287 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8288 if test "${am_cv_langinfo_codeset+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 cat >conftest.
$ac_ext <<_ACEOF
8292 #line $LINENO "configure"
8293 #include "confdefs.h"
8294 #include <langinfo.h>
8295 #ifdef F77_DUMMY_MAIN
8299 int F77_DUMMY_MAIN() { return 1; }
8304 char* cs = nl_langinfo(CODESET);
8309 rm -f conftest.
$ac_objext conftest
$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try
='test -s conftest$ac_exeext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 am_cv_langinfo_codeset
=yes
8323 echo "$as_me: failed program was:" >&5
8324 cat conftest.
$ac_ext >&5
8325 am_cv_langinfo_codeset
=no
8327 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8330 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8331 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8332 if test $am_cv_langinfo_codeset = yes; then
8334 cat >>confdefs.h
<<\_ACEOF
8335 #define HAVE_LANGINFO_CODESET 1
8340 if test $ac_cv_header_locale_h = yes; then
8341 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8342 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8343 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 cat >conftest.
$ac_ext <<_ACEOF
8347 #line $LINENO "configure"
8348 #include "confdefs.h"
8350 #ifdef F77_DUMMY_MAIN
8354 int F77_DUMMY_MAIN() { return 1; }
8364 rm -f conftest.
$ac_objext conftest
$ac_exeext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366 (eval $ac_link) 2>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
8370 { ac_try
='test -s conftest$ac_exeext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 am_cv_val_LC_MESSAGES
=yes
8378 echo "$as_me: failed program was:" >&5
8379 cat conftest.
$ac_ext >&5
8380 am_cv_val_LC_MESSAGES
=no
8382 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8384 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8385 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8386 if test $am_cv_val_LC_MESSAGES = yes; then
8388 cat >>confdefs.h
<<\_ACEOF
8389 #define HAVE_LC_MESSAGES 1
8394 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8395 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8396 # Check whether --enable-nls or --disable-nls was given.
8397 if test "${enable_nls+set}" = set; then
8398 enableval
="$enable_nls"
8403 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8404 echo "${ECHO_T}$USE_NLS" >&6
8407 BUILD_INCLUDED_LIBINTL
=no
8408 USE_INCLUDED_LIBINTL
=no
8411 if test "$USE_NLS" = "yes"; then
8413 cat >>confdefs.h
<<\_ACEOF
8414 #define ENABLE_NLS 1
8417 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8418 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8420 # Check whether --with-included-gettext or --without-included-gettext was given.
8421 if test "${with_included_gettext+set}" = set; then
8422 withval
="$with_included_gettext"
8423 nls_cv_force_use_gnu_gettext
=$withval
8425 nls_cv_force_use_gnu_gettext
=no
8427 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8428 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8430 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
8431 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8437 if test "${ac_cv_header_libintl_h+set}" = set; then
8438 echo "$as_me:$LINENO: checking for libintl.h" >&5
8439 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8440 if test "${ac_cv_header_libintl_h+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8444 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8446 # Is the header compilable?
8447 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8448 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8449 cat >conftest.
$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8451 #include "confdefs.h"
8452 $ac_includes_default
8453 #include <libintl.h>
8455 rm -f conftest.
$ac_objext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8457 (eval $ac_compile) 2>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try
='test -s conftest.$ac_objext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_header_compiler
=yes
8469 echo "$as_me: failed program was:" >&5
8470 cat conftest.
$ac_ext >&5
8471 ac_header_compiler
=no
8473 rm -f conftest.
$ac_objext conftest.
$ac_ext
8474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8475 echo "${ECHO_T}$ac_header_compiler" >&6
8477 # Is the header present?
8478 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8479 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8480 cat >conftest.
$ac_ext <<_ACEOF
8481 #line $LINENO "configure"
8482 #include "confdefs.h"
8483 #include <libintl.h>
8485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8486 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8488 egrep -v '^ *\+' conftest.er1
>conftest.err
8490 cat conftest.err
>&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } >/dev
/null
; then
8493 if test -s conftest.err
; then
8494 ac_cpp_err
=$ac_c_preproc_warn_flag
8501 if test -z "$ac_cpp_err"; then
8502 ac_header_preproc
=yes
8504 echo "$as_me: failed program was:" >&5
8505 cat conftest.
$ac_ext >&5
8506 ac_header_preproc
=no
8508 rm -f conftest.err conftest.
$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8510 echo "${ECHO_T}$ac_header_preproc" >&6
8512 # So? What about this header?
8513 case $ac_header_compiler:$ac_header_preproc in
8515 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8516 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8518 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8520 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8521 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8523 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8525 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8527 echo "$as_me:$LINENO: checking for libintl.h" >&5
8528 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8529 if test "${ac_cv_header_libintl_h+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 ac_cv_header_libintl_h
=$ac_header_preproc
8534 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8535 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8538 if test $ac_cv_header_libintl_h = yes; then
8539 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8540 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8541 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 cat >conftest.
$ac_ext <<_ACEOF
8545 #line $LINENO "configure"
8546 #include "confdefs.h"
8547 #include <libintl.h>
8548 extern int _nl_msg_cat_cntr;
8549 #ifdef F77_DUMMY_MAIN
8553 int F77_DUMMY_MAIN() { return 1; }
8558 bindtextdomain ("", "");
8559 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8564 rm -f conftest.
$ac_objext conftest
$ac_exeext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8566 (eval $ac_link) 2>&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
8570 { ac_try
='test -s conftest$ac_exeext'
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; }; then
8576 gt_cv_func_gnugettext2_libc
=yes
8578 echo "$as_me: failed program was:" >&5
8579 cat conftest.
$ac_ext >&5
8580 gt_cv_func_gnugettext2_libc
=no
8582 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8584 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8585 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8587 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8588 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8589 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8590 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 gt_save_LIBS
="$LIBS"
8594 LIBS
="$LIBS -lintl $LIBICONV"
8595 cat >conftest.
$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8597 #include "confdefs.h"
8598 #include <libintl.h>
8599 extern int _nl_msg_cat_cntr;
8600 #ifdef F77_DUMMY_MAIN
8604 int F77_DUMMY_MAIN() { return 1; }
8609 bindtextdomain ("", "");
8610 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8615 rm -f conftest.
$ac_objext conftest
$ac_exeext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617 (eval $ac_link) 2>&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try
='test -s conftest$ac_exeext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 gt_cv_func_gnugettext2_libintl
=yes
8629 echo "$as_me: failed program was:" >&5
8630 cat conftest.
$ac_ext >&5
8631 gt_cv_func_gnugettext2_libintl
=no
8633 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8634 LIBS
="$gt_save_LIBS"
8636 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8637 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8640 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8641 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8642 && test "$PACKAGE" != gettext; }; then
8644 cat >>confdefs.h
<<\_ACEOF
8645 #define HAVE_GETTEXT 1
8649 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8650 INTLLIBS
="-lintl $LIBICONV"
8653 gt_save_LIBS
="$LIBS"
8654 LIBS
="$LIBS $INTLLIBS"
8656 for ac_func
in dcgettext
8658 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8659 echo "$as_me:$LINENO: checking for $ac_func" >&5
8660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8661 if eval "test \"\${$as_ac_var+set}\" = set"; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 cat >conftest.
$ac_ext <<_ACEOF
8665 #line $LINENO "configure"
8666 #include "confdefs.h"
8667 /* System header to define __stub macros and hopefully few prototypes,
8668 which can conflict with char $ac_func (); below. */
8670 /* Override any gcc2 internal prototype to avoid an error. */
8674 /* We use char because int might match the return type of a gcc2
8675 builtin and then its argument prototype would still apply. */
8679 #ifdef F77_DUMMY_MAIN
8683 int F77_DUMMY_MAIN() { return 1; }
8688 /* The GNU C library defines this for functions which it implements
8689 to always fail with ENOSYS. Some functions are actually named
8690 something starting with __ and the normal name is an alias. */
8691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8701 rm -f conftest.
$ac_objext conftest
$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try
='test -s conftest$ac_exeext'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 eval "$as_ac_var=yes"
8715 echo "$as_me: failed program was:" >&5
8716 cat conftest.
$ac_ext >&5
8717 eval "$as_ac_var=no"
8719 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8723 if test `eval echo '${'$as_ac_var'}'` = yes; then
8724 cat >>confdefs.h
<<_ACEOF
8725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8731 LIBS
="$gt_save_LIBS"
8733 # Extract the first word of "msgfmt", so it can be a program name with args.
8734 set dummy msgfmt
; ac_word
=$2
8735 echo "$as_me:$LINENO: checking for $ac_word" >&5
8736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8737 if test "${ac_cv_path_MSGFMT+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8745 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8746 for ac_dir
in $PATH; do
8747 test -z "$ac_dir" && ac_dir
=.
8748 if test -f $ac_dir/$ac_word; then
8749 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8750 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8756 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8760 MSGFMT
="$ac_cv_path_MSGFMT"
8761 if test "$MSGFMT" != ":"; then
8762 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8763 echo "${ECHO_T}$MSGFMT" >&6
8765 echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6
8769 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8770 set dummy gmsgfmt
; ac_word
=$2
8771 echo "$as_me:$LINENO: checking for $ac_word" >&5
8772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8773 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8785 test -z "$as_dir" && as_dir
=.
8786 for ac_exec_ext
in '' $ac_executable_extensions; do
8787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8788 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8799 GMSGFMT
=$ac_cv_path_GMSGFMT
8801 if test -n "$GMSGFMT"; then
8802 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8803 echo "${ECHO_T}$GMSGFMT" >&6
8805 echo "$as_me:$LINENO: result: no" >&5
8806 echo "${ECHO_T}no" >&6
8810 # Extract the first word of "xgettext", so it can be a program name with args.
8811 set dummy xgettext
; ac_word
=$2
8812 echo "$as_me:$LINENO: checking for $ac_word" >&5
8813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8814 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8822 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8823 for ac_dir
in $PATH; do
8824 test -z "$ac_dir" && ac_dir
=.
8825 if test -f $ac_dir/$ac_word; then
8826 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8827 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8833 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8837 XGETTEXT
="$ac_cv_path_XGETTEXT"
8838 if test "$XGETTEXT" != ":"; then
8839 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8840 echo "${ECHO_T}$XGETTEXT" >&6
8842 echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6
8854 if test "$CATOBJEXT" = "NONE"; then
8855 nls_cv_use_gnu_gettext
=yes
8859 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8860 INTLOBJS
="\$(GETTOBJS)"
8861 # Extract the first word of "msgfmt", so it can be a program name with args.
8862 set dummy msgfmt
; ac_word
=$2
8863 echo "$as_me:$LINENO: checking for $ac_word" >&5
8864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8865 if test "${ac_cv_path_MSGFMT+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8874 for ac_dir
in $PATH; do
8875 test -z "$ac_dir" && ac_dir
=.
8876 if test -f $ac_dir/$ac_word; then
8877 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8878 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8884 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8888 MSGFMT
="$ac_cv_path_MSGFMT"
8889 if test "$MSGFMT" != ":"; then
8890 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8891 echo "${ECHO_T}$MSGFMT" >&6
8893 echo "$as_me:$LINENO: result: no" >&5
8894 echo "${ECHO_T}no" >&6
8897 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8898 set dummy gmsgfmt
; ac_word
=$2
8899 echo "$as_me:$LINENO: checking for $ac_word" >&5
8900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8901 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8913 test -z "$as_dir" && as_dir
=.
8914 for ac_exec_ext
in '' $ac_executable_extensions; do
8915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8916 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8927 GMSGFMT
=$ac_cv_path_GMSGFMT
8929 if test -n "$GMSGFMT"; then
8930 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8931 echo "${ECHO_T}$GMSGFMT" >&6
8933 echo "$as_me:$LINENO: result: no" >&5
8934 echo "${ECHO_T}no" >&6
8937 # Extract the first word of "xgettext", so it can be a program name with args.
8938 set dummy xgettext
; ac_word
=$2
8939 echo "$as_me:$LINENO: checking for $ac_word" >&5
8940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8941 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8949 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8950 for ac_dir
in $PATH; do
8951 test -z "$ac_dir" && ac_dir
=.
8952 if test -f $ac_dir/$ac_word; then
8953 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8954 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8960 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8964 XGETTEXT
="$ac_cv_path_XGETTEXT"
8965 if test "$XGETTEXT" != ":"; then
8966 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8967 echo "${ECHO_T}$XGETTEXT" >&6
8969 echo "$as_me:$LINENO: result: no" >&5
8970 echo "${ECHO_T}no" >&6
8974 BUILD_INCLUDED_LIBINTL
=yes
8975 USE_INCLUDED_LIBINTL
=yes
8977 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8978 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8981 if test "$GMSGFMT" != ":"; then
8982 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8985 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8986 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8991 if test "$XGETTEXT" != ":"; then
8992 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8995 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8996 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
9003 ac_config_commands
="$ac_config_commands default-1"
9007 if test "$PACKAGE" = gettext; then
9008 BUILD_INCLUDED_LIBINTL
=yes
9011 for ac_prog
in bison
9013 # Extract the first word of "$ac_prog", so it can be a program name with args.
9014 set dummy
$ac_prog; ac_word
=$2
9015 echo "$as_me:$LINENO: checking for $ac_word" >&5
9016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9017 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 if test -n "$INTLBISON"; then
9021 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
9023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9027 test -z "$as_dir" && as_dir
=.
9028 for ac_exec_ext
in '' $ac_executable_extensions; do
9029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9030 ac_cv_prog_INTLBISON
="$ac_prog"
9031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 INTLBISON
=$ac_cv_prog_INTLBISON
9040 if test -n "$INTLBISON"; then
9041 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9042 echo "${ECHO_T}$INTLBISON" >&6
9044 echo "$as_me:$LINENO: result: no" >&5
9045 echo "${ECHO_T}no" >&6
9048 test -n "$INTLBISON" && break
9051 if test -z "$INTLBISON"; then
9054 echo "$as_me:$LINENO: checking version of bison" >&5
9055 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9056 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9057 case $ac_prog_version in
9058 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
9059 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
9060 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
9061 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
9063 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9064 echo "${ECHO_T}$ac_prog_version" >&6
9066 if test $ac_verc_fail = yes; then
9070 for lang
in $ALL_LINGUAS; do
9071 GMOFILES
="$GMOFILES $lang.gmo"
9072 POFILES
="$POFILES $lang.po"
9086 nls_cv_header_libgt
=
9098 if test "x$CATOBJEXT" != "x"; then
9099 if test "x$ALL_LINGUAS" = "x"; then
9102 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9103 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9105 for presentlang
in $ALL_LINGUAS; do
9107 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
9108 # Use the presentlang catalog if desiredlang is
9109 # a. equal to presentlang, or
9110 # b. a variant of presentlang (because in this case,
9111 # presentlang can be used as a fallback for messages
9112 # which are not translated in the desiredlang catalog).
9113 case "$desiredlang" in
9114 "$presentlang"*) useit
=yes;;
9117 if test $useit = yes; then
9118 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
9121 LINGUAS
=$NEW_LINGUAS
9122 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9123 echo "${ECHO_T}$LINGUAS" >&6
9126 if test -n "$LINGUAS"; then
9127 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
9132 if test -n "$ac_aux_dir"; then
9133 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
9135 if test -z "$MKINSTALLDIRS"; then
9136 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
9140 INTL_LIBTOOL_SUFFIX_PREFIX
=
9144 # This is necessary so that .o files in LIBOBJS are also built via
9145 # the ANSI2KNR-filtering rules.
9146 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
9149 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile"
9150 cat >confcache
<<\_ACEOF
9151 # This file is a shell script that caches the results of configure
9152 # tests run on this system so they can be shared between configure
9153 # scripts and configure runs, see configure's option --config-cache.
9154 # It is not useful on other systems. If it contains results you don't
9155 # want to keep, you may remove or edit it.
9157 # config.status only pays attention to the cache file if you give it
9158 # the --recheck option to rerun configure.
9160 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9166 # The following way of writing the cache mishandles newlines in values,
9167 # but we know of no workaround that is simple, portable, and efficient.
9168 # So, don't put newlines in cache variables' values.
9169 # Ultrix sh set writes to stderr and can't be redirected directly,
9170 # and sets the high bit in the cache file unless we assign to the vars.
9173 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9175 # `set' does not quote correctly, so add quotes (double-quote
9176 # substitution turns \\\\ into \\, and sed turns \\ into \).
9179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9182 # `set' quotes correctly as required by POSIX, so do not add quotes.
9184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9191 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9193 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9195 if cmp -s $cache_file confcache
; then :; else
9196 if test -w $cache_file; then
9197 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9198 cat confcache
>$cache_file
9200 echo "not updating unwritable cache $cache_file"
9205 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9206 # Let make expand exec_prefix.
9207 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9209 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9210 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9211 # trailing colons and then remove the whole line if VPATH becomes empty
9212 # (actually we leave an empty line to preserve line numbers).
9213 if test "x$srcdir" = x.
; then
9214 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9215 s/:*\$(srcdir):*/:/;
9216 s/:*\${srcdir}:*/:/;
9218 s/^\([^=]*=[ ]*\):*/\1/;
9224 DEFS
=-DHAVE_CONFIG_H
9226 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9227 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9228 Usually this means the macro was only invoked conditionally." >&5
9229 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9230 Usually this means the macro was only invoked conditionally." >&2;}
9231 { (exit 1); exit 1; }; }
9234 : ${CONFIG_STATUS=./config.status}
9235 ac_clean_files_save
=$ac_clean_files
9236 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9237 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9238 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9239 cat >$CONFIG_STATUS <<_ACEOF
9241 # Generated by $as_me.
9242 # Run this file to recreate the current configuration.
9243 # Compiler output produced by configure, useful for debugging
9244 # configure, is in config.log if it exists.
9247 SHELL=\${CONFIG_SHELL-$SHELL}
9250 cat >>$CONFIG_STATUS <<\_ACEOF
9252 ## --------------------- ##
9253 ## M4sh Initialization. ##
9254 ## --------------------- ##
9256 # Be Bourne compatible
9257 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
9260 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
9265 # Support unset when possible.
9266 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
9272 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
9273 { $as_unset LANG
|| test "${LANG+set}" != set; } ||
9274 { LANG
=C
; export LANG
; }
9275 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9276 { $as_unset LC_ALL
|| test "${LC_ALL+set}" != set; } ||
9277 { LC_ALL
=C
; export LC_ALL
; }
9278 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9279 { $as_unset LC_TIME
|| test "${LC_TIME+set}" != set; } ||
9280 { LC_TIME
=C
; export LC_TIME
; }
9281 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9282 { $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set; } ||
9283 { LC_CTYPE
=C
; export LC_CTYPE
; }
9284 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9285 { $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set; } ||
9286 { LANGUAGE
=C
; export LANGUAGE
; }
9287 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9288 { $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set; } ||
9289 { LC_COLLATE
=C
; export LC_COLLATE
; }
9290 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9291 { $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set; } ||
9292 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
9293 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9294 { $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set; } ||
9295 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
9298 # Name of the executable.
9299 as_me
=`(basename "$0") 2>/dev/null ||
9300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9301 X"$0" : 'X\(//\)$' \| \
9302 X"$0" : 'X\(/\)$' \| \
9303 . : '\(.\)' 2>/dev/null ||
9305 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9306 /^X\/\(\/\/\)$/{ s//\1/; q; }
9307 /^X\/\(\/\).*/{ s//\1/; q; }
9310 # PATH needs CR, and LINENO needs CR and PATH.
9311 # Avoid depending upon Character Ranges.
9312 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9313 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9314 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9315 as_cr_digits
='0123456789'
9316 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9318 # The user is always right.
9319 if test "${PATH_SEPARATOR+set}" != set; then
9320 echo "#! /bin/sh" >conftest.sh
9321 echo "exit 0" >>conftest.sh
9322 chmod +x conftest.sh
9323 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
9334 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
9335 test "x$as_lineno_1" != "x$as_lineno_2" &&
9336 test "x$as_lineno_3" = "x$as_lineno_2" || {
9337 # Find who we are. Look in the path if we contain no path at all
9340 *[\\/]* ) as_myself
=$0 ;;
9341 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9345 test -z "$as_dir" && as_dir
=.
9346 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
9351 # We did not find ourselves, most probably we were run as `sh COMMAND'
9352 # in which case we are not to be found in the path.
9353 if test "x$as_myself" = x
; then
9356 if test ! -f "$as_myself"; then
9357 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9358 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9359 { (exit 1); exit 1; }; }
9361 case $CONFIG_SHELL in
9363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9364 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
9367 test -z "$as_dir" && as_dir
=.
9368 for as_base
in sh bash ksh sh5
; do
9371 if ("$as_dir/$as_base" -c '
9374 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9375 test "x$as_lineno_1" != "x$as_lineno_2" &&
9376 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
9377 CONFIG_SHELL
=$as_dir/$as_base
9379 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9387 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9388 # uniformly replaced by the line number. The first 'sed' inserts a
9389 # line-number line before each line; the second 'sed' does the real
9390 # work. The second script uses 'N' to pair each line-number line
9391 # with the numbered line, and appends trailing '-' during
9392 # substitution so that $LINENO is not a special case at line end.
9393 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9394 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9395 sed '=' <$as_myself |
9400 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9403 s,^['$as_cr_digits']*\n,,
9405 chmod +x
$as_me.lineno
||
9406 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9407 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9408 { (exit 1); exit 1; }; }
9410 # Don't try to exec as it changes $[0], causing all sort of problems
9411 # (the dirname of $[0] is not the place where we might find the
9412 # original and so on. Autoconf is especially sensible to this).
9414 # Exit status is that of the last command.
9419 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9420 *c
*,-n*) ECHO_N
= ECHO_C
='
9422 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9423 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9426 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9432 rm -f conf$$ conf$$.exe conf$$.
file
9434 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9435 # We could just check for DJGPP; but this test a) works b) is more generic
9436 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9437 if test -f conf$$.exe
; then
9438 # Don't use ln at all; we don't have any links
9443 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9448 rm -f conf$$ conf$$.exe conf$$.
file
9450 as_executable_p
="test -f"
9452 # Sed expression to map a string onto a valid CPP name.
9453 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9455 # Sed expression to map a string onto a valid variable name.
9456 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9460 # We need space, tab and new line, in precisely that order.
9466 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
9470 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9471 # report actual input values of CONFIG_FILES etc. instead of their
9472 # values after options handling. Logging --version etc. is OK.
9476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9477 ## Running $as_me. ##
9482 This file was extended by GNU Bison $as_me 1.34a, which was
9483 generated by GNU Autoconf 2.53a. Invocation command line was
9485 CONFIG_FILES = $CONFIG_FILES
9486 CONFIG_HEADERS = $CONFIG_HEADERS
9487 CONFIG_LINKS = $CONFIG_LINKS
9488 CONFIG_COMMANDS = $CONFIG_COMMANDS
9492 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9496 # Files that config.status was made for.
9497 if test -n "$ac_config_files"; then
9498 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9501 if test -n "$ac_config_headers"; then
9502 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9505 if test -n "$ac_config_links"; then
9506 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9509 if test -n "$ac_config_commands"; then
9510 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9513 cat >>$CONFIG_STATUS <<\_ACEOF
9516 \`$as_me' instantiates files from templates according to the
9517 current configuration.
9519 Usage: $0 [OPTIONS] [FILE]...
9521 -h, --help print this help, then exit
9522 -V, --version print version number, then exit
9523 -d, --debug don't remove temporary files
9524 --recheck update $as_me by reconfiguring in the same conditions
9525 --file=FILE[:TEMPLATE]
9526 instantiate the configuration file FILE
9527 --header=FILE[:TEMPLATE]
9528 instantiate the configuration header FILE
9530 Configuration files:
9533 Configuration headers:
9536 Configuration commands:
9539 Report bugs to <bug-autoconf@gnu.org>."
9542 cat >>$CONFIG_STATUS <<_ACEOF
9544 GNU Bison config.status 1.34a
9545 configured by $0, generated by GNU Autoconf 2.53a,
9546 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9548 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9549 Free Software Foundation, Inc.
9550 This config.status script is free software; the Free Software Foundation
9551 gives unlimited permission to copy, distribute and modify it."
9556 cat >>$CONFIG_STATUS <<\_ACEOF
9557 # If no file are specified by the user, then we need to provide default
9558 # value. By we need to know if files were specified by the user.
9564 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9565 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9567 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
9571 *) # This is not an option, so the user has probably given explicit
9573 ac_need_defaults
=false
;;
9577 # Handling of the options.
9579 cat >>$CONFIG_STATUS <<_ACEOF
9580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9581 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9582 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9584 cat >>$CONFIG_STATUS <<\_ACEOF
9585 --version | --vers* | -V )
9586 echo "$ac_cs_version"; exit 0 ;;
9588 # Conflict between --help and --header
9589 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9590 Try \`$0 --help' for more information." >&5
9591 echo "$as_me: error: ambiguous option: $1
9592 Try \`$0 --help' for more information." >&2;}
9593 { (exit 1); exit 1; }; };;
9594 --help | --hel | -h )
9595 echo "$ac_cs_usage"; exit 0 ;;
9596 --debug | --d* | -d )
9598 --file | --fil | --fi | --f )
9600 CONFIG_FILES
="$CONFIG_FILES $1"
9601 ac_need_defaults
=false
;;
9602 --header | --heade | --head | --hea )
9604 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
9605 ac_need_defaults
=false
;;
9608 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9609 Try \`$0 --help' for more information." >&5
9610 echo "$as_me: error: unrecognized option: $1
9611 Try \`$0 --help' for more information." >&2;}
9612 { (exit 1); exit 1; }; } ;;
9614 *) ac_config_targets
="$ac_config_targets $1" ;;
9622 cat >>$CONFIG_STATUS <<_ACEOF
9624 # INIT-COMMANDS section.
9627 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9634 cat >>$CONFIG_STATUS <<\_ACEOF
9635 for ac_config_target
in $ac_config_targets
9637 case "$ac_config_target" in
9638 # Handling of arguments.
9639 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
9640 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
9641 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
9642 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9643 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
9644 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
9645 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
9646 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
9647 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
9648 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
9649 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
9650 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
9651 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
9652 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9653 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
9654 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9655 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9656 { (exit 1); exit 1; }; };;
9660 # If the user did not use the arguments to specify the items to instantiate,
9661 # then the envvar interface is used. Set only those that are not.
9662 # We use the long form for the default assignment because of an extremely
9663 # bizarre bug on SunOS 4.1.3.
9664 if $ac_need_defaults; then
9665 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9666 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9667 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9670 # Create a temporary directory, and hook for its removal unless debugging.
9673 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9674 trap '{ (exit 1); exit 1; }' 1 2 13 15
9677 # Create a (secure) tmp directory for tmp files.
9680 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9681 test -n "$tmp" && test -d "$tmp"
9684 tmp
=$TMPDIR/cs$$
-$RANDOM
9685 (umask 077 && mkdir $tmp)
9688 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9689 { (exit 1); exit 1; }
9694 cat >>$CONFIG_STATUS <<_ACEOF
9697 # CONFIG_FILES section.
9700 # No need to generate the scripts if there are no CONFIG_FILES.
9701 # This happens for instance when ./config.status config.h
9702 if test -n "\$CONFIG_FILES"; then
9703 # Protect against being on the right side of a sed subst in config.status.
9704 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9705 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9706 s,@SHELL@,$SHELL,;t t
9707 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9708 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9709 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9710 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9711 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9712 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9713 s,@exec_prefix@,$exec_prefix,;t t
9714 s,@prefix@,$prefix,;t t
9715 s,@program_transform_name@,$program_transform_name,;t t
9716 s,@bindir@,$bindir,;t t
9717 s,@sbindir@,$sbindir,;t t
9718 s,@libexecdir@,$libexecdir,;t t
9719 s,@datadir@,$datadir,;t t
9720 s,@sysconfdir@,$sysconfdir,;t t
9721 s,@sharedstatedir@,$sharedstatedir,;t t
9722 s,@localstatedir@,$localstatedir,;t t
9723 s,@libdir@,$libdir,;t t
9724 s,@includedir@,$includedir,;t t
9725 s,@oldincludedir@,$oldincludedir,;t t
9726 s,@infodir@,$infodir,;t t
9727 s,@mandir@,$mandir,;t t
9728 s,@build_alias@,$build_alias,;t t
9729 s,@host_alias@,$host_alias,;t t
9730 s,@target_alias@,$target_alias,;t t
9732 s,@ECHO_C@,$ECHO_C,;t t
9733 s,@ECHO_N@,$ECHO_N,;t t
9734 s,@ECHO_T@,$ECHO_T,;t t
9736 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9737 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9738 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9739 s,@PACKAGE@,$PACKAGE,;t t
9740 s,@VERSION@,$VERSION,;t t
9741 s,@ACLOCAL@,$ACLOCAL,;t t
9742 s,@AUTOCONF@,$AUTOCONF,;t t
9743 s,@AUTOMAKE@,$AUTOMAKE,;t t
9744 s,@AUTOHEADER@,$AUTOHEADER,;t t
9745 s,@MAKEINFO@,$MAKEINFO,;t t
9746 s,@AMTAR@,$AMTAR,;t t
9747 s,@install_sh@,$install_sh,;t t
9748 s,@STRIP@,$STRIP,;t t
9749 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9750 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9752 s,@SET_MAKE@,$SET_MAKE,;t t
9755 s,@CFLAGS@,$CFLAGS,;t t
9756 s,@LDFLAGS@,$LDFLAGS,;t t
9757 s,@CPPFLAGS@,$CPPFLAGS,;t t
9758 s,@ac_ct_CC@,$ac_ct_CC,;t t
9759 s,@EXEEXT@,$EXEEXT,;t t
9760 s,@OBJEXT@,$OBJEXT,;t t
9761 s,@DEPDIR@,$DEPDIR,;t t
9762 s,@am__include@,$am__include,;t t
9763 s,@am__quote@,$am__quote,;t t
9764 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9765 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9766 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9767 s,@CCDEPMODE@,$CCDEPMODE,;t t
9769 s,@RANLIB@,$RANLIB,;t t
9770 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9771 s,@AUTOM4TE@,$AUTOM4TE,;t t
9772 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9773 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9775 s,@ANSI2KNR@,$ANSI2KNR,;t t
9776 s,@ALLOCA@,$ALLOCA,;t t
9777 s,@LIBOBJS@,$LIBOBJS,;t t
9778 s,@build@,$build,;t t
9779 s,@build_cpu@,$build_cpu,;t t
9780 s,@build_vendor@,$build_vendor,;t t
9781 s,@build_os@,$build_os,;t t
9783 s,@host_cpu@,$host_cpu,;t t
9784 s,@host_vendor@,$host_vendor,;t t
9785 s,@host_os@,$host_os,;t t
9786 s,@GLIBC21@,$GLIBC21,;t t
9787 s,@LIBICONV@,$LIBICONV,;t t
9788 s,@USE_NLS@,$USE_NLS,;t t
9789 s,@MSGFMT@,$MSGFMT,;t t
9790 s,@GMSGFMT@,$GMSGFMT,;t t
9791 s,@XGETTEXT@,$XGETTEXT,;t t
9792 s,@INTLBISON@,$INTLBISON,;t t
9793 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9794 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9795 s,@CATALOGS@,$CATALOGS,;t t
9796 s,@CATOBJEXT@,$CATOBJEXT,;t t
9797 s,@GMOFILES@,$GMOFILES,;t t
9798 s,@INTLLIBS@,$INTLLIBS,;t t
9799 s,@INTLOBJS@,$INTLOBJS,;t t
9800 s,@POFILES@,$POFILES,;t t
9801 s,@POSUB@,$POSUB,;t t
9802 s,@DATADIRNAME@,$DATADIRNAME,;t t
9803 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9804 s,@GENCAT@,$GENCAT,;t t
9805 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9806 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9811 cat >>$CONFIG_STATUS <<\_ACEOF
9812 # Split the substitutions into bite-sized pieces for seds with
9813 # small command number limits, like on Digital OSF/1 and HP-UX.
9815 ac_sed_frag
=1 # Number of current file.
9816 ac_beg
=1 # First line for current file.
9817 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9820 while $ac_more_lines; do
9821 if test $ac_beg -gt 1; then
9822 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9824 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9826 if test ! -s $tmp/subs.frag
; then
9829 # The purpose of the label and of the branching condition is to
9830 # speed up the sed processing (if there are no `@' at all, there
9831 # is no need to browse any of the substitutions).
9832 # These are the two extra sed commands mentioned above.
9834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9835 if test -z "$ac_sed_cmds"; then
9836 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9838 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9840 ac_sed_frag
=`expr $ac_sed_frag + 1`
9842 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9845 if test -z "$ac_sed_cmds"; then
9848 fi # test -n "$CONFIG_FILES"
9851 cat >>$CONFIG_STATUS <<\_ACEOF
9852 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9855 - | *:- | *:-:* ) # input from stdin
9857 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9858 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9859 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9860 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9861 * ) ac_file_in
=$ac_file.
in ;;
9864 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9865 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9867 X"$ac_file" : 'X\(//\)[^/]' \| \
9868 X"$ac_file" : 'X\(//\)$' \| \
9869 X"$ac_file" : 'X\(/\)' \| \
9870 . : '\(.\)' 2>/dev/null ||
9872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9874 /^X\(\/\/\)$/{ s//\1/; q; }
9875 /^X\(\/\).*/{ s//\1/; q; }
9877 { if $as_mkdir_p; then
9882 while test ! -d "$as_dir"; do
9883 as_dirs
="$as_dir $as_dirs"
9884 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9886 X"$as_dir" : 'X\(//\)[^/]' \| \
9887 X"$as_dir" : 'X\(//\)$' \| \
9888 X"$as_dir" : 'X\(/\)' \| \
9889 . : '\(.\)' 2>/dev/null ||
9891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9893 /^X\(\/\/\)$/{ s//\1/; q; }
9894 /^X\(\/\).*/{ s//\1/; q; }
9897 test ! -n "$as_dirs" || mkdir $as_dirs
9898 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9899 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9900 { (exit 1); exit 1; }; }; }
9904 if test "$ac_dir" != .
; then
9905 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9906 # A "../" for each directory in $ac_dir_suffix.
9907 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9909 ac_dir_suffix
= ac_top_builddir
=
9913 .
) # No --srcdir option. We are building in place.
9915 if test -z "$ac_top_builddir"; then
9918 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9920 [\\/]* | ?
:[\\/]* ) # Absolute path.
9921 ac_srcdir
=$srcdir$ac_dir_suffix;
9922 ac_top_srcdir
=$srcdir ;;
9924 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9925 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9927 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9929 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9930 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9931 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9932 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9936 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9937 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9940 if test x
"$ac_file" != x
-; then
9941 { echo "$as_me:$LINENO: creating $ac_file" >&5
9942 echo "$as_me: creating $ac_file" >&6;}
9945 # Let's still pretend it is `configure' which instantiates (i.e., don't
9946 # use $as_me), people would be surprised to read:
9947 # /* config.h. Generated by config.status. */
9948 if test x
"$ac_file" = x
-; then
9951 configure_input
="$ac_file. "
9953 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9954 sed 's,.*/,,'` by configure."
9956 # First look for the input files in the build tree, otherwise in the
9958 ac_file_inputs
=`IFS=:
9959 for f in $ac_file_in; do
9961 -) echo $tmp/stdin ;;
9963 # Absolute (can't be DOS-style, as IFS=:)
9964 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9965 echo "$as_me: error: cannot find input file: $f" >&2;}
9966 { (exit 1); exit 1; }; }
9969 if test -f "$f"; then
9972 elif test -f "$srcdir/$f"; then
9977 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9978 echo "$as_me: error: cannot find input file: $f" >&2;}
9979 { (exit 1); exit 1; }; }
9982 done` || { (exit 1); exit 1; }
9984 cat >>$CONFIG_STATUS <<_ACEOF
9988 cat >>$CONFIG_STATUS <<\_ACEOF
9990 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9991 s
,@configure_input@
,$configure_input,;t t
9992 s
,@srcdir@
,$ac_srcdir,;t t
9993 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9994 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9995 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9996 s
,@builddir@
,$ac_builddir,;t t
9997 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9998 s
,@top_builddir@
,$ac_top_builddir,;t t
9999 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
10000 s
,@INSTALL@
,$ac_INSTALL,;t t
10001 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10003 if test x"$ac_file" != x-; then
10004 mv $tmp/out $ac_file
10010 # Run the commands associated with the file.
10012 tests/bison ) chmod +x tests/bison ;;
10016 cat >>$CONFIG_STATUS <<\_ACEOF
10019 # CONFIG_HEADER section.
10022 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
10023 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10025 # ac_d sets the value in "#define NAME VALUE" lines.
10026 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10027 ac_dB
='[ ].*$,\1#\2'
10030 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10031 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10032 ac_uB
='$,\1#\2define\3'
10036 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
10037 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10039 - | *:- | *:-:* ) # input from stdin
10041 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10042 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10043 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10044 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10045 * ) ac_file_in
=$ac_file.
in ;;
10048 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10049 echo "$as_me: creating $ac_file" >&6;}
10051 # First look for the input files in the build tree, otherwise in the
10053 ac_file_inputs
=`IFS=:
10054 for f in $ac_file_in; do
10056 -) echo $tmp/stdin ;;
10058 # Absolute (can't be DOS-style, as IFS=:)
10059 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10060 echo "$as_me: error: cannot find input file: $f" >&2;}
10061 { (exit 1); exit 1; }; }
10064 if test -f "$f"; then
10067 elif test -f "$srcdir/$f"; then
10072 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10073 echo "$as_me: error: cannot find input file: $f" >&2;}
10074 { (exit 1); exit 1; }; }
10077 done` || { (exit 1); exit 1; }
10078 # Remove the trailing spaces.
10079 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10083 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10084 # `conftest.undefs', that substitutes the proper values into
10085 # config.h.in to produce config.h. The first handles `#define'
10086 # templates, and the second `#undef' templates.
10087 # And first: Protect against being on the right side of a sed subst in
10088 # config.status. Protect against being in an unquoted here document
10089 # in config.status.
10090 rm -f conftest.defines conftest.undefs
10091 # Using a here document instead of a string reduces the quoting nightmare.
10092 # Putting comments in sed scripts is not portable.
10094 # `end' is used to avoid that the second main sed command (meant for
10095 # 0-ary CPP macros) applies to n-ary macro definitions.
10096 # See the Autoconf documentation for `clear'.
10097 cat >confdef2sed.
sed <<\_ACEOF
10102 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10104 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10107 # If some macros were called several times there might be several times
10108 # the same #defines, which is useless. Nevertheless, we may not want to
10109 # sort them, since we want the *last* AC-DEFINE to be honored.
10110 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10111 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10112 rm -f confdef2sed.sed
10114 # This sed command replaces #undef with comments. This is necessary, for
10115 # example, in the case of _POSIX_SOURCE, which is predefined and required
10116 # on some systems where configure will not decide to define it.
10117 cat >>conftest.undefs <<\_ACEOF
10118 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10121 # Break up conftest.defines because some shells have a limit on the size
10122 # of here documents, and old seds have small limits too (100 cmds).
10123 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10124 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10125 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10126 echo ' :' >>$CONFIG_STATUS
10127 rm -f conftest.tail
10128 while grep . conftest.defines >/dev/null
10130 # Write a limited-size here document to $tmp/defines.sed.
10131 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10132 # Speed up: don't consider the non `#define' lines.
10133 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10134 # Work around the forget-to-reset-the-flag bug.
10135 echo 't clr' >>$CONFIG_STATUS
10136 echo ': clr' >>$CONFIG_STATUS
10137 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
10139 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10141 mv $tmp/out $tmp/in
10143 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
10144 rm -f conftest.defines
10145 mv conftest.
tail conftest.defines
10147 rm -f conftest.defines
10148 echo ' fi # egrep' >>$CONFIG_STATUS
10149 echo >>$CONFIG_STATUS
10151 # Break up conftest.undefs because some shells have a limit on the size
10152 # of here documents, and old seds have small limits too (100 cmds).
10153 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10154 rm -f conftest.
tail
10155 while grep . conftest.undefs
>/dev
/null
10157 # Write a limited-size here document to $tmp/undefs.sed.
10158 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10159 # Speed up: don't consider the non
`#undef'
10160 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10161 # Work around the forget-to-reset-the-flag bug.
10162 echo 't clr' >>$CONFIG_STATUS
10163 echo ': clr' >>$CONFIG_STATUS
10164 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10166 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10168 mv $tmp/out $tmp/in
10170 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10171 rm -f conftest.undefs
10172 mv conftest.tail conftest.undefs
10174 rm -f conftest.undefs
10176 cat >>$CONFIG_STATUS <<\_ACEOF
10177 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10178 # use $as_me), people would be surprised to read:
10179 # /* config.h. Generated by config.status. */
10180 if test x
"$ac_file" = x
-; then
10181 echo "/* Generated by configure. */" >$tmp/config.h
10183 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10185 cat $tmp/in >>$tmp/config.h
10187 if test x
"$ac_file" != x
-; then
10188 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
10189 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10190 echo "$as_me: $ac_file is unchanged" >&6;}
10192 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10194 X"$ac_file" : 'X\(//\)[^/]' \| \
10195 X"$ac_file" : 'X\(//\)$' \| \
10196 X"$ac_file" : 'X\(/\)' \| \
10197 . : '\(.\)' 2>/dev/null ||
10199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10201 /^X\(\/\/\)$/{ s//\1/; q; }
10202 /^X\(\/\).*/{ s//\1/; q; }
10204 { if $as_mkdir_p; then
10209 while test ! -d "$as_dir"; do
10210 as_dirs
="$as_dir $as_dirs"
10211 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10213 X"$as_dir" : 'X\(//\)[^/]' \| \
10214 X"$as_dir" : 'X\(//\)$' \| \
10215 X"$as_dir" : 'X\(/\)' \| \
10216 . : '\(.\)' 2>/dev/null ||
10218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10220 /^X\(\/\/\)$/{ s//\1/; q; }
10221 /^X\(\/\).*/{ s//\1/; q; }
10224 test ! -n "$as_dirs" || mkdir $as_dirs
10225 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10226 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10227 { (exit 1); exit 1; }; }; }
10230 mv $tmp/config.h
$ac_file
10234 rm -f $tmp/config.h
10236 # Run the commands associated with the file.
10238 config.h
) # update the timestamp
10239 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
10244 cat >>$CONFIG_STATUS <<\_ACEOF
10247 # CONFIG_COMMANDS section.
10249 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10250 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10251 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10252 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10253 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10254 X"$ac_dest" : 'X\(//\)[^/]' \| \
10255 X"$ac_dest" : 'X\(//\)$' \| \
10256 X"$ac_dest" : 'X\(/\)' \| \
10257 . : '\(.\)' 2>/dev/null ||
10259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10261 /^X\(\/\/\)$/{ s//\1/; q; }
10262 /^X\(\/\).*/{ s//\1/; q; }
10266 if test "$ac_dir" != .
; then
10267 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10268 # A "../" for each directory in $ac_dir_suffix.
10269 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10271 ac_dir_suffix
= ac_top_builddir
=
10275 .
) # No --srcdir option. We are building in place.
10277 if test -z "$ac_top_builddir"; then
10280 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10282 [\\/]* | ?
:[\\/]* ) # Absolute path.
10283 ac_srcdir
=$srcdir$ac_dir_suffix;
10284 ac_top_srcdir
=$srcdir ;;
10285 *) # Relative path.
10286 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10287 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10289 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10291 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
10292 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10293 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10294 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10297 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10298 echo "$as_me: executing $ac_dest commands" >&6;}
10300 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
10301 # Configurable variable values for building test suites.
10303 # Copyright 2000, 2001 Free Software Foundation, Inc.
10305 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
10307 abs_builddir='$ac_abs_builddir'
10308 at_srcdir='$ac_srcdir'
10309 abs_srcdir='$ac_abs_srcdir'
10310 at_top_srcdir='$ac_top_srcdir'
10311 abs_top_srcdir='$ac_abs_top_srcdir'
10312 at_top_builddir='$ac_top_builddir'
10313 abs_top_builddir='$ac_abs_top_builddir'
10315 AUTOTEST_PATH='tests'
10317 SHELL=\${CONFIG_SHELL-'$SHELL'}
10320 depfiles
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
10321 # Strip MF so we end up with the name of the file.
10322 mf
=`echo "$mf" | sed -e 's/:.*$//'`
10323 if (sed 1q
$mf | fgrep
'generated by automake') > /dev
/null
2>&1; then
10324 dirpart
=`(dirname "$mf") 2>/dev/null ||
10325 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10326 X"$mf" : 'X\(//\)[^/]' \| \
10327 X"$mf" : 'X\(//\)$' \| \
10328 X"$mf" : 'X\(/\)' \| \
10329 . : '\(.\)' 2>/dev/null ||
10331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10332 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10333 /^X\(\/\/\)$/{ s//\1/; q; }
10334 /^X\(\/\).*/{ s//\1/; q; }
10339 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
10340 # Extract the definition of DEP_FILES from the Makefile without
10342 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10343 test -z "$DEPDIR" && continue
10344 # When using ansi2knr, U may be empty or an underscore; expand it
10345 U
=`sed -n -e '/^U = / s///p' < "$mf"`
10346 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10347 # We invoke sed twice because it is the simplest approach to
10348 # changing $(DEPDIR) to its actual value in the expansion.
10349 for file in `sed -n -e '
10350 /^DEP_FILES = .*\\\\$/ {
10359 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10360 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10361 # Make sure the directory exists.
10362 test -f "$dirpart/$file" && continue
10363 fdir
=`(dirname "$file") 2>/dev/null ||
10364 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10365 X"$file" : 'X\(//\)[^/]' \| \
10366 X"$file" : 'X\(//\)$' \| \
10367 X"$file" : 'X\(/\)' \| \
10368 . : '\(.\)' 2>/dev/null ||
10370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10372 /^X\(\/\/\)$/{ s//\1/; q; }
10373 /^X\(\/\).*/{ s//\1/; q; }
10375 { if $as_mkdir_p; then
10376 mkdir -p $dirpart/$fdir
10378 as_dir
=$dirpart/$fdir
10380 while test ! -d "$as_dir"; do
10381 as_dirs
="$as_dir $as_dirs"
10382 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10383 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10384 X"$as_dir" : 'X\(//\)[^/]' \| \
10385 X"$as_dir" : 'X\(//\)$' \| \
10386 X"$as_dir" : 'X\(/\)' \| \
10387 . : '\(.\)' 2>/dev/null ||
10389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10390 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10391 /^X\(\/\/\)$/{ s//\1/; q; }
10392 /^X\(\/\).*/{ s//\1/; q; }
10395 test ! -n "$as_dirs" || mkdir $as_dirs
10396 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10397 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10398 { (exit 1); exit 1; }; }; }
10400 # echo "creating $dirpart/$file"
10401 echo '# dummy' > "$dirpart/$file"
10405 default
-1 ) for ac_file
in $CONFIG_FILES; do
10406 # Support "outfile[:infile[:infile...]]"
10408 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10410 # PO directories have a Makefile.in generated from Makefile.in.in.
10411 case "$ac_file" in */Makefile.
in)
10412 # Adjust a relative srcdir.
10413 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10414 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
10415 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10416 # In autoconf-2.13 it is called $ac_given_srcdir.
10417 # In autoconf-2.50 it is called $srcdir.
10418 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
10419 case "$ac_given_srcdir" in
10420 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
10421 /*) top_srcdir
="$ac_given_srcdir" ;;
10422 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10424 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10425 rm -f "$ac_dir/POTFILES"
10426 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10427 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10428 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10429 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10438 cat >>$CONFIG_STATUS <<\_ACEOF
10440 { (exit 0); exit 0; }
10442 chmod +x
$CONFIG_STATUS
10443 ac_clean_files
=$ac_clean_files_save
10446 # configure is writing to config.log, and then calls config.status.
10447 # config.status does its own redirection, appending to config.log.
10448 # Unfortunately, on DOS this fails, as config.log is still kept open
10449 # by configure, so config.status won't be able to write to it; its
10450 # output is simply discarded. So we exec the FD to /dev/null,
10451 # effectively closing config.log, so it can be properly (re)opened and
10452 # appended to by config.status. When coming back to configure, we
10453 # need to make the FD available again.
10454 if test "$no_create" != yes; then
10457 $SHELL $CONFIG_STATUS || ac_cs_success
=false
10459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10460 # would make configure fail if this is the last instruction.
10461 $ac_cs_success || { (exit 1); exit 1; }