2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52e for GNU Bison 1.30a.
5 # Report bugs to <bug-bison@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
31 # Support unset when possible.
32 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
38 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
39 { $as_unset LANG
|| test "${LANG+set}" != set; } ||
40 { LANG
=C
; export LANG
; }
41 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42 { $as_unset LC_ALL
|| test "${LC_ALL+set}" != set; } ||
43 { LC_ALL
=C
; export LC_ALL
; }
44 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45 { $as_unset LC_TIME
|| test "${LC_TIME+set}" != set; } ||
46 { LC_TIME
=C
; export LC_TIME
; }
47 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48 { $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set; } ||
49 { LC_CTYPE
=C
; export LC_CTYPE
; }
50 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51 { $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set; } ||
52 { LANGUAGE
=C
; export LANGUAGE
; }
53 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54 { $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set; } ||
55 { LC_COLLATE
=C
; export LC_COLLATE
; }
56 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57 { $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set; } ||
58 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
59 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60 { $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set; } ||
61 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
63 # Name of the executable.
64 as_me
=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits
='0123456789'
81 as_cr_alnum
=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! $SHELL" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
98 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
99 test "x$as_lineno_1" != "x$as_lineno_2" &&
100 test "x$as_lineno_3" = "x$as_lineno_2" || {
101 # Find who we are. Look in the path if we contain no path at all
104 *[\\/]* ) as_myself
=$0 ;;
105 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
109 test -z "$as_dir" && as_dir
=.
110 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
115 # We did not find ourselves, most probably we were run as `sh COMMAND'
116 # in which case we are not to be found in the path.
117 if test "x$as_myself" = x
; then
120 if test ! -f "$as_myself"; then
121 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
122 { (exit 1); exit 1; }; }
124 case $CONFIG_SHELL in
126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
127 for as_dir
in /bin
:/usr
/bin
:$PATH
130 test -z "$as_dir" && as_dir
=.
131 for as_base
in sh bash ksh sh5
; do
134 if ("$as_dir/$as_base" -c '
137 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
138 test "x$as_lineno_1" != "x$as_lineno_2" &&
139 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
140 CONFIG_SHELL
=$as_dir/$as_base
142 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
151 # uniformly replaced by the line number. The first 'sed' inserts a
152 # line-number line before each line; the second 'sed' does the real
153 # work. The second script uses 'N' to pair each line-number line
154 # with the numbered line, and appends trailing '-' during
155 # substitution so that $LINENO is not a special case at line end.
156 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
157 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
158 sed '=' <$as_myself |
163 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
166 s,^['$as_cr_digits']*\n,,
168 chmod +x
$as_me.lineno
||
169 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
170 { (exit 1); exit 1; }; }
172 # Don't try to exec as it changes $[0], causing all sort of problems
173 # (the dirname of $[0] is not the place where we might find the
174 # original and so on. Autoconf is especially sensible to this).
176 # Exit status is that of the last command.
180 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
181 *c
*,-n*) ECHO_N
= ECHO_C
='
183 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
184 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
187 if expr a
: '\(a\)' >/dev
/null
2>&1; then
193 rm -f conf$$ conf$$.exe conf$$.
file
195 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
196 # We could just check for DJGPP; but this test a) works b) is more generic
197 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
198 if test -f conf$$.exe
; then
199 # Don't use ln at all; we don't have any links
204 elif ln conf$$.
file conf$$
2>/dev
/null
; then
209 rm -f conf$$ conf$$.exe conf$$.
file
211 as_executable_p
="test -f"
213 # Sed expression to map a string onto a valid CPP name.
214 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
216 # Sed expression to map a string onto a valid variable name.
217 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220 # We need space, tab and new line, in precisely that order.
226 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
229 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
230 # so uname gets run too.
231 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
238 ac_default_prefix
=/usr
/local
243 SHELL
=${CONFIG_SHELL-/bin/sh}
245 # Maximum number of lines to put in a shell here document.
246 # This variable seems obsolete. It should probably be removed, and
247 # only ac_max_sed_lines should be used.
248 : ${ac_max_here_lines=38}
250 # Factoring default headers for most tests.
251 ac_includes_default
="\
254 # include <sys/types.h>
257 # include <sys/stat.h>
268 # if !STDC_HEADERS && HAVE_MEMORY_H
274 # include <strings.h>
277 # include <inttypes.h>
287 # Initialize some variables set by options.
289 ac_init_version
=false
290 # The variables have the same names as the options, with
291 # dashes changed to underlines.
299 program_transform_name
=s
,x
,x
,
307 # Installation directory options.
308 # These are left unexpanded so users can "make install exec_prefix=/foo"
309 # and all the variables that are supposed to be based on exec_prefix
310 # by default will actually change.
311 # Use braces instead of parens because sh, perl, etc. also accept them.
312 bindir
='${exec_prefix}/bin'
313 sbindir
='${exec_prefix}/sbin'
314 libexecdir
='${exec_prefix}/libexec'
315 datadir
='${prefix}/share'
316 sysconfdir
='${prefix}/etc'
317 sharedstatedir
='${prefix}/com'
318 localstatedir
='${prefix}/var'
319 libdir
='${exec_prefix}/lib'
320 includedir
='${prefix}/include'
321 oldincludedir
='/usr/include'
322 infodir
='${prefix}/info'
323 mandir
='${prefix}/man'
325 # Identity of this package.
326 PACKAGE_NAME
='GNU Bison'
327 PACKAGE_TARNAME
='bison'
328 PACKAGE_VERSION
='1.30a'
329 PACKAGE_STRING
='GNU Bison 1.30a'
330 PACKAGE_BUGREPORT
='bug-bison@gnu.org'
335 # If the previous option needs an argument, assign it.
336 if test -n "$ac_prev"; then
337 eval "$ac_prev=\$ac_option"
342 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
344 # Accept the important Cygnus configure options, so we can diagnose typos.
348 -bindir | --bindir | --bindi | --bind | --bin | --bi)
350 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
353 -build | --build | --buil | --bui | --bu)
354 ac_prev
=build_alias
;;
355 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
356 build_alias
=$ac_optarg ;;
358 -cache-file | --cache-file | --cache-fil | --cache-fi \
359 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
360 ac_prev
=cache_file
;;
361 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
362 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
363 cache_file
=$ac_optarg ;;
366 cache_file
=config.cache
;;
368 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
370 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
372 datadir
=$ac_optarg ;;
374 -disable-* | --disable-*)
375 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
376 # Reject names that are not valid shell variable names.
377 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
378 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
379 { (exit 1); exit 1; }; }
380 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
381 eval "enable_$ac_feature=no" ;;
383 -enable-* | --enable-*)
384 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
385 # Reject names that are not valid shell variable names.
386 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
387 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
388 { (exit 1); exit 1; }; }
389 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
391 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
394 eval "enable_$ac_feature='$ac_optarg'" ;;
396 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
397 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
398 | --exec | --exe | --ex)
399 ac_prev
=exec_prefix
;;
400 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
401 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
402 | --exec=* | --exe=* | --ex=*)
403 exec_prefix
=$ac_optarg ;;
405 -gas | --gas | --ga | --g)
406 # Obsolete; use --with-gas.
409 -help | --help | --hel | --he | -h)
411 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
412 ac_init_help
=recursive
;;
413 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
414 ac_init_help
=short
;;
416 -host | --host | --hos | --ho)
417 ac_prev
=host_alias
;;
418 -host=* | --host=* | --hos=* | --ho=*)
419 host_alias
=$ac_optarg ;;
421 -includedir | --includedir | --includedi | --included | --include \
422 | --includ | --inclu | --incl | --inc)
423 ac_prev
=includedir
;;
424 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
425 | --includ=* | --inclu=* | --incl=* | --inc=*)
426 includedir
=$ac_optarg ;;
428 -infodir | --infodir | --infodi | --infod | --info | --inf)
430 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
431 infodir
=$ac_optarg ;;
433 -libdir | --libdir | --libdi | --libd)
435 -libdir=* | --libdir=* | --libdi=* | --libd=*)
438 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
439 | --libexe | --libex | --libe)
440 ac_prev
=libexecdir
;;
441 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
442 | --libexe=* | --libex=* | --libe=*)
443 libexecdir
=$ac_optarg ;;
445 -localstatedir | --localstatedir | --localstatedi | --localstated \
446 | --localstate | --localstat | --localsta | --localst \
447 | --locals | --local | --loca | --loc | --lo)
448 ac_prev
=localstatedir
;;
449 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
450 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
451 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
452 localstatedir
=$ac_optarg ;;
454 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
456 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
460 # Obsolete; use --without-fp.
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
471 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
472 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
473 | --oldin | --oldi | --old | --ol | --o)
474 ac_prev
=oldincludedir
;;
475 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
476 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
477 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
478 oldincludedir
=$ac_optarg ;;
480 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
482 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
485 -program-prefix | --program-prefix | --program-prefi | --program-pref \
486 | --program-pre | --program-pr | --program-p)
487 ac_prev
=program_prefix
;;
488 -program-prefix=* | --program-prefix=* | --program-prefi=* \
489 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
490 program_prefix
=$ac_optarg ;;
492 -program-suffix | --program-suffix | --program-suffi | --program-suff \
493 | --program-suf | --program-su | --program-s)
494 ac_prev
=program_suffix
;;
495 -program-suffix=* | --program-suffix=* | --program-suffi=* \
496 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
497 program_suffix
=$ac_optarg ;;
499 -program-transform-name | --program-transform-name \
500 | --program-transform-nam | --program-transform-na \
501 | --program-transform-n | --program-transform- \
502 | --program-transform | --program-transfor \
503 | --program-transfo | --program-transf \
504 | --program-trans | --program-tran \
505 | --progr-tra | --program-tr | --program-t)
506 ac_prev
=program_transform_name
;;
507 -program-transform-name=* | --program-transform-name=* \
508 | --program-transform-nam=* | --program-transform-na=* \
509 | --program-transform-n=* | --program-transform-=* \
510 | --program-transform=* | --program-transfor=* \
511 | --program-transfo=* | --program-transf=* \
512 | --program-trans=* | --program-tran=* \
513 | --progr-tra=* | --program-tr=* | --program-t=*)
514 program_transform_name
=$ac_optarg ;;
516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
517 | -silent | --silent | --silen | --sile | --sil)
520 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
522 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
524 sbindir
=$ac_optarg ;;
526 -sharedstatedir | --sharedstatedir | --sharedstatedi \
527 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
528 | --sharedst | --shareds | --shared | --share | --shar \
530 ac_prev
=sharedstatedir
;;
531 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
532 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
533 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
535 sharedstatedir
=$ac_optarg ;;
537 -site | --site | --sit)
539 -site=* | --site=* | --sit=*)
542 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
544 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
547 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
548 | --syscon | --sysco | --sysc | --sys | --sy)
549 ac_prev
=sysconfdir
;;
550 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
551 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
552 sysconfdir
=$ac_optarg ;;
554 -target | --target | --targe | --targ | --tar | --ta | --t)
555 ac_prev
=target_alias
;;
556 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
557 target_alias
=$ac_optarg ;;
559 -v | -verbose | --verbose | --verbos | --verbo | --verb)
562 -version | --version | --versio | --versi | --vers | -V)
566 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
567 # Reject names that are not valid shell variable names.
568 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
569 { echo "$as_me: error: invalid package name: $ac_package" >&2
570 { (exit 1); exit 1; }; }
571 ac_package
=`echo $ac_package| sed 's/-/_/g'`
573 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576 eval "with_$ac_package='$ac_optarg'" ;;
578 -without-* | --without-*)
579 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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'`
585 eval "with_$ac_package=no" ;;
588 # Obsolete; use --with-x.
591 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
592 | --x-incl | --x-inc | --x-in | --x-i)
593 ac_prev
=x_includes
;;
594 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
595 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
596 x_includes
=$ac_optarg ;;
598 -x-libraries | --x-libraries | --x-librarie | --x-librari \
599 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
600 ac_prev
=x_libraries
;;
601 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
602 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
603 x_libraries
=$ac_optarg ;;
605 -*) { echo "$as_me: error: unrecognized option: $ac_option
606 Try \`$0 --help' for more information." >&2
607 { (exit 1); exit 1; }; }
611 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
612 # Reject names that are not valid shell variable names.
613 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
614 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
615 { (exit 1); exit 1; }; }
616 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
617 eval "$ac_envvar='$ac_optarg'"
621 # FIXME: should be removed in autoconf 3.0.
622 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
623 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
624 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
625 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
631 if test -n "$ac_prev"; then
632 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
633 { echo "$as_me: error: missing argument to $ac_option" >&2
634 { (exit 1); exit 1; }; }
637 # Be sure to have absolute paths.
638 for ac_var
in exec_prefix prefix
640 eval ac_val
=$
`echo $ac_var`
642 [\\/$
]* | ?
:[\\/]* | NONE
| '' ) ;;
643 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
644 { (exit 1); exit 1; }; };;
648 # Be sure to have absolute paths.
649 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
650 localstatedir libdir includedir oldincludedir infodir mandir
652 eval ac_val
=$
`echo $ac_var`
654 [\\/$
]* | ?
:[\\/]* ) ;;
655 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
656 { (exit 1); exit 1; }; };;
660 # There might be people who depend on the old broken behavior: `$host'
661 # used to hold the argument of --host etc.
666 # FIXME: should be removed in autoconf 3.0.
667 if test "x$host_alias" != x
; then
668 if test "x$build_alias" = x
; then
669 cross_compiling
=maybe
670 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
671 If a cross compiler is detected then cross compile mode will be used." >&2
672 elif test "x$build_alias" != "x$host_alias"; then
678 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
680 test "$silent" = yes && exec 6>/dev
/null
682 # Find the source files, if location was not specified.
683 if test -z "$srcdir"; then
684 ac_srcdir_defaulted
=yes
685 # Try the directory containing this script, then its parent.
686 ac_confdir
=`(dirname "$0") 2>/dev/null ||
687 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
688 X"$0" : 'X\(//\)[^/]' \| \
689 X"$0" : 'X\(//\)$' \| \
690 X"$0" : 'X\(/\)' \| \
691 . : '\(.\)' 2>/dev/null ||
693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
695 /^X\(\/\/\)$/{ s//\1/; q; }
696 /^X\(\/\).*/{ s//\1/; q; }
699 if test ! -r $srcdir/$ac_unique_file; then
703 ac_srcdir_defaulted
=no
705 if test ! -r $srcdir/$ac_unique_file; then
706 if test "$ac_srcdir_defaulted" = yes; then
707 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
708 { (exit 1); exit 1; }; }
710 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
711 { (exit 1); exit 1; }; }
714 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
715 ac_env_build_alias_set
=${build_alias+set}
716 ac_env_build_alias_value
=$build_alias
717 ac_cv_env_build_alias_set
=${build_alias+set}
718 ac_cv_env_build_alias_value
=$build_alias
719 ac_env_host_alias_set
=${host_alias+set}
720 ac_env_host_alias_value
=$host_alias
721 ac_cv_env_host_alias_set
=${host_alias+set}
722 ac_cv_env_host_alias_value
=$host_alias
723 ac_env_target_alias_set
=${target_alias+set}
724 ac_env_target_alias_value
=$target_alias
725 ac_cv_env_target_alias_set
=${target_alias+set}
726 ac_cv_env_target_alias_value
=$target_alias
727 ac_env_CC_set
=${CC+set}
729 ac_cv_env_CC_set
=${CC+set}
730 ac_cv_env_CC_value
=$CC
731 ac_env_CFLAGS_set
=${CFLAGS+set}
732 ac_env_CFLAGS_value
=$CFLAGS
733 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
734 ac_cv_env_CFLAGS_value
=$CFLAGS
735 ac_env_LDFLAGS_set
=${LDFLAGS+set}
736 ac_env_LDFLAGS_value
=$LDFLAGS
737 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
738 ac_cv_env_LDFLAGS_value
=$LDFLAGS
739 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
740 ac_env_CPPFLAGS_value
=$CPPFLAGS
741 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
742 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
743 ac_env_CPP_set
=${CPP+set}
744 ac_env_CPP_value
=$CPP
745 ac_cv_env_CPP_set
=${CPP+set}
746 ac_cv_env_CPP_value
=$CPP
749 # Report the --help message.
751 if test "$ac_init_help" = "long"; then
752 # Omit some internal or obsolete options to make the list less imposing.
753 # This message is too long to be a string in the A/UX 3.1 sh.
755 \`configure' configures GNU Bison 1.30a to adapt to many kinds of systems.
757 Usage: $0 [OPTION]... [VAR=VALUE]...
759 To assign environment variables (e.g., CC, CFLAGS...), specify them as
760 VAR=VALUE. See below for descriptions of some of the useful variables.
762 Defaults for the options are specified in brackets.
765 -h, --help display this help and exit
766 --help=short display options specific to this package
767 --help=recursive display the short help of all the included packages
768 -V, --version display version information and exit
769 -q, --quiet, --silent do not print \`checking...' messages
770 --cache-file=FILE cache test results in FILE [disabled]
771 -C, --config-cache alias for \`--cache-file=config.cache'
772 -n, --no-create do not create output files
773 --srcdir=DIR find the sources in DIR [configure dir or \`..']
778 Installation directories:
779 --prefix=PREFIX install architecture-independent files in PREFIX
781 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
784 By default, \`make install' will install all the files in
785 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
786 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
787 for instance \`--prefix=\$HOME'.
789 For better control, use the options below.
791 Fine tuning of the installation directories:
792 --bindir=DIR user executables [EPREFIX/bin]
793 --sbindir=DIR system admin executables [EPREFIX/sbin]
794 --libexecdir=DIR program executables [EPREFIX/libexec]
795 --datadir=DIR read-only architecture-independent data [PREFIX/share]
796 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
797 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
798 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
799 --libdir=DIR object code libraries [EPREFIX/lib]
800 --includedir=DIR C header files [PREFIX/include]
801 --oldincludedir=DIR C header files for non-gcc [/usr/include]
802 --infodir=DIR info documentation [PREFIX/info]
803 --mandir=DIR man documentation [PREFIX/man]
809 --program-prefix=PREFIX prepend PREFIX to installed program names
810 --program-suffix=SUFFIX append SUFFIX to installed program names
811 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
814 --build=BUILD configure
for building on BUILD
[guessed
]
815 --host=HOST build programs to run on HOST
[BUILD
]
819 if test -n "$ac_init_help"; then
820 case $ac_init_help in
821 short
| recursive
) echo "Configuration of GNU Bison 1.30a:";;
826 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
827 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
828 --disable-dependency-tracking Speeds up one
-time builds
829 --enable-dependency-tracking Do not reject slow dependency extractors
830 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
831 --disable-nls do not use Native Language Support
834 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
835 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
836 --with-dmalloc use dmalloc
, as
in
837 http
://www.dmalloc.com
/dmalloc.
tar.gz
838 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
839 --with-included-gettext use the GNU
gettext library included here
841 Some influential environment variables
:
842 CC C compiler
command
843 CFLAGS C compiler flags
844 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
845 nonstandard directory
<lib dir
>
846 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
847 headers
in a nonstandard directory
<include dir
>
850 Use these variables to override the choices made by
`configure' or to help
851 it to find libraries and programs with nonstandard names/locations.
853 Report bugs to <bug-bison@gnu.org>.
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
860 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
861 test -d $ac_dir || continue
864 if test "$ac_dir" != .; then
865 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
866 # A "../" for each directory in $ac_dir_suffix.
867 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
869 ac_dir_suffix= ac_top_builddir=
873 .) # No --srcdir option. We are building in place.
875 if test -z "$ac_top_builddir"; then
878 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
880 [\\/]* | ?:[\\/]* ) # Absolute path.
881 ac_srcdir=$srcdir$ac_dir_suffix;
882 ac_top_srcdir=$srcdir ;;
884 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
885 ac_top_srcdir=$ac_top_builddir$srcdir ;;
887 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
889 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
890 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
891 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
892 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
895 # Check for guested configure; otherwise get Cygnus style configure.
896 if test -f $ac_srcdir/configure.gnu; then
898 $SHELL $ac_srcdir/configure.gnu --help=recursive
899 elif test -f $ac_srcdir/configure; then
901 $SHELL $ac_srcdir/configure --help=recursive
902 elif test -f $ac_srcdir/configure.ac ||
903 test -f $ac_srcdir/configure.in; then
907 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
913 test -n "$ac_init_help" && exit 0
914 if $ac_init_version; then
916 GNU Bison configure 1.30a
917 generated by GNU Autoconf 2.52e
919 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
920 Free Software Foundation, Inc.
921 This configure script is free software; the Free Software Foundation
922 gives unlimited permission to copy, distribute and modify it.
928 This file contains any messages produced by compilers while
929 running configure, to aid debugging if configure makes a mistake.
931 It was created by GNU Bison $as_me 1.30a, which was
932 generated by GNU Autoconf 2.52e. Invocation command line was
943 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
944 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
945 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
946 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
947 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
949 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
950 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
952 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
953 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
954 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
955 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
956 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
957 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
958 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
966 test -z "$as_dir" && as_dir=.
980 # Keep a trace of the command line.
981 # Strip out --no-create and --no-recursion so they do not pile up.
982 # Also quote any args containing shell meta-characters.
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c) ;;
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
992 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
993 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
994 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
996 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
999 # Get rid of the leading space.
1002 # When interrupted or exit'd, cleanup temporary files, and complete
1003 # config.log. We remove comments because anyway the quotes in there
1004 # would cause problems or look ugly.
1005 # WARNING: Be sure not to use single quotes in there, as some shells,
1006 # such as our DU 5.0 friend, will then `close
' the trap.
1007 trap 'exit_status
=$?
1008 # Save into config.log some information that might help in debugging.
1012 ## ---------------- ##
1013 ## Cache variables. ##
1014 ## ---------------- ##
1017 # The following way of writing the cache mishandles newlines in values,
1020 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1023 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1028 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1033 if test -s confdefs.h
; then
1040 sed "/^$/d" confdefs.h
1043 test "$ac_signal" != 0 &&
1044 echo "$as_me: caught signal $ac_signal"
1045 echo "$as_me: exit $exit_status"
1047 rm -rf conftest
* confdefs
* core core.
* *.core conf$$
* $ac_clean_files &&
1050 for ac_signal in 1 2 13 15; do
1051 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1056 rm -rf conftest* confdefs.h
1057 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1060 # Let the site file select an alternate cache file if it wants to.
1061 # Prefer explicitly selected file to automatically selected ones.
1062 if test -z "$CONFIG_SITE"; then
1063 if test "x$prefix" != xNONE; then
1064 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1066 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1069 for ac_site_file in $CONFIG_SITE; do
1070 if test -r "$ac_site_file"; then
1071 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1072 echo "$as_me: loading site script $ac_site_file" >&6;}
1073 sed 's
/^
/| /' "$ac_site_file" >&5
1078 if test -r "$cache_file"; then
1079 # Some versions of bash will fail to source /dev/null (special
1080 # files actually), so we avoid doing that.
1081 if test -f "$cache_file"; then
1082 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1083 echo "$as_me: loading cache $cache_file" >&6;}
1085 [\\/]* | ?:[\\/]* ) . $cache_file;;
1086 *) . ./$cache_file;;
1090 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1091 echo "$as_me: creating cache $cache_file" >&6;}
1095 # Check that the precious variables saved in the cache have kept the same
1097 ac_cache_corrupted=false
1098 for ac_var in `(set) 2>&1 |
1099 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1100 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1101 eval ac_new_set=\$ac_env_${ac_var}_set
1102 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1103 eval ac_new_val="\$ac_env_${ac_var}_value"
1104 case $ac_old_set,$ac_new_set in
1106 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1107 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1108 ac_cache_corrupted=: ;;
1110 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1111 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1112 ac_cache_corrupted=: ;;
1115 if test "x$ac_old_val" != "x$ac_new_val"; then
1116 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1117 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1118 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1119 echo "$as_me: former value: $ac_old_val" >&2;}
1120 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1121 echo "$as_me: current value: $ac_new_val" >&2;}
1122 ac_cache_corrupted=:
1125 # Pass precious variables to config.status. It doesn't matter if
1126 # we pass some twice (in addition to the command line arguments).
1127 if test "$ac_new_set" = set; then
1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1131 ac_configure_args="$ac_configure_args '$ac_arg'"
1133 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1138 if $ac_cache_corrupted; then
1139 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1140 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1141 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1142 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1143 { (exit 1); exit 1; }; }
1147 ac_cpp='$CPP $CPPFLAGS'
1148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1149 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1153 for ac_dir in config $srcdir/config; do
1154 if test -f $ac_dir/install-sh; then
1156 ac_install_sh="$ac_aux_dir/install-sh -c"
1158 elif test -f $ac_dir/install.sh; then
1160 ac_install_sh="$ac_aux_dir/install.sh -c"
1162 elif test -f $ac_dir/shtool; then
1164 ac_install_sh="$ac_aux_dir/shtool install -c"
1168 if test -z "$ac_aux_dir"; then
1169 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1170 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1171 { (exit 1); exit 1; }; }
1173 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1174 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1175 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1177 # Find a good install program. We prefer a C program (faster),
1178 # so one script is as good as another. But avoid the broken or
1179 # incompatible versions:
1180 # SysV /etc/install, /usr/sbin/install
1181 # SunOS /usr/etc/install
1182 # IRIX /sbin/install
1184 # AmigaOS /C/install, which installs bootblocks on floppy discs
1185 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1186 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1187 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1188 # ./install, which can be erroneously created by make from ./install.sh.
1189 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1190 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1191 if test -z "$INSTALL"; then
1192 if test "${ac_cv_path_install+set}" = set; then
1193 echo $ECHO_N "(cached) $ECHO_C" >&6
1195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1199 test -z "$as_dir" && as_dir
=.
1200 # Account for people who put trailing slashes in PATH elements.
1202 .
/ | .
// | /cC
/* | \
1203 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1206 # OSF1 and SCO ODT 3.0 have their own names for install.
1207 # Don't use installbsd from OSF since it installs stuff as root
1209 for ac_prog
in ginstall scoinst
install; do
1210 for ac_exec_ext
in '' $ac_executable_extensions; do
1211 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1212 if test $ac_prog = install &&
1213 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1214 # AIX install. It has an incompatible calling convention.
1216 elif test $ac_prog = install &&
1217 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1218 # program-specific install script used by HP pwplus--don't use.
1221 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1232 if test "${ac_cv_path_install+set}" = set; then
1233 INSTALL
=$ac_cv_path_install
1235 # As a last resort, use the slow shell script. We don't cache a
1236 # path for INSTALL within a source directory, because that will
1237 # break other packages using the cache if that directory is
1238 # removed, or if the path is relative.
1239 INSTALL
=$ac_install_sh
1242 echo "$as_me:$LINENO: result: $INSTALL" >&5
1243 echo "${ECHO_T}$INSTALL" >&6
1245 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1246 # It thinks the first close brace ends the variable substitution.
1247 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1249 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1251 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1253 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1254 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1257 echo timestamp
> conftest.
file
1258 # Do `set' in a subshell so we don't clobber the current shell's
1259 # arguments. Must try -L first in case configure is actually a
1260 # symlink; some systems play weird games with the mod time of symlinks
1261 # (eg FreeBSD returns the mod time of the symlink's containing
1264 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1265 if test "$*" = "X"; then
1267 set X
`ls -t $srcdir/configure conftest.file`
1270 if test "$*" != "X $srcdir/configure conftest.file" \
1271 && test "$*" != "X conftest.file $srcdir/configure"; then
1273 # If neither matched, then we have a broken ls. This can happen
1274 # if, for instance, CONFIG_SHELL is bash and it inherits a
1275 # broken ls alias from the environment. This has actually
1276 # happened. Such a system could not be considered "sane".
1277 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1278 alias in your environment" >&5
1279 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1280 alias in your environment" >&2;}
1281 { (exit 1); exit 1; }; }
1284 test "$2" = conftest.
file
1290 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1291 Check your system clock" >&5
1292 echo "$as_me: error: newly created file is older than distributed files!
1293 Check your system clock" >&2;}
1294 { (exit 1); exit 1; }; }
1296 echo "$as_me:$LINENO: result: yes" >&5
1297 echo "${ECHO_T}yes" >&6
1298 test "$program_prefix" != NONE
&&
1299 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1300 # Use a double $ so make ignores it.
1301 test "$program_suffix" != NONE
&&
1302 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1303 # Double any \ or $. echo might interpret backslashes.
1304 # By default was `s,x,x', remove it if useless.
1305 cat <<\_ACEOF
>conftest.
sed
1306 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1308 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1311 # expand $ac_aux_dir to an absolute path
1312 am_aux_dir
=`cd $ac_aux_dir && pwd`
1314 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1315 # Use eval to expand $SHELL
1316 if eval "$MISSING --run true"; then
1317 am_missing_run
="$MISSING --run "
1321 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1322 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1325 for ac_prog
in gawk mawk nawk
awk
1327 # Extract the first word of "$ac_prog", so it can be a program name with args.
1328 set dummy
$ac_prog; ac_word
=$2
1329 echo "$as_me:$LINENO: checking for $ac_word" >&5
1330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1331 if test "${ac_cv_prog_AWK+set}" = set; then
1332 echo $ECHO_N "(cached) $ECHO_C" >&6
1334 if test -n "$AWK"; then
1335 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1341 test -z "$as_dir" && as_dir
=.
1342 for ac_exec_ext
in '' $ac_executable_extensions; do
1343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1344 ac_cv_prog_AWK
="$ac_prog"
1345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1354 if test -n "$AWK"; then
1355 echo "$as_me:$LINENO: result: $AWK" >&5
1356 echo "${ECHO_T}$AWK" >&6
1358 echo "$as_me:$LINENO: result: no" >&5
1359 echo "${ECHO_T}no" >&6
1362 test -n "$AWK" && break
1365 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1366 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1367 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1368 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1371 cat >conftest.
make <<\_ACEOF
1373 @
echo 'ac_maketemp="${MAKE}"'
1375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1376 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1377 if test -n "$ac_maketemp"; then
1378 eval ac_cv_prog_make_
${ac_make}_set
=yes
1380 eval ac_cv_prog_make_
${ac_make}_set
=no
1384 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1385 echo "$as_me:$LINENO: result: yes" >&5
1386 echo "${ECHO_T}yes" >&6
1389 echo "$as_me:$LINENO: result: no" >&5
1390 echo "${ECHO_T}no" >&6
1391 SET_MAKE
="MAKE=${MAKE-make}"
1394 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1395 if test "${enable_dependency_tracking+set}" = set; then
1396 enableval
="$enable_dependency_tracking"
1399 if test "x$enable_dependency_tracking" != xno
; then
1400 am_depcomp
="$ac_aux_dir/depcomp"
1404 if test "x$enable_dependency_tracking" != xno; then
1412 rm -f .deps
2>/dev
/null
1413 mkdir .deps
2>/dev
/null
1414 if test -d .deps
; then
1417 # MS-DOS does not allow filenames that begin with a dot.
1420 rmdir .deps
2>/dev
/null
1422 # test to see if srcdir already configured
1423 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1424 test -f $srcdir/config.status
; then
1425 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1426 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1427 { (exit 1); exit 1; }; }
1430 # Define the identity of the package.
1434 cat >>confdefs.h
<<_ACEOF
1435 #define PACKAGE "$PACKAGE"
1438 cat >>confdefs.h
<<_ACEOF
1439 #define VERSION "$VERSION"
1442 # Some tools Automake needs.
1444 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1446 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1448 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1450 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1452 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1454 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1456 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1458 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1460 # We need awk for the "check" target. The system "awk" is bad on
1463 # Add the stamp file to the list of files AC keeps track of,
1464 # along with our hook.
1465 ac_config_headers
="$ac_config_headers config.h:config.hin"
1467 # Initialize the test suite.
1468 ac_config_commands
="$ac_config_commands tests/package.m4"
1470 ac_config_commands
="$ac_config_commands tests/atconfig"
1472 ac_config_files
="$ac_config_files tests/bison"
1474 ac_config_files
="$ac_config_files tests/Makefile tests/atlocal"
1476 # Needed by tests/atlocal.in.
1478 # Checks for programs.
1480 ac_cpp
='$CPP $CPPFLAGS'
1481 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1484 if test -n "$ac_tool_prefix"; then
1485 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1486 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1492 if test -n "$CC"; then
1493 ac_cv_prog_CC
="$CC" # Let the user override the test.
1495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1499 test -z "$as_dir" && as_dir
=.
1500 for ac_exec_ext
in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 if test -n "$CC"; then
1513 echo "$as_me:$LINENO: result: $CC" >&5
1514 echo "${ECHO_T}$CC" >&6
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1521 if test -z "$ac_cv_prog_CC"; then
1523 # Extract the first word of "gcc", so it can be a program name with args.
1524 set dummy gcc
; ac_word
=$2
1525 echo "$as_me:$LINENO: checking for $ac_word" >&5
1526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 if test -n "$ac_ct_CC"; then
1531 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1537 test -z "$as_dir" && as_dir
=.
1538 for ac_exec_ext
in '' $ac_executable_extensions; do
1539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1540 ac_cv_prog_ac_ct_CC
="gcc"
1541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1550 if test -n "$ac_ct_CC"; then
1551 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1552 echo "${ECHO_T}$ac_ct_CC" >&6
1554 echo "$as_me:$LINENO: result: no" >&5
1555 echo "${ECHO_T}no" >&6
1563 if test -z "$CC"; then
1564 if test -n "$ac_tool_prefix"; then
1565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1566 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 if test -n "$CC"; then
1573 ac_cv_prog_CC
="$CC" # Let the user override the test.
1575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1579 test -z "$as_dir" && as_dir
=.
1580 for ac_exec_ext
in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 if test -n "$CC"; then
1593 echo "$as_me:$LINENO: result: $CC" >&5
1594 echo "${ECHO_T}$CC" >&6
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1601 if test -z "$ac_cv_prog_CC"; then
1603 # Extract the first word of "cc", so it can be a program name with args.
1604 set dummy cc
; ac_word
=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 if test -n "$ac_ct_CC"; then
1611 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1617 test -z "$as_dir" && as_dir
=.
1618 for ac_exec_ext
in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_ac_ct_CC
="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1630 if test -n "$ac_ct_CC"; then
1631 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1632 echo "${ECHO_T}$ac_ct_CC" >&6
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1644 if test -z "$CC"; then
1645 # Extract the first word of "cc", so it can be a program name with args.
1646 set dummy cc
; ac_word
=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 if test -n "$CC"; then
1653 ac_cv_prog_CC
="$CC" # Let the user override the test.
1656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1660 test -z "$as_dir" && as_dir
=.
1661 for ac_exec_ext
in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1664 ac_prog_rejected
=yes
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 if test $ac_prog_rejected = yes; then
1675 # We found a bogon in the path, so make sure we never use it.
1676 set dummy
$ac_cv_prog_CC
1678 if test $# != 0; then
1679 # We chose a different compiler from the bogus one.
1680 # However, it has the same basename, so the bogon will be chosen
1681 # first if we set CC to just the basename; use the full file name.
1683 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1691 if test -n "$CC"; then
1692 echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1700 if test -z "$CC"; then
1701 if test -n "$ac_tool_prefix"; then
1704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1705 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1706 echo "$as_me:$LINENO: checking for $ac_word" >&5
1707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708 if test "${ac_cv_prog_CC+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 if test -n "$CC"; then
1712 ac_cv_prog_CC
="$CC" # Let the user override the test.
1714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir
=.
1719 for ac_exec_ext
in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731 if test -n "$CC"; then
1732 echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1735 echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1739 test -n "$CC" && break
1742 if test -z "$CC"; then
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy
$ac_prog; ac_word
=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 if test -n "$ac_ct_CC"; then
1754 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir
=.
1761 for ac_exec_ext
in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_ac_ct_CC
="$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$ac_ct_CC" && break
1789 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1790 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1791 { (exit 1); exit 1; }; }
1793 # Provide some information about the compiler.
1794 echo "$as_me:$LINENO:" \
1795 "checking for C compiler version" >&5
1796 ac_compiler
=`set X $ac_compile; echo $2`
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1798 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1802 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1803 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }
1807 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1808 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811 (exit $ac_status); }
1813 cat >conftest.
$ac_ext <<_ACEOF
1814 #line $LINENO "configure"
1815 #include "confdefs.h"
1817 #ifdef F77_DUMMY_MAIN
1821 int F77_DUMMY_MAIN() { return 1; }
1831 ac_clean_files_save
=$ac_clean_files
1832 ac_clean_files
="$ac_clean_files a.out a.exe"
1833 # Try to create an executable without -o first, disregard a.out.
1834 # It will help us diagnose broken compilers, and finding out an intuition
1836 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1837 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1838 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1839 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1840 (eval $ac_link_default) 2>&5
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }; then
1844 # Find the output, starting from the most likely. This scheme is
1845 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1847 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1848 ls a.out conftest 2>/dev/null;
1849 ls a.* conftest.* 2>/dev/null`; do
1851 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1852 a.out
) # We found the default executable, but exeext='' is most
1855 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1856 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1863 echo "$as_me: failed program was:" >&5
1864 cat conftest.
$ac_ext >&5
1865 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1866 echo "$as_me: error: C compiler cannot create executables" >&2;}
1867 { (exit 77); exit 77; }; }
1870 ac_exeext
=$ac_cv_exeext
1871 echo "$as_me:$LINENO: result: $ac_file" >&5
1872 echo "${ECHO_T}$ac_file" >&6
1874 # Check the compiler produces executables we can run. If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1877 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1878 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1879 # If not cross compiling, check that we can run a simple program.
1880 if test "$cross_compiling" != yes; then
1881 if { ac_try
='./$ac_file'
1882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; }; then
1889 if test "$cross_compiling" = maybe
; then
1892 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1893 If you meant to cross compile, use \`--host'." >&5
1894 echo "$as_me: error: cannot run C compiled programs.
1895 If you meant to cross compile, use \`--host'." >&2;}
1896 { (exit 1); exit 1; }; }
1900 echo "$as_me:$LINENO: result: yes" >&5
1901 echo "${ECHO_T}yes" >&6
1903 rm -f a.out a.exe conftest
$ac_cv_exeext
1904 ac_clean_files
=$ac_clean_files_save
1905 # Check the compiler produces executables we can run. If not, either
1906 # the compiler is broken, or we cross compile.
1907 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1908 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1909 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1910 echo "${ECHO_T}$cross_compiling" >&6
1912 echo "$as_me:$LINENO: checking for executable suffix" >&5
1913 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1915 (eval $ac_link) 2>&5
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); }; then
1919 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1920 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1921 # work properly (i.e., refer to `conftest.exe'), while it won't with
1923 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1925 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1926 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1933 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1934 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1935 { (exit 1); exit 1; }; }
1938 rm -f conftest
$ac_cv_exeext
1939 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1940 echo "${ECHO_T}$ac_cv_exeext" >&6
1942 rm -f conftest.
$ac_ext
1943 EXEEXT
=$ac_cv_exeext
1945 echo "$as_me:$LINENO: checking for object suffix" >&5
1946 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1947 if test "${ac_cv_objext+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 cat >conftest.
$ac_ext <<_ACEOF
1951 #line $LINENO "configure"
1952 #include "confdefs.h"
1954 #ifdef F77_DUMMY_MAIN
1958 int F77_DUMMY_MAIN() { return 1; }
1968 rm -f conftest.o conftest.obj
1969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1970 (eval $ac_compile) 2>&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1976 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1977 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1982 echo "$as_me: failed program was:" >&5
1983 cat conftest.
$ac_ext >&5
1984 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1985 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1986 { (exit 1); exit 1; }; }
1989 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1991 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1992 echo "${ECHO_T}$ac_cv_objext" >&6
1993 OBJEXT
=$ac_cv_objext
1995 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1996 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1997 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 cat >conftest.
$ac_ext <<_ACEOF
2001 #line $LINENO "configure"
2002 #include "confdefs.h"
2004 #ifdef F77_DUMMY_MAIN
2008 int F77_DUMMY_MAIN() { return 1; }
2021 rm -f conftest.
$ac_objext
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); } &&
2027 { ac_try
='test -s conftest.$ac_objext'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; }; then
2035 echo "$as_me: failed program was:" >&5
2036 cat conftest.
$ac_ext >&5
2039 rm -f conftest.
$ac_objext conftest.
$ac_ext
2040 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2043 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2045 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2046 ac_test_CFLAGS
=${CFLAGS+set}
2047 ac_save_CFLAGS
=$CFLAGS
2049 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2050 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2051 if test "${ac_cv_prog_cc_g+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 cat >conftest.
$ac_ext <<_ACEOF
2055 #line $LINENO "configure"
2056 #include "confdefs.h"
2058 #ifdef F77_DUMMY_MAIN
2062 int F77_DUMMY_MAIN() { return 1; }
2072 rm -f conftest.
$ac_objext
2073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2074 (eval $ac_compile) 2>&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try
='test -s conftest.$ac_objext'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; }; then
2086 echo "$as_me: failed program was:" >&5
2087 cat conftest.
$ac_ext >&5
2090 rm -f conftest.
$ac_objext conftest.
$ac_ext
2092 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2093 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2094 if test "$ac_test_CFLAGS" = set; then
2095 CFLAGS
=$ac_save_CFLAGS
2096 elif test $ac_cv_prog_cc_g = yes; then
2097 if test "$GCC" = yes; then
2103 if test "$GCC" = yes; then
2109 # Some people use a C++ compiler to compile C. Since we use `exit',
2110 # in C++ we need to declare it. In case someone uses the same compiler
2111 # for both compiling C and C++ we need to have the C++ compiler decide
2112 # the declaration of exit, since it's the most demanding environment.
2113 cat >conftest.
$ac_ext <<_ACEOF
2118 rm -f conftest.
$ac_objext
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); } &&
2124 { ac_try
='test -s conftest.$ac_objext'
2125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; }; then
2130 for ac_declaration
in \
2132 '#include <stdlib.h>' \
2133 'extern "C" void std::exit (int) throw (); using std::exit;' \
2134 'extern "C" void std::exit (int); using std::exit;' \
2135 'extern "C" void exit (int) throw ();' \
2136 'extern "C" void exit (int);' \
2139 cat >conftest.
$ac_ext <<_ACEOF
2140 #line $LINENO "configure"
2141 #include "confdefs.h"
2144 #ifdef F77_DUMMY_MAIN
2148 int F77_DUMMY_MAIN() { return 1; }
2158 rm -f conftest.
$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); } &&
2164 { ac_try
='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2172 echo "$as_me: failed program was:" >&5
2173 cat conftest.
$ac_ext >&5
2176 rm -f conftest.
$ac_objext conftest.
$ac_ext
2177 cat >conftest.
$ac_ext <<_ACEOF
2178 #line $LINENO "configure"
2179 #include "confdefs.h"
2181 #ifdef F77_DUMMY_MAIN
2185 int F77_DUMMY_MAIN() { return 1; }
2195 rm -f conftest.
$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try
='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2209 echo "$as_me: failed program was:" >&5
2210 cat conftest.
$ac_ext >&5
2212 rm -f conftest.
$ac_objext conftest.
$ac_ext
2215 if test -n "$ac_declaration"; then
2216 echo '#ifdef __cplusplus' >>confdefs.h
2217 echo $ac_declaration >>confdefs.h
2218 echo '#endif' >>confdefs.h
2222 echo "$as_me: failed program was:" >&5
2223 cat conftest.
$ac_ext >&5
2225 rm -f conftest.
$ac_objext conftest.
$ac_ext
2227 ac_cpp
='$CPP $CPPFLAGS'
2228 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2231 ac_config_commands
="$ac_config_commands depfiles"
2233 am_make
=${MAKE-make}
2234 cat > confinc
<< 'END'
2238 # If we don't find an include directive, just comment out the code.
2239 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2240 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2244 # First try GNU make style include.
2245 echo "include confinc" > confmf
2246 # We grep out `Entering directory' and `Leaving directory'
2247 # messages which can occur if `w' ends up in MAKEFLAGS.
2248 # In particular we don't look at `^make:' because GNU make might
2249 # be invoked under some other name (usually "gmake"), in which
2250 # case it prints its new name instead of `make'.
2251 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2256 # Now try BSD make style include.
2257 if test "$am__include" = "#"; then
2258 echo '.include "confinc"' > confmf
2259 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2260 am__include
=.include
2266 echo "$as_me:$LINENO: result: $_am_result" >&5
2267 echo "${ECHO_T}$_am_result" >&6
2268 rm -f confinc confmf
2270 depcc
="$CC" am_compiler_list
=
2272 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2273 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2274 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2278 # We make a subdir and do the tests there. Otherwise we can end up
2279 # making bogus files that we don't know about and never remove. For
2280 # instance it was reported that on HP-UX the gcc test will end up
2281 # making a dummy file named `D' -- because `-MD' means `put the output
2284 # Copy depcomp to subdir because otherwise we won't find it if we're
2285 # using a relative directory.
2286 cp "$am_depcomp" conftest.dir
2289 am_cv_CC_dependencies_compiler_type
=none
2290 if test "$am_compiler_list" = ""; then
2291 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2293 for depmode
in $am_compiler_list; do
2294 # We need to recreate these files for each test, as the compiler may
2295 # overwrite some of them when testing with obscure command lines.
2296 # This happens at least with the AIX C compiler.
2297 echo '#include "conftest.h"' > conftest.c
2298 echo 'int i;' > conftest.h
2299 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2303 # after this tag, mechanisms are not by side-effect, so they'll
2304 # only be used when explicitly requested
2305 if test "x$enable_dependency_tracking" = xyes
; then
2313 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2314 # mode. It turns out that the SunPro C++ compiler does not properly
2315 # handle `-M -o', and we need to detect this.
2316 if depmode
=$depmode \
2317 source=conftest.c object
=conftest.o \
2318 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2319 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2320 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2321 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2322 am_cv_CC_dependencies_compiler_type
=$depmode
2330 am_cv_CC_dependencies_compiler_type
=none
2334 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2335 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2336 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2339 ac_cpp
='$CPP $CPPFLAGS'
2340 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2343 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2345 # On Suns, sometimes $CPP names a directory.
2346 if test -n "$CPP" && test -d "$CPP"; then
2349 if test -z "$CPP"; then
2350 if test "${ac_cv_prog_CPP+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 # Double quotes because CPP needs to be expanded
2354 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2357 for ac_c_preproc_warn_flag
in '' yes
2359 # Use a header file that comes with gcc, so configuring glibc
2360 # with a fresh cross-compiler works.
2361 # On the NeXT, cc -E runs the code through the compiler's parser,
2362 # not just through cpp. "Syntax error" is here to catch this case.
2363 cat >conftest.
$ac_ext <<_ACEOF
2364 #line $LINENO "configure"
2365 #include "confdefs.h"
2369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2370 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2372 egrep -v '^ *\+' conftest.er1
>conftest.err
2374 cat conftest.err
>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } >/dev
/null
; then
2377 if test -s conftest.err
; then
2378 ac_cpp_err
=$ac_c_preproc_warn_flag
2385 if test -z "$ac_cpp_err"; then
2388 echo "$as_me: failed program was:" >&5
2389 cat conftest.
$ac_ext >&5
2390 # Broken: fails on valid input.
2393 rm -f conftest.err conftest.
$ac_ext
2395 # OK, works on sane cases. Now check whether non-existent headers
2396 # can be detected and how.
2397 cat >conftest.
$ac_ext <<_ACEOF
2398 #line $LINENO "configure"
2399 #include "confdefs.h"
2400 #include <ac_nonexistent.h>
2402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2403 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2405 egrep -v '^ *\+' conftest.er1
>conftest.err
2407 cat conftest.err
>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } >/dev
/null
; then
2410 if test -s conftest.err
; then
2411 ac_cpp_err
=$ac_c_preproc_warn_flag
2418 if test -z "$ac_cpp_err"; then
2419 # Broken: success on invalid input.
2422 echo "$as_me: failed program was:" >&5
2423 cat conftest.
$ac_ext >&5
2424 # Passes both tests.
2428 rm -f conftest.err conftest.
$ac_ext
2431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2432 rm -f conftest.err conftest.
$ac_ext
2433 if $ac_preproc_ok; then
2445 echo "$as_me:$LINENO: result: $CPP" >&5
2446 echo "${ECHO_T}$CPP" >&6
2448 for ac_c_preproc_warn_flag
in '' yes
2450 # Use a header file that comes with gcc, so configuring glibc
2451 # with a fresh cross-compiler works.
2452 # On the NeXT, cc -E runs the code through the compiler's parser,
2453 # not just through cpp. "Syntax error" is here to catch this case.
2454 cat >conftest.
$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 #include "confdefs.h"
2460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2461 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2463 egrep -v '^ *\+' conftest.er1
>conftest.err
2465 cat conftest.err
>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } >/dev
/null
; then
2468 if test -s conftest.err
; then
2469 ac_cpp_err
=$ac_c_preproc_warn_flag
2476 if test -z "$ac_cpp_err"; then
2479 echo "$as_me: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2481 # Broken: fails on valid input.
2484 rm -f conftest.err conftest.
$ac_ext
2486 # OK, works on sane cases. Now check whether non-existent headers
2487 # can be detected and how.
2488 cat >conftest.
$ac_ext <<_ACEOF
2489 #line $LINENO "configure"
2490 #include "confdefs.h"
2491 #include <ac_nonexistent.h>
2493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2494 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2496 egrep -v '^ *\+' conftest.er1
>conftest.err
2498 cat conftest.err
>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } >/dev
/null
; then
2501 if test -s conftest.err
; then
2502 ac_cpp_err
=$ac_c_preproc_warn_flag
2509 if test -z "$ac_cpp_err"; then
2510 # Broken: success on invalid input.
2513 echo "$as_me: failed program was:" >&5
2514 cat conftest.
$ac_ext >&5
2515 # Passes both tests.
2519 rm -f conftest.err conftest.
$ac_ext
2522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2523 rm -f conftest.err conftest.
$ac_ext
2524 if $ac_preproc_ok; then
2527 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2528 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2529 { (exit 1); exit 1; }; }
2533 ac_cpp
='$CPP $CPPFLAGS'
2534 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2538 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2539 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2540 if test "${ac_cv_header_stdc+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 cat >conftest.
$ac_ext <<_ACEOF
2544 #line $LINENO "configure"
2545 #include "confdefs.h"
2552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2553 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2555 egrep -v '^ *\+' conftest.er1
>conftest.err
2557 cat conftest.err
>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } >/dev
/null
; then
2560 if test -s conftest.err
; then
2561 ac_cpp_err
=$ac_c_preproc_warn_flag
2568 if test -z "$ac_cpp_err"; then
2569 ac_cv_header_stdc
=yes
2571 echo "$as_me: failed program was:" >&5
2572 cat conftest.
$ac_ext >&5
2573 ac_cv_header_stdc
=no
2575 rm -f conftest.err conftest.
$ac_ext
2577 if test $ac_cv_header_stdc = yes; then
2578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2579 cat >conftest.
$ac_ext <<_ACEOF
2580 #line $LINENO "configure"
2581 #include "confdefs.h"
2585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2586 egrep "memchr" >/dev
/null
2>&1; then
2589 ac_cv_header_stdc
=no
2595 if test $ac_cv_header_stdc = yes; then
2596 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2597 cat >conftest.
$ac_ext <<_ACEOF
2598 #line $LINENO "configure"
2599 #include "confdefs.h"
2603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2604 egrep "free" >/dev
/null
2>&1; then
2607 ac_cv_header_stdc
=no
2613 if test $ac_cv_header_stdc = yes; then
2614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2615 if test "$cross_compiling" = yes; then
2618 cat >conftest.
$ac_ext <<_ACEOF
2619 #line $LINENO "configure"
2620 #include "confdefs.h"
2622 #if ((' ' & 0x0FF) == 0x020)
2623 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2624 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2626 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2627 || ('j' <= (c) && (c) <= 'r') \
2628 || ('s' <= (c) && (c) <= 'z'))
2629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2637 for (i = 0; i < 256; i++)
2638 if (XOR (islower (i), ISLOWER (i))
2639 || toupper (i) != TOUPPER (i))
2644 rm -f conftest
$ac_exeext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2646 (eval $ac_link) 2>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2657 echo "$as_me: program exited with status $ac_status" >&5
2658 echo "$as_me: failed program was:" >&5
2659 cat conftest.
$ac_ext >&5
2661 ac_cv_header_stdc
=no
2663 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2667 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2668 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2669 if test $ac_cv_header_stdc = yes; then
2671 cat >>confdefs.h
<<\_ACEOF
2672 #define STDC_HEADERS 1
2677 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2679 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2680 inttypes.h stdint.h unistd.h
2682 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2683 echo "$as_me:$LINENO: checking for $ac_header" >&5
2684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 cat >conftest.
$ac_ext <<_ACEOF
2689 #line $LINENO "configure"
2690 #include "confdefs.h"
2691 $ac_includes_default
2693 #include <$ac_header>
2695 rm -f conftest.
$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try
='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 eval "$as_ac_Header=yes"
2709 echo "$as_me: failed program was:" >&5
2710 cat conftest.
$ac_ext >&5
2711 eval "$as_ac_Header=no"
2713 rm -f conftest.
$ac_objext conftest.
$ac_ext
2715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2718 cat >>confdefs.h
<<_ACEOF
2719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2726 if test "${ac_cv_header_minix_config_h+set}" = set; then
2727 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2728 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2729 if test "${ac_cv_header_minix_config_h+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2733 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2735 # Is the header compilable?
2736 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2737 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2738 cat >conftest.
$ac_ext <<_ACEOF
2739 #line $LINENO "configure"
2740 #include "confdefs.h"
2741 $ac_includes_default
2742 #include <minix/config.h>
2744 rm -f conftest.
$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } &&
2750 { ac_try
='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 ac_header_compiler
=yes
2758 echo "$as_me: failed program was:" >&5
2759 cat conftest.
$ac_ext >&5
2760 ac_header_compiler
=no
2762 rm -f conftest.
$ac_objext conftest.
$ac_ext
2763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2764 echo "${ECHO_T}$ac_header_compiler" >&6
2766 # Is the header present?
2767 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2768 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2769 cat >conftest.
$ac_ext <<_ACEOF
2770 #line $LINENO "configure"
2771 #include "confdefs.h"
2772 #include <minix/config.h>
2774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2775 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2777 egrep -v '^ *\+' conftest.er1
>conftest.err
2779 cat conftest.err
>&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } >/dev
/null
; then
2782 if test -s conftest.err
; then
2783 ac_cpp_err
=$ac_c_preproc_warn_flag
2790 if test -z "$ac_cpp_err"; then
2791 ac_header_preproc
=yes
2793 echo "$as_me: failed program was:" >&5
2794 cat conftest.
$ac_ext >&5
2795 ac_header_preproc
=no
2797 rm -f conftest.err conftest.
$ac_ext
2798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2799 echo "${ECHO_T}$ac_header_preproc" >&6
2801 # So? What about this header?
2802 case $ac_header_compiler:$ac_header_preproc in
2804 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2805 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2806 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2807 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2809 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2810 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2811 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2812 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2813 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2814 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2816 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2817 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2818 if test "${ac_cv_header_minix_config_h+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 ac_cv_header_minix_config_h
=$ac_header_preproc
2823 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2824 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2827 if test $ac_cv_header_minix_config_h = yes; then
2833 if test "$MINIX" = yes; then
2835 cat >>confdefs.h
<<\_ACEOF
2836 #define _POSIX_SOURCE 1
2839 cat >>confdefs.h
<<\_ACEOF
2840 #define _POSIX_1_SOURCE 2
2843 cat >>confdefs.h
<<\_ACEOF
2849 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2850 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2851 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 ac_check_lib_save_LIBS
=$LIBS
2855 LIBS
="-lcposix $LIBS"
2856 cat >conftest.
$ac_ext <<_ACEOF
2857 #line $LINENO "configure"
2858 #include "confdefs.h"
2860 /* Override any gcc2 internal prototype to avoid an error. */
2864 /* We use char because int might match the return type of a gcc2
2865 builtin and then its argument prototype would still apply. */
2867 #ifdef F77_DUMMY_MAIN
2871 int F77_DUMMY_MAIN() { return 1; }
2881 rm -f conftest.
$ac_objext conftest
$ac_exeext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2883 (eval $ac_link) 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try
='test -s conftest$ac_exeext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 ac_cv_lib_cposix_strerror
=yes
2895 echo "$as_me: failed program was:" >&5
2896 cat conftest.
$ac_ext >&5
2897 ac_cv_lib_cposix_strerror
=no
2899 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2900 LIBS
=$ac_check_lib_save_LIBS
2902 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2903 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2904 if test $ac_cv_lib_cposix_strerror = yes; then
2905 LIBS
="$LIBS -lcposix"
2908 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2909 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2910 if test "${am_cv_prog_cc_stdc+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 am_cv_prog_cc_stdc
=no
2915 # Don't try gcc -ansi; that turns off useful extensions and
2916 # breaks some systems' header files.
2917 # AIX -qlanglvl=ansi
2918 # Ultrix and OSF/1 -std1
2919 # HP-UX 10.20 and later -Ae
2920 # HP-UX older versions -Aa -D_HPUX_SOURCE
2921 # SVR4 -Xc -D__EXTENSIONS__
2922 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2924 CC
="$ac_save_CC $ac_arg"
2925 cat >conftest.
$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 #include "confdefs.h"
2930 #include <sys/types.h>
2931 #include <sys/stat.h>
2932 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2933 struct buf { int x; };
2934 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2935 static char *e (p, i)
2941 static char *f (char * (*g) (char **, int), char **p, ...)
2946 s = g (p, va_arg (v,int));
2950 int test (int i, double x);
2951 struct s1 {int (*f) (int a);};
2952 struct s2 {int (*f) (double a);};
2953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2957 #ifdef F77_DUMMY_MAIN
2961 int F77_DUMMY_MAIN() { return 1; }
2967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2973 rm -f conftest.
$ac_objext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975 (eval $ac_compile) 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try
='test -s conftest.$ac_objext'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2985 am_cv_prog_cc_stdc
="$ac_arg"; break
2987 echo "$as_me: failed program was:" >&5
2988 cat conftest.
$ac_ext >&5
2990 rm -f conftest.
$ac_objext conftest.
$ac_ext
2996 if test -z "$am_cv_prog_cc_stdc"; then
2997 echo "$as_me:$LINENO: result: none needed" >&5
2998 echo "${ECHO_T}none needed" >&6
3000 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3001 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3003 case "x$am_cv_prog_cc_stdc" in
3005 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3010 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3011 echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3013 if test "${ac_cv_prog_RANLIB+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 if test -n "$RANLIB"; then
3017 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir
=.
3024 for ac_exec_ext
in '' $ac_executable_extensions; do
3025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 RANLIB
=$ac_cv_prog_RANLIB
3036 if test -n "$RANLIB"; then
3037 echo "$as_me:$LINENO: result: $RANLIB" >&5
3038 echo "${ECHO_T}$RANLIB" >&6
3040 echo "$as_me:$LINENO: result: no" >&5
3041 echo "${ECHO_T}no" >&6
3045 if test -z "$ac_cv_prog_RANLIB"; then
3046 ac_ct_RANLIB
=$RANLIB
3047 # Extract the first word of "ranlib", so it can be a program name with args.
3048 set dummy ranlib
; ac_word
=$2
3049 echo "$as_me:$LINENO: checking for $ac_word" >&5
3050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 if test -n "$ac_ct_RANLIB"; then
3055 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir
=.
3062 for ac_exec_ext
in '' $ac_executable_extensions; do
3063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3074 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3075 if test -n "$ac_ct_RANLIB"; then
3076 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3077 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3079 echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6
3083 RANLIB
=$ac_ct_RANLIB
3085 RANLIB
="$ac_cv_prog_RANLIB"
3088 AUTOM4TE
=${AUTOM4TE-"${am_missing_run}autom4te"}
3090 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3091 if test "${enable_gcc_warnings+set}" = set; then
3092 enableval
="$enable_gcc_warnings"
3093 case "${enableval}" in
3095 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3096 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3097 { (exit 1); exit 1; }; } ;;
3102 if test "${enableval}" = yes; then
3103 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3104 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3106 ac_save_CFLAGS
="$CFLAGS"
3107 CFLAGS
="$CFLAGS -Wall"
3108 cat >conftest.
$ac_ext <<_ACEOF
3109 #line $LINENO "configure"
3110 #include "confdefs.h"
3112 #ifdef F77_DUMMY_MAIN
3116 int F77_DUMMY_MAIN() { return 1; }
3126 rm -f conftest.
$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try
='test -s conftest.$ac_objext'
3133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3138 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3139 echo "$as_me:$LINENO: result: yes" >&5
3140 echo "${ECHO_T}yes" >&6
3142 echo "$as_me: failed program was:" >&5
3143 cat conftest.
$ac_ext >&5
3144 echo "$as_me:$LINENO: result: no" >&5
3145 echo "${ECHO_T}no" >&6
3147 rm -f conftest.
$ac_objext conftest.
$ac_ext
3148 CFLAGS
="$ac_save_CFLAGS"
3149 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3150 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3152 ac_save_CFLAGS
="$CFLAGS"
3154 cat >conftest.
$ac_ext <<_ACEOF
3155 #line $LINENO "configure"
3156 #include "confdefs.h"
3158 #ifdef F77_DUMMY_MAIN
3162 int F77_DUMMY_MAIN() { return 1; }
3172 rm -f conftest.
$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try
='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3185 echo "$as_me:$LINENO: result: yes" >&5
3186 echo "${ECHO_T}yes" >&6
3188 echo "$as_me: failed program was:" >&5
3189 cat conftest.
$ac_ext >&5
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3193 rm -f conftest.
$ac_objext conftest.
$ac_ext
3194 CFLAGS
="$ac_save_CFLAGS"
3195 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3196 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3198 ac_save_CFLAGS
="$CFLAGS"
3199 CFLAGS
="$CFLAGS -Wbad-function-cast"
3200 cat >conftest.
$ac_ext <<_ACEOF
3201 #line $LINENO "configure"
3202 #include "confdefs.h"
3204 #ifdef F77_DUMMY_MAIN
3208 int F77_DUMMY_MAIN() { return 1; }
3218 rm -f conftest.
$ac_objext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220 (eval $ac_compile) 2>&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try
='test -s conftest.$ac_objext'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; }; then
3230 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3231 echo "$as_me:$LINENO: result: yes" >&5
3232 echo "${ECHO_T}yes" >&6
3234 echo "$as_me: failed program was:" >&5
3235 cat conftest.
$ac_ext >&5
3236 echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3239 rm -f conftest.
$ac_objext conftest.
$ac_ext
3240 CFLAGS
="$ac_save_CFLAGS"
3241 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3242 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3244 ac_save_CFLAGS
="$CFLAGS"
3245 CFLAGS
="$CFLAGS -Wcast-align"
3246 cat >conftest.
$ac_ext <<_ACEOF
3247 #line $LINENO "configure"
3248 #include "confdefs.h"
3250 #ifdef F77_DUMMY_MAIN
3254 int F77_DUMMY_MAIN() { return 1; }
3264 rm -f conftest.
$ac_objext
3265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266 (eval $ac_compile) 2>&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try
='test -s conftest.$ac_objext'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3276 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3277 echo "$as_me:$LINENO: result: yes" >&5
3278 echo "${ECHO_T}yes" >&6
3280 echo "$as_me: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3282 echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3285 rm -f conftest.
$ac_objext conftest.
$ac_ext
3286 CFLAGS
="$ac_save_CFLAGS"
3287 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3288 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3290 ac_save_CFLAGS
="$CFLAGS"
3291 CFLAGS
="$CFLAGS -Wcast-qual"
3292 cat >conftest.
$ac_ext <<_ACEOF
3293 #line $LINENO "configure"
3294 #include "confdefs.h"
3296 #ifdef F77_DUMMY_MAIN
3300 int F77_DUMMY_MAIN() { return 1; }
3310 rm -f conftest.
$ac_objext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312 (eval $ac_compile) 2>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try
='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3323 echo "$as_me:$LINENO: result: yes" >&5
3324 echo "${ECHO_T}yes" >&6
3326 echo "$as_me: failed program was:" >&5
3327 cat conftest.
$ac_ext >&5
3328 echo "$as_me:$LINENO: result: no" >&5
3329 echo "${ECHO_T}no" >&6
3331 rm -f conftest.
$ac_objext conftest.
$ac_ext
3332 CFLAGS
="$ac_save_CFLAGS"
3333 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3334 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3336 ac_save_CFLAGS
="$CFLAGS"
3337 CFLAGS
="$CFLAGS -Wformat"
3338 cat >conftest.
$ac_ext <<_ACEOF
3339 #line $LINENO "configure"
3340 #include "confdefs.h"
3342 #ifdef F77_DUMMY_MAIN
3346 int F77_DUMMY_MAIN() { return 1; }
3356 rm -f conftest.
$ac_objext
3357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3358 (eval $ac_compile) 2>&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } &&
3362 { ac_try
='test -s conftest.$ac_objext'
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; }; then
3368 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3369 echo "$as_me:$LINENO: result: yes" >&5
3370 echo "${ECHO_T}yes" >&6
3372 echo "$as_me: failed program was:" >&5
3373 cat conftest.
$ac_ext >&5
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3377 rm -f conftest.
$ac_objext conftest.
$ac_ext
3378 CFLAGS
="$ac_save_CFLAGS"
3379 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3380 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3382 ac_save_CFLAGS
="$CFLAGS"
3383 CFLAGS
="$CFLAGS -Wmissing-declarations"
3384 cat >conftest.
$ac_ext <<_ACEOF
3385 #line $LINENO "configure"
3386 #include "confdefs.h"
3388 #ifdef F77_DUMMY_MAIN
3392 int F77_DUMMY_MAIN() { return 1; }
3402 rm -f conftest.
$ac_objext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404 (eval $ac_compile) 2>&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } &&
3408 { ac_try
='test -s conftest.$ac_objext'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; }; then
3414 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3415 echo "$as_me:$LINENO: result: yes" >&5
3416 echo "${ECHO_T}yes" >&6
3418 echo "$as_me: failed program was:" >&5
3419 cat conftest.
$ac_ext >&5
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3423 rm -f conftest.
$ac_objext conftest.
$ac_ext
3424 CFLAGS
="$ac_save_CFLAGS"
3425 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3426 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3428 ac_save_CFLAGS
="$CFLAGS"
3429 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3430 cat >conftest.
$ac_ext <<_ACEOF
3431 #line $LINENO "configure"
3432 #include "confdefs.h"
3434 #ifdef F77_DUMMY_MAIN
3438 int F77_DUMMY_MAIN() { return 1; }
3448 rm -f conftest.
$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try
='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3461 echo "$as_me:$LINENO: result: yes" >&5
3462 echo "${ECHO_T}yes" >&6
3464 echo "$as_me: failed program was:" >&5
3465 cat conftest.
$ac_ext >&5
3466 echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3469 rm -f conftest.
$ac_objext conftest.
$ac_ext
3470 CFLAGS
="$ac_save_CFLAGS"
3471 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3472 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3474 ac_save_CFLAGS
="$CFLAGS"
3475 CFLAGS
="$CFLAGS -Wnested-externs"
3476 cat >conftest.
$ac_ext <<_ACEOF
3477 #line $LINENO "configure"
3478 #include "confdefs.h"
3480 #ifdef F77_DUMMY_MAIN
3484 int F77_DUMMY_MAIN() { return 1; }
3494 rm -f conftest.
$ac_objext
3495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } &&
3500 { ac_try
='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3507 echo "$as_me:$LINENO: result: yes" >&5
3508 echo "${ECHO_T}yes" >&6
3510 echo "$as_me: failed program was:" >&5
3511 cat conftest.
$ac_ext >&5
3512 echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6
3515 rm -f conftest.
$ac_objext conftest.
$ac_ext
3516 CFLAGS
="$ac_save_CFLAGS"
3517 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3518 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3520 ac_save_CFLAGS
="$CFLAGS"
3521 CFLAGS
="$CFLAGS -Wshadow"
3522 cat >conftest.
$ac_ext <<_ACEOF
3523 #line $LINENO "configure"
3524 #include "confdefs.h"
3526 #ifdef F77_DUMMY_MAIN
3530 int F77_DUMMY_MAIN() { return 1; }
3540 rm -f conftest.
$ac_objext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3542 (eval $ac_compile) 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try
='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3553 echo "$as_me:$LINENO: result: yes" >&5
3554 echo "${ECHO_T}yes" >&6
3556 echo "$as_me: failed program was:" >&5
3557 cat conftest.
$ac_ext >&5
3558 echo "$as_me:$LINENO: result: no" >&5
3559 echo "${ECHO_T}no" >&6
3561 rm -f conftest.
$ac_objext conftest.
$ac_ext
3562 CFLAGS
="$ac_save_CFLAGS"
3563 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3564 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3566 ac_save_CFLAGS
="$CFLAGS"
3567 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3568 cat >conftest.
$ac_ext <<_ACEOF
3569 #line $LINENO "configure"
3570 #include "confdefs.h"
3572 #ifdef F77_DUMMY_MAIN
3576 int F77_DUMMY_MAIN() { return 1; }
3586 rm -f conftest.
$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } &&
3592 { ac_try
='test -s conftest.$ac_objext'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
3598 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3599 echo "$as_me:$LINENO: result: yes" >&5
3600 echo "${ECHO_T}yes" >&6
3602 echo "$as_me: failed program was:" >&5
3603 cat conftest.
$ac_ext >&5
3604 echo "$as_me:$LINENO: result: no" >&5
3605 echo "${ECHO_T}no" >&6
3607 rm -f conftest.
$ac_objext conftest.
$ac_ext
3608 CFLAGS
="$ac_save_CFLAGS"
3609 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3610 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3612 ac_save_CFLAGS
="$CFLAGS"
3613 CFLAGS
="$CFLAGS -Wwrite-strings"
3614 cat >conftest.
$ac_ext <<_ACEOF
3615 #line $LINENO "configure"
3616 #include "confdefs.h"
3618 #ifdef F77_DUMMY_MAIN
3622 int F77_DUMMY_MAIN() { return 1; }
3632 rm -f conftest.
$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try
='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3645 echo "$as_me:$LINENO: result: yes" >&5
3646 echo "${ECHO_T}yes" >&6
3648 echo "$as_me: failed program was:" >&5
3649 cat conftest.
$ac_ext >&5
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3653 rm -f conftest.
$ac_objext conftest.
$ac_ext
3654 CFLAGS
="$ac_save_CFLAGS"
3655 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3658 # Checks for libraries.
3660 cat >>confdefs.h
<<\_ACEOF
3661 #define _GNU_SOURCE 1
3664 # Checks for header files.
3665 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3666 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3667 if test "${ac_cv_header_stdc+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 cat >conftest.
$ac_ext <<_ACEOF
3671 #line $LINENO "configure"
3672 #include "confdefs.h"
3679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3680 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3682 egrep -v '^ *\+' conftest.er1
>conftest.err
3684 cat conftest.err
>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } >/dev
/null
; then
3687 if test -s conftest.err
; then
3688 ac_cpp_err
=$ac_c_preproc_warn_flag
3695 if test -z "$ac_cpp_err"; then
3696 ac_cv_header_stdc
=yes
3698 echo "$as_me: failed program was:" >&5
3699 cat conftest.
$ac_ext >&5
3700 ac_cv_header_stdc
=no
3702 rm -f conftest.err conftest.
$ac_ext
3704 if test $ac_cv_header_stdc = yes; then
3705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3706 cat >conftest.
$ac_ext <<_ACEOF
3707 #line $LINENO "configure"
3708 #include "confdefs.h"
3712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713 egrep "memchr" >/dev
/null
2>&1; then
3716 ac_cv_header_stdc
=no
3722 if test $ac_cv_header_stdc = yes; then
3723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3724 cat >conftest.
$ac_ext <<_ACEOF
3725 #line $LINENO "configure"
3726 #include "confdefs.h"
3730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3731 egrep "free" >/dev
/null
2>&1; then
3734 ac_cv_header_stdc
=no
3740 if test $ac_cv_header_stdc = yes; then
3741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3742 if test "$cross_compiling" = yes; then
3745 cat >conftest.
$ac_ext <<_ACEOF
3746 #line $LINENO "configure"
3747 #include "confdefs.h"
3749 #if ((' ' & 0x0FF) == 0x020)
3750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3753 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3754 || ('j' <= (c) && (c) <= 'r') \
3755 || ('s' <= (c) && (c) <= 'z'))
3756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3764 for (i = 0; i < 256; i++)
3765 if (XOR (islower (i), ISLOWER (i))
3766 || toupper (i) != TOUPPER (i))
3771 rm -f conftest
$ac_exeext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773 (eval $ac_link) 2>&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3784 echo "$as_me: program exited with status $ac_status" >&5
3785 echo "$as_me: failed program was:" >&5
3786 cat conftest.
$ac_ext >&5
3788 ac_cv_header_stdc
=no
3790 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3794 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3795 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3796 if test $ac_cv_header_stdc = yes; then
3798 cat >>confdefs.h
<<\_ACEOF
3799 #define STDC_HEADERS 1
3804 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3806 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3808 echo "$as_me:$LINENO: checking for $ac_header" >&5
3809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3816 # Is the header compilable?
3817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3819 cat >conftest.
$ac_ext <<_ACEOF
3820 #line $LINENO "configure"
3821 #include "confdefs.h"
3822 $ac_includes_default
3823 #include <$ac_header>
3825 rm -f conftest.
$ac_objext
3826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827 (eval $ac_compile) 2>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } &&
3831 { ac_try
='test -s conftest.$ac_objext'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
3837 ac_header_compiler
=yes
3839 echo "$as_me: failed program was:" >&5
3840 cat conftest.
$ac_ext >&5
3841 ac_header_compiler
=no
3843 rm -f conftest.
$ac_objext conftest.
$ac_ext
3844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3845 echo "${ECHO_T}$ac_header_compiler" >&6
3847 # Is the header present?
3848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3850 cat >conftest.
$ac_ext <<_ACEOF
3851 #line $LINENO "configure"
3852 #include "confdefs.h"
3853 #include <$ac_header>
3855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3856 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3858 egrep -v '^ *\+' conftest.er1
>conftest.err
3860 cat conftest.err
>&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } >/dev
/null
; then
3863 if test -s conftest.err
; then
3864 ac_cpp_err
=$ac_c_preproc_warn_flag
3871 if test -z "$ac_cpp_err"; then
3872 ac_header_preproc
=yes
3874 echo "$as_me: failed program was:" >&5
3875 cat conftest.
$ac_ext >&5
3876 ac_header_preproc
=no
3878 rm -f conftest.err conftest.
$ac_ext
3879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3880 echo "${ECHO_T}$ac_header_preproc" >&6
3882 # So? What about this header?
3883 case $ac_header_compiler:$ac_header_preproc in
3885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3897 echo "$as_me:$LINENO: checking for $ac_header" >&5
3898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 eval "$as_ac_Header=$ac_header_preproc"
3904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3909 cat >>confdefs.h
<<_ACEOF
3910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3917 # Checks for typedefs.
3919 # Checks for structures.
3921 # Checks for compiler characteristics.
3922 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3923 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3924 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 ac_cv_prog_cc_stdc
=no
3929 cat >conftest.
$ac_ext <<_ACEOF
3930 #line $LINENO "configure"
3931 #include "confdefs.h"
3934 #include <sys/types.h>
3935 #include <sys/stat.h>
3936 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3937 struct buf { int x; };
3938 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3939 static char *e (p, i)
3945 static char *f (char * (*g) (char **, int), char **p, ...)
3950 s = g (p, va_arg (v,int));
3954 int test (int i, double x);
3955 struct s1 {int (*f) (int a);};
3956 struct s2 {int (*f) (double a);};
3957 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3960 #ifdef F77_DUMMY_MAIN
3964 int F77_DUMMY_MAIN() { return 1; }
3969 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3974 # Don't try gcc -ansi; that turns off useful extensions and
3975 # breaks some systems' header files.
3976 # AIX -qlanglvl=ansi
3977 # Ultrix and OSF/1 -std1
3978 # HP-UX 10.20 and later -Ae
3979 # HP-UX older versions -Aa -D_HPUX_SOURCE
3980 # SVR4 -Xc -D__EXTENSIONS__
3981 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3983 CC
="$ac_save_CC $ac_arg"
3984 rm -f conftest.
$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try
='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv_prog_cc_stdc
=$ac_arg
3999 echo "$as_me: failed program was:" >&5
4000 cat conftest.
$ac_ext >&5
4002 rm -f conftest.
$ac_objext
4004 rm -f conftest.
$ac_ext conftest.
$ac_objext
4009 case "x$ac_cv_prog_cc_stdc" in
4011 echo "$as_me:$LINENO: result: none needed" >&5
4012 echo "${ECHO_T}none needed" >&6 ;;
4014 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4015 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4016 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4019 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4020 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4021 if test "${ac_cv_c_const+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.
$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 #include "confdefs.h"
4028 #ifdef F77_DUMMY_MAIN
4032 int F77_DUMMY_MAIN() { return 1; }
4037 /* FIXME: Include the comments suggested by Paul. */
4039 /* Ultrix mips cc rejects this. */
4040 typedef int charset[2];
4042 /* SunOS 4.1.1 cc rejects this. */
4043 char const *const *ccp;
4045 /* NEC SVR4.0.2 mips cc rejects this. */
4046 struct point {int x, y;};
4047 static struct point const zero = {0,0};
4048 /* AIX XL C 1.02.0.0 rejects this.
4049 It does not let you subtract one const X* pointer from another in
4050 an arm of an if-expression whose if-part is not a constant
4052 const char *g = "string";
4053 ccp = &g + (g ? g-g : 0);
4054 /* HPUX 7.0 cc rejects these. */
4057 ccp = (char const *const *) p;
4058 { /* SCO 3.2v4 cc rejects this. */
4060 char const *s = 0 ? (char *) 0 : (char const *) 0;
4064 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4066 const int *foo = &x[0];
4069 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4070 typedef const int *iptr;
4074 { /* AIX XL C 1.02.0.0 rejects this saying
4075 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4076 struct s { int j; const int *ap[3]; };
4077 struct s *b; b->j = 5;
4079 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
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
4102 echo "$as_me: failed program was:" >&5
4103 cat conftest.
$ac_ext >&5
4106 rm -f conftest.
$ac_objext conftest.
$ac_ext
4108 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4109 echo "${ECHO_T}$ac_cv_c_const" >&6
4110 if test $ac_cv_c_const = no
; then
4112 cat >>confdefs.h
<<\_ACEOF
4118 echo "$as_me:$LINENO: checking for inline" >&5
4119 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4120 if test "${ac_cv_c_inline+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 for ac_kw
in inline __inline__ __inline
; do
4125 cat >conftest.
$ac_ext <<_ACEOF
4126 #line $LINENO "configure"
4127 #include "confdefs.h"
4129 static $ac_kw int static_foo () {return 0; }
4130 $ac_kw int foo () {return 0; }
4134 rm -f conftest.
$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try
='test -s conftest.$ac_objext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_cv_c_inline
=$ac_kw; break
4148 echo "$as_me: failed program was:" >&5
4149 cat conftest.
$ac_ext >&5
4151 rm -f conftest.
$ac_objext conftest.
$ac_ext
4155 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4156 echo "${ECHO_T}$ac_cv_c_inline" >&6
4157 case $ac_cv_c_inline in
4160 cat >>confdefs.h
<<\_ACEOF
4164 *) cat >>confdefs.h
<<_ACEOF
4165 #define inline $ac_cv_c_inline
4170 echo "$as_me:$LINENO: checking for function prototypes" >&5
4171 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4172 if test "$am_cv_prog_cc_stdc" != no
; then
4173 echo "$as_me:$LINENO: result: yes" >&5
4174 echo "${ECHO_T}yes" >&6
4176 cat >>confdefs.h
<<\_ACEOF
4177 #define PROTOTYPES 1
4182 echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4184 U
=_ ANSI2KNR
=.
/ansi2knr
4186 # Ensure some checks needed by ansi2knr itself.
4187 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4188 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4189 if test "${ac_cv_header_stdc+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 cat >conftest.
$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 #include "confdefs.h"
4201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4202 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4204 egrep -v '^ *\+' conftest.er1
>conftest.err
4206 cat conftest.err
>&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } >/dev
/null
; then
4209 if test -s conftest.err
; then
4210 ac_cpp_err
=$ac_c_preproc_warn_flag
4217 if test -z "$ac_cpp_err"; then
4218 ac_cv_header_stdc
=yes
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.
$ac_ext >&5
4222 ac_cv_header_stdc
=no
4224 rm -f conftest.err conftest.
$ac_ext
4226 if test $ac_cv_header_stdc = yes; then
4227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4228 cat >conftest.
$ac_ext <<_ACEOF
4229 #line $LINENO "configure"
4230 #include "confdefs.h"
4234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235 egrep "memchr" >/dev
/null
2>&1; then
4238 ac_cv_header_stdc
=no
4244 if test $ac_cv_header_stdc = yes; then
4245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4246 cat >conftest.
$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4248 #include "confdefs.h"
4252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4253 egrep "free" >/dev
/null
2>&1; then
4256 ac_cv_header_stdc
=no
4262 if test $ac_cv_header_stdc = yes; then
4263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4264 if test "$cross_compiling" = yes; then
4267 cat >conftest.
$ac_ext <<_ACEOF
4268 #line $LINENO "configure"
4269 #include "confdefs.h"
4271 #if ((' ' & 0x0FF) == 0x020)
4272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4275 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4276 || ('j' <= (c) && (c) <= 'r') \
4277 || ('s' <= (c) && (c) <= 'z'))
4278 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4281 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4286 for (i = 0; i < 256; i++)
4287 if (XOR (islower (i), ISLOWER (i))
4288 || toupper (i) != TOUPPER (i))
4293 rm -f conftest
$ac_exeext
4294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4295 (eval $ac_link) 2>&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4306 echo "$as_me: program exited with status $ac_status" >&5
4307 echo "$as_me: failed program was:" >&5
4308 cat conftest.
$ac_ext >&5
4310 ac_cv_header_stdc
=no
4312 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4316 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4317 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4318 if test $ac_cv_header_stdc = yes; then
4320 cat >>confdefs.h
<<\_ACEOF
4321 #define STDC_HEADERS 1
4326 for ac_header
in string.h
4328 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4330 echo "$as_me:$LINENO: checking for $ac_header" >&5
4331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4338 # Is the header compilable?
4339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4341 cat >conftest.
$ac_ext <<_ACEOF
4342 #line $LINENO "configure"
4343 #include "confdefs.h"
4344 $ac_includes_default
4345 #include <$ac_header>
4347 rm -f conftest.
$ac_objext
4348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349 (eval $ac_compile) 2>&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try
='test -s conftest.$ac_objext'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_header_compiler
=yes
4361 echo "$as_me: failed program was:" >&5
4362 cat conftest.
$ac_ext >&5
4363 ac_header_compiler
=no
4365 rm -f conftest.
$ac_objext conftest.
$ac_ext
4366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4367 echo "${ECHO_T}$ac_header_compiler" >&6
4369 # Is the header present?
4370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4372 cat >conftest.
$ac_ext <<_ACEOF
4373 #line $LINENO "configure"
4374 #include "confdefs.h"
4375 #include <$ac_header>
4377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4378 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4380 egrep -v '^ *\+' conftest.er1
>conftest.err
4382 cat conftest.err
>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } >/dev
/null
; then
4385 if test -s conftest.err
; then
4386 ac_cpp_err
=$ac_c_preproc_warn_flag
4393 if test -z "$ac_cpp_err"; then
4394 ac_header_preproc
=yes
4396 echo "$as_me: failed program was:" >&5
4397 cat conftest.
$ac_ext >&5
4398 ac_header_preproc
=no
4400 rm -f conftest.err conftest.
$ac_ext
4401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4402 echo "${ECHO_T}$ac_header_preproc" >&6
4404 # So? What about this header?
4405 case $ac_header_compiler:$ac_header_preproc in
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4419 echo "$as_me:$LINENO: checking for $ac_header" >&5
4420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 eval "$as_ac_Header=$ac_header_preproc"
4426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4431 cat >>confdefs.h
<<_ACEOF
4432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4439 # Checks for library functions.
4440 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4441 # for constant arguments. Useless!
4442 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4443 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4444 if test "${ac_cv_working_alloca_h+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 cat >conftest.
$ac_ext <<_ACEOF
4448 #line $LINENO "configure"
4449 #include "confdefs.h"
4451 #ifdef F77_DUMMY_MAIN
4455 int F77_DUMMY_MAIN() { return 1; }
4460 char *p = (char *) alloca (2 * sizeof (int));
4465 rm -f conftest.
$ac_objext conftest
$ac_exeext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467 (eval $ac_link) 2>&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try
='test -s conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_working_alloca_h
=yes
4479 echo "$as_me: failed program was:" >&5
4480 cat conftest.
$ac_ext >&5
4481 ac_cv_working_alloca_h
=no
4483 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4485 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4486 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4487 if test $ac_cv_working_alloca_h = yes; then
4489 cat >>confdefs.h
<<\_ACEOF
4490 #define HAVE_ALLOCA_H 1
4495 echo "$as_me:$LINENO: checking for alloca" >&5
4496 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4497 if test "${ac_cv_func_alloca_works+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 cat >conftest.
$ac_ext <<_ACEOF
4501 #line $LINENO "configure"
4502 #include "confdefs.h"
4504 # define alloca __builtin_alloca
4507 # include <malloc.h>
4508 # define alloca _alloca
4511 # include <alloca.h>
4516 # ifndef alloca /* predefined by HP cc +Olibcalls */
4524 #ifdef F77_DUMMY_MAIN
4528 int F77_DUMMY_MAIN() { return 1; }
4533 char *p = (char *) alloca (1);
4538 rm -f conftest.
$ac_objext conftest
$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try
='test -s conftest$ac_exeext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_cv_func_alloca_works
=yes
4552 echo "$as_me: failed program was:" >&5
4553 cat conftest.
$ac_ext >&5
4554 ac_cv_func_alloca_works
=no
4556 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4558 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4559 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4561 if test $ac_cv_func_alloca_works = yes; then
4563 cat >>confdefs.h
<<\_ACEOF
4564 #define HAVE_ALLOCA 1
4568 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4569 # that cause trouble. Some versions do not even contain alloca or
4570 # contain a buggy version. If you still want to use their alloca,
4571 # use ar to extract alloca.o from them instead of compiling alloca.c.
4573 ALLOCA
=alloca.
$ac_objext
4575 cat >>confdefs.h
<<\_ACEOF
4579 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4580 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4581 if test "${ac_cv_os_cray+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 cat >conftest.
$ac_ext <<_ACEOF
4585 #line $LINENO "configure"
4586 #include "confdefs.h"
4587 #if defined(CRAY) && ! defined(CRAY2)
4594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4595 egrep "webecray" >/dev
/null
2>&1; then
4603 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4604 echo "${ECHO_T}$ac_cv_os_cray" >&6
4605 if test $ac_cv_os_cray = yes; then
4606 for ac_func
in _getb67 GETB67 getb67
; do
4607 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4608 echo "$as_me:$LINENO: checking for $ac_func" >&5
4609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4610 if eval "test \"\${$as_ac_var+set}\" = set"; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 cat >conftest.
$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4615 #include "confdefs.h"
4616 /* System header to define __stub macros and hopefully few prototypes,
4617 which can conflict with char $ac_func (); below. */
4619 /* Override any gcc2 internal prototype to avoid an error. */
4623 /* We use char because int might match the return type of a gcc2
4624 builtin and then its argument prototype would still apply. */
4628 #ifdef F77_DUMMY_MAIN
4632 int F77_DUMMY_MAIN() { return 1; }
4637 /* The GNU C library defines this for functions which it implements
4638 to always fail with ENOSYS. Some functions are actually named
4639 something starting with __ and the normal name is an alias. */
4640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4650 rm -f conftest.
$ac_objext conftest
$ac_exeext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4652 (eval $ac_link) 2>&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } &&
4656 { ac_try
='test -s conftest$ac_exeext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 eval "$as_ac_var=yes"
4664 echo "$as_me: failed program was:" >&5
4665 cat conftest.
$ac_ext >&5
4666 eval "$as_ac_var=no"
4668 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4672 if test `eval echo '${'$as_ac_var'}'` = yes; then
4674 cat >>confdefs.h
<<_ACEOF
4675 #define CRAY_STACKSEG_END $ac_func
4684 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4685 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4686 if test "${ac_cv_c_stack_direction+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 if test "$cross_compiling" = yes; then
4690 ac_cv_c_stack_direction
=0
4692 cat >conftest.
$ac_ext <<_ACEOF
4693 #line $LINENO "configure"
4694 #include "confdefs.h"
4696 find_stack_direction ()
4698 static char *addr = 0;
4703 return find_stack_direction ();
4706 return (&dummy > addr) ? 1 : -1;
4712 exit (find_stack_direction () < 0);
4715 rm -f conftest
$ac_exeext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4717 (eval $ac_link) 2>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4726 ac_cv_c_stack_direction
=1
4728 echo "$as_me: program exited with status $ac_status" >&5
4729 echo "$as_me: failed program was:" >&5
4730 cat conftest.
$ac_ext >&5
4732 ac_cv_c_stack_direction
=-1
4734 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4737 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4738 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4740 cat >>confdefs.h
<<_ACEOF
4741 #define STACK_DIRECTION $ac_cv_c_stack_direction
4746 for ac_func
in mkstemp setlocale
4748 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4749 echo "$as_me:$LINENO: checking for $ac_func" >&5
4750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4751 if eval "test \"\${$as_ac_var+set}\" = set"; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 cat >conftest.
$ac_ext <<_ACEOF
4755 #line $LINENO "configure"
4756 #include "confdefs.h"
4757 /* System header to define __stub macros and hopefully few prototypes,
4758 which can conflict with char $ac_func (); below. */
4760 /* Override any gcc2 internal prototype to avoid an error. */
4764 /* We use char because int might match the return type of a gcc2
4765 builtin and then its argument prototype would still apply. */
4769 #ifdef F77_DUMMY_MAIN
4773 int F77_DUMMY_MAIN() { return 1; }
4778 /* The GNU C library defines this for functions which it implements
4779 to always fail with ENOSYS. Some functions are actually named
4780 something starting with __ and the normal name is an alias. */
4781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4791 rm -f conftest.
$ac_objext conftest
$ac_exeext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4793 (eval $ac_link) 2>&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try
='test -s conftest$ac_exeext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 eval "$as_ac_var=yes"
4805 echo "$as_me: failed program was:" >&5
4806 cat conftest.
$ac_ext >&5
4807 eval "$as_ac_var=no"
4809 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4813 if test `eval echo '${'$as_ac_var'}'` = yes; then
4814 cat >>confdefs.h
<<_ACEOF
4815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4821 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4822 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4823 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 cat >conftest.
$ac_ext <<_ACEOF
4827 #line $LINENO "configure"
4828 #include "confdefs.h"
4829 $ac_includes_default
4830 #ifdef F77_DUMMY_MAIN
4834 int F77_DUMMY_MAIN() { return 1; }
4840 char *p = (char *) stpcpy;
4847 rm -f conftest.
$ac_objext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849 (eval $ac_compile) 2>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try
='test -s conftest.$ac_objext'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 ac_cv_have_decl_stpcpy
=yes
4861 echo "$as_me: failed program was:" >&5
4862 cat conftest.
$ac_ext >&5
4863 ac_cv_have_decl_stpcpy
=no
4865 rm -f conftest.
$ac_objext conftest.
$ac_ext
4867 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4868 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4869 if test $ac_cv_have_decl_stpcpy = yes; then
4871 cat >>confdefs.h
<<_ACEOF
4872 #define HAVE_DECL_STPCPY 1
4876 cat >>confdefs.h
<<_ACEOF
4877 #define HAVE_DECL_STPCPY 0
4881 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4882 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4883 if test "${ac_cv_have_decl_strndup+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 cat >conftest.
$ac_ext <<_ACEOF
4887 #line $LINENO "configure"
4888 #include "confdefs.h"
4889 $ac_includes_default
4890 #ifdef F77_DUMMY_MAIN
4894 int F77_DUMMY_MAIN() { return 1; }
4900 char *p = (char *) strndup;
4907 rm -f conftest.
$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try
='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_cv_have_decl_strndup
=yes
4921 echo "$as_me: failed program was:" >&5
4922 cat conftest.
$ac_ext >&5
4923 ac_cv_have_decl_strndup
=no
4925 rm -f conftest.
$ac_objext conftest.
$ac_ext
4927 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4928 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4929 if test $ac_cv_have_decl_strndup = yes; then
4931 cat >>confdefs.h
<<_ACEOF
4932 #define HAVE_DECL_STRNDUP 1
4936 cat >>confdefs.h
<<_ACEOF
4937 #define HAVE_DECL_STRNDUP 0
4941 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4942 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4943 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 cat >conftest.
$ac_ext <<_ACEOF
4947 #line $LINENO "configure"
4948 #include "confdefs.h"
4949 $ac_includes_default
4950 #ifdef F77_DUMMY_MAIN
4954 int F77_DUMMY_MAIN() { return 1; }
4960 char *p = (char *) strnlen;
4967 rm -f conftest.
$ac_objext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4969 (eval $ac_compile) 2>&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try
='test -s conftest.$ac_objext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 ac_cv_have_decl_strnlen
=yes
4981 echo "$as_me: failed program was:" >&5
4982 cat conftest.
$ac_ext >&5
4983 ac_cv_have_decl_strnlen
=no
4985 rm -f conftest.
$ac_objext conftest.
$ac_ext
4987 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
4988 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4989 if test $ac_cv_have_decl_strnlen = yes; then
4991 cat >>confdefs.h
<<_ACEOF
4992 #define HAVE_DECL_STRNLEN 1
4996 cat >>confdefs.h
<<_ACEOF
4997 #define HAVE_DECL_STRNLEN 0
5001 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5002 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5003 if test "${ac_cv_have_decl_memchr+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 cat >conftest.
$ac_ext <<_ACEOF
5007 #line $LINENO "configure"
5008 #include "confdefs.h"
5009 $ac_includes_default
5010 #ifdef F77_DUMMY_MAIN
5014 int F77_DUMMY_MAIN() { return 1; }
5020 char *p = (char *) memchr;
5027 rm -f conftest.
$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try
='test -s conftest.$ac_objext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 ac_cv_have_decl_memchr
=yes
5041 echo "$as_me: failed program was:" >&5
5042 cat conftest.
$ac_ext >&5
5043 ac_cv_have_decl_memchr
=no
5045 rm -f conftest.
$ac_objext conftest.
$ac_ext
5047 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5048 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5049 if test $ac_cv_have_decl_memchr = yes; then
5051 cat >>confdefs.h
<<_ACEOF
5052 #define HAVE_DECL_MEMCHR 1
5056 cat >>confdefs.h
<<_ACEOF
5057 #define HAVE_DECL_MEMCHR 0
5062 for ac_func
in stpcpy strndup strnlen strspn memchr
5064 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5065 echo "$as_me:$LINENO: checking for $ac_func" >&5
5066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5067 if eval "test \"\${$as_ac_var+set}\" = set"; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 cat >conftest.
$ac_ext <<_ACEOF
5071 #line $LINENO "configure"
5072 #include "confdefs.h"
5073 /* System header to define __stub macros and hopefully few prototypes,
5074 which can conflict with char $ac_func (); below. */
5076 /* Override any gcc2 internal prototype to avoid an error. */
5080 /* We use char because int might match the return type of a gcc2
5081 builtin and then its argument prototype would still apply. */
5085 #ifdef F77_DUMMY_MAIN
5089 int F77_DUMMY_MAIN() { return 1; }
5094 /* The GNU C library defines this for functions which it implements
5095 to always fail with ENOSYS. Some functions are actually named
5096 something starting with __ and the normal name is an alias. */
5097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5107 rm -f conftest.
$ac_objext conftest
$ac_exeext
5108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5109 (eval $ac_link) 2>&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } &&
5113 { ac_try
='test -s conftest$ac_exeext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 eval "$as_ac_var=yes"
5121 echo "$as_me: failed program was:" >&5
5122 cat conftest.
$ac_ext >&5
5123 eval "$as_ac_var=no"
5125 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5129 if test `eval echo '${'$as_ac_var'}'` = yes; then
5130 cat >>confdefs.h
<<_ACEOF
5131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5135 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5139 cat >>confdefs.h
<<\_ACEOF
5140 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5143 echo "$as_me:$LINENO: checking for working malloc" >&5
5144 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5145 if test "${jm_cv_func_working_malloc+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 if test "$cross_compiling" = yes; then
5149 jm_cv_func_working_malloc
=no
5151 cat >conftest.
$ac_ext <<_ACEOF
5152 #line $LINENO "configure"
5153 #include "confdefs.h"
5159 exit (malloc (0) ? 0 : 1);
5163 rm -f conftest
$ac_exeext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5165 (eval $ac_link) 2>&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 jm_cv_func_working_malloc
=yes
5176 echo "$as_me: program exited with status $ac_status" >&5
5177 echo "$as_me: failed program was:" >&5
5178 cat conftest.
$ac_ext >&5
5180 jm_cv_func_working_malloc
=no
5182 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5186 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5187 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5188 if test $jm_cv_func_working_malloc = no
; then
5189 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5191 cat >>confdefs.h
<<\_ACEOF
5192 #define malloc rpl_malloc
5197 cat >>confdefs.h
<<\_ACEOF
5198 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5201 echo "$as_me:$LINENO: checking for working realloc" >&5
5202 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5203 if test "${jm_cv_func_working_realloc+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 if test "$cross_compiling" = yes; then
5207 jm_cv_func_working_realloc
=no
5209 cat >conftest.
$ac_ext <<_ACEOF
5210 #line $LINENO "configure"
5211 #include "confdefs.h"
5217 exit (realloc (0, 0) ? 0 : 1);
5221 rm -f conftest
$ac_exeext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5223 (eval $ac_link) 2>&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 jm_cv_func_working_realloc
=yes
5234 echo "$as_me: program exited with status $ac_status" >&5
5235 echo "$as_me: failed program was:" >&5
5236 cat conftest.
$ac_ext >&5
5238 jm_cv_func_working_realloc
=no
5240 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5244 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5245 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5246 if test $jm_cv_func_working_realloc = no
; then
5247 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5249 cat >>confdefs.h
<<\_ACEOF
5250 #define realloc rpl_realloc
5255 for ac_func
in isascii iswprint mbsinit
5257 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5258 echo "$as_me:$LINENO: checking for $ac_func" >&5
5259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5260 if eval "test \"\${$as_ac_var+set}\" = set"; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 cat >conftest.
$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5265 #include "confdefs.h"
5266 /* System header to define __stub macros and hopefully few prototypes,
5267 which can conflict with char $ac_func (); below. */
5269 /* Override any gcc2 internal prototype to avoid an error. */
5273 /* We use char because int might match the return type of a gcc2
5274 builtin and then its argument prototype would still apply. */
5278 #ifdef F77_DUMMY_MAIN
5282 int F77_DUMMY_MAIN() { return 1; }
5287 /* The GNU C library defines this for functions which it implements
5288 to always fail with ENOSYS. Some functions are actually named
5289 something starting with __ and the normal name is an alias. */
5290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5300 rm -f conftest.
$ac_objext conftest
$ac_exeext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5302 (eval $ac_link) 2>&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try
='test -s conftest$ac_exeext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 eval "$as_ac_var=yes"
5314 echo "$as_me: failed program was:" >&5
5315 cat conftest.
$ac_ext >&5
5316 eval "$as_ac_var=no"
5318 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5322 if test `eval echo '${'$as_ac_var'}'` = yes; then
5323 cat >>confdefs.h
<<_ACEOF
5324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5330 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5331 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5332 if test "${jm_cv_func_mbrtowc+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 cat >conftest.
$ac_ext <<_ACEOF
5336 #line $LINENO "configure"
5337 #include "confdefs.h"
5339 #ifdef F77_DUMMY_MAIN
5343 int F77_DUMMY_MAIN() { return 1; }
5348 mbstate_t state; return ! (sizeof state && mbrtowc);
5353 rm -f conftest.
$ac_objext conftest
$ac_exeext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5355 (eval $ac_link) 2>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try
='test -s conftest$ac_exeext'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365 jm_cv_func_mbrtowc
=yes
5367 echo "$as_me: failed program was:" >&5
5368 cat conftest.
$ac_ext >&5
5369 jm_cv_func_mbrtowc
=no
5371 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5373 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5374 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5375 if test $jm_cv_func_mbrtowc = yes; then
5377 cat >>confdefs.h
<<\_ACEOF
5378 #define HAVE_MBRTOWC 1
5383 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5385 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5387 echo "$as_me:$LINENO: checking for $ac_header" >&5
5388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5395 # Is the header compilable?
5396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5398 cat >conftest.
$ac_ext <<_ACEOF
5399 #line $LINENO "configure"
5400 #include "confdefs.h"
5401 $ac_includes_default
5402 #include <$ac_header>
5404 rm -f conftest.
$ac_objext
5405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406 (eval $ac_compile) 2>&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try
='test -s conftest.$ac_objext'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5416 ac_header_compiler
=yes
5418 echo "$as_me: failed program was:" >&5
5419 cat conftest.
$ac_ext >&5
5420 ac_header_compiler
=no
5422 rm -f conftest.
$ac_objext conftest.
$ac_ext
5423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5424 echo "${ECHO_T}$ac_header_compiler" >&6
5426 # Is the header present?
5427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5429 cat >conftest.
$ac_ext <<_ACEOF
5430 #line $LINENO "configure"
5431 #include "confdefs.h"
5432 #include <$ac_header>
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5437 egrep -v '^ *\+' conftest.er1
>conftest.err
5439 cat conftest.err
>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev
/null
; then
5442 if test -s conftest.err
; then
5443 ac_cpp_err
=$ac_c_preproc_warn_flag
5450 if test -z "$ac_cpp_err"; then
5451 ac_header_preproc
=yes
5453 echo "$as_me: failed program was:" >&5
5454 cat conftest.
$ac_ext >&5
5455 ac_header_preproc
=no
5457 rm -f conftest.err conftest.
$ac_ext
5458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5459 echo "${ECHO_T}$ac_header_preproc" >&6
5461 # So? What about this header?
5462 case $ac_header_compiler:$ac_header_preproc in
5464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5476 echo "$as_me:$LINENO: checking for $ac_header" >&5
5477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 eval "$as_ac_Header=$ac_header_preproc"
5483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5488 cat >>confdefs.h
<<_ACEOF
5489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5496 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5497 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5498 if test "${ac_cv_header_stdc+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 cat >conftest.
$ac_ext <<_ACEOF
5502 #line $LINENO "configure"
5503 #include "confdefs.h"
5510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5511 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5513 egrep -v '^ *\+' conftest.er1
>conftest.err
5515 cat conftest.err
>&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } >/dev
/null
; then
5518 if test -s conftest.err
; then
5519 ac_cpp_err
=$ac_c_preproc_warn_flag
5526 if test -z "$ac_cpp_err"; then
5527 ac_cv_header_stdc
=yes
5529 echo "$as_me: failed program was:" >&5
5530 cat conftest.
$ac_ext >&5
5531 ac_cv_header_stdc
=no
5533 rm -f conftest.err conftest.
$ac_ext
5535 if test $ac_cv_header_stdc = yes; then
5536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5537 cat >conftest.
$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 #include "confdefs.h"
5543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5544 egrep "memchr" >/dev
/null
2>&1; then
5547 ac_cv_header_stdc
=no
5553 if test $ac_cv_header_stdc = yes; then
5554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5555 cat >conftest.
$ac_ext <<_ACEOF
5556 #line $LINENO "configure"
5557 #include "confdefs.h"
5561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562 egrep "free" >/dev
/null
2>&1; then
5565 ac_cv_header_stdc
=no
5571 if test $ac_cv_header_stdc = yes; then
5572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5573 if test "$cross_compiling" = yes; then
5576 cat >conftest.
$ac_ext <<_ACEOF
5577 #line $LINENO "configure"
5578 #include "confdefs.h"
5580 #if ((' ' & 0x0FF) == 0x020)
5581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5584 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5585 || ('j' <= (c) && (c) <= 'r') \
5586 || ('s' <= (c) && (c) <= 'z'))
5587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5595 for (i = 0; i < 256; i++)
5596 if (XOR (islower (i), ISLOWER (i))
5597 || toupper (i) != TOUPPER (i))
5602 rm -f conftest
$ac_exeext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604 (eval $ac_link) 2>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5615 echo "$as_me: program exited with status $ac_status" >&5
5616 echo "$as_me: failed program was:" >&5
5617 cat conftest.
$ac_ext >&5
5619 ac_cv_header_stdc
=no
5621 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5625 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5626 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5627 if test $ac_cv_header_stdc = yes; then
5629 cat >>confdefs.h
<<\_ACEOF
5630 #define STDC_HEADERS 1
5635 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5636 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5637 if test "${ac_cv_c_backslash_a+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 cat >conftest.
$ac_ext <<_ACEOF
5641 #line $LINENO "configure"
5642 #include "confdefs.h"
5644 #ifdef F77_DUMMY_MAIN
5648 int F77_DUMMY_MAIN() { return 1; }
5657 char buf['\a' == 'a' ? -1 : 1];
5659 return buf[0] != "\a"[0];
5665 rm -f conftest.
$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try
='test -s conftest.$ac_objext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_cv_c_backslash_a
=yes
5679 echo "$as_me: failed program was:" >&5
5680 cat conftest.
$ac_ext >&5
5681 ac_cv_c_backslash_a
=no
5683 rm -f conftest.
$ac_objext conftest.
$ac_ext
5685 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5686 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5687 if test $ac_cv_c_backslash_a = yes; then
5689 cat >>confdefs.h
<<\_ACEOF
5690 #define HAVE_C_BACKSLASH_A 1
5695 for ac_header
in stdlib.h
5697 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5699 echo "$as_me:$LINENO: checking for $ac_header" >&5
5700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5707 # Is the header compilable?
5708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5710 cat >conftest.
$ac_ext <<_ACEOF
5711 #line $LINENO "configure"
5712 #include "confdefs.h"
5713 $ac_includes_default
5714 #include <$ac_header>
5716 rm -f conftest.
$ac_objext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718 (eval $ac_compile) 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } &&
5722 { ac_try
='test -s conftest.$ac_objext'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5728 ac_header_compiler
=yes
5730 echo "$as_me: failed program was:" >&5
5731 cat conftest.
$ac_ext >&5
5732 ac_header_compiler
=no
5734 rm -f conftest.
$ac_objext conftest.
$ac_ext
5735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5736 echo "${ECHO_T}$ac_header_compiler" >&6
5738 # Is the header present?
5739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5741 cat >conftest.
$ac_ext <<_ACEOF
5742 #line $LINENO "configure"
5743 #include "confdefs.h"
5744 #include <$ac_header>
5746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5747 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5749 egrep -v '^ *\+' conftest.er1
>conftest.err
5751 cat conftest.err
>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } >/dev
/null
; then
5754 if test -s conftest.err
; then
5755 ac_cpp_err
=$ac_c_preproc_warn_flag
5762 if test -z "$ac_cpp_err"; then
5763 ac_header_preproc
=yes
5765 echo "$as_me: failed program was:" >&5
5766 cat conftest.
$ac_ext >&5
5767 ac_header_preproc
=no
5769 rm -f conftest.err conftest.
$ac_ext
5770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5771 echo "${ECHO_T}$ac_header_preproc" >&6
5773 # So? What about this header?
5774 case $ac_header_compiler:$ac_header_preproc in
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5788 echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 eval "$as_ac_Header=$ac_header_preproc"
5795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5800 cat >>confdefs.h
<<_ACEOF
5801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5808 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5809 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5810 if test "${ac_cv_type_mbstate_t+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 cat >conftest.
$ac_ext <<_ACEOF
5814 #line $LINENO "configure"
5815 #include "confdefs.h"
5818 # include <stdlib.h>
5821 #ifdef F77_DUMMY_MAIN
5825 int F77_DUMMY_MAIN() { return 1; }
5830 mbstate_t x; return sizeof x;
5835 rm -f conftest.
$ac_objext
5836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5837 (eval $ac_compile) 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try
='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_type_mbstate_t
=yes
5849 echo "$as_me: failed program was:" >&5
5850 cat conftest.
$ac_ext >&5
5851 ac_cv_type_mbstate_t
=no
5853 rm -f conftest.
$ac_objext conftest.
$ac_ext
5855 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5856 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5857 if test $ac_cv_type_mbstate_t = no
; then
5859 cat >>confdefs.h
<<\_ACEOF
5860 #define mbstate_t int
5865 echo "$as_me:$LINENO: checking for function prototypes" >&5
5866 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5867 if test "$am_cv_prog_cc_stdc" != no
; then
5868 echo "$as_me:$LINENO: result: yes" >&5
5869 echo "${ECHO_T}yes" >&6
5871 cat >>confdefs.h
<<\_ACEOF
5872 #define PROTOTYPES 1
5877 echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6
5879 U
=_ ANSI2KNR
=.
/ansi2knr
5881 # Ensure some checks needed by ansi2knr itself.
5882 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5883 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5884 if test "${ac_cv_header_stdc+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 cat >conftest.
$ac_ext <<_ACEOF
5888 #line $LINENO "configure"
5889 #include "confdefs.h"
5896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5897 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5899 egrep -v '^ *\+' conftest.er1
>conftest.err
5901 cat conftest.err
>&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } >/dev
/null
; then
5904 if test -s conftest.err
; then
5905 ac_cpp_err
=$ac_c_preproc_warn_flag
5912 if test -z "$ac_cpp_err"; then
5913 ac_cv_header_stdc
=yes
5915 echo "$as_me: failed program was:" >&5
5916 cat conftest.
$ac_ext >&5
5917 ac_cv_header_stdc
=no
5919 rm -f conftest.err conftest.
$ac_ext
5921 if test $ac_cv_header_stdc = yes; then
5922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5923 cat >conftest.
$ac_ext <<_ACEOF
5924 #line $LINENO "configure"
5925 #include "confdefs.h"
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 egrep "memchr" >/dev
/null
2>&1; then
5933 ac_cv_header_stdc
=no
5939 if test $ac_cv_header_stdc = yes; then
5940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5941 cat >conftest.
$ac_ext <<_ACEOF
5942 #line $LINENO "configure"
5943 #include "confdefs.h"
5947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 egrep "free" >/dev
/null
2>&1; then
5951 ac_cv_header_stdc
=no
5957 if test $ac_cv_header_stdc = yes; then
5958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5959 if test "$cross_compiling" = yes; then
5962 cat >conftest.
$ac_ext <<_ACEOF
5963 #line $LINENO "configure"
5964 #include "confdefs.h"
5966 #if ((' ' & 0x0FF) == 0x020)
5967 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5968 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5970 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5971 || ('j' <= (c) && (c) <= 'r') \
5972 || ('s' <= (c) && (c) <= 'z'))
5973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5981 for (i = 0; i < 256; i++)
5982 if (XOR (islower (i), ISLOWER (i))
5983 || toupper (i) != TOUPPER (i))
5988 rm -f conftest
$ac_exeext
5989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5990 (eval $ac_link) 2>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
6001 echo "$as_me: program exited with status $ac_status" >&5
6002 echo "$as_me: failed program was:" >&5
6003 cat conftest.
$ac_ext >&5
6005 ac_cv_header_stdc
=no
6007 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6011 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6012 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6013 if test $ac_cv_header_stdc = yes; then
6015 cat >>confdefs.h
<<\_ACEOF
6016 #define STDC_HEADERS 1
6021 for ac_header
in string.h
6023 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6025 echo "$as_me:$LINENO: checking for $ac_header" >&5
6026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6033 # Is the header compilable?
6034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6036 cat >conftest.
$ac_ext <<_ACEOF
6037 #line $LINENO "configure"
6038 #include "confdefs.h"
6039 $ac_includes_default
6040 #include <$ac_header>
6042 rm -f conftest.
$ac_objext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044 (eval $ac_compile) 2>&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try
='test -s conftest.$ac_objext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 ac_header_compiler
=yes
6056 echo "$as_me: failed program was:" >&5
6057 cat conftest.
$ac_ext >&5
6058 ac_header_compiler
=no
6060 rm -f conftest.
$ac_objext conftest.
$ac_ext
6061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6062 echo "${ECHO_T}$ac_header_compiler" >&6
6064 # Is the header present?
6065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6067 cat >conftest.
$ac_ext <<_ACEOF
6068 #line $LINENO "configure"
6069 #include "confdefs.h"
6070 #include <$ac_header>
6072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6073 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6075 egrep -v '^ *\+' conftest.er1
>conftest.err
6077 cat conftest.err
>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } >/dev
/null
; then
6080 if test -s conftest.err
; then
6081 ac_cpp_err
=$ac_c_preproc_warn_flag
6088 if test -z "$ac_cpp_err"; then
6089 ac_header_preproc
=yes
6091 echo "$as_me: failed program was:" >&5
6092 cat conftest.
$ac_ext >&5
6093 ac_header_preproc
=no
6095 rm -f conftest.err conftest.
$ac_ext
6096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6097 echo "${ECHO_T}$ac_header_preproc" >&6
6099 # So? What about this header?
6100 case $ac_header_compiler:$ac_header_preproc in
6102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6114 echo "$as_me:$LINENO: checking for $ac_header" >&5
6115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 eval "$as_ac_Header=$ac_header_preproc"
6121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6126 cat >>confdefs.h
<<_ACEOF
6127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6134 for ac_func
in strerror vprintf doprnt
6136 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6137 echo "$as_me:$LINENO: checking for $ac_func" >&5
6138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6139 if eval "test \"\${$as_ac_var+set}\" = set"; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 cat >conftest.
$ac_ext <<_ACEOF
6143 #line $LINENO "configure"
6144 #include "confdefs.h"
6145 /* System header to define __stub macros and hopefully few prototypes,
6146 which can conflict with char $ac_func (); below. */
6148 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6157 #ifdef F77_DUMMY_MAIN
6161 int F77_DUMMY_MAIN() { return 1; }
6166 /* The GNU C library defines this for functions which it implements
6167 to always fail with ENOSYS. Some functions are actually named
6168 something starting with __ and the normal name is an alias. */
6169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6179 rm -f conftest.
$ac_objext conftest
$ac_exeext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6181 (eval $ac_link) 2>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try
='test -s conftest$ac_exeext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 eval "$as_ac_var=yes"
6193 echo "$as_me: failed program was:" >&5
6194 cat conftest.
$ac_ext >&5
6195 eval "$as_ac_var=no"
6197 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6201 if test `eval echo '${'$as_ac_var'}'` = yes; then
6202 cat >>confdefs.h
<<_ACEOF
6203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6209 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
6210 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
6211 if test "${ac_cv_have_decl_strerror+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 cat >conftest.
$ac_ext <<_ACEOF
6215 #line $LINENO "configure"
6216 #include "confdefs.h"
6217 $ac_includes_default
6218 #ifdef F77_DUMMY_MAIN
6222 int F77_DUMMY_MAIN() { return 1; }
6228 char *p = (char *) strerror;
6235 rm -f conftest.
$ac_objext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try
='test -s conftest.$ac_objext'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 ac_cv_have_decl_strerror
=yes
6249 echo "$as_me: failed program was:" >&5
6250 cat conftest.
$ac_ext >&5
6251 ac_cv_have_decl_strerror
=no
6253 rm -f conftest.
$ac_objext conftest.
$ac_ext
6255 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
6256 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
6257 if test $ac_cv_have_decl_strerror = yes; then
6259 cat >>confdefs.h
<<_ACEOF
6260 #define HAVE_DECL_STRERROR 1
6264 cat >>confdefs.h
<<_ACEOF
6265 #define HAVE_DECL_STRERROR 0
6270 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6271 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6272 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 cat >conftest.
$ac_ext <<_ACEOF
6276 #line $LINENO "configure"
6277 #include "confdefs.h"
6278 $ac_includes_default
6279 #ifdef F77_DUMMY_MAIN
6283 int F77_DUMMY_MAIN() { return 1; }
6289 char *p = (char *) strerror_r;
6296 rm -f conftest.
$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try
='test -s conftest.$ac_objext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_have_decl_strerror_r
=yes
6310 echo "$as_me: failed program was:" >&5
6311 cat conftest.
$ac_ext >&5
6312 ac_cv_have_decl_strerror_r
=no
6314 rm -f conftest.
$ac_objext conftest.
$ac_ext
6316 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6317 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6318 if test $ac_cv_have_decl_strerror_r = yes; then
6320 cat >>confdefs.h
<<_ACEOF
6321 #define HAVE_DECL_STRERROR_R 1
6325 cat >>confdefs.h
<<_ACEOF
6326 #define HAVE_DECL_STRERROR_R 0
6331 for ac_func
in strerror_r
6333 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6334 echo "$as_me:$LINENO: checking for $ac_func" >&5
6335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6336 if eval "test \"\${$as_ac_var+set}\" = set"; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 cat >conftest.
$ac_ext <<_ACEOF
6340 #line $LINENO "configure"
6341 #include "confdefs.h"
6342 /* System header to define __stub macros and hopefully few prototypes,
6343 which can conflict with char $ac_func (); below. */
6345 /* Override any gcc2 internal prototype to avoid an error. */
6349 /* We use char because int might match the return type of a gcc2
6350 builtin and then its argument prototype would still apply. */
6354 #ifdef F77_DUMMY_MAIN
6358 int F77_DUMMY_MAIN() { return 1; }
6363 /* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6376 rm -f conftest.
$ac_objext conftest
$ac_exeext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378 (eval $ac_link) 2>&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try
='test -s conftest$ac_exeext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6388 eval "$as_ac_var=yes"
6390 echo "$as_me: failed program was:" >&5
6391 cat conftest.
$ac_ext >&5
6392 eval "$as_ac_var=no"
6394 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6398 if test `eval echo '${'$as_ac_var'}'` = yes; then
6399 cat >>confdefs.h
<<_ACEOF
6400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6406 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6407 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
6408 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 ac_cv_func_strerror_r_char_p
=no
6413 if test $ac_cv_have_decl_strerror_r = yes; then
6414 cat >conftest.
$ac_ext <<_ACEOF
6415 #line $LINENO "configure"
6416 #include "confdefs.h"
6417 $ac_includes_default
6418 #ifdef F77_DUMMY_MAIN
6422 int F77_DUMMY_MAIN() { return 1; }
6429 char x = *strerror_r (0, buf, sizeof buf);
6430 char *p = strerror_r (0, buf, sizeof buf);
6436 rm -f conftest.
$ac_objext
6437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6438 (eval $ac_compile) 2>&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try
='test -s conftest.$ac_objext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_cv_func_strerror_r_char_p
=yes
6450 echo "$as_me: failed program was:" >&5
6451 cat conftest.
$ac_ext >&5
6453 rm -f conftest.
$ac_objext conftest.
$ac_ext
6455 # strerror_r is not declared. Choose between
6456 # systems that have relatively inaccessible declarations for the
6457 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6458 # former has a strerror_r that returns char*, while the latter
6459 # has a strerror_r that returns `int'.
6460 # This test should segfault on the DEC system.
6461 if test "$cross_compiling" = yes; then
6464 cat >conftest.
$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6466 #include "confdefs.h"
6467 $ac_includes_default
6468 extern char *strerror_r ();
6469 #ifdef F77_DUMMY_MAIN
6473 int F77_DUMMY_MAIN() { return 1; }
6479 char x = *strerror_r (0, buf, sizeof buf);
6480 exit (!isalpha (x));
6485 rm -f conftest
$ac_exeext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6487 (eval $ac_link) 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_func_strerror_r_char_p
=yes
6498 echo "$as_me: program exited with status $ac_status" >&5
6499 echo "$as_me: failed program was:" >&5
6500 cat conftest.
$ac_ext >&5
6502 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6507 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
6508 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
6509 if test $ac_cv_func_strerror_r_char_p = yes; then
6511 cat >>confdefs.h
<<\_ACEOF
6512 #define STRERROR_R_CHAR_P 1
6517 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6518 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6519 if test "${ac_cv_header_stdc+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 cat >conftest.
$ac_ext <<_ACEOF
6523 #line $LINENO "configure"
6524 #include "confdefs.h"
6531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6532 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6534 egrep -v '^ *\+' conftest.er1
>conftest.err
6536 cat conftest.err
>&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } >/dev
/null
; then
6539 if test -s conftest.err
; then
6540 ac_cpp_err
=$ac_c_preproc_warn_flag
6547 if test -z "$ac_cpp_err"; then
6548 ac_cv_header_stdc
=yes
6550 echo "$as_me: failed program was:" >&5
6551 cat conftest.
$ac_ext >&5
6552 ac_cv_header_stdc
=no
6554 rm -f conftest.err conftest.
$ac_ext
6556 if test $ac_cv_header_stdc = yes; then
6557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6558 cat >conftest.
$ac_ext <<_ACEOF
6559 #line $LINENO "configure"
6560 #include "confdefs.h"
6564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6565 egrep "memchr" >/dev
/null
2>&1; then
6568 ac_cv_header_stdc
=no
6574 if test $ac_cv_header_stdc = yes; then
6575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6576 cat >conftest.
$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6578 #include "confdefs.h"
6582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6583 egrep "free" >/dev
/null
2>&1; then
6586 ac_cv_header_stdc
=no
6592 if test $ac_cv_header_stdc = yes; then
6593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6594 if test "$cross_compiling" = yes; then
6597 cat >conftest.
$ac_ext <<_ACEOF
6598 #line $LINENO "configure"
6599 #include "confdefs.h"
6601 #if ((' ' & 0x0FF) == 0x020)
6602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6605 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6606 || ('j' <= (c) && (c) <= 'r') \
6607 || ('s' <= (c) && (c) <= 'z'))
6608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6616 for (i = 0; i < 256; i++)
6617 if (XOR (islower (i), ISLOWER (i))
6618 || toupper (i) != TOUPPER (i))
6623 rm -f conftest
$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625 (eval $ac_link) 2>&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6636 echo "$as_me: program exited with status $ac_status" >&5
6637 echo "$as_me: failed program was:" >&5
6638 cat conftest.
$ac_ext >&5
6640 ac_cv_header_stdc
=no
6642 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6646 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6647 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6648 if test $ac_cv_header_stdc = yes; then
6650 cat >>confdefs.h
<<\_ACEOF
6651 #define STDC_HEADERS 1
6656 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6657 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6659 # Check whether --with-dmalloc or --without-dmalloc was given.
6660 if test "${with_dmalloc+set}" = set; then
6661 withval
="$with_dmalloc"
6662 if test "$withval" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664 echo "${ECHO_T}yes" >&6
6666 cat >>confdefs.h
<<\_ACEOF
6667 #define WITH_DMALLOC 1
6670 LIBS
="$LIBS -ldmalloc"
6671 LDFLAGS
="$LDFLAGS -g"
6673 echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6
6677 echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6
6681 ALL_LINGUAS
="de es et fr ja nl tr ru"
6682 # Make sure we can run config.sub.
6683 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6684 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6685 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6686 { (exit 1); exit 1; }; }
6688 echo "$as_me:$LINENO: checking build system type" >&5
6689 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6690 if test "${ac_cv_build+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 ac_cv_build_alias
=$build_alias
6694 test -z "$ac_cv_build_alias" &&
6695 ac_cv_build_alias
=`$ac_config_guess`
6696 test -z "$ac_cv_build_alias" &&
6697 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6698 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6699 { (exit 1); exit 1; }; }
6700 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6701 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6702 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6703 { (exit 1); exit 1; }; }
6706 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6707 echo "${ECHO_T}$ac_cv_build" >&6
6709 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6710 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6711 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6713 echo "$as_me:$LINENO: checking host system type" >&5
6714 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6715 if test "${ac_cv_host+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 ac_cv_host_alias
=$host_alias
6719 test -z "$ac_cv_host_alias" &&
6720 ac_cv_host_alias
=$ac_cv_build_alias
6721 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6722 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6723 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6724 { (exit 1); exit 1; }; }
6727 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6728 echo "${ECHO_T}$ac_cv_host" >&6
6730 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6731 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6732 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6734 echo "$as_me:$LINENO: checking for off_t" >&5
6735 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6736 if test "${ac_cv_type_off_t+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 cat >conftest.
$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6741 #include "confdefs.h"
6742 $ac_includes_default
6743 #ifdef F77_DUMMY_MAIN
6747 int F77_DUMMY_MAIN() { return 1; }
6760 rm -f conftest.
$ac_objext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762 (eval $ac_compile) 2>&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } &&
6766 { ac_try
='test -s conftest.$ac_objext'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; }; then
6772 ac_cv_type_off_t
=yes
6774 echo "$as_me: failed program was:" >&5
6775 cat conftest.
$ac_ext >&5
6778 rm -f conftest.
$ac_objext conftest.
$ac_ext
6780 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6781 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6782 if test $ac_cv_type_off_t = yes; then
6786 cat >>confdefs.h
<<_ACEOF
6792 echo "$as_me:$LINENO: checking for size_t" >&5
6793 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6794 if test "${ac_cv_type_size_t+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 cat >conftest.
$ac_ext <<_ACEOF
6798 #line $LINENO "configure"
6799 #include "confdefs.h"
6800 $ac_includes_default
6801 #ifdef F77_DUMMY_MAIN
6805 int F77_DUMMY_MAIN() { return 1; }
6812 if (sizeof (size_t))
6818 rm -f conftest.
$ac_objext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820 (eval $ac_compile) 2>&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try
='test -s conftest.$ac_objext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_type_size_t
=yes
6832 echo "$as_me: failed program was:" >&5
6833 cat conftest.
$ac_ext >&5
6834 ac_cv_type_size_t
=no
6836 rm -f conftest.
$ac_objext conftest.
$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6839 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6840 if test $ac_cv_type_size_t = yes; then
6844 cat >>confdefs.h
<<_ACEOF
6845 #define size_t unsigned
6850 for ac_header
in stdlib.h unistd.h
6852 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6854 echo "$as_me:$LINENO: checking for $ac_header" >&5
6855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6862 # Is the header compilable?
6863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6865 cat >conftest.
$ac_ext <<_ACEOF
6866 #line $LINENO "configure"
6867 #include "confdefs.h"
6868 $ac_includes_default
6869 #include <$ac_header>
6871 rm -f conftest.
$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } &&
6877 { ac_try
='test -s conftest.$ac_objext'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }; then
6883 ac_header_compiler
=yes
6885 echo "$as_me: failed program was:" >&5
6886 cat conftest.
$ac_ext >&5
6887 ac_header_compiler
=no
6889 rm -f conftest.
$ac_objext conftest.
$ac_ext
6890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6891 echo "${ECHO_T}$ac_header_compiler" >&6
6893 # Is the header present?
6894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6896 cat >conftest.
$ac_ext <<_ACEOF
6897 #line $LINENO "configure"
6898 #include "confdefs.h"
6899 #include <$ac_header>
6901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6902 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6904 egrep -v '^ *\+' conftest.er1
>conftest.err
6906 cat conftest.err
>&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } >/dev
/null
; then
6909 if test -s conftest.err
; then
6910 ac_cpp_err
=$ac_c_preproc_warn_flag
6917 if test -z "$ac_cpp_err"; then
6918 ac_header_preproc
=yes
6920 echo "$as_me: failed program was:" >&5
6921 cat conftest.
$ac_ext >&5
6922 ac_header_preproc
=no
6924 rm -f conftest.err conftest.
$ac_ext
6925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6926 echo "${ECHO_T}$ac_header_preproc" >&6
6928 # So? What about this header?
6929 case $ac_header_compiler:$ac_header_preproc in
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6943 echo "$as_me:$LINENO: checking for $ac_header" >&5
6944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 eval "$as_ac_Header=$ac_header_preproc"
6950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6955 cat >>confdefs.h
<<_ACEOF
6956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6963 for ac_func
in getpagesize
6965 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6966 echo "$as_me:$LINENO: checking for $ac_func" >&5
6967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6968 if eval "test \"\${$as_ac_var+set}\" = set"; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 cat >conftest.
$ac_ext <<_ACEOF
6972 #line $LINENO "configure"
6973 #include "confdefs.h"
6974 /* System header to define __stub macros and hopefully few prototypes,
6975 which can conflict with char $ac_func (); below. */
6977 /* Override any gcc2 internal prototype to avoid an error. */
6981 /* We use char because int might match the return type of a gcc2
6982 builtin and then its argument prototype would still apply. */
6986 #ifdef F77_DUMMY_MAIN
6990 int F77_DUMMY_MAIN() { return 1; }
6995 /* The GNU C library defines this for functions which it implements
6996 to always fail with ENOSYS. Some functions are actually named
6997 something starting with __ and the normal name is an alias. */
6998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7008 rm -f conftest.
$ac_objext conftest
$ac_exeext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7010 (eval $ac_link) 2>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try
='test -s conftest$ac_exeext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 eval "$as_ac_var=yes"
7022 echo "$as_me: failed program was:" >&5
7023 cat conftest.
$ac_ext >&5
7024 eval "$as_ac_var=no"
7026 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7030 if test `eval echo '${'$as_ac_var'}'` = yes; then
7031 cat >>confdefs.h
<<_ACEOF
7032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7038 echo "$as_me:$LINENO: checking for working mmap" >&5
7039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 if test "$cross_compiling" = yes; then
7044 ac_cv_func_mmap_fixed_mapped
=no
7046 cat >conftest.
$ac_ext <<_ACEOF
7047 #line $LINENO "configure"
7048 #include "confdefs.h"
7049 $ac_includes_default
7050 /* Thanks to Mike Haertel and Jim Avera for this test.
7051 Here is a matrix of mmap possibilities:
7052 mmap private not fixed
7053 mmap private fixed at somewhere currently unmapped
7054 mmap private fixed at somewhere already mapped
7055 mmap shared not fixed
7056 mmap shared fixed at somewhere currently unmapped
7057 mmap shared fixed at somewhere already mapped
7058 For private mappings, we should verify that changes cannot be read()
7059 back from the file, nor mmap's back from the file at a different
7060 address. (There have been systems where private was not correctly
7061 implemented like the infamous i386 svr4.0, and systems where the
7062 VM page cache was not coherent with the file system buffer cache
7063 like early versions of FreeBSD and possibly contemporary NetBSD.)
7064 For shared mappings, we should conversely verify that changes get
7065 propogated back to all the places they're supposed to be.
7067 Grep wants private fixed already mapped.
7068 The main things grep needs to know about mmap are:
7069 * does it exist and is it safe to write into the mmap'd area
7070 * how to use it (BSD variants) */
7073 #include <sys/mman.h>
7075 #if !STDC_HEADERS && !HAVE_STDLIB_H
7079 /* This mess was copied from the GNU getpagesize.h. */
7080 #if !HAVE_GETPAGESIZE
7081 /* Assume that all systems that can run configure have sys/param.h. */
7082 # if !HAVE_SYS_PARAM_H
7083 # define HAVE_SYS_PARAM_H 1
7086 # ifdef _SC_PAGESIZE
7087 # define getpagesize() sysconf(_SC_PAGESIZE)
7088 # else /* no _SC_PAGESIZE */
7089 # if HAVE_SYS_PARAM_H
7090 # include <sys/param.h>
7091 # ifdef EXEC_PAGESIZE
7092 # define getpagesize() EXEC_PAGESIZE
7093 # else /* no EXEC_PAGESIZE */
7095 # define getpagesize() NBPG * CLSIZE
7098 # endif /* no CLSIZE */
7099 # else /* no NBPG */
7101 # define getpagesize() NBPC
7102 # else /* no NBPC */
7104 # define getpagesize() PAGESIZE
7105 # endif /* PAGESIZE */
7106 # endif /* no NBPC */
7107 # endif /* no NBPG */
7108 # endif /* no EXEC_PAGESIZE */
7109 # else /* no HAVE_SYS_PARAM_H */
7110 # define getpagesize() 8192 /* punt totally */
7111 # endif /* no HAVE_SYS_PARAM_H */
7112 # endif /* no _SC_PAGESIZE */
7114 #endif /* no HAVE_GETPAGESIZE */
7119 char *data, *data2, *data3;
7123 pagesize = getpagesize ();
7125 /* First, make a file with some known garbage in it. */
7126 data = (char *) malloc (pagesize);
7129 for (i = 0; i < pagesize; ++i)
7130 *(data + i) = rand ();
7132 fd = creat ("conftest.mmap", 0600);
7135 if (write (fd, data, pagesize) != pagesize)
7139 /* Next, try to mmap the file at a fixed address which already has
7140 something else allocated at it. If we can, also make sure that
7141 we see the same garbage. */
7142 fd = open ("conftest.mmap", O_RDWR);
7145 data2 = (char *) malloc (2 * pagesize);
7148 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7149 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7150 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7152 for (i = 0; i < pagesize; ++i)
7153 if (*(data + i) != *(data2 + i))
7156 /* Finally, make sure that changes to the mapped area do not
7157 percolate back to the file as seen by read(). (This is a bug on
7158 some variants of i386 svr4.0.) */
7159 for (i = 0; i < pagesize; ++i)
7160 *(data2 + i) = *(data2 + i) + 1;
7161 data3 = (char *) malloc (pagesize);
7164 if (read (fd, data3, pagesize) != pagesize)
7166 for (i = 0; i < pagesize; ++i)
7167 if (*(data + i) != *(data3 + i))
7173 rm -f conftest
$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175 (eval $ac_link) 2>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7184 ac_cv_func_mmap_fixed_mapped
=yes
7186 echo "$as_me: program exited with status $ac_status" >&5
7187 echo "$as_me: failed program was:" >&5
7188 cat conftest.
$ac_ext >&5
7190 ac_cv_func_mmap_fixed_mapped
=no
7192 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7195 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7196 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7197 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7199 cat >>confdefs.h
<<\_ACEOF
7206 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7207 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7208 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 cat >conftest.
$ac_ext <<_ACEOF
7212 #line $LINENO "configure"
7213 #include "confdefs.h"
7215 #include <features.h>
7216 #ifdef __GNU_LIBRARY__
7217 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7224 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7225 ac_cv_gnu_library_2_1
=yes
7227 ac_cv_gnu_library_2_1
=no
7232 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7233 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7235 GLIBC21
="$ac_cv_gnu_library_2_1"
7237 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7238 stdlib.h string.h unistd.h sys
/param.h
7240 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7242 echo "$as_me:$LINENO: checking for $ac_header" >&5
7243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7250 # Is the header compilable?
7251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7253 cat >conftest.
$ac_ext <<_ACEOF
7254 #line $LINENO "configure"
7255 #include "confdefs.h"
7256 $ac_includes_default
7257 #include <$ac_header>
7259 rm -f conftest.
$ac_objext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try
='test -s conftest.$ac_objext'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; }; then
7271 ac_header_compiler
=yes
7273 echo "$as_me: failed program was:" >&5
7274 cat conftest.
$ac_ext >&5
7275 ac_header_compiler
=no
7277 rm -f conftest.
$ac_objext conftest.
$ac_ext
7278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7279 echo "${ECHO_T}$ac_header_compiler" >&6
7281 # Is the header present?
7282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7284 cat >conftest.
$ac_ext <<_ACEOF
7285 #line $LINENO "configure"
7286 #include "confdefs.h"
7287 #include <$ac_header>
7289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7290 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7292 egrep -v '^ *\+' conftest.er1
>conftest.err
7294 cat conftest.err
>&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } >/dev
/null
; then
7297 if test -s conftest.err
; then
7298 ac_cpp_err
=$ac_c_preproc_warn_flag
7305 if test -z "$ac_cpp_err"; then
7306 ac_header_preproc
=yes
7308 echo "$as_me: failed program was:" >&5
7309 cat conftest.
$ac_ext >&5
7310 ac_header_preproc
=no
7312 rm -f conftest.err conftest.
$ac_ext
7313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7314 echo "${ECHO_T}$ac_header_preproc" >&6
7316 # So? What about this header?
7317 case $ac_header_compiler:$ac_header_preproc in
7319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7331 echo "$as_me:$LINENO: checking for $ac_header" >&5
7332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 eval "$as_ac_Header=$ac_header_preproc"
7338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7343 cat >>confdefs.h
<<_ACEOF
7344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7351 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7352 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7353 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7355 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7356 echo "$as_me:$LINENO: checking for $ac_func" >&5
7357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7358 if eval "test \"\${$as_ac_var+set}\" = set"; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 cat >conftest.
$ac_ext <<_ACEOF
7362 #line $LINENO "configure"
7363 #include "confdefs.h"
7364 /* System header to define __stub macros and hopefully few prototypes,
7365 which can conflict with char $ac_func (); below. */
7367 /* Override any gcc2 internal prototype to avoid an error. */
7371 /* We use char because int might match the return type of a gcc2
7372 builtin and then its argument prototype would still apply. */
7376 #ifdef F77_DUMMY_MAIN
7380 int F77_DUMMY_MAIN() { return 1; }
7385 /* The GNU C library defines this for functions which it implements
7386 to always fail with ENOSYS. Some functions are actually named
7387 something starting with __ and the normal name is an alias. */
7388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7398 rm -f conftest.
$ac_objext conftest
$ac_exeext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7400 (eval $ac_link) 2>&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try
='test -s conftest$ac_exeext'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; }; then
7410 eval "$as_ac_var=yes"
7412 echo "$as_me: failed program was:" >&5
7413 cat conftest.
$ac_ext >&5
7414 eval "$as_ac_var=no"
7416 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7420 if test `eval echo '${'$as_ac_var'}'` = yes; then
7421 cat >>confdefs.h
<<_ACEOF
7422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7428 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7429 if test "${with_libiconv_prefix+set}" = set; then
7430 withval
="$with_libiconv_prefix"
7432 for dir
in `echo "$withval" | tr : ' '`; do
7433 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7434 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7439 echo "$as_me:$LINENO: checking for iconv" >&5
7440 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7441 if test "${am_cv_func_iconv+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 am_cv_func_iconv
="no, consider installing GNU libiconv"
7447 cat >conftest.
$ac_ext <<_ACEOF
7448 #line $LINENO "configure"
7449 #include "confdefs.h"
7452 #ifdef F77_DUMMY_MAIN
7456 int F77_DUMMY_MAIN() { return 1; }
7461 iconv_t cd = iconv_open("","");
7462 iconv(cd,NULL,NULL,NULL,NULL);
7468 rm -f conftest.
$ac_objext conftest
$ac_exeext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7470 (eval $ac_link) 2>&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } &&
7474 { ac_try
='test -s conftest$ac_exeext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7480 am_cv_func_iconv
=yes
7482 echo "$as_me: failed program was:" >&5
7483 cat conftest.
$ac_ext >&5
7485 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7486 if test "$am_cv_func_iconv" != yes; then
7487 am_save_LIBS
="$LIBS"
7488 LIBS
="$LIBS -liconv"
7489 cat >conftest.
$ac_ext <<_ACEOF
7490 #line $LINENO "configure"
7491 #include "confdefs.h"
7494 #ifdef F77_DUMMY_MAIN
7498 int F77_DUMMY_MAIN() { return 1; }
7503 iconv_t cd = iconv_open("","");
7504 iconv(cd,NULL,NULL,NULL,NULL);
7510 rm -f conftest.
$ac_objext conftest
$ac_exeext
7511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7512 (eval $ac_link) 2>&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try
='test -s conftest$ac_exeext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7523 am_cv_func_iconv
=yes
7525 echo "$as_me: failed program was:" >&5
7526 cat conftest.
$ac_ext >&5
7528 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7529 LIBS
="$am_save_LIBS"
7533 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7534 echo "${ECHO_T}$am_cv_func_iconv" >&6
7535 if test "$am_cv_func_iconv" = yes; then
7537 cat >>confdefs.h
<<\_ACEOF
7538 #define HAVE_ICONV 1
7541 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7542 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7543 if test "${am_cv_proto_iconv+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 cat >conftest.
$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 #include "confdefs.h"
7557 #if defined(__STDC__) || defined(__cplusplus)
7558 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7563 #ifdef F77_DUMMY_MAIN
7567 int F77_DUMMY_MAIN() { return 1; }
7577 rm -f conftest.
$ac_objext
7578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7579 (eval $ac_compile) 2>&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } &&
7583 { ac_try
='test -s conftest.$ac_objext'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; }; then
7589 am_cv_proto_iconv_arg1
=""
7591 echo "$as_me: failed program was:" >&5
7592 cat conftest.
$ac_ext >&5
7593 am_cv_proto_iconv_arg1
="const"
7595 rm -f conftest.
$ac_objext conftest.
$ac_ext
7596 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);"
7599 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7600 echo "$as_me:$LINENO: result: ${ac_t:-
7601 }$am_cv_proto_iconv" >&5
7602 echo "${ECHO_T}${ac_t:-
7603 }$am_cv_proto_iconv" >&6
7605 cat >>confdefs.h
<<_ACEOF
7606 #define ICONV_CONST $am_cv_proto_iconv_arg1
7611 if test "$am_cv_lib_iconv" = yes; then
7615 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7616 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7617 if test "${am_cv_langinfo_codeset+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 cat >conftest.
$ac_ext <<_ACEOF
7621 #line $LINENO "configure"
7622 #include "confdefs.h"
7623 #include <langinfo.h>
7624 #ifdef F77_DUMMY_MAIN
7628 int F77_DUMMY_MAIN() { return 1; }
7633 char* cs = nl_langinfo(CODESET);
7638 rm -f conftest.
$ac_objext conftest
$ac_exeext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7640 (eval $ac_link) 2>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try
='test -s conftest$ac_exeext'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 am_cv_langinfo_codeset
=yes
7652 echo "$as_me: failed program was:" >&5
7653 cat conftest.
$ac_ext >&5
7654 am_cv_langinfo_codeset
=no
7656 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7659 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7660 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7661 if test $am_cv_langinfo_codeset = yes; then
7663 cat >>confdefs.h
<<\_ACEOF
7664 #define HAVE_LANGINFO_CODESET 1
7669 if test $ac_cv_header_locale_h = yes; then
7670 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7671 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7672 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 cat >conftest.
$ac_ext <<_ACEOF
7676 #line $LINENO "configure"
7677 #include "confdefs.h"
7679 #ifdef F77_DUMMY_MAIN
7683 int F77_DUMMY_MAIN() { return 1; }
7693 rm -f conftest.
$ac_objext conftest
$ac_exeext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7695 (eval $ac_link) 2>&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try
='test -s conftest$ac_exeext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 am_cv_val_LC_MESSAGES
=yes
7707 echo "$as_me: failed program was:" >&5
7708 cat conftest.
$ac_ext >&5
7709 am_cv_val_LC_MESSAGES
=no
7711 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7713 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7714 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7715 if test $am_cv_val_LC_MESSAGES = yes; then
7717 cat >>confdefs.h
<<\_ACEOF
7718 #define HAVE_LC_MESSAGES 1
7723 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7724 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7725 # Check whether --enable-nls or --disable-nls was given.
7726 if test "${enable_nls+set}" = set; then
7727 enableval
="$enable_nls"
7732 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7733 echo "${ECHO_T}$USE_NLS" >&6
7735 BUILD_INCLUDED_LIBINTL
=no
7736 USE_INCLUDED_LIBINTL
=no
7739 if test "$USE_NLS" = "yes"; then
7741 cat >>confdefs.h
<<\_ACEOF
7742 #define ENABLE_NLS 1
7745 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7746 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7748 # Check whether --with-included-gettext or --without-included-gettext was given.
7749 if test "${with_included_gettext+set}" = set; then
7750 withval
="$with_included_gettext"
7751 nls_cv_force_use_gnu_gettext
=$withval
7753 nls_cv_force_use_gnu_gettext
=no
7755 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7756 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7758 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7759 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7762 if test "${ac_cv_header_libintl_h+set}" = set; then
7763 echo "$as_me:$LINENO: checking for libintl.h" >&5
7764 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7765 if test "${ac_cv_header_libintl_h+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7769 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7771 # Is the header compilable?
7772 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7773 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7774 cat >conftest.
$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7776 #include "confdefs.h"
7777 $ac_includes_default
7778 #include <libintl.h>
7780 rm -f conftest.
$ac_objext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782 (eval $ac_compile) 2>&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try
='test -s conftest.$ac_objext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_header_compiler
=yes
7794 echo "$as_me: failed program was:" >&5
7795 cat conftest.
$ac_ext >&5
7796 ac_header_compiler
=no
7798 rm -f conftest.
$ac_objext conftest.
$ac_ext
7799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7800 echo "${ECHO_T}$ac_header_compiler" >&6
7802 # Is the header present?
7803 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7804 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7805 cat >conftest.
$ac_ext <<_ACEOF
7806 #line $LINENO "configure"
7807 #include "confdefs.h"
7808 #include <libintl.h>
7810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7811 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7813 egrep -v '^ *\+' conftest.er1
>conftest.err
7815 cat conftest.err
>&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } >/dev
/null
; then
7818 if test -s conftest.err
; then
7819 ac_cpp_err
=$ac_c_preproc_warn_flag
7826 if test -z "$ac_cpp_err"; then
7827 ac_header_preproc
=yes
7829 echo "$as_me: failed program was:" >&5
7830 cat conftest.
$ac_ext >&5
7831 ac_header_preproc
=no
7833 rm -f conftest.err conftest.
$ac_ext
7834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7835 echo "${ECHO_T}$ac_header_preproc" >&6
7837 # So? What about this header?
7838 case $ac_header_compiler:$ac_header_preproc in
7840 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7841 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7843 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7845 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7846 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7847 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7848 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7849 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7850 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7852 echo "$as_me:$LINENO: checking for libintl.h" >&5
7853 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7854 if test "${ac_cv_header_libintl_h+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 ac_cv_header_libintl_h
=$ac_header_preproc
7859 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7860 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7863 if test $ac_cv_header_libintl_h = yes; then
7864 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7865 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7866 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 cat >conftest.
$ac_ext <<_ACEOF
7870 #line $LINENO "configure"
7871 #include "confdefs.h"
7872 #include <libintl.h>
7873 extern int _nl_msg_cat_cntr;
7874 #ifdef F77_DUMMY_MAIN
7878 int F77_DUMMY_MAIN() { return 1; }
7883 bindtextdomain ("", "");
7884 return (int) gettext ("") + _nl_msg_cat_cntr
7889 rm -f conftest.
$ac_objext conftest
$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try
='test -s conftest$ac_exeext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 gt_cv_func_gnugettext1_libc
=yes
7903 echo "$as_me: failed program was:" >&5
7904 cat conftest.
$ac_ext >&5
7905 gt_cv_func_gnugettext1_libc
=no
7907 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7909 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7910 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7912 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7913 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7914 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7915 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 gt_save_LIBS
="$LIBS"
7919 LIBS
="$LIBS -lintl $LIBICONV"
7920 cat >conftest.
$ac_ext <<_ACEOF
7921 #line $LINENO "configure"
7922 #include "confdefs.h"
7923 #include <libintl.h>
7924 extern int _nl_msg_cat_cntr;
7925 #ifdef F77_DUMMY_MAIN
7929 int F77_DUMMY_MAIN() { return 1; }
7934 bindtextdomain ("", "");
7935 return (int) gettext ("") + _nl_msg_cat_cntr
7940 rm -f conftest.
$ac_objext conftest
$ac_exeext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942 (eval $ac_link) 2>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try
='test -s conftest$ac_exeext'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7952 gt_cv_func_gnugettext1_libintl
=yes
7954 echo "$as_me: failed program was:" >&5
7955 cat conftest.
$ac_ext >&5
7956 gt_cv_func_gnugettext1_libintl
=no
7958 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7959 LIBS
="$gt_save_LIBS"
7961 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7962 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7965 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7966 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7967 && test "$PACKAGE" != gettext; }; then
7969 cat >>confdefs.h
<<\_ACEOF
7970 #define HAVE_GETTEXT 1
7973 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7974 INTLLIBS
="-lintl $LIBICONV"
7977 gt_save_LIBS
="$LIBS"
7978 LIBS
="$LIBS $INTLLIBS"
7980 for ac_func
in dcgettext
7982 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7983 echo "$as_me:$LINENO: checking for $ac_func" >&5
7984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7985 if eval "test \"\${$as_ac_var+set}\" = set"; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 cat >conftest.
$ac_ext <<_ACEOF
7989 #line $LINENO "configure"
7990 #include "confdefs.h"
7991 /* System header to define __stub macros and hopefully few prototypes,
7992 which can conflict with char $ac_func (); below. */
7994 /* Override any gcc2 internal prototype to avoid an error. */
7998 /* We use char because int might match the return type of a gcc2
7999 builtin and then its argument prototype would still apply. */
8003 #ifdef F77_DUMMY_MAIN
8007 int F77_DUMMY_MAIN() { return 1; }
8012 /* The GNU C library defines this for functions which it implements
8013 to always fail with ENOSYS. Some functions are actually named
8014 something starting with __ and the normal name is an alias. */
8015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8025 rm -f conftest.
$ac_objext conftest
$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027 (eval $ac_link) 2>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try
='test -s conftest$ac_exeext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 eval "$as_ac_var=yes"
8039 echo "$as_me: failed program was:" >&5
8040 cat conftest.
$ac_ext >&5
8041 eval "$as_ac_var=no"
8043 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8047 if test `eval echo '${'$as_ac_var'}'` = yes; then
8048 cat >>confdefs.h
<<_ACEOF
8049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8055 LIBS
="$gt_save_LIBS"
8057 # Extract the first word of "msgfmt", so it can be a program name with args.
8058 set dummy msgfmt
; ac_word
=$2
8059 echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8061 if test "${ac_cv_path_MSGFMT+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8069 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8070 for ac_dir
in $PATH; do
8071 test -z "$ac_dir" && ac_dir
=.
8072 if test -f $ac_dir/$ac_word; then
8073 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8074 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8080 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8084 MSGFMT
="$ac_cv_path_MSGFMT"
8085 if test "$MSGFMT" != ":"; then
8086 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8087 echo "${ECHO_T}$MSGFMT" >&6
8089 echo "$as_me:$LINENO: result: no" >&5
8090 echo "${ECHO_T}no" >&6
8093 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8094 set dummy gmsgfmt
; ac_word
=$2
8095 echo "$as_me:$LINENO: checking for $ac_word" >&5
8096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8097 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8109 test -z "$as_dir" && as_dir
=.
8110 for ac_exec_ext
in '' $ac_executable_extensions; do
8111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8123 GMSGFMT
=$ac_cv_path_GMSGFMT
8125 if test -n "$GMSGFMT"; then
8126 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8127 echo "${ECHO_T}$GMSGFMT" >&6
8129 echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6
8133 # Extract the first word of "xgettext", so it can be a program name with args.
8134 set dummy xgettext
; ac_word
=$2
8135 echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8137 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8145 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8146 for ac_dir
in $PATH; do
8147 test -z "$ac_dir" && ac_dir
=.
8148 if test -f $ac_dir/$ac_word; then
8149 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8150 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8156 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8160 XGETTEXT
="$ac_cv_path_XGETTEXT"
8161 if test "$XGETTEXT" != ":"; then
8162 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8163 echo "${ECHO_T}$XGETTEXT" >&6
8165 echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6
8174 if test "$CATOBJEXT" = "NONE"; then
8175 nls_cv_use_gnu_gettext
=yes
8179 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8180 INTLOBJS
="\$(GETTOBJS)"
8181 # Extract the first word of "msgfmt", so it can be a program name with args.
8182 set dummy msgfmt
; ac_word
=$2
8183 echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8185 if test "${ac_cv_path_MSGFMT+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8193 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8194 for ac_dir
in $PATH; do
8195 test -z "$ac_dir" && ac_dir
=.
8196 if test -f $ac_dir/$ac_word; then
8197 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8198 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8204 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8208 MSGFMT
="$ac_cv_path_MSGFMT"
8209 if test "$MSGFMT" != ":"; then
8210 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8211 echo "${ECHO_T}$MSGFMT" >&6
8213 echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6
8217 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8218 set dummy gmsgfmt
; ac_word
=$2
8219 echo "$as_me:$LINENO: checking for $ac_word" >&5
8220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8221 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8233 test -z "$as_dir" && as_dir
=.
8234 for ac_exec_ext
in '' $ac_executable_extensions; do
8235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8236 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8247 GMSGFMT
=$ac_cv_path_GMSGFMT
8249 if test -n "$GMSGFMT"; then
8250 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8251 echo "${ECHO_T}$GMSGFMT" >&6
8253 echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6
8257 # Extract the first word of "xgettext", so it can be a program name with args.
8258 set dummy xgettext
; ac_word
=$2
8259 echo "$as_me:$LINENO: checking for $ac_word" >&5
8260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8261 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8269 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8270 for ac_dir
in $PATH; do
8271 test -z "$ac_dir" && ac_dir
=.
8272 if test -f $ac_dir/$ac_word; then
8273 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8274 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8280 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8284 XGETTEXT
="$ac_cv_path_XGETTEXT"
8285 if test "$XGETTEXT" != ":"; then
8286 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8287 echo "${ECHO_T}$XGETTEXT" >&6
8289 echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6
8293 BUILD_INCLUDED_LIBINTL
=yes
8294 USE_INCLUDED_LIBINTL
=yes
8296 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8297 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8300 if test "$GMSGFMT" != ":"; then
8301 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8304 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8305 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8310 if test "$XGETTEXT" != ":"; then
8311 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8314 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8315 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8322 ac_config_commands
="$ac_config_commands default-1"
8324 if test "$PACKAGE" = gettext; then
8325 BUILD_INCLUDED_LIBINTL
=yes
8328 for ac_prog
in bison
8330 # Extract the first word of "$ac_prog", so it can be a program name with args.
8331 set dummy
$ac_prog; ac_word
=$2
8332 echo "$as_me:$LINENO: checking for $ac_word" >&5
8333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8334 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 if test -n "$INTLBISON"; then
8338 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8344 test -z "$as_dir" && as_dir
=.
8345 for ac_exec_ext
in '' $ac_executable_extensions; do
8346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8347 ac_cv_prog_INTLBISON
="$ac_prog"
8348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 INTLBISON
=$ac_cv_prog_INTLBISON
8357 if test -n "$INTLBISON"; then
8358 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8359 echo "${ECHO_T}$INTLBISON" >&6
8361 echo "$as_me:$LINENO: result: no" >&5
8362 echo "${ECHO_T}no" >&6
8365 test -n "$INTLBISON" && break
8368 if test -z "$INTLBISON"; then
8371 echo "$as_me:$LINENO: checking version of bison" >&5
8372 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8373 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8374 case $ac_prog_version in
8375 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8376 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8377 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8378 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8380 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8381 echo "${ECHO_T}$ac_prog_version" >&6
8383 if test $ac_verc_fail = yes; then
8387 for lang
in $ALL_LINGUAS; do
8388 GMOFILES
="$GMOFILES $lang.gmo"
8389 POFILES
="$POFILES $lang.po"
8393 nls_cv_header_libgt
=
8401 if test "x$CATOBJEXT" != "x"; then
8402 if test "x$ALL_LINGUAS" = "x"; then
8405 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8406 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8408 for presentlang
in $ALL_LINGUAS; do
8410 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8411 # Use the presentlang catalog if desiredlang is
8412 # a. equal to presentlang, or
8413 # b. a variant of presentlang (because in this case,
8414 # presentlang can be used as a fallback for messages
8415 # which are not translated in the desiredlang catalog).
8416 case "$desiredlang" in
8417 "$presentlang"*) useit
=yes;;
8420 if test $useit = yes; then
8421 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8424 LINGUAS
=$NEW_LINGUAS
8425 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8426 echo "${ECHO_T}$LINGUAS" >&6
8429 if test -n "$LINGUAS"; then
8430 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8435 if test -n "$ac_aux_dir"; then
8436 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8438 if test -z "$MKINSTALLDIRS"; then
8439 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8442 INTL_LIBTOOL_SUFFIX_PREFIX
=
8444 # This is necessary so that .o files in LIBOBJS are also built via
8445 # the ANSI2KNR-filtering rules.
8446 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8448 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile"
8449 cat >confcache
<<\_ACEOF
8450 # This file is a shell script that caches the results of configure
8451 # tests run on this system so they can be shared between configure
8452 # scripts and configure runs, see configure's option --config-cache.
8453 # It is not useful on other systems. If it contains results you don't
8454 # want to keep, you may remove or edit it.
8456 # config.status only pays attention to the cache file if you give it
8457 # the --recheck option to rerun configure.
8459 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8465 # The following way of writing the cache mishandles newlines in values,
8466 # but we know of no workaround that is simple, portable, and efficient.
8467 # So, don't put newlines in cache variables' values.
8468 # Ultrix sh set writes to stderr and can't be redirected directly,
8469 # and sets the high bit in the cache file unless we assign to the vars.
8472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8474 # `set' does not quote correctly, so add quotes (double-quote
8475 # substitution turns \\\\ into \\, and sed turns \\ into \).
8478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8481 # `set' quotes correctly as required by POSIX, so do not add quotes.
8483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8494 if cmp -s $cache_file confcache
; then :; else
8495 if test -w $cache_file; then
8496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8497 cat confcache
>$cache_file
8499 echo "not updating unwritable cache $cache_file"
8504 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8505 # Let make expand exec_prefix.
8506 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8508 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8509 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8510 # trailing colons and then remove the whole line if VPATH becomes empty
8511 # (actually we leave an empty line to preserve line numbers).
8512 if test "x$srcdir" = x.
; then
8513 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8514 s/:*\$(srcdir):*/:/;
8515 s/:*\${srcdir}:*/:/;
8517 s/^\([^=]*=[ ]*\):*/\1/;
8523 DEFS
=-DHAVE_CONFIG_H
8525 : ${CONFIG_STATUS=./config.status}
8526 ac_clean_files_save
=$ac_clean_files
8527 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8530 cat >$CONFIG_STATUS <<_ACEOF
8532 # Generated by $as_me.
8533 # Run this file to recreate the current configuration.
8534 # Compiler output produced by configure, useful for debugging
8535 # configure, is in config.log if it exists.
8538 SHELL=\${CONFIG_SHELL-$SHELL}
8541 cat >>$CONFIG_STATUS <<\_ACEOF
8543 ## --------------------- ##
8544 ## M4sh Initialization. ##
8545 ## --------------------- ##
8547 # Be Bourne compatible
8548 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8551 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8556 # Support unset when possible.
8557 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8563 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
8564 { $as_unset LANG
|| test "${LANG+set}" != set; } ||
8565 { LANG
=C
; export LANG
; }
8566 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
8567 { $as_unset LC_ALL
|| test "${LC_ALL+set}" != set; } ||
8568 { LC_ALL
=C
; export LC_ALL
; }
8569 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
8570 { $as_unset LC_TIME
|| test "${LC_TIME+set}" != set; } ||
8571 { LC_TIME
=C
; export LC_TIME
; }
8572 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
8573 { $as_unset LC_CTYPE
|| test "${LC_CTYPE+set}" != set; } ||
8574 { LC_CTYPE
=C
; export LC_CTYPE
; }
8575 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
8576 { $as_unset LANGUAGE
|| test "${LANGUAGE+set}" != set; } ||
8577 { LANGUAGE
=C
; export LANGUAGE
; }
8578 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
8579 { $as_unset LC_COLLATE
|| test "${LC_COLLATE+set}" != set; } ||
8580 { LC_COLLATE
=C
; export LC_COLLATE
; }
8581 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
8582 { $as_unset LC_NUMERIC
|| test "${LC_NUMERIC+set}" != set; } ||
8583 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
8584 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
8585 { $as_unset LC_MESSAGES
|| test "${LC_MESSAGES+set}" != set; } ||
8586 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
8588 # Name of the executable.
8589 as_me
=`(basename "$0") 2>/dev/null ||
8590 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8591 X"$0" : 'X\(//\)$' \| \
8592 X"$0" : 'X\(/\)$' \| \
8593 . : '\(.\)' 2>/dev/null ||
8595 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8596 /^X\/\(\/\/\)$/{ s//\1/; q; }
8597 /^X\/\(\/\).*/{ s//\1/; q; }
8600 # PATH needs CR, and LINENO needs CR and PATH.
8601 # Avoid depending upon Character Ranges.
8602 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8603 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8604 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8605 as_cr_digits
='0123456789'
8606 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8608 # The user is always right.
8609 if test "${PATH_SEPARATOR+set}" != set; then
8610 echo "#! $SHELL" >conftest.sh
8611 echo "exit 0" >>conftest.sh
8612 chmod +x conftest.sh
8613 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
8623 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8624 test "x$as_lineno_1" != "x$as_lineno_2" &&
8625 test "x$as_lineno_3" = "x$as_lineno_2" || {
8626 # Find who we are. Look in the path if we contain no path at all
8629 *[\\/]* ) as_myself
=$0 ;;
8630 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8634 test -z "$as_dir" && as_dir
=.
8635 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8640 # We did not find ourselves, most probably we were run as `sh COMMAND'
8641 # in which case we are not to be found in the path.
8642 if test "x$as_myself" = x
; then
8645 if test ! -f "$as_myself"; then
8646 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8647 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8648 { (exit 1); exit 1; }; }
8650 case $CONFIG_SHELL in
8652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8653 for as_dir
in /bin
:/usr
/bin
:$PATH
8656 test -z "$as_dir" && as_dir
=.
8657 for as_base
in sh bash ksh sh5
; do
8660 if ("$as_dir/$as_base" -c '
8663 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8664 test "x$as_lineno_1" != "x$as_lineno_2" &&
8665 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8666 CONFIG_SHELL
=$as_dir/$as_base
8668 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8676 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8677 # uniformly replaced by the line number. The first 'sed' inserts a
8678 # line-number line before each line; the second 'sed' does the real
8679 # work. The second script uses 'N' to pair each line-number line
8680 # with the numbered line, and appends trailing '-' during
8681 # substitution so that $LINENO is not a special case at line end.
8682 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8683 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8684 sed '=' <$as_myself |
8689 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8692 s,^['$as_cr_digits']*\n,,
8694 chmod +x
$as_me.lineno
||
8695 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8696 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8697 { (exit 1); exit 1; }; }
8699 # Don't try to exec as it changes $[0], causing all sort of problems
8700 # (the dirname of $[0] is not the place where we might find the
8701 # original and so on. Autoconf is especially sensible to this).
8703 # Exit status is that of the last command.
8707 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8708 *c
*,-n*) ECHO_N
= ECHO_C
='
8710 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8711 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8714 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8720 rm -f conf$$ conf$$.exe conf$$.
file
8722 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8723 # We could just check for DJGPP; but this test a) works b) is more generic
8724 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8725 if test -f conf$$.exe
; then
8726 # Don't use ln at all; we don't have any links
8731 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8736 rm -f conf$$ conf$$.exe conf$$.
file
8738 as_executable_p
="test -f"
8740 # Sed expression to map a string onto a valid CPP name.
8741 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8743 # Sed expression to map a string onto a valid variable name.
8744 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8747 # We need space, tab and new line, in precisely that order.
8753 $as_unset CDPATH
|| test "${CDPATH+set}" != set || { CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
8757 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8758 # report actual input values of CONFIG_FILES etc. instead of their
8759 # values after options handling. Logging --version etc. is OK.
8763 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8764 ## Running $as_me. ##
8769 This file was extended by GNU Bison $as_me 1.30a, which was
8770 generated by GNU Autoconf 2.52e. Invocation command line was
8772 CONFIG_FILES = $CONFIG_FILES
8773 CONFIG_HEADERS = $CONFIG_HEADERS
8774 CONFIG_LINKS = $CONFIG_LINKS
8775 CONFIG_COMMANDS = $CONFIG_COMMANDS
8779 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8783 # Files that config.status was made for.
8784 if test -n "$ac_config_files"; then
8785 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8788 if test -n "$ac_config_headers"; then
8789 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8792 if test -n "$ac_config_links"; then
8793 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8796 if test -n "$ac_config_commands"; then
8797 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8800 cat >>$CONFIG_STATUS <<\_ACEOF
8803 \`$as_me' instantiates files from templates according to the
8804 current configuration.
8806 Usage: $0 [OPTIONS] [FILE]...
8808 -h, --help print this help, then exit
8809 -V, --version print version number, then exit
8810 -d, --debug don't remove temporary files
8811 --recheck update $as_me by reconfiguring in the same conditions
8812 --file=FILE[:TEMPLATE]
8813 instantiate the configuration file FILE
8814 --header=FILE[:TEMPLATE]
8815 instantiate the configuration header FILE
8817 Configuration files:
8820 Configuration headers:
8823 Configuration commands:
8826 Report bugs to <bug-autoconf@gnu.org>."
8829 cat >>$CONFIG_STATUS <<_ACEOF
8831 GNU Bison config.status 1.30a
8832 configured by $0, generated by GNU Autoconf 2.52e,
8833 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8835 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8836 Free Software Foundation, Inc.
8837 This config.status script is free software; the Free Software Foundation
8838 gives unlimited permission to copy, distribute and modify it."
8843 cat >>$CONFIG_STATUS <<\_ACEOF
8844 # If no file are specified by the user, then we need to provide default
8845 # value. By we need to know if files were specified by the user.
8851 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8852 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8854 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
8858 *) # This is not an option, so the user has probably given explicit
8860 ac_need_defaults
=false
;;
8864 # Handling of the options.
8866 cat >>$CONFIG_STATUS <<_ACEOF
8867 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8868 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8869 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8871 cat >>$CONFIG_STATUS <<\_ACEOF
8872 --version | --vers* | -V )
8873 echo "$ac_cs_version"; exit 0 ;;
8875 # Conflict between --help and --header
8876 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8877 Try \`$0 --help' for more information." >&5
8878 echo "$as_me: error: ambiguous option: $1
8879 Try \`$0 --help' for more information." >&2;}
8880 { (exit 1); exit 1; }; };;
8881 --help | --hel | -h )
8882 echo "$ac_cs_usage"; exit 0 ;;
8883 --debug | --d* | -d )
8885 --file | --fil | --fi | --f )
8887 CONFIG_FILES
="$CONFIG_FILES $1"
8888 ac_need_defaults
=false
;;
8889 --header | --heade | --head | --hea )
8891 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
8892 ac_need_defaults
=false
;;
8895 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8896 Try \`$0 --help' for more information." >&5
8897 echo "$as_me: error: unrecognized option: $1
8898 Try \`$0 --help' for more information." >&2;}
8899 { (exit 1); exit 1; }; } ;;
8901 *) ac_config_targets
="$ac_config_targets $1" ;;
8909 cat >>$CONFIG_STATUS <<_ACEOF
8911 # INIT-COMMANDS section.
8914 PACKAGE_NAME='$PACKAGE_NAME'
8915 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8916 PACKAGE_VERSION='$PACKAGE_VERSION'
8917 PACKAGE_STRING='$PACKAGE_STRING'
8918 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8920 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8924 cat >>$CONFIG_STATUS <<\_ACEOF
8925 for ac_config_target
in $ac_config_targets
8927 case "$ac_config_target" in
8928 # Handling of arguments.
8929 "tests/bison" ) CONFIG_FILES
="$CONFIG_FILES tests/bison" ;;
8930 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8931 "tests/atlocal" ) CONFIG_FILES
="$CONFIG_FILES tests/atlocal" ;;
8932 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8933 "config/Makefile" ) CONFIG_FILES
="$CONFIG_FILES config/Makefile" ;;
8934 "intl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
8935 "po/Makefile.in" ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
8936 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
8937 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8938 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8939 "m4/Makefile" ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
8940 "tests/package.m4" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/package.m4" ;;
8941 "tests/atconfig" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS tests/atconfig" ;;
8942 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8943 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
8944 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.hin" ;;
8945 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8946 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8947 { (exit 1); exit 1; }; };;
8951 # If the user did not use the arguments to specify the items to instantiate,
8952 # then the envvar interface is used. Set only those that are not.
8953 # We use the long form for the default assignment because of an extremely
8954 # bizarre bug on SunOS 4.1.3.
8955 if $ac_need_defaults; then
8956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8957 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8958 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8961 # Create a temporary directory, and hook for its removal unless debugging.
8964 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8965 trap '{ (exit 1); exit 1; }' 1 2 13 15
8968 # Create a (secure) tmp directory for tmp files.
8971 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8972 test -n "$tmp" && test -d "$tmp"
8975 tmp
=$TMPDIR/cs$$
-$RANDOM
8976 (umask 077 && mkdir $tmp)
8979 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8980 { (exit 1); exit 1; }
8985 cat >>$CONFIG_STATUS <<_ACEOF
8988 # CONFIG_FILES section.
8991 # No need to generate the scripts if there are no CONFIG_FILES.
8992 # This happens for instance when ./config.status config.h
8993 if test -n "\$CONFIG_FILES"; then
8994 # Protect against being on the right side of a sed subst in config.status.
8995 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8996 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8997 s,@SHELL@,$SHELL,;t t
8998 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8999 s,@exec_prefix@,$exec_prefix,;t t
9000 s,@prefix@,$prefix,;t t
9001 s,@program_transform_name@,$program_transform_name,;t t
9002 s,@bindir@,$bindir,;t t
9003 s,@sbindir@,$sbindir,;t t
9004 s,@libexecdir@,$libexecdir,;t t
9005 s,@datadir@,$datadir,;t t
9006 s,@sysconfdir@,$sysconfdir,;t t
9007 s,@sharedstatedir@,$sharedstatedir,;t t
9008 s,@localstatedir@,$localstatedir,;t t
9009 s,@libdir@,$libdir,;t t
9010 s,@includedir@,$includedir,;t t
9011 s,@oldincludedir@,$oldincludedir,;t t
9012 s,@infodir@,$infodir,;t t
9013 s,@mandir@,$mandir,;t t
9014 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9015 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9016 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9017 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9018 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9019 s,@build_alias@,$build_alias,;t t
9020 s,@host_alias@,$host_alias,;t t
9021 s,@target_alias@,$target_alias,;t t
9023 s,@ECHO_C@,$ECHO_C,;t t
9024 s,@ECHO_N@,$ECHO_N,;t t
9025 s,@ECHO_T@,$ECHO_T,;t t
9027 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9028 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9029 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9030 s,@PACKAGE@,$PACKAGE,;t t
9031 s,@VERSION@,$VERSION,;t t
9032 s,@ACLOCAL@,$ACLOCAL,;t t
9033 s,@AUTOCONF@,$AUTOCONF,;t t
9034 s,@AUTOMAKE@,$AUTOMAKE,;t t
9035 s,@AUTOHEADER@,$AUTOHEADER,;t t
9036 s,@MAKEINFO@,$MAKEINFO,;t t
9037 s,@AMTAR@,$AMTAR,;t t
9038 s,@install_sh@,$install_sh,;t t
9039 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9041 s,@SET_MAKE@,$SET_MAKE,;t t
9042 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9043 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9044 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9045 s,@DEPDIR@,$DEPDIR,;t t
9048 s,@CFLAGS@,$CFLAGS,;t t
9049 s,@LDFLAGS@,$LDFLAGS,;t t
9050 s,@CPPFLAGS@,$CPPFLAGS,;t t
9051 s,@ac_ct_CC@,$ac_ct_CC,;t t
9052 s,@EXEEXT@,$EXEEXT,;t t
9053 s,@OBJEXT@,$OBJEXT,;t t
9054 s,@am__include@,$am__include,;t t
9055 s,@am__quote@,$am__quote,;t t
9056 s,@CCDEPMODE@,$CCDEPMODE,;t t
9058 s,@RANLIB@,$RANLIB,;t t
9059 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9060 s,@AUTOM4TE@,$AUTOM4TE,;t t
9061 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9063 s,@ANSI2KNR@,$ANSI2KNR,;t t
9064 s,@ALLOCA@,$ALLOCA,;t t
9065 s,@LIBOBJS@,$LIBOBJS,;t t
9066 s,@build@,$build,;t t
9067 s,@build_cpu@,$build_cpu,;t t
9068 s,@build_vendor@,$build_vendor,;t t
9069 s,@build_os@,$build_os,;t t
9071 s,@host_cpu@,$host_cpu,;t t
9072 s,@host_vendor@,$host_vendor,;t t
9073 s,@host_os@,$host_os,;t t
9074 s,@GLIBC21@,$GLIBC21,;t t
9075 s,@LIBICONV@,$LIBICONV,;t t
9076 s,@USE_NLS@,$USE_NLS,;t t
9077 s,@MSGFMT@,$MSGFMT,;t t
9078 s,@GMSGFMT@,$GMSGFMT,;t t
9079 s,@XGETTEXT@,$XGETTEXT,;t t
9080 s,@INTLBISON@,$INTLBISON,;t t
9081 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9082 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9083 s,@CATALOGS@,$CATALOGS,;t t
9084 s,@CATOBJEXT@,$CATOBJEXT,;t t
9085 s,@GMOFILES@,$GMOFILES,;t t
9086 s,@INTLLIBS@,$INTLLIBS,;t t
9087 s,@INTLOBJS@,$INTLOBJS,;t t
9088 s,@POFILES@,$POFILES,;t t
9089 s,@POSUB@,$POSUB,;t t
9090 s,@DATADIRNAME@,$DATADIRNAME,;t t
9091 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9092 s,@GENCAT@,$GENCAT,;t t
9093 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9094 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9099 cat >>$CONFIG_STATUS <<\_ACEOF
9100 # Split the substitutions into bite-sized pieces for seds with
9101 # small command number limits, like on Digital OSF/1 and HP-UX.
9103 ac_sed_frag
=1 # Number of current file.
9104 ac_beg
=1 # First line for current file.
9105 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9108 while $ac_more_lines; do
9109 if test $ac_beg -gt 1; then
9110 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9112 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9114 if test ! -s $tmp/subs.frag
; then
9117 # The purpose of the label and of the branching condition is to
9118 # speed up the sed processing (if there are no `@' at all, there
9119 # is no need to browse any of the substitutions).
9120 # These are the two extra sed commands mentioned above.
9122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs
-$ac_sed_frag.
sed
9123 if test -z "$ac_sed_cmds"; then
9124 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9126 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9128 ac_sed_frag
=`expr $ac_sed_frag + 1`
9130 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9133 if test -z "$ac_sed_cmds"; then
9136 fi # test -n "$CONFIG_FILES"
9139 cat >>$CONFIG_STATUS <<\_ACEOF
9140 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9143 - | *:- | *:-:* ) # input from stdin
9145 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9146 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9147 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9148 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9149 * ) ac_file_in
=$ac_file.
in ;;
9152 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9153 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9155 X"$ac_file" : 'X\(//\)[^/]' \| \
9156 X"$ac_file" : 'X\(//\)$' \| \
9157 X"$ac_file" : 'X\(/\)' \| \
9158 . : '\(.\)' 2>/dev/null ||
9160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9162 /^X\(\/\/\)$/{ s//\1/; q; }
9163 /^X\(\/\).*/{ s//\1/; q; }
9166 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9170 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9171 case $as_mkdir_dir in
9172 # Skip DOS drivespec
9173 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9175 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9176 test -d "$as_incr_dir" ||
9177 mkdir "$as_incr_dir" ||
9178 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9179 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9180 { (exit 1); exit 1; }; }
9187 if test "$ac_dir" != .
; then
9188 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9189 # A "../" for each directory in $ac_dir_suffix.
9190 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9192 ac_dir_suffix
= ac_top_builddir
=
9196 .
) # No --srcdir option. We are building in place.
9198 if test -z "$ac_top_builddir"; then
9201 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9203 [\\/]* | ?
:[\\/]* ) # Absolute path.
9204 ac_srcdir
=$srcdir$ac_dir_suffix;
9205 ac_top_srcdir
=$srcdir ;;
9207 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9208 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9210 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9212 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9213 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9214 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9215 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9218 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9219 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9222 if test x
"$ac_file" != x
-; then
9223 { echo "$as_me:$LINENO: creating $ac_file" >&5
9224 echo "$as_me: creating $ac_file" >&6;}
9227 # Let's still pretend it is `configure' which instantiates (i.e., don't
9228 # use $as_me), people would be surprised to read:
9229 # /* config.h. Generated by config.status. */
9230 if test x
"$ac_file" = x
-; then
9233 configure_input
="$ac_file. "
9235 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9236 sed 's,.*/,,'` by configure."
9238 # First look for the input files in the build tree, otherwise in the
9240 ac_file_inputs
=`IFS=:
9241 for f in $ac_file_in; do
9243 -) echo $tmp/stdin ;;
9245 # Absolute (can't be DOS-style, as IFS=:)
9246 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9247 echo "$as_me: error: cannot find input file: $f" >&2;}
9248 { (exit 1); exit 1; }; }
9251 if test -f "$f"; then
9254 elif test -f "$srcdir/$f"; then
9259 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9260 echo "$as_me: error: cannot find input file: $f" >&2;}
9261 { (exit 1); exit 1; }; }
9264 done` || { (exit 1); exit 1; }
9266 cat >>$CONFIG_STATUS <<_ACEOF
9270 cat >>$CONFIG_STATUS <<\_ACEOF
9272 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9273 s
,@configure_input@
,$configure_input,;t t
9274 s
,@srcdir@
,$ac_srcdir,;t t
9275 s
,@srcpath@
,$ac_srcpath,;t t
9276 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9277 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9278 s
,@builddir@
,$ac_builddir,;t t
9279 s
,@buildpath@
,$ac_buildpath,;t t
9280 s
,@top_builddir@
,$ac_top_builddir,;t t
9281 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9282 s
,@INSTALL@
,$ac_INSTALL,;t t
9283 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9285 if test x"$ac_file" != x-; then
9286 mv $tmp/out $ac_file
9292 # Run the commands associated with the file.
9294 tests/bison ) chmod +x tests/bison ;;
9298 cat >>$CONFIG_STATUS <<\_ACEOF
9301 # CONFIG_HEADER section.
9304 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9305 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9307 # ac_d sets the value in "#define NAME VALUE" lines.
9308 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9309 ac_dB
='[ ].*$,\1#\2'
9312 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9313 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9314 ac_uB
='$,\1#\2define\3'
9318 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9319 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9321 - | *:- | *:-:* ) # input from stdin
9323 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9324 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9325 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9326 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9327 * ) ac_file_in
=$ac_file.
in ;;
9330 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9331 echo "$as_me: creating $ac_file" >&6;}
9333 # First look for the input files in the build tree, otherwise in the
9335 ac_file_inputs
=`IFS=:
9336 for f in $ac_file_in; do
9338 -) echo $tmp/stdin ;;
9340 # Absolute (can't be DOS-style, as IFS=:)
9341 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9342 echo "$as_me: error: cannot find input file: $f" >&2;}
9343 { (exit 1); exit 1; }; }
9346 if test -f "$f"; then
9349 elif test -f "$srcdir/$f"; then
9354 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9355 echo "$as_me: error: cannot find input file: $f" >&2;}
9356 { (exit 1); exit 1; }; }
9359 done` || { (exit 1); exit 1; }
9360 # Remove the trailing spaces.
9361 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9365 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9366 # `conftest.undefs', that substitutes the proper values into
9367 # config.h.in to produce config.h. The first handles `#define'
9368 # templates, and the second `#undef' templates.
9369 # And first: Protect against being on the right side of a sed subst in
9370 # config.status. Protect against being in an unquoted here document
9372 rm -f conftest.defines conftest.undefs
9373 # Using a here document instead of a string reduces the quoting nightmare.
9374 # Putting comments in sed scripts is not portable.
9376 # `end' is used to avoid that the second main sed command (meant for
9377 # 0-ary CPP macros) applies to n-ary macro definitions.
9378 # See the Autoconf documentation for `clear'.
9379 cat >confdef2sed.
sed <<\_ACEOF
9384 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9386 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9389 # If some macros were called several times there might be several times
9390 # the same #defines, which is useless. Nevertheless, we may not want to
9391 # sort them, since we want the *last* AC-DEFINE to be honored.
9392 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9393 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9394 rm -f confdef2sed.sed
9396 # This sed command replaces #undef with comments. This is necessary, for
9397 # example, in the case of _POSIX_SOURCE, which is predefined and required
9398 # on some systems where configure will not decide to define it.
9399 cat >>conftest.undefs <<\_ACEOF
9400 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9403 # Break up conftest.defines because some shells have a limit on the size
9404 # of here documents, and old seds have small limits too (100 cmds).
9405 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9406 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9407 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9408 echo ' :' >>$CONFIG_STATUS
9410 while grep . conftest.defines >/dev/null
9412 # Write a limited-size here document to $tmp/defines.sed.
9413 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9414 # Speed up: don't consider the non `#define' lines.
9415 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9416 # Work around the forget-to-reset-the-flag bug.
9417 echo 't clr' >>$CONFIG_STATUS
9418 echo ': clr' >>$CONFIG_STATUS
9419 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9421 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9425 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9426 rm -f conftest.defines
9427 mv conftest.
tail conftest.defines
9429 rm -f conftest.defines
9430 echo ' fi # egrep' >>$CONFIG_STATUS
9431 echo >>$CONFIG_STATUS
9433 # Break up conftest.undefs because some shells have a limit on the size
9434 # of here documents, and old seds have small limits too (100 cmds).
9435 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9437 while grep . conftest.undefs
>/dev
/null
9439 # Write a limited-size here document to $tmp/undefs.sed.
9440 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9441 # Speed up: don't consider the non
`#undef'
9442 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9443 # Work around the forget-to-reset-the-flag bug.
9444 echo 't clr' >>$CONFIG_STATUS
9445 echo ': clr' >>$CONFIG_STATUS
9446 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9448 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9452 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9453 rm -f conftest.undefs
9454 mv conftest.tail conftest.undefs
9456 rm -f conftest.undefs
9458 cat >>$CONFIG_STATUS <<\_ACEOF
9459 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9460 # use $as_me), people would be surprised to read:
9461 # /* config.h. Generated by config.status. */
9462 if test x
"$ac_file" = x
-; then
9463 echo "/* Generated by configure. */" >$tmp/config.h
9465 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9467 cat $tmp/in >>$tmp/config.h
9469 if test x
"$ac_file" != x
-; then
9470 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9471 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9472 echo "$as_me: $ac_file is unchanged" >&6;}
9474 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9476 X"$ac_file" : 'X\(//\)[^/]' \| \
9477 X"$ac_file" : 'X\(//\)$' \| \
9478 X"$ac_file" : 'X\(/\)' \| \
9479 . : '\(.\)' 2>/dev/null ||
9481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9483 /^X\(\/\/\)$/{ s//\1/; q; }
9484 /^X\(\/\).*/{ s//\1/; q; }
9487 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9491 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9492 case $as_mkdir_dir in
9493 # Skip DOS drivespec
9494 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9496 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9497 test -d "$as_incr_dir" ||
9498 mkdir "$as_incr_dir" ||
9499 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9500 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9501 { (exit 1); exit 1; }; }
9507 mv $tmp/config.h
$ac_file
9513 # Run the commands associated with the file.
9515 config.h
) # update the timestamp
9516 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
9521 cat >>$CONFIG_STATUS <<\_ACEOF
9524 # CONFIG_COMMANDS section.
9526 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9527 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9528 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9529 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9530 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9531 X"$ac_dest" : 'X\(//\)[^/]' \| \
9532 X"$ac_dest" : 'X\(//\)$' \| \
9533 X"$ac_dest" : 'X\(/\)' \| \
9534 . : '\(.\)' 2>/dev/null ||
9536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9538 /^X\(\/\/\)$/{ s//\1/; q; }
9539 /^X\(\/\).*/{ s//\1/; q; }
9543 if test "$ac_dir" != .
; then
9544 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9545 # A "../" for each directory in $ac_dir_suffix.
9546 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9548 ac_dir_suffix
= ac_top_builddir
=
9552 .
) # No --srcdir option. We are building in place.
9554 if test -z "$ac_top_builddir"; then
9557 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9559 [\\/]* | ?
:[\\/]* ) # Absolute path.
9560 ac_srcdir
=$srcdir$ac_dir_suffix;
9561 ac_top_srcdir
=$srcdir ;;
9563 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9564 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9566 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9568 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9569 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9570 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9571 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9574 echo "$as_me: executing $ac_dest commands" >&6;}
9576 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9577 # Signature of the current package.
9578 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9579 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9580 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9581 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9582 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9585 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9586 # Configurable variable values for building test suites.
9588 # Copyright 2000, 2001 Free Software Foundation, Inc.
9591 buildpath='$ac_buildpath'
9593 srcpath='$ac_srcpath'
9594 top_srcdir='$ac_top_srcdir'
9595 top_srcpath='$ac_top_srcpath'
9596 top_builddir='$ac_top_builddir'
9597 top_buildpath='$ac_top_buildpath'
9599 AUTOTEST_PATH='tests'
9601 SHELL=\${CONFIG_SHELL-'$SHELL'}
9604 depfiles
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
9606 Makefile
) dirpart
=.
;;
9607 */Makefile
) dirpart
=`(dirname "$mf") 2>/dev/null ||
9608 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9609 X"$mf" : 'X\(//\)[^/]' \| \
9610 X"$mf" : 'X\(//\)$' \| \
9611 X"$mf" : 'X\(/\)' \| \
9612 . : '\(.\)' 2>/dev/null ||
9614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9616 /^X\(\/\/\)$/{ s//\1/; q; }
9617 /^X\(\/\).*/{ s//\1/; q; }
9621 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9622 # Extract the definition of DEP_FILES from the Makefile without
9624 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9625 test -z "$DEPDIR" && continue
9626 # When using ansi2knr, U may be empty or an underscore; expand it
9627 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9628 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9629 # We invoke sed twice because it is the simplest approach to
9630 # changing $(DEPDIR) to its actual value in the expansion.
9631 for file in `sed -n -e '
9632 /^DEP_FILES = .*\\\\$/ {
9641 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9642 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9643 # Make sure the directory exists.
9644 test -f "$dirpart/$file" && continue
9645 fdir
=`(dirname "$file") 2>/dev/null ||
9646 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9647 X"$file" : 'X\(//\)[^/]' \| \
9648 X"$file" : 'X\(//\)$' \| \
9649 X"$file" : 'X\(/\)' \| \
9650 . : '\(.\)' 2>/dev/null ||
9652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9654 /^X\(\/\/\)$/{ s//\1/; q; }
9655 /^X\(\/\).*/{ s//\1/; q; }
9657 { case $dirpart/$fdir in
9658 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9661 as_dummy
=$dirpart/$fdir
9662 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9663 case $as_mkdir_dir in
9664 # Skip DOS drivespec
9665 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9667 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9668 test -d "$as_incr_dir" ||
9669 mkdir "$as_incr_dir" ||
9670 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
9671 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
9672 { (exit 1); exit 1; }; }
9677 # echo "creating $dirpart/$file"
9678 echo '# dummy' > "$dirpart/$file"
9682 default
-1 ) for ac_file
in $CONFIG_FILES; do
9683 # Support "outfile[:infile[:infile...]]"
9685 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9687 # PO directories have a Makefile.in generated from Makefile.in.in.
9688 case "$ac_file" in */Makefile.
in)
9689 # Adjust a relative srcdir.
9690 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9691 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9692 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9693 # In autoconf-2.13 it is called $ac_given_srcdir.
9694 # In autoconf-2.50 it is called $srcdir.
9695 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9696 case "$ac_given_srcdir" in
9697 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9698 /*) top_srcdir
="$ac_given_srcdir" ;;
9699 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9701 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9702 rm -f "$ac_dir/POTFILES"
9703 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9704 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9705 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9706 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9715 cat >>$CONFIG_STATUS <<\_ACEOF
9717 { (exit 0); exit 0; }
9719 chmod +x
$CONFIG_STATUS
9720 ac_clean_files
=$ac_clean_files_save
9722 # configure is writing to config.log, and then calls config.status.
9723 # config.status does its own redirection, appending to config.log.
9724 # Unfortunately, on DOS this fails, as config.log is still kept open
9725 # by configure, so config.status won't be able to write to it; its
9726 # output is simply discarded. So we exec the FD to /dev/null,
9727 # effectively closing config.log, so it can be properly (re)opened and
9728 # appended to by config.status. When coming back to configure, we
9729 # need to make the FD available again.
9730 if test "$no_create" != yes; then
9733 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9736 # would make configure fail if this is the last instruction.
9737 $ac_cs_success || { (exit 1); exit 1; }