2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.52e for GNU Bison 1.29c.
5 # Report bugs to <bug-bison@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Name of the executable.
25 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
27 # If LINENO is not supported by the shell, produce a version of this
28 # script where LINENO is hard coded. Rewrite if not up to date only.
29 # Comparing LINENO against _oline_ is not a good solution, since in
30 # the case of embedded executables (such as config.status within
31 # configure) you'd compare LINENO wrt config.status vs. _oline_ vs
32 # configure. Hence a useless rewrite (not to mention the risk of
33 # ``infinite'' rewrites. Merely check that LINENO is incremented
34 # between two lines, which is a property guaranteed for _oline_, hence
35 # it protects us from repetitive rewrites. Be sure to have a test
36 # that does detect non LINENO support...
39 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
40 if test "x$as_lineno_1" = "x$as_lineno_2" ||
41 test "x$as_lineno_3" != "x$as_lineno_2";
45 *[\\/]* | ?:[\\/]* ) as_myself=$0 ;;
46 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50 test -z "$as_dir" && as_dir=.
51 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56 if test ! -f $as_myself; then
57 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
58 { (exit 1); exit 1; }; }
60 if test ! -f $as_me.lineno ||
61 test x`ls -1dt $as_me.lineno
$as_myself 2>/dev
/null
| sed 1q
` \
62 != x$as_me.lineno; then
63 # Be sure to write the pattern so that it doesn't replace itself:
64 # it must not match itself.
67 while (sub (/[$]LINENO/, NR))
70 }' <$as_myself >$as_me.lineno
71 chmod +x $as_me.lineno
73 exec ${SHELL-/bin/sh} ./$as_me.lineno ${1+"$@"}
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 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
84 *c*,-n*) ECHO_N= ECHO_C='
86 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
87 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
90 if expr a : '\(a\)' >/dev/null 2>&1; then
96 rm -f conf$$ conf$$.exe conf$$.file
98 if ln -s conf$$.file conf$$ 2>/dev/null; then
99 # We could just check for DJGPP; but this test a) works b) is more generic
100 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
101 if test -f conf$$.exe; then
102 # Don't use ln at all; we don't have any links
107 elif ln conf$$.file conf$$ 2>/dev/null; then
112 rm -f conf$$ conf$$.exe conf$$.file
114 # The user is always right.
115 if test "${PATH_SEPARATOR+set}" != set; then
116 echo "#! $SHELL" >conftest.sh
117 echo "exit 0" >>conftest.sh
119 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
127 as_executable_p="test -f"
129 # Sed expression to map a string onto a valid CPP name.
130 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
132 # Sed expression to map a string onto a valid variable name.
133 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
135 # Support unset when possible.
136 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
143 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
144 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
145 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
146 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
147 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
148 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
149 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
150 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
153 # We need space, tab and new line, in precisely that order.
159 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
162 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
163 # so uname gets run too.
164 ac_hostname=`(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
171 ac_default_prefix=/usr/local
176 SHELL=${CONFIG_SHELL-/bin/sh}
178 # Maximum number of lines to put in a shell here document.
179 # This variable seems obsolete. It should probably be removed, and
180 # only ac_max_sed_lines should be used.
181 : ${ac_max_here_lines=38}
183 # Factoring default headers for most tests.
184 ac_includes_default="\
187 # include <sys/types.h>
190 # include <sys/stat.h>
201 # if !STDC_HEADERS && HAVE_MEMORY_H
207 # include <strings.h>
210 # include <inttypes.h>
220 # Initialize some variables set by options.
222 ac_init_version=false
223 # The variables have the same names as the options, with
224 # dashes changed to underlines.
232 program_transform_name=s,x,x,
240 # Installation directory options.
241 # These are left unexpanded so users can "make install exec_prefix=/foo"
242 # and all the variables that are supposed to be based on exec_prefix
243 # by default will actually change.
244 # Use braces instead of parens because sh, perl, etc. also accept them.
245 bindir='${exec_prefix}/bin'
246 sbindir='${exec_prefix}/sbin'
247 libexecdir='${exec_prefix}/libexec'
248 datadir='${prefix}/share'
249 sysconfdir='${prefix}/etc'
250 sharedstatedir='${prefix}/com'
251 localstatedir='${prefix}/var'
252 libdir='${exec_prefix}/lib'
253 includedir='${prefix}/include'
254 oldincludedir='/usr/include'
255 infodir='${prefix}/info'
256 mandir='${prefix}/man'
258 # Identity of this package.
259 PACKAGE_NAME='GNU Bison'
260 PACKAGE_TARNAME='bison'
261 PACKAGE_VERSION='1.29c'
262 PACKAGE_STRING='GNU Bison 1.29c'
263 PACKAGE_BUGREPORT='bug-bison@gnu.org'
268 # If the previous option needs an argument, assign it.
269 if test -n "$ac_prev"; then
270 eval "$ac_prev=\$ac_option"
275 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
277 # Accept the important Cygnus configure options, so we can diagnose typos.
281 -bindir | --bindir | --bindi | --bind | --bin | --bi)
283 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
286 -build | --build | --buil | --bui | --bu)
287 ac_prev=build_alias ;;
288 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
289 build_alias=$ac_optarg ;;
291 -cache-file | --cache-file | --cache-fil | --cache-fi \
292 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
293 ac_prev=cache_file ;;
294 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
295 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
296 cache_file=$ac_optarg ;;
299 cache_file=config.cache ;;
301 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
303 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
305 datadir=$ac_optarg ;;
307 -disable-* | --disable-*)
308 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
309 # Reject names that are not valid shell variable names.
310 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
311 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
312 { (exit 1); exit 1; }; }
313 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
314 eval "enable_$ac_feature=no" ;;
316 -enable-* | --enable-*)
317 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
318 # Reject names that are not valid shell variable names.
319 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
320 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
321 { (exit 1); exit 1; }; }
322 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
324 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
327 eval "enable_$ac_feature='$ac_optarg'" ;;
329 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
330 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
331 | --exec | --exe | --ex)
332 ac_prev=exec_prefix ;;
333 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
334 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
335 | --exec=* | --exe=* | --ex=*)
336 exec_prefix=$ac_optarg ;;
338 -gas | --gas | --ga | --g)
339 # Obsolete; use --with-gas.
342 -help | --help | --hel | --he | -h)
344 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
345 ac_init_help=recursive ;;
346 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
347 ac_init_help=short ;;
349 -host | --host | --hos | --ho)
350 ac_prev=host_alias ;;
351 -host=* | --host=* | --hos=* | --ho=*)
352 host_alias=$ac_optarg ;;
354 -includedir | --includedir | --includedi | --included | --include \
355 | --includ | --inclu | --incl | --inc)
356 ac_prev=includedir ;;
357 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
358 | --includ=* | --inclu=* | --incl=* | --inc=*)
359 includedir=$ac_optarg ;;
361 -infodir | --infodir | --infodi | --infod | --info | --inf)
363 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
364 infodir=$ac_optarg ;;
366 -libdir | --libdir | --libdi | --libd)
368 -libdir=* | --libdir=* | --libdi=* | --libd=*)
371 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
372 | --libexe | --libex | --libe)
373 ac_prev=libexecdir ;;
374 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
375 | --libexe=* | --libex=* | --libe=*)
376 libexecdir=$ac_optarg ;;
378 -localstatedir | --localstatedir | --localstatedi | --localstated \
379 | --localstate | --localstat | --localsta | --localst \
380 | --locals | --local | --loca | --loc | --lo)
381 ac_prev=localstatedir ;;
382 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
383 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
384 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
385 localstatedir=$ac_optarg ;;
387 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
389 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
393 # Obsolete; use --without-fp.
396 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
400 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
401 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
404 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
405 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
406 | --oldin | --oldi | --old | --ol | --o)
407 ac_prev=oldincludedir ;;
408 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
409 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
410 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
411 oldincludedir=$ac_optarg ;;
413 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
415 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
418 -program-prefix | --program-prefix | --program-prefi | --program-pref \
419 | --program-pre | --program-pr | --program-p)
420 ac_prev=program_prefix ;;
421 -program-prefix=* | --program-prefix=* | --program-prefi=* \
422 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
423 program_prefix=$ac_optarg ;;
425 -program-suffix | --program-suffix | --program-suffi | --program-suff \
426 | --program-suf | --program-su | --program-s)
427 ac_prev=program_suffix ;;
428 -program-suffix=* | --program-suffix=* | --program-suffi=* \
429 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
430 program_suffix=$ac_optarg ;;
432 -program-transform-name | --program-transform-name \
433 | --program-transform-nam | --program-transform-na \
434 | --program-transform-n | --program-transform- \
435 | --program-transform | --program-transfor \
436 | --program-transfo | --program-transf \
437 | --program-trans | --program-tran \
438 | --progr-tra | --program-tr | --program-t)
439 ac_prev=program_transform_name ;;
440 -program-transform-name=* | --program-transform-name=* \
441 | --program-transform-nam=* | --program-transform-na=* \
442 | --program-transform-n=* | --program-transform-=* \
443 | --program-transform=* | --program-transfor=* \
444 | --program-transfo=* | --program-transf=* \
445 | --program-trans=* | --program-tran=* \
446 | --progr-tra=* | --program-tr=* | --program-t=*)
447 program_transform_name=$ac_optarg ;;
449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
450 | -silent | --silent | --silen | --sile | --sil)
453 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
455 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
457 sbindir=$ac_optarg ;;
459 -sharedstatedir | --sharedstatedir | --sharedstatedi \
460 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
461 | --sharedst | --shareds | --shared | --share | --shar \
463 ac_prev=sharedstatedir ;;
464 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
465 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
466 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
468 sharedstatedir=$ac_optarg ;;
470 -site | --site | --sit)
472 -site=* | --site=* | --sit=*)
475 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
477 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
480 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
481 | --syscon | --sysco | --sysc | --sys | --sy)
482 ac_prev=sysconfdir ;;
483 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
484 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
485 sysconfdir=$ac_optarg ;;
487 -target | --target | --targe | --targ | --tar | --ta | --t)
488 ac_prev=target_alias ;;
489 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
490 target_alias=$ac_optarg ;;
492 -v | -verbose | --verbose | --verbos | --verbo | --verb)
495 -version | --version | --versio | --versi | --vers | -V)
499 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
500 # Reject names that are not valid shell variable names.
501 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
502 { echo "$as_me: error: invalid package name: $ac_package" >&2
503 { (exit 1); exit 1; }; }
504 ac_package=`echo $ac_package| sed 's/-/_/g'`
506 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
509 eval "with_$ac_package='$ac_optarg'" ;;
511 -without-* | --without-*)
512 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
513 # Reject names that are not valid shell variable names.
514 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
515 { echo "$as_me: error: invalid package name: $ac_package" >&2
516 { (exit 1); exit 1; }; }
517 ac_package=`echo $ac_package | sed 's/-/_/g'`
518 eval "with_$ac_package=no" ;;
521 # Obsolete; use --with-x.
524 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
525 | --x-incl | --x-inc | --x-in | --x-i)
526 ac_prev=x_includes ;;
527 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
528 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
529 x_includes=$ac_optarg ;;
531 -x-libraries | --x-libraries | --x-librarie | --x-librari \
532 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
533 ac_prev=x_libraries ;;
534 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
535 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
536 x_libraries=$ac_optarg ;;
538 -*) { echo "$as_me: error: unrecognized option: $ac_option
539 Try \`$0 --help' for more information." >&2
540 { (exit 1); exit 1; }; }
544 ac_envvar=`expr "x$ac_option" : 'x\
([^
=]*\
)='`
545 # Reject names that are not valid shell variable names.
546 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
548 { (exit 1); exit 1; }; }
549 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
550 eval "$ac_envvar='$ac_optarg'"
554 # FIXME: should be removed in autoconf 3.0.
555 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
556 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
557 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
558 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
564 if test -n "$ac_prev"; then
565 ac_option=--`echo $ac_prev | sed 's
/_
/-/g
'`
566 { echo "$as_me: error: missing argument to $ac_option" >&2
567 { (exit 1); exit 1; }; }
570 # Be sure to have absolute paths.
571 for ac_var in exec_prefix prefix
573 eval ac_val=$`echo $ac_var`
575 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
576 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
577 { (exit 1); exit 1; }; };;
581 # Be sure to have absolute paths.
582 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
583 localstatedir libdir includedir oldincludedir infodir mandir
585 eval ac_val=$`echo $ac_var`
587 [\\/$]* | ?:[\\/]* ) ;;
588 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
589 { (exit 1); exit 1; }; };;
593 # There might be people who depend on the old broken behavior: `$host'
594 # used to hold the argument of --host etc.
599 # FIXME: should be removed in autoconf 3.0.
600 if test "x$host_alias" != x
; then
601 if test "x$build_alias" = x
; then
602 cross_compiling
=maybe
603 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
604 If a cross compiler is detected then cross compile mode will be used." >&2
605 elif test "x$build_alias" != "x$host_alias"; then
611 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
613 test "$silent" = yes && exec 6>/dev
/null
615 # Find the source files, if location was not specified.
616 if test -z "$srcdir"; then
617 ac_srcdir_defaulted
=yes
618 # Try the directory containing this script, then its parent.
620 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
621 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
623 if test ! -r $srcdir/$ac_unique_file; then
627 ac_srcdir_defaulted
=no
629 if test ! -r $srcdir/$ac_unique_file; then
630 if test "$ac_srcdir_defaulted" = yes; then
631 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
632 { (exit 1); exit 1; }; }
634 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
635 { (exit 1); exit 1; }; }
638 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
639 ac_env_build_alias_set
=${build_alias+set}
640 ac_env_build_alias_value
=$build_alias
641 ac_cv_env_build_alias_set
=${build_alias+set}
642 ac_cv_env_build_alias_value
=$build_alias
643 ac_env_host_alias_set
=${host_alias+set}
644 ac_env_host_alias_value
=$host_alias
645 ac_cv_env_host_alias_set
=${host_alias+set}
646 ac_cv_env_host_alias_value
=$host_alias
647 ac_env_target_alias_set
=${target_alias+set}
648 ac_env_target_alias_value
=$target_alias
649 ac_cv_env_target_alias_set
=${target_alias+set}
650 ac_cv_env_target_alias_value
=$target_alias
651 ac_env_CC_set
=${CC+set}
653 ac_cv_env_CC_set
=${CC+set}
654 ac_cv_env_CC_value
=$CC
655 ac_env_CFLAGS_set
=${CFLAGS+set}
656 ac_env_CFLAGS_value
=$CFLAGS
657 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
658 ac_cv_env_CFLAGS_value
=$CFLAGS
659 ac_env_LDFLAGS_set
=${LDFLAGS+set}
660 ac_env_LDFLAGS_value
=$LDFLAGS
661 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
662 ac_cv_env_LDFLAGS_value
=$LDFLAGS
663 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
664 ac_env_CPPFLAGS_value
=$CPPFLAGS
665 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
666 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
667 ac_env_CPP_set
=${CPP+set}
668 ac_env_CPP_value
=$CPP
669 ac_cv_env_CPP_set
=${CPP+set}
670 ac_cv_env_CPP_value
=$CPP
673 # Report the --help message.
675 if test "$ac_init_help" = "long"; then
676 # Omit some internal or obsolete options to make the list less imposing.
677 # This message is too long to be a string in the A/UX 3.1 sh.
679 \`configure' configures GNU Bison 1.29c to adapt to many kinds of systems.
681 Usage: $0 [OPTION]... [VAR=VALUE]...
683 To assign environment variables (e.g., CC, CFLAGS...), specify them as
684 VAR=VALUE. See below for descriptions of some of the useful variables.
686 Defaults for the options are specified in brackets.
689 -h, --help display this help and exit
690 --help=short display options specific to this package
691 --help=recursive display the short help of all the included packages
692 -V, --version display version information and exit
693 -q, --quiet, --silent do not print \`checking...' messages
694 --cache-file=FILE cache test results in FILE [disabled]
695 -C, --config-cache alias for \`--cache-file=config.cache'
696 -n, --no-create do not create output files
697 --srcdir=DIR find the sources in DIR [configure dir or \`..']
702 Installation directories:
703 --prefix=PREFIX install architecture-independent files in PREFIX
705 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
708 By default, \`make install' will install all the files in
709 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
710 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
711 for instance \`--prefix=\$HOME'.
713 For better control, use the options below.
715 Fine tuning of the installation directories:
716 --bindir=DIR user executables [EPREFIX/bin]
717 --sbindir=DIR system admin executables [EPREFIX/sbin]
718 --libexecdir=DIR program executables [EPREFIX/libexec]
719 --datadir=DIR read-only architecture-independent data [PREFIX/share]
720 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
721 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
722 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
723 --libdir=DIR object code libraries [EPREFIX/lib]
724 --includedir=DIR C header files [PREFIX/include]
725 --oldincludedir=DIR C header files for non-gcc [/usr/include]
726 --infodir=DIR info documentation [PREFIX/info]
727 --mandir=DIR man documentation [PREFIX/man]
733 --program-prefix=PREFIX prepend PREFIX to installed program names
734 --program-suffix=SUFFIX append SUFFIX to installed program names
735 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
738 --build=BUILD configure
for building on BUILD
[guessed
]
739 --host=HOST build programs to run on HOST
[BUILD
]
743 if test -n "$ac_init_help"; then
744 case $ac_init_help in
745 short
| recursive
) echo "Configuration of GNU Bison 1.29c:";;
750 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
751 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
752 --disable-dependency-tracking Speeds up one
-time builds
753 --enable-dependency-tracking Do not reject slow dependency extractors
754 --enable-gcc-warnings turn on lots of GCC warnings
(not recommended
)
755 --disable-nls do not use Native Language Support
758 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
759 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
760 --with-dmalloc use dmalloc
, as
in
761 http
://www.dmalloc.com
/dmalloc.
tar.gz
762 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
763 --with-included-gettext use the GNU
gettext library included here
765 Some influential environment variables
:
766 CC C compiler
command
767 CFLAGS C compiler flags
768 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
769 nonstandard directory
<lib dir
>
770 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
771 headers
in a nonstandard directory
<include dir
>
774 Use these variables to override the choices made by
`configure' or to help
775 it to find libraries and programs with nonstandard names/locations.
777 Report bugs to <bug-bison@gnu.org>.
781 if test "$ac_init_help" = "recursive"; then
782 # If there are subdirs, report their specific --help.
784 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
785 test -d $ac_dir || continue
788 if test "$ac_dir" != .; then
789 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
790 # A "../" for each directory in $ac_dir_suffix.
791 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
793 ac_dir_suffix= ac_top_builddir=
797 .) # No --srcdir option. We are building in place.
799 if test -z "$ac_top_builddir"; then
802 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
804 [\\/]* | ?:[\\/]* ) # Absolute path.
805 ac_srcdir=$srcdir$ac_dir_suffix;
806 ac_top_srcdir=$srcdir ;;
808 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
809 ac_top_srcdir=$ac_top_builddir$srcdir ;;
811 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
813 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
814 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
815 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
816 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
819 # Check for guested configure; otherwise get Cygnus style configure.
820 if test -f $ac_srcdir/configure.gnu; then
822 $SHELL $ac_srcdir/configure.gnu --help=recursive
823 elif test -f $ac_srcdir/configure; then
825 $SHELL $ac_srcdir/configure --help=recursive
826 elif test -f $ac_srcdir/configure.ac ||
827 test -f $ac_srcdir/configure.in; then
831 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
837 test -n "$ac_init_help" && exit 0
838 if $ac_init_version; then
840 GNU Bison configure 1.29c
841 generated by GNU Autoconf 2.52e
843 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
844 Free Software Foundation, Inc.
845 This configure script is free software; the Free Software Foundation
846 gives unlimited permission to copy, distribute and modify it.
852 This file contains any messages produced by compilers while
853 running configure, to aid debugging if configure makes a mistake.
855 It was created by GNU Bison $as_me 1.29c, which was
856 generated by GNU Autoconf 2.52e. Invocation command line was
867 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
868 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
869 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
870 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
871 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
873 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
874 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
876 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
877 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
878 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
879 hostinfo = `(hostinfo
) 2>/dev
/null
|| echo unknown
`
880 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
881 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
882 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
890 test -z "$as_dir" && as_dir=.
904 # Keep a trace of the command line.
905 # Strip out --no-create and --no-recursion so they do not pile up.
906 # Also quote any args containing shell meta-characters.
912 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
913 | --no-cr | --no-c) ;;
914 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
915 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
916 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
917 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
918 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
920 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
923 # Get rid of the leading space.
926 # When interrupted or exit'd, cleanup temporary files, and complete
927 # config.log. We remove comments because anyway the quotes in there
928 # would cause problems or look ugly.
929 # WARNING: Be sure not to use single quotes in there, as some shells,
930 # such as our DU 5.0 friend, will then `close
' the trap.
932 # Save into config.log some information that might help in debugging.
936 ## ---------------- ##
937 ## Cache variables. ##
938 ## ---------------- ##
941 # The following way of writing the cache mishandles newlines in values,
944 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
947 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
952 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
957 if test -s confdefs.h
; then
964 sed "/^$/d" confdefs.h
967 test "$ac_signal" != 0 &&
968 echo "$as_me: caught signal $ac_signal"
969 echo "$as_me: exit $exit_status"
971 rm -rf conftest
* confdefs
* core core.
* *.core conf$$
* $ac_clean_files &&
974 for ac_signal in 1 2 13 15; do
975 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
979 # confdefs.h avoids OS command line length limits that DEFS can exceed.
980 rm -rf conftest* confdefs.h
981 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
984 # Let the site file select an alternate cache file if it wants to.
985 # Prefer explicitly selected file to automatically selected ones.
986 if test -z "$CONFIG_SITE"; then
987 if test "x$prefix" != xNONE; then
988 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
990 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
993 for ac_site_file in $CONFIG_SITE; do
994 if test -r "$ac_site_file"; then
995 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
996 echo "$as_me: loading site script $ac_site_file" >&6;}
997 sed 's
/^
/| /' "$ac_site_file" >&5
1002 if test -r "$cache_file"; then
1003 # Some versions of bash will fail to source /dev/null (special
1004 # files actually), so we avoid doing that.
1005 if test -f "$cache_file"; then
1006 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1007 echo "$as_me: loading cache $cache_file" >&6;}
1009 [\\/]* | ?:[\\/]* ) . $cache_file;;
1010 *) . ./$cache_file;;
1014 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1015 echo "$as_me: creating cache $cache_file" >&6;}
1019 # Check that the precious variables saved in the cache have kept the same
1021 ac_cache_corrupted=false
1022 for ac_var in `(set) 2>&1 |
1023 sed -n 's
/^ac_env_\
([a
-zA-Z_0-9]*\
)_set
=.
*/\
1/p
'`; do
1024 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1025 eval ac_new_set=\$ac_env_${ac_var}_set
1026 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1027 eval ac_new_val="\$ac_env_${ac_var}_value"
1028 case $ac_old_set,$ac_new_set in
1030 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1031 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1032 ac_cache_corrupted=: ;;
1034 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1035 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1036 ac_cache_corrupted=: ;;
1039 if test "x$ac_old_val" != "x$ac_new_val"; then
1040 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1041 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1042 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1043 echo "$as_me: former value: $ac_old_val" >&2;}
1044 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1045 echo "$as_me: current value: $ac_new_val" >&2;}
1046 ac_cache_corrupted=:
1049 # Pass precious variables to config.status. It doesn't matter if
1050 # we pass some twice (in addition to the command line arguments).
1051 if test "$ac_new_set" = set; then
1053 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1055 ac_configure_args="$ac_configure_args '$ac_arg'"
1057 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1062 if $ac_cache_corrupted; then
1063 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1064 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1065 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1066 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1067 { (exit 1); exit 1; }; }
1071 ac_cpp='$CPP $CPPFLAGS'
1072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1073 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1077 for ac_dir in config $srcdir/config; do
1078 if test -f $ac_dir/install-sh; then
1080 ac_install_sh="$ac_aux_dir/install-sh -c"
1082 elif test -f $ac_dir/install.sh; then
1084 ac_install_sh="$ac_aux_dir/install.sh -c"
1086 elif test -f $ac_dir/shtool; then
1088 ac_install_sh="$ac_aux_dir/shtool install -c"
1092 if test -z "$ac_aux_dir"; then
1093 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1094 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1095 { (exit 1); exit 1; }; }
1097 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1098 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1099 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1101 # Find a good install program. We prefer a C program (faster),
1102 # so one script is as good as another. But avoid the broken or
1103 # incompatible versions:
1104 # SysV /etc/install, /usr/sbin/install
1105 # SunOS /usr/etc/install
1106 # IRIX /sbin/install
1108 # AmigaOS /C/install, which installs bootblocks on floppy discs
1109 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1112 # ./install, which can be erroneously created by make from ./install.sh.
1113 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
1114 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1115 if test -z "$INSTALL"; then
1116 if test "${ac_cv_path_install+set}" = set; then
1117 echo $ECHO_N "(cached) $ECHO_C" >&6
1119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1123 test -z "$as_dir" && as_dir
=.
1124 # Account for people who put trailing slashes in PATH elements.
1126 .
/ | .
// | /cC
/* | \
1127 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
1130 # OSF1 and SCO ODT 3.0 have their own names for install.
1131 # Don't use installbsd from OSF since it installs stuff as root
1133 for ac_prog
in ginstall scoinst
install; do
1134 for ac_exec_ext
in '' $ac_executable_extensions; do
1135 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1136 if test $ac_prog = install &&
1137 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1138 # AIX install. It has an incompatible calling convention.
1140 elif test $ac_prog = install &&
1141 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1142 # program-specific install script used by HP pwplus--don't use.
1145 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1156 if test "${ac_cv_path_install+set}" = set; then
1157 INSTALL
=$ac_cv_path_install
1159 # As a last resort, use the slow shell script. We don't cache a
1160 # path for INSTALL within a source directory, because that will
1161 # break other packages using the cache if that directory is
1162 # removed, or if the path is relative.
1163 INSTALL
=$ac_install_sh
1166 echo "$as_me:$LINENO: result: $INSTALL" >&5
1167 echo "${ECHO_T}$INSTALL" >&6
1169 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1170 # It thinks the first close brace ends the variable substitution.
1171 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1173 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1175 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1177 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1178 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1181 echo timestamp
> conftest.
file
1182 # Do `set' in a subshell so we don't clobber the current shell's
1183 # arguments. Must try -L first in case configure is actually a
1184 # symlink; some systems play weird games with the mod time of symlinks
1185 # (eg FreeBSD returns the mod time of the symlink's containing
1188 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1189 if test "$*" = "X"; then
1191 set X
`ls -t $srcdir/configure conftest.file`
1194 if test "$*" != "X $srcdir/configure conftest.file" \
1195 && test "$*" != "X conftest.file $srcdir/configure"; then
1197 # If neither matched, then we have a broken ls. This can happen
1198 # if, for instance, CONFIG_SHELL is bash and it inherits a
1199 # broken ls alias from the environment. This has actually
1200 # happened. Such a system could not be considered "sane".
1201 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1202 alias in your environment" >&5
1203 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1204 alias in your environment" >&2;}
1205 { (exit 1); exit 1; }; }
1208 test "$2" = conftest.
file
1214 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1215 Check your system clock" >&5
1216 echo "$as_me: error: newly created file is older than distributed files!
1217 Check your system clock" >&2;}
1218 { (exit 1); exit 1; }; }
1220 echo "$as_me:$LINENO: result: yes" >&5
1221 echo "${ECHO_T}yes" >&6
1222 test "$program_prefix" != NONE
&&
1223 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1224 # Use a double $ so make ignores it.
1225 test "$program_suffix" != NONE
&&
1226 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1227 # Double any \ or $. echo might interpret backslashes.
1228 # By default was `s,x,x', remove it if useless.
1229 cat <<\_ACEOF
>conftest.
sed
1230 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1232 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1235 # expand $ac_aux_dir to an absolute path
1236 am_aux_dir
=`CDPATH=:; cd $ac_aux_dir && pwd`
1238 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1239 # Use eval to expand $SHELL
1240 if eval "$MISSING --run true"; then
1241 am_missing_run
="$MISSING --run "
1245 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1246 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1249 for ac_prog
in mawk gawk nawk
awk
1251 # Extract the first word of "$ac_prog", so it can be a program name with args.
1252 set dummy
$ac_prog; ac_word
=$2
1253 echo "$as_me:$LINENO: checking for $ac_word" >&5
1254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1255 if test "${ac_cv_prog_AWK+set}" = set; then
1256 echo $ECHO_N "(cached) $ECHO_C" >&6
1258 if test -n "$AWK"; then
1259 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1265 test -z "$as_dir" && as_dir
=.
1266 for ac_exec_ext
in '' $ac_executable_extensions; do
1267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1268 ac_cv_prog_AWK
="$ac_prog"
1269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1278 if test -n "$AWK"; then
1279 echo "$as_me:$LINENO: result: $AWK" >&5
1280 echo "${ECHO_T}$AWK" >&6
1282 echo "$as_me:$LINENO: result: no" >&5
1283 echo "${ECHO_T}no" >&6
1286 test -n "$AWK" && break
1289 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1290 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1291 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1292 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1293 echo $ECHO_N "(cached) $ECHO_C" >&6
1295 cat >conftest.
make <<\_ACEOF
1297 @
echo 'ac_maketemp="${MAKE}"'
1299 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1300 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1301 if test -n "$ac_maketemp"; then
1302 eval ac_cv_prog_make_
${ac_make}_set
=yes
1304 eval ac_cv_prog_make_
${ac_make}_set
=no
1308 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1309 echo "$as_me:$LINENO: result: yes" >&5
1310 echo "${ECHO_T}yes" >&6
1313 echo "$as_me:$LINENO: result: no" >&5
1314 echo "${ECHO_T}no" >&6
1315 SET_MAKE
="MAKE=${MAKE-make}"
1318 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1319 if test "${enable_dependency_tracking+set}" = set; then
1320 enableval
="$enable_dependency_tracking"
1323 if test "x$enable_dependency_tracking" != xno
; then
1324 am_depcomp
="$ac_aux_dir/depcomp"
1328 if test "x$enable_dependency_tracking" != xno; then
1336 rm -f .deps
2>/dev
/null
1337 mkdir .deps
2>/dev
/null
1338 if test -d .deps
; then
1341 # MS-DOS does not allow filenames that begin with a dot.
1344 rmdir .deps
2>/dev
/null
1346 # test to see if srcdir already configured
1347 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1348 test -f $srcdir/config.status
; then
1349 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1350 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1351 { (exit 1); exit 1; }; }
1354 # Define the identity of the package.
1358 cat >>confdefs.h
<<_ACEOF
1359 #define PACKAGE "$PACKAGE"
1362 cat >>confdefs.h
<<_ACEOF
1363 #define VERSION "$VERSION"
1366 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1367 # the ones we care about.
1369 # Autoconf 2.50 always computes EXEEXT. However we need to be
1370 # compatible with 2.13, for now. So we always define EXEEXT, but we
1373 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1374 # requests that it be used. This is a bit dumb.
1377 # Some tools Automake needs.
1379 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1381 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1383 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1385 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1387 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1389 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1391 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1393 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1395 # We need awk for the "check" target. The system "awk" is bad on
1398 ac_config_headers
="$ac_config_headers config.h:config.hin"
1400 # Initialize the test suite.
1401 ac_config_commands
="$ac_config_commands tests/package.m4"
1403 ac_config_commands
="$ac_config_commands tests/atconfig"
1405 if test -f $srcdir/tests
/atlocal.
in; then
1406 ac_config_files
="$ac_config_files tests/atlocal"
1410 # Checks for programs.
1412 ac_cpp
='$CPP $CPPFLAGS'
1413 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1414 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1415 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1416 if test -n "$ac_tool_prefix"; then
1417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1418 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1419 echo "$as_me:$LINENO: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_prog_CC+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 if test -n "$CC"; then
1425 ac_cv_prog_CC
="$CC" # Let the user override the test.
1427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1431 test -z "$as_dir" && as_dir
=.
1432 for ac_exec_ext
in '' $ac_executable_extensions; do
1433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1444 if test -n "$CC"; then
1445 echo "$as_me:$LINENO: result: $CC" >&5
1446 echo "${ECHO_T}$CC" >&6
1448 echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1453 if test -z "$ac_cv_prog_CC"; then
1455 # Extract the first word of "gcc", so it can be a program name with args.
1456 set dummy gcc
; ac_word
=$2
1457 echo "$as_me:$LINENO: checking for $ac_word" >&5
1458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 if test -n "$ac_ct_CC"; then
1463 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1469 test -z "$as_dir" && as_dir
=.
1470 for ac_exec_ext
in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_prog_ac_ct_CC
="gcc"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1482 if test -n "$ac_ct_CC"; then
1483 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1484 echo "${ECHO_T}$ac_ct_CC" >&6
1486 echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1495 if test -z "$CC"; then
1496 if test -n "$ac_tool_prefix"; then
1497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1498 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1499 echo "$as_me:$LINENO: checking for $ac_word" >&5
1500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501 if test "${ac_cv_prog_CC+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 if test -n "$CC"; then
1505 ac_cv_prog_CC
="$CC" # Let the user override the test.
1507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1511 test -z "$as_dir" && as_dir
=.
1512 for ac_exec_ext
in '' $ac_executable_extensions; do
1513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1524 if test -n "$CC"; then
1525 echo "$as_me:$LINENO: result: $CC" >&5
1526 echo "${ECHO_T}$CC" >&6
1528 echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1533 if test -z "$ac_cv_prog_CC"; then
1535 # Extract the first word of "cc", so it can be a program name with args.
1536 set dummy cc
; ac_word
=$2
1537 echo "$as_me:$LINENO: checking for $ac_word" >&5
1538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 if test -n "$ac_ct_CC"; then
1543 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1549 test -z "$as_dir" && as_dir
=.
1550 for ac_exec_ext
in '' $ac_executable_extensions; do
1551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552 ac_cv_prog_ac_ct_CC
="cc"
1553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1562 if test -n "$ac_ct_CC"; then
1563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1564 echo "${ECHO_T}$ac_ct_CC" >&6
1566 echo "$as_me:$LINENO: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1576 if test -z "$CC"; then
1577 # Extract the first word of "cc", so it can be a program name with args.
1578 set dummy cc
; ac_word
=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 if test -n "$CC"; then
1585 ac_cv_prog_CC
="$CC" # Let the user override the test.
1588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1592 test -z "$as_dir" && as_dir
=.
1593 for ac_exec_ext
in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1596 ac_prog_rejected
=yes
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606 if test $ac_prog_rejected = yes; then
1607 # We found a bogon in the path, so make sure we never use it.
1608 set dummy
$ac_cv_prog_CC
1610 if test $# != 0; then
1611 # We chose a different compiler from the bogus one.
1612 # However, it has the same basename, so the bogon will be chosen
1613 # first if we set CC to just the basename; use the full file name.
1615 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1623 if test -n "$CC"; then
1624 echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1632 if test -z "$CC"; then
1633 if test -n "$ac_tool_prefix"; then
1636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1637 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$CC"; then
1644 ac_cv_prog_CC
="$CC" # Let the user override the test.
1646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir
=.
1651 for ac_exec_ext
in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test -n "$CC"; then
1664 echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1671 test -n "$CC" && break
1674 if test -z "$CC"; then
1678 # Extract the first word of "$ac_prog", so it can be a program name with args.
1679 set dummy
$ac_prog; ac_word
=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 if test -n "$ac_ct_CC"; then
1686 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir
=.
1693 for ac_exec_ext
in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_ac_ct_CC
="$ac_prog"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1705 if test -n "$ac_ct_CC"; then
1706 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1707 echo "${ECHO_T}$ac_ct_CC" >&6
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1713 test -n "$ac_ct_CC" && break
1721 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1722 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1723 { (exit 1); exit 1; }; }
1725 # Provide some information about the compiler.
1726 echo "$as_me:$LINENO:" \
1727 "checking for C compiler version" >&5
1728 ac_compiler
=`set X $ac_compile; echo $2`
1729 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1730 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733 (exit $ac_status); }
1734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1735 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738 (exit $ac_status); }
1739 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1740 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743 (exit $ac_status); }
1745 cat >conftest.
$ac_ext <<_ACEOF
1746 #line $LINENO "configure"
1747 #include "confdefs.h"
1749 #ifdef F77_DUMMY_MAIN
1753 int F77_DUMMY_MAIN() { return 1; }
1763 ac_clean_files_save
=$ac_clean_files
1764 ac_clean_files
="$ac_clean_files a.out a.exe"
1765 # Try to create an executable without -o first, disregard a.out.
1766 # It will help us diagnose broken compilers, and finding out an intuition
1768 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1769 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1770 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1771 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1772 (eval $ac_link_default) 2>&5
1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775 (exit $ac_status); }; then
1776 # Find the output, starting from the most likely. This scheme is
1777 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1779 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
1780 ls a.out conftest 2>/dev/null;
1781 ls a.* conftest.* 2>/dev/null`; do
1783 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
) ;;
1784 a.out
) # We found the default executable, but exeext='' is most
1787 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1788 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1795 echo "$as_me: failed program was:" >&5
1796 cat conftest.
$ac_ext >&5
1797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1798 echo "$as_me: error: C compiler cannot create executables" >&2;}
1799 { (exit 77); exit 77; }; }
1802 ac_exeext
=$ac_cv_exeext
1803 echo "$as_me:$LINENO: result: $ac_file" >&5
1804 echo "${ECHO_T}$ac_file" >&6
1806 # Check the compiler produces executables we can run. If not, either
1807 # the compiler is broken, or we cross compile.
1808 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1809 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1810 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1811 # If not cross compiling, check that we can run a simple program.
1812 if test "$cross_compiling" != yes; then
1813 if { ac_try
='./$ac_file'
1814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }; }; then
1821 if test "$cross_compiling" = maybe
; then
1824 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1825 If you meant to cross compile, use \`--host'." >&5
1826 echo "$as_me: error: cannot run C compiled programs.
1827 If you meant to cross compile, use \`--host'." >&2;}
1828 { (exit 1); exit 1; }; }
1832 echo "$as_me:$LINENO: result: yes" >&5
1833 echo "${ECHO_T}yes" >&6
1835 rm -f a.out a.exe conftest
$ac_cv_exeext
1836 ac_clean_files
=$ac_clean_files_save
1837 # Check the compiler produces executables we can run. If not, either
1838 # the compiler is broken, or we cross compile.
1839 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1840 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1841 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1842 echo "${ECHO_T}$cross_compiling" >&6
1844 echo "$as_me:$LINENO: checking for executable suffix" >&5
1845 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1847 (eval $ac_link) 2>&5
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }; then
1851 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1852 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1853 # work properly (i.e., refer to `conftest.exe'), while it won't with
1855 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1857 *.
$ac_ext | *.o
| *.obj
| *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1858 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1865 { { echo "$as_me:$LINENO: error: cannot compute EXEEXT: cannot compile and link" >&5
1866 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1867 { (exit 1); exit 1; }; }
1870 rm -f conftest
$ac_cv_exeext
1871 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1872 echo "${ECHO_T}$ac_cv_exeext" >&6
1874 rm -f conftest.
$ac_ext
1875 EXEEXT
=$ac_cv_exeext
1877 echo "$as_me:$LINENO: checking for object suffix" >&5
1878 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1879 if test "${ac_cv_objext+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 cat >conftest.
$ac_ext <<_ACEOF
1883 #line $LINENO "configure"
1884 #include "confdefs.h"
1886 #ifdef F77_DUMMY_MAIN
1890 int F77_DUMMY_MAIN() { return 1; }
1900 rm -f conftest.o conftest.obj
1901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1902 (eval $ac_compile) 2>&5
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }; then
1906 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1908 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
) ;;
1909 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1914 echo "$as_me: failed program was:" >&5
1915 cat conftest.
$ac_ext >&5
1916 { { echo "$as_me:$LINENO: error: cannot compute OBJEXT: cannot compile" >&5
1917 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1918 { (exit 1); exit 1; }; }
1921 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1923 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1924 echo "${ECHO_T}$ac_cv_objext" >&6
1925 OBJEXT
=$ac_cv_objext
1927 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1928 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1929 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 cat >conftest.
$ac_ext <<_ACEOF
1933 #line $LINENO "configure"
1934 #include "confdefs.h"
1936 #ifdef F77_DUMMY_MAIN
1940 int F77_DUMMY_MAIN() { return 1; }
1953 rm -f conftest.
$ac_objext
1954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1955 (eval $ac_compile) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); } &&
1959 { ac_try
='test -s conftest.$ac_objext'
1960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; }; then
1967 echo "$as_me: failed program was:" >&5
1968 cat conftest.
$ac_ext >&5
1971 rm -f conftest.
$ac_objext conftest.
$ac_ext
1972 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1975 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1976 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1977 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1978 ac_test_CFLAGS
=${CFLAGS+set}
1979 ac_save_CFLAGS
=$CFLAGS
1981 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1982 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1983 if test "${ac_cv_prog_cc_g+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 cat >conftest.
$ac_ext <<_ACEOF
1987 #line $LINENO "configure"
1988 #include "confdefs.h"
1990 #ifdef F77_DUMMY_MAIN
1994 int F77_DUMMY_MAIN() { return 1; }
2004 rm -f conftest.
$ac_objext
2005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006 (eval $ac_compile) 2>&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); } &&
2010 { ac_try
='test -s conftest.$ac_objext'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2018 echo "$as_me: failed program was:" >&5
2019 cat conftest.
$ac_ext >&5
2022 rm -f conftest.
$ac_objext conftest.
$ac_ext
2024 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2025 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2026 if test "$ac_test_CFLAGS" = set; then
2027 CFLAGS
=$ac_save_CFLAGS
2028 elif test $ac_cv_prog_cc_g = yes; then
2029 if test "$GCC" = yes; then
2035 if test "$GCC" = yes; then
2041 # Some people use a C++ compiler to compile C. Since we use `exit',
2042 # in C++ we need to declare it. In case someone uses the same compiler
2043 # for both compiling C and C++ we need to have the C++ compiler decide
2044 # the declaration of exit, since it's the most demanding environment.
2045 cat >conftest.
$ac_ext <<_ACEOF
2050 rm -f conftest.
$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try
='test -s conftest.$ac_objext'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; }; then
2062 for ac_declaration
in \
2064 '#include <stdlib.h>' \
2065 'extern "C" void std::exit (int) throw (); using std::exit;' \
2066 'extern "C" void std::exit (int); using std::exit;' \
2067 'extern "C" void exit (int) throw ();' \
2068 'extern "C" void exit (int);' \
2071 cat >conftest.
$ac_ext <<_ACEOF
2072 #line $LINENO "configure"
2073 #include "confdefs.h"
2076 #ifdef F77_DUMMY_MAIN
2080 int F77_DUMMY_MAIN() { return 1; }
2090 rm -f conftest.
$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); } &&
2096 { ac_try
='test -s conftest.$ac_objext'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2104 echo "$as_me: failed program was:" >&5
2105 cat conftest.
$ac_ext >&5
2108 rm -f conftest.
$ac_objext conftest.
$ac_ext
2109 cat >conftest.
$ac_ext <<_ACEOF
2110 #line $LINENO "configure"
2111 #include "confdefs.h"
2113 #ifdef F77_DUMMY_MAIN
2117 int F77_DUMMY_MAIN() { return 1; }
2127 rm -f conftest.
$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129 (eval $ac_compile) 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); } &&
2133 { ac_try
='test -s conftest.$ac_objext'
2134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; }; then
2141 echo "$as_me: failed program was:" >&5
2142 cat conftest.
$ac_ext >&5
2144 rm -f conftest.
$ac_objext conftest.
$ac_ext
2147 if test -n "$ac_declaration"; then
2148 echo '#ifdef __cplusplus' >>confdefs.h
2149 echo $ac_declaration >>confdefs.h
2150 echo '#endif' >>confdefs.h
2154 echo "$as_me: failed program was:" >&5
2155 cat conftest.
$ac_ext >&5
2157 rm -f conftest.
$ac_objext conftest.
$ac_ext
2159 ac_cpp
='$CPP $CPPFLAGS'
2160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2164 ac_config_commands
="$ac_config_commands default-1"
2166 am_make
=${MAKE-make}
2167 cat > confinc
<< 'END'
2171 # If we don't find an include directive, just comment out the code.
2172 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2173 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2177 # First try GNU make style include.
2178 echo "include confinc" > confmf
2179 # We grep out `Entering directory' and `Leaving directory'
2180 # messages which can occur if `w' ends up in MAKEFLAGS.
2181 # In particular we don't look at `^make:' because GNU make might
2182 # be invoked under some other name (usually "gmake"), in which
2183 # case it prints its new name instead of `make'.
2184 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2189 # Now try BSD make style include.
2190 if test "$am__include" = "#"; then
2191 echo '.include "confinc"' > confmf
2192 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2193 am__include
=.include
2199 echo "$as_me:$LINENO: result: $_am_result" >&5
2200 echo "${ECHO_T}$_am_result" >&6
2201 rm -f confinc confmf
2203 depcc
="$CC" am_compiler_list
=
2205 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2206 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2207 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2211 # We make a subdir and do the tests there. Otherwise we can end up
2212 # making bogus files that we don't know about and never remove. For
2213 # instance it was reported that on HP-UX the gcc test will end up
2214 # making a dummy file named `D' -- because `-MD' means `put the output
2217 # Copy depcomp to subdir because otherwise we won't find it if we're
2218 # using a relative directory.
2219 cp "$am_depcomp" conftest.dir
2222 am_cv_CC_dependencies_compiler_type
=none
2223 if test "$am_compiler_list" = ""; then
2224 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2226 for depmode
in $am_compiler_list; do
2227 # We need to recreate these files for each test, as the compiler may
2228 # overwrite some of them when testing with obscure command lines.
2229 # This happens at least with the AIX C compiler.
2230 echo '#include "conftest.h"' > conftest.c
2231 echo 'int i;' > conftest.h
2232 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2236 # after this tag, mechanisms are not by side-effect, so they'll
2237 # only be used when explicitly requested
2238 if test "x$enable_dependency_tracking" = xyes
; then
2246 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2247 # mode. It turns out that the SunPro C++ compiler does not properly
2248 # handle `-M -o', and we need to detect this.
2249 if depmode
=$depmode \
2250 source=conftest.c object
=conftest.o \
2251 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2252 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2253 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2254 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2255 am_cv_CC_dependencies_compiler_type
=$depmode
2263 am_cv_CC_dependencies_compiler_type
=none
2267 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2268 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2269 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2272 ac_cpp
='$CPP $CPPFLAGS'
2273 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2274 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2275 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2276 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2277 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2278 # On Suns, sometimes $CPP names a directory.
2279 if test -n "$CPP" && test -d "$CPP"; then
2282 if test -z "$CPP"; then
2283 if test "${ac_cv_prog_CPP+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 # Double quotes because CPP needs to be expanded
2287 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2290 for ac_c_preproc_warn_flag
in '' yes
2292 # Use a header file that comes with gcc, so configuring glibc
2293 # with a fresh cross-compiler works.
2294 # On the NeXT, cc -E runs the code through the compiler's parser,
2295 # not just through cpp. "Syntax error" is here to catch this case.
2296 cat >conftest.
$ac_ext <<_ACEOF
2297 #line $LINENO "configure"
2298 #include "confdefs.h"
2302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2303 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2305 egrep -v '^ *\+' conftest.er1
>conftest.err
2307 cat conftest.err
>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } >/dev
/null
; then
2310 if test -s conftest.err
; then
2311 ac_cpp_err
=$ac_c_preproc_warn_flag
2318 if test -z "$ac_cpp_err"; then
2321 echo "$as_me: failed program was:" >&5
2322 cat conftest.
$ac_ext >&5
2323 # Broken: fails on valid input.
2326 rm -f conftest.err conftest.
$ac_ext
2328 # OK, works on sane cases. Now check whether non-existent headers
2329 # can be detected and how.
2330 cat >conftest.
$ac_ext <<_ACEOF
2331 #line $LINENO "configure"
2332 #include "confdefs.h"
2333 #include <ac_nonexistent.h>
2335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2336 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2338 egrep -v '^ *\+' conftest.er1
>conftest.err
2340 cat conftest.err
>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } >/dev
/null
; then
2343 if test -s conftest.err
; then
2344 ac_cpp_err
=$ac_c_preproc_warn_flag
2351 if test -z "$ac_cpp_err"; then
2352 # Broken: success on invalid input.
2355 echo "$as_me: failed program was:" >&5
2356 cat conftest.
$ac_ext >&5
2357 # Passes both tests.
2361 rm -f conftest.err conftest.
$ac_ext
2364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2365 rm -f conftest.err conftest.
$ac_ext
2366 if $ac_preproc_ok; then
2378 echo "$as_me:$LINENO: result: $CPP" >&5
2379 echo "${ECHO_T}$CPP" >&6
2381 for ac_c_preproc_warn_flag
in '' yes
2383 # Use a header file that comes with gcc, so configuring glibc
2384 # with a fresh cross-compiler works.
2385 # On the NeXT, cc -E runs the code through the compiler's parser,
2386 # not just through cpp. "Syntax error" is here to catch this case.
2387 cat >conftest.
$ac_ext <<_ACEOF
2388 #line $LINENO "configure"
2389 #include "confdefs.h"
2393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2394 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2396 egrep -v '^ *\+' conftest.er1
>conftest.err
2398 cat conftest.err
>&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } >/dev
/null
; then
2401 if test -s conftest.err
; then
2402 ac_cpp_err
=$ac_c_preproc_warn_flag
2409 if test -z "$ac_cpp_err"; then
2412 echo "$as_me: failed program was:" >&5
2413 cat conftest.
$ac_ext >&5
2414 # Broken: fails on valid input.
2417 rm -f conftest.err conftest.
$ac_ext
2419 # OK, works on sane cases. Now check whether non-existent headers
2420 # can be detected and how.
2421 cat >conftest.
$ac_ext <<_ACEOF
2422 #line $LINENO "configure"
2423 #include "confdefs.h"
2424 #include <ac_nonexistent.h>
2426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2427 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2429 egrep -v '^ *\+' conftest.er1
>conftest.err
2431 cat conftest.err
>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } >/dev
/null
; then
2434 if test -s conftest.err
; then
2435 ac_cpp_err
=$ac_c_preproc_warn_flag
2442 if test -z "$ac_cpp_err"; then
2443 # Broken: success on invalid input.
2446 echo "$as_me: failed program was:" >&5
2447 cat conftest.
$ac_ext >&5
2448 # Passes both tests.
2452 rm -f conftest.err conftest.
$ac_ext
2455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2456 rm -f conftest.err conftest.
$ac_ext
2457 if $ac_preproc_ok; then
2460 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2461 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2462 { (exit 1); exit 1; }; }
2466 ac_cpp
='$CPP $CPPFLAGS'
2467 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2471 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2472 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2473 if test "${ac_cv_header_stdc+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 cat >conftest.
$ac_ext <<_ACEOF
2477 #line $LINENO "configure"
2478 #include "confdefs.h"
2485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2486 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2488 egrep -v '^ *\+' conftest.er1
>conftest.err
2490 cat conftest.err
>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } >/dev
/null
; then
2493 if test -s conftest.err
; then
2494 ac_cpp_err
=$ac_c_preproc_warn_flag
2501 if test -z "$ac_cpp_err"; then
2502 ac_cv_header_stdc
=yes
2504 echo "$as_me: failed program was:" >&5
2505 cat conftest.
$ac_ext >&5
2506 ac_cv_header_stdc
=no
2508 rm -f conftest.err conftest.
$ac_ext
2510 if test $ac_cv_header_stdc = yes; then
2511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2512 cat >conftest.
$ac_ext <<_ACEOF
2513 #line $LINENO "configure"
2514 #include "confdefs.h"
2518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2519 egrep "memchr" >/dev
/null
2>&1; then
2522 ac_cv_header_stdc
=no
2528 if test $ac_cv_header_stdc = yes; then
2529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2530 cat >conftest.
$ac_ext <<_ACEOF
2531 #line $LINENO "configure"
2532 #include "confdefs.h"
2536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2537 egrep "free" >/dev
/null
2>&1; then
2540 ac_cv_header_stdc
=no
2546 if test $ac_cv_header_stdc = yes; then
2547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2548 if test "$cross_compiling" = yes; then
2551 cat >conftest.
$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2553 #include "confdefs.h"
2555 #if ((' ' & 0x0FF) == 0x020)
2556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2559 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2560 || ('j' <= (c) && (c) <= 'r') \
2561 || ('s' <= (c) && (c) <= 'z'))
2562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2570 for (i = 0; i < 256; i++)
2571 if (XOR (islower (i), ISLOWER (i))
2572 || toupper (i) != TOUPPER (i))
2577 rm -f conftest
$ac_exeext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2579 (eval $ac_link) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2590 echo "$as_me: program exited with status $ac_status" >&5
2591 echo "$as_me: failed program was:" >&5
2592 cat conftest.
$ac_ext >&5
2593 ac_cv_header_stdc
=no
2595 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2599 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2600 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2601 if test $ac_cv_header_stdc = yes; then
2603 cat >>confdefs.h
<<\_ACEOF
2604 #define STDC_HEADERS 1
2609 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2611 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2612 inttypes.h stdint.h unistd.h
2614 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2615 echo "$as_me:$LINENO: checking for $ac_header" >&5
2616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 cat >conftest.
$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2622 #include "confdefs.h"
2623 $ac_includes_default
2625 #include <$ac_header>
2627 rm -f conftest.
$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try
='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 eval "$as_ac_Header=yes"
2641 echo "$as_me: failed program was:" >&5
2642 cat conftest.
$ac_ext >&5
2643 eval "$as_ac_Header=no"
2645 rm -f conftest.
$ac_objext conftest.
$ac_ext
2647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2650 cat >>confdefs.h
<<_ACEOF
2651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2658 if test "${ac_cv_header_minix_config_h+set}" = set; then
2659 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2660 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2661 if test "${ac_cv_header_minix_config_h+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2665 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2667 # Is the header compilable?
2668 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2669 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2670 cat >conftest.
$ac_ext <<_ACEOF
2671 #line $LINENO "configure"
2672 #include "confdefs.h"
2673 $ac_includes_default
2674 #include <minix/config.h>
2676 rm -f conftest.
$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try
='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_header_compiler
=yes
2690 echo "$as_me: failed program was:" >&5
2691 cat conftest.
$ac_ext >&5
2692 ac_header_compiler
=no
2694 rm -f conftest.
$ac_objext conftest.
$ac_ext
2695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2696 echo "${ECHO_T}$ac_header_compiler" >&6
2698 # Is the header present?
2699 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2700 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2701 cat >conftest.
$ac_ext <<_ACEOF
2702 #line $LINENO "configure"
2703 #include "confdefs.h"
2704 #include <minix/config.h>
2706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2707 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2709 egrep -v '^ *\+' conftest.er1
>conftest.err
2711 cat conftest.err
>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } >/dev
/null
; then
2714 if test -s conftest.err
; then
2715 ac_cpp_err
=$ac_c_preproc_warn_flag
2722 if test -z "$ac_cpp_err"; then
2723 ac_header_preproc
=yes
2725 echo "$as_me: failed program was:" >&5
2726 cat conftest.
$ac_ext >&5
2727 ac_header_preproc
=no
2729 rm -f conftest.err conftest.
$ac_ext
2730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2731 echo "${ECHO_T}$ac_header_preproc" >&6
2733 # So? What about this header?
2734 case $ac_header_compiler:$ac_header_preproc in
2736 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2737 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2738 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2739 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2741 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled." >&5
2742 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled." >&2;}
2743 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2744 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2745 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2746 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2748 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2749 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2750 if test "${ac_cv_header_minix_config_h+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 ac_cv_header_minix_config_h
=$ac_header_preproc
2755 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2756 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2759 if test $ac_cv_header_minix_config_h = yes; then
2765 if test "$MINIX" = yes; then
2767 cat >>confdefs.h
<<\_ACEOF
2768 #define _POSIX_SOURCE 1
2771 cat >>confdefs.h
<<\_ACEOF
2772 #define _POSIX_1_SOURCE 2
2775 cat >>confdefs.h
<<\_ACEOF
2781 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2782 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2783 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 ac_check_lib_save_LIBS
=$LIBS
2787 LIBS
="-lcposix $LIBS"
2788 cat >conftest.
$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2790 #include "confdefs.h"
2792 /* Override any gcc2 internal prototype to avoid an error. */
2796 /* We use char because int might match the return type of a gcc2
2797 builtin and then its argument prototype would still apply. */
2799 #ifdef F77_DUMMY_MAIN
2803 int F77_DUMMY_MAIN() { return 1; }
2813 rm -f conftest.
$ac_objext conftest
$ac_exeext
2814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2815 (eval $ac_link) 2>&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try
='test -s conftest$ac_exeext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_lib_cposix_strerror
=yes
2827 echo "$as_me: failed program was:" >&5
2828 cat conftest.
$ac_ext >&5
2829 ac_cv_lib_cposix_strerror
=no
2831 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2832 LIBS
=$ac_check_lib_save_LIBS
2834 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2835 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2836 if test $ac_cv_lib_cposix_strerror = yes; then
2837 LIBS
="$LIBS -lcposix"
2840 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2841 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2842 if test "${am_cv_prog_cc_stdc+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 am_cv_prog_cc_stdc
=no
2847 # Don't try gcc -ansi; that turns off useful extensions and
2848 # breaks some systems' header files.
2849 # AIX -qlanglvl=ansi
2850 # Ultrix and OSF/1 -std1
2851 # HP-UX 10.20 and later -Ae
2852 # HP-UX older versions -Aa -D_HPUX_SOURCE
2853 # SVR4 -Xc -D__EXTENSIONS__
2854 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2856 CC
="$ac_save_CC $ac_arg"
2857 cat >conftest.
$ac_ext <<_ACEOF
2858 #line $LINENO "configure"
2859 #include "confdefs.h"
2862 #include <sys/types.h>
2863 #include <sys/stat.h>
2864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2865 struct buf { int x; };
2866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2867 static char *e (p, i)
2873 static char *f (char * (*g) (char **, int), char **p, ...)
2878 s = g (p, va_arg (v,int));
2882 int test (int i, double x);
2883 struct s1 {int (*f) (int a);};
2884 struct s2 {int (*f) (double a);};
2885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2889 #ifdef F77_DUMMY_MAIN
2893 int F77_DUMMY_MAIN() { return 1; }
2899 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2905 rm -f conftest.
$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try
='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 am_cv_prog_cc_stdc
="$ac_arg"; break
2919 echo "$as_me: failed program was:" >&5
2920 cat conftest.
$ac_ext >&5
2922 rm -f conftest.
$ac_objext conftest.
$ac_ext
2928 if test -z "$am_cv_prog_cc_stdc"; then
2929 echo "$as_me:$LINENO: result: none needed" >&5
2930 echo "${ECHO_T}none needed" >&6
2932 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2933 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2935 case "x$am_cv_prog_cc_stdc" in
2937 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2942 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2943 echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_RANLIB+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test -n "$RANLIB"; then
2949 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir
=.
2956 for ac_exec_ext
in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 RANLIB
=$ac_cv_prog_RANLIB
2968 if test -n "$RANLIB"; then
2969 echo "$as_me:$LINENO: result: $RANLIB" >&5
2970 echo "${ECHO_T}$RANLIB" >&6
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2977 if test -z "$ac_cv_prog_RANLIB"; then
2978 ac_ct_RANLIB
=$RANLIB
2979 # Extract the first word of "ranlib", so it can be a program name with args.
2980 set dummy ranlib
; ac_word
=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$ac_ct_RANLIB"; then
2987 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir
=.
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3006 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3007 if test -n "$ac_ct_RANLIB"; then
3008 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3009 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3011 echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6
3015 RANLIB
=$ac_ct_RANLIB
3017 RANLIB
="$ac_cv_prog_RANLIB"
3020 # GNU M4 is needed to build the testsuite.
3021 for ac_prog
in gm4 gnum4
m4
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy
$ac_prog; ac_word
=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_path_M4+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 ac_cv_path_M4
="$M4" # Let the user override the test with a path.
3035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir
=.
3040 for ac_exec_ext
in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_path_M4
="$as_dir/$ac_word$ac_exec_ext"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 if test -n "$M4"; then
3055 echo "$as_me:$LINENO: result: $M4" >&5
3056 echo "${ECHO_T}$M4" >&6
3058 echo "$as_me:$LINENO: result: no" >&5
3059 echo "${ECHO_T}no" >&6
3062 test -n "$M4" && break
3064 test -n "$M4" || M4
="m4"
3066 echo "$as_me:$LINENO: checking whether m4 supports frozen files" >&5
3067 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
3068 if test "${ac_cv_prog_gnu_m4+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 ac_cv_prog_gnu_m4
=no
3072 if test x
"$M4" != x
; then
3073 case `$M4 --help < /dev/null 2>&1` in
3074 *reload
-state*) ac_cv_prog_gnu_m4
=yes ;;
3078 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_m4" >&5
3079 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
3081 if test "$ac_cv_prog_gnu_m4" != yes; then
3082 missing_dir
=`cd $ac_aux_dir && pwd`
3083 M4
="$missing_dir/missing m4"
3086 # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
3087 if test "${enable_gcc_warnings+set}" = set; then
3088 enableval
="$enable_gcc_warnings"
3089 case "${enableval}" in
3091 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
3092 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
3093 { (exit 1); exit 1; }; } ;;
3098 if test "${enableval}" = yes; then
3099 echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
3100 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3102 ac_save_CFLAGS
="$CFLAGS"
3103 CFLAGS
="$CFLAGS -Wall"
3104 cat >conftest.
$ac_ext <<_ACEOF
3105 #line $LINENO "configure"
3106 #include "confdefs.h"
3108 #ifdef F77_DUMMY_MAIN
3112 int F77_DUMMY_MAIN() { return 1; }
3122 rm -f conftest.
$ac_objext
3123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3124 (eval $ac_compile) 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try
='test -s conftest.$ac_objext'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 WARNING_CFLAGS
="$WARNING_CFLAGS -Wall"
3135 echo "$as_me:$LINENO: result: yes" >&5
3136 echo "${ECHO_T}yes" >&6
3138 echo "$as_me: failed program was:" >&5
3139 cat conftest.
$ac_ext >&5
3140 echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6
3143 rm -f conftest.
$ac_objext conftest.
$ac_ext
3144 CFLAGS
="$ac_save_CFLAGS"
3145 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3146 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3148 ac_save_CFLAGS
="$CFLAGS"
3150 cat >conftest.
$ac_ext <<_ACEOF
3151 #line $LINENO "configure"
3152 #include "confdefs.h"
3154 #ifdef F77_DUMMY_MAIN
3158 int F77_DUMMY_MAIN() { return 1; }
3168 rm -f conftest.
$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try
='test -s conftest.$ac_objext'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3180 WARNING_CFLAGS
="$WARNING_CFLAGS -W"
3181 echo "$as_me:$LINENO: result: yes" >&5
3182 echo "${ECHO_T}yes" >&6
3184 echo "$as_me: failed program was:" >&5
3185 cat conftest.
$ac_ext >&5
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3189 rm -f conftest.
$ac_objext conftest.
$ac_ext
3190 CFLAGS
="$ac_save_CFLAGS"
3191 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3192 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3194 ac_save_CFLAGS
="$CFLAGS"
3195 CFLAGS
="$CFLAGS -Wbad-function-cast"
3196 cat >conftest.
$ac_ext <<_ACEOF
3197 #line $LINENO "configure"
3198 #include "confdefs.h"
3200 #ifdef F77_DUMMY_MAIN
3204 int F77_DUMMY_MAIN() { return 1; }
3214 rm -f conftest.
$ac_objext
3215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3216 (eval $ac_compile) 2>&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try
='test -s conftest.$ac_objext'
3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
3226 WARNING_CFLAGS
="$WARNING_CFLAGS -Wbad-function-cast"
3227 echo "$as_me:$LINENO: result: yes" >&5
3228 echo "${ECHO_T}yes" >&6
3230 echo "$as_me: failed program was:" >&5
3231 cat conftest.
$ac_ext >&5
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3235 rm -f conftest.
$ac_objext conftest.
$ac_ext
3236 CFLAGS
="$ac_save_CFLAGS"
3237 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3238 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3240 ac_save_CFLAGS
="$CFLAGS"
3241 CFLAGS
="$CFLAGS -Wcast-align"
3242 cat >conftest.
$ac_ext <<_ACEOF
3243 #line $LINENO "configure"
3244 #include "confdefs.h"
3246 #ifdef F77_DUMMY_MAIN
3250 int F77_DUMMY_MAIN() { return 1; }
3260 rm -f conftest.
$ac_objext
3261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3262 (eval $ac_compile) 2>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try
='test -s conftest.$ac_objext'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-align"
3273 echo "$as_me:$LINENO: result: yes" >&5
3274 echo "${ECHO_T}yes" >&6
3276 echo "$as_me: failed program was:" >&5
3277 cat conftest.
$ac_ext >&5
3278 echo "$as_me:$LINENO: result: no" >&5
3279 echo "${ECHO_T}no" >&6
3281 rm -f conftest.
$ac_objext conftest.
$ac_ext
3282 CFLAGS
="$ac_save_CFLAGS"
3283 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3284 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3286 ac_save_CFLAGS
="$CFLAGS"
3287 CFLAGS
="$CFLAGS -Wcast-qual"
3288 cat >conftest.
$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3290 #include "confdefs.h"
3292 #ifdef F77_DUMMY_MAIN
3296 int F77_DUMMY_MAIN() { return 1; }
3306 rm -f conftest.
$ac_objext
3307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try
='test -s conftest.$ac_objext'
3313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
3318 WARNING_CFLAGS
="$WARNING_CFLAGS -Wcast-qual"
3319 echo "$as_me:$LINENO: result: yes" >&5
3320 echo "${ECHO_T}yes" >&6
3322 echo "$as_me: failed program was:" >&5
3323 cat conftest.
$ac_ext >&5
3324 echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6
3327 rm -f conftest.
$ac_objext conftest.
$ac_ext
3328 CFLAGS
="$ac_save_CFLAGS"
3329 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3330 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3332 ac_save_CFLAGS
="$CFLAGS"
3333 CFLAGS
="$CFLAGS -Wformat"
3334 cat >conftest.
$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3336 #include "confdefs.h"
3338 #ifdef F77_DUMMY_MAIN
3342 int F77_DUMMY_MAIN() { return 1; }
3352 rm -f conftest.
$ac_objext
3353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3354 (eval $ac_compile) 2>&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } &&
3358 { ac_try
='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 WARNING_CFLAGS
="$WARNING_CFLAGS -Wformat"
3365 echo "$as_me:$LINENO: result: yes" >&5
3366 echo "${ECHO_T}yes" >&6
3368 echo "$as_me: failed program was:" >&5
3369 cat conftest.
$ac_ext >&5
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3373 rm -f conftest.
$ac_objext conftest.
$ac_ext
3374 CFLAGS
="$ac_save_CFLAGS"
3375 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3376 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3378 ac_save_CFLAGS
="$CFLAGS"
3379 CFLAGS
="$CFLAGS -Wmissing-declarations"
3380 cat >conftest.
$ac_ext <<_ACEOF
3381 #line $LINENO "configure"
3382 #include "confdefs.h"
3384 #ifdef F77_DUMMY_MAIN
3388 int F77_DUMMY_MAIN() { return 1; }
3398 rm -f conftest.
$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try
='test -s conftest.$ac_objext'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3410 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-declarations"
3411 echo "$as_me:$LINENO: result: yes" >&5
3412 echo "${ECHO_T}yes" >&6
3414 echo "$as_me: failed program was:" >&5
3415 cat conftest.
$ac_ext >&5
3416 echo "$as_me:$LINENO: result: no" >&5
3417 echo "${ECHO_T}no" >&6
3419 rm -f conftest.
$ac_objext conftest.
$ac_ext
3420 CFLAGS
="$ac_save_CFLAGS"
3421 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3422 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3424 ac_save_CFLAGS
="$CFLAGS"
3425 CFLAGS
="$CFLAGS -Wmissing-prototypes"
3426 cat >conftest.
$ac_ext <<_ACEOF
3427 #line $LINENO "configure"
3428 #include "confdefs.h"
3430 #ifdef F77_DUMMY_MAIN
3434 int F77_DUMMY_MAIN() { return 1; }
3444 rm -f conftest.
$ac_objext
3445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446 (eval $ac_compile) 2>&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try
='test -s conftest.$ac_objext'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 WARNING_CFLAGS
="$WARNING_CFLAGS -Wmissing-prototypes"
3457 echo "$as_me:$LINENO: result: yes" >&5
3458 echo "${ECHO_T}yes" >&6
3460 echo "$as_me: failed program was:" >&5
3461 cat conftest.
$ac_ext >&5
3462 echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3465 rm -f conftest.
$ac_objext conftest.
$ac_ext
3466 CFLAGS
="$ac_save_CFLAGS"
3467 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3468 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3470 ac_save_CFLAGS
="$CFLAGS"
3471 CFLAGS
="$CFLAGS -Wnested-externs"
3472 cat >conftest.
$ac_ext <<_ACEOF
3473 #line $LINENO "configure"
3474 #include "confdefs.h"
3476 #ifdef F77_DUMMY_MAIN
3480 int F77_DUMMY_MAIN() { return 1; }
3490 rm -f conftest.
$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } &&
3496 { ac_try
='test -s conftest.$ac_objext'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 WARNING_CFLAGS
="$WARNING_CFLAGS -Wnested-externs"
3503 echo "$as_me:$LINENO: result: yes" >&5
3504 echo "${ECHO_T}yes" >&6
3506 echo "$as_me: failed program was:" >&5
3507 cat conftest.
$ac_ext >&5
3508 echo "$as_me:$LINENO: result: no" >&5
3509 echo "${ECHO_T}no" >&6
3511 rm -f conftest.
$ac_objext conftest.
$ac_ext
3512 CFLAGS
="$ac_save_CFLAGS"
3513 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3514 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3516 ac_save_CFLAGS
="$CFLAGS"
3517 CFLAGS
="$CFLAGS -Wshadow"
3518 cat >conftest.
$ac_ext <<_ACEOF
3519 #line $LINENO "configure"
3520 #include "confdefs.h"
3522 #ifdef F77_DUMMY_MAIN
3526 int F77_DUMMY_MAIN() { return 1; }
3536 rm -f conftest.
$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
3542 { ac_try
='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 WARNING_CFLAGS
="$WARNING_CFLAGS -Wshadow"
3549 echo "$as_me:$LINENO: result: yes" >&5
3550 echo "${ECHO_T}yes" >&6
3552 echo "$as_me: failed program was:" >&5
3553 cat conftest.
$ac_ext >&5
3554 echo "$as_me:$LINENO: result: no" >&5
3555 echo "${ECHO_T}no" >&6
3557 rm -f conftest.
$ac_objext conftest.
$ac_ext
3558 CFLAGS
="$ac_save_CFLAGS"
3559 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3560 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3562 ac_save_CFLAGS
="$CFLAGS"
3563 CFLAGS
="$CFLAGS -Wstrict-prototypes"
3564 cat >conftest.
$ac_ext <<_ACEOF
3565 #line $LINENO "configure"
3566 #include "confdefs.h"
3568 #ifdef F77_DUMMY_MAIN
3572 int F77_DUMMY_MAIN() { return 1; }
3582 rm -f conftest.
$ac_objext
3583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3584 (eval $ac_compile) 2>&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } &&
3588 { ac_try
='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 WARNING_CFLAGS
="$WARNING_CFLAGS -Wstrict-prototypes"
3595 echo "$as_me:$LINENO: result: yes" >&5
3596 echo "${ECHO_T}yes" >&6
3598 echo "$as_me: failed program was:" >&5
3599 cat conftest.
$ac_ext >&5
3600 echo "$as_me:$LINENO: result: no" >&5
3601 echo "${ECHO_T}no" >&6
3603 rm -f conftest.
$ac_objext conftest.
$ac_ext
3604 CFLAGS
="$ac_save_CFLAGS"
3605 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3606 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3608 ac_save_CFLAGS
="$CFLAGS"
3609 CFLAGS
="$CFLAGS -Wwrite-strings"
3610 cat >conftest.
$ac_ext <<_ACEOF
3611 #line $LINENO "configure"
3612 #include "confdefs.h"
3614 #ifdef F77_DUMMY_MAIN
3618 int F77_DUMMY_MAIN() { return 1; }
3628 rm -f conftest.
$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try
='test -s conftest.$ac_objext'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; }; then
3640 WARNING_CFLAGS
="$WARNING_CFLAGS -Wwrite-strings"
3641 echo "$as_me:$LINENO: result: yes" >&5
3642 echo "${ECHO_T}yes" >&6
3644 echo "$as_me: failed program was:" >&5
3645 cat conftest.
$ac_ext >&5
3646 echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3649 rm -f conftest.
$ac_objext conftest.
$ac_ext
3650 CFLAGS
="$ac_save_CFLAGS"
3651 CFLAGS
="$CFLAGS $WARNING_CFLAGS"
3654 # Checks for libraries.
3656 cat >>confdefs.h
<<\_ACEOF
3657 #define _GNU_SOURCE 1
3660 # Checks for header files.
3661 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3662 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3663 if test "${ac_cv_header_stdc+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 cat >conftest.
$ac_ext <<_ACEOF
3667 #line $LINENO "configure"
3668 #include "confdefs.h"
3675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3676 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3678 egrep -v '^ *\+' conftest.er1
>conftest.err
3680 cat conftest.err
>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } >/dev
/null
; then
3683 if test -s conftest.err
; then
3684 ac_cpp_err
=$ac_c_preproc_warn_flag
3691 if test -z "$ac_cpp_err"; then
3692 ac_cv_header_stdc
=yes
3694 echo "$as_me: failed program was:" >&5
3695 cat conftest.
$ac_ext >&5
3696 ac_cv_header_stdc
=no
3698 rm -f conftest.err conftest.
$ac_ext
3700 if test $ac_cv_header_stdc = yes; then
3701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3702 cat >conftest.
$ac_ext <<_ACEOF
3703 #line $LINENO "configure"
3704 #include "confdefs.h"
3708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3709 egrep "memchr" >/dev
/null
2>&1; then
3712 ac_cv_header_stdc
=no
3718 if test $ac_cv_header_stdc = yes; then
3719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3720 cat >conftest.
$ac_ext <<_ACEOF
3721 #line $LINENO "configure"
3722 #include "confdefs.h"
3726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3727 egrep "free" >/dev
/null
2>&1; then
3730 ac_cv_header_stdc
=no
3736 if test $ac_cv_header_stdc = yes; then
3737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3738 if test "$cross_compiling" = yes; then
3741 cat >conftest.
$ac_ext <<_ACEOF
3742 #line $LINENO "configure"
3743 #include "confdefs.h"
3745 #if ((' ' & 0x0FF) == 0x020)
3746 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3747 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3749 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3750 || ('j' <= (c) && (c) <= 'r') \
3751 || ('s' <= (c) && (c) <= 'z'))
3752 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3755 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3760 for (i = 0; i < 256; i++)
3761 if (XOR (islower (i), ISLOWER (i))
3762 || toupper (i) != TOUPPER (i))
3767 rm -f conftest
$ac_exeext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3769 (eval $ac_link) 2>&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3780 echo "$as_me: program exited with status $ac_status" >&5
3781 echo "$as_me: failed program was:" >&5
3782 cat conftest.
$ac_ext >&5
3783 ac_cv_header_stdc
=no
3785 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3789 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3790 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3791 if test $ac_cv_header_stdc = yes; then
3793 cat >>confdefs.h
<<\_ACEOF
3794 #define STDC_HEADERS 1
3799 for ac_header
in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3801 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3803 echo "$as_me:$LINENO: checking for $ac_header" >&5
3804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3811 # Is the header compilable?
3812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3814 cat >conftest.
$ac_ext <<_ACEOF
3815 #line $LINENO "configure"
3816 #include "confdefs.h"
3817 $ac_includes_default
3818 #include <$ac_header>
3820 rm -f conftest.
$ac_objext
3821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
3826 { ac_try
='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 ac_header_compiler
=yes
3834 echo "$as_me: failed program was:" >&5
3835 cat conftest.
$ac_ext >&5
3836 ac_header_compiler
=no
3838 rm -f conftest.
$ac_objext conftest.
$ac_ext
3839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3840 echo "${ECHO_T}$ac_header_compiler" >&6
3842 # Is the header present?
3843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3845 cat >conftest.
$ac_ext <<_ACEOF
3846 #line $LINENO "configure"
3847 #include "confdefs.h"
3848 #include <$ac_header>
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3853 egrep -v '^ *\+' conftest.er1
>conftest.err
3855 cat conftest.err
>&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev
/null
; then
3858 if test -s conftest.err
; then
3859 ac_cpp_err
=$ac_c_preproc_warn_flag
3866 if test -z "$ac_cpp_err"; then
3867 ac_header_preproc
=yes
3869 echo "$as_me: failed program was:" >&5
3870 cat conftest.
$ac_ext >&5
3871 ac_header_preproc
=no
3873 rm -f conftest.err conftest.
$ac_ext
3874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3875 echo "${ECHO_T}$ac_header_preproc" >&6
3877 # So? What about this header?
3878 case $ac_header_compiler:$ac_header_preproc in
3880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
3886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3892 echo "$as_me:$LINENO: checking for $ac_header" >&5
3893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 eval "$as_ac_Header=$ac_header_preproc"
3899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3904 cat >>confdefs.h
<<_ACEOF
3905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3912 # Checks for typedefs.
3914 # Checks for structures.
3916 # Checks for compiler characteristics.
3917 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3918 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3919 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 ac_cv_prog_cc_stdc
=no
3924 cat >conftest.
$ac_ext <<_ACEOF
3925 #line $LINENO "configure"
3926 #include "confdefs.h"
3929 #include <sys/types.h>
3930 #include <sys/stat.h>
3931 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3932 struct buf { int x; };
3933 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3934 static char *e (p, i)
3940 static char *f (char * (*g) (char **, int), char **p, ...)
3945 s = g (p, va_arg (v,int));
3949 int test (int i, double x);
3950 struct s1 {int (*f) (int a);};
3951 struct s2 {int (*f) (double a);};
3952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3955 #ifdef F77_DUMMY_MAIN
3959 int F77_DUMMY_MAIN() { return 1; }
3964 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3969 # Don't try gcc -ansi; that turns off useful extensions and
3970 # breaks some systems' header files.
3971 # AIX -qlanglvl=ansi
3972 # Ultrix and OSF/1 -std1
3973 # HP-UX 10.20 and later -Ae
3974 # HP-UX older versions -Aa -D_HPUX_SOURCE
3975 # SVR4 -Xc -D__EXTENSIONS__
3976 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3978 CC
="$ac_save_CC $ac_arg"
3979 rm -f conftest.
$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try
='test -s conftest.$ac_objext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 ac_cv_prog_cc_stdc
=$ac_arg
3994 echo "$as_me: failed program was:" >&5
3995 cat conftest.
$ac_ext >&5
3997 rm -f conftest.
$ac_objext
3999 rm -f conftest.
$ac_ext conftest.
$ac_objext
4004 case "x$ac_cv_prog_cc_stdc" in
4006 echo "$as_me:$LINENO: result: none needed" >&5
4007 echo "${ECHO_T}none needed" >&6 ;;
4009 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4010 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4011 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4014 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4015 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4016 if test "${ac_cv_c_const+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 cat >conftest.
$ac_ext <<_ACEOF
4020 #line $LINENO "configure"
4021 #include "confdefs.h"
4023 #ifdef F77_DUMMY_MAIN
4027 int F77_DUMMY_MAIN() { return 1; }
4032 /* FIXME: Include the comments suggested by Paul. */
4034 /* Ultrix mips cc rejects this. */
4035 typedef int charset[2];
4037 /* SunOS 4.1.1 cc rejects this. */
4038 char const *const *ccp;
4040 /* NEC SVR4.0.2 mips cc rejects this. */
4041 struct point {int x, y;};
4042 static struct point const zero = {0,0};
4043 /* AIX XL C 1.02.0.0 rejects this.
4044 It does not let you subtract one const X* pointer from another in
4045 an arm of an if-expression whose if-part is not a constant
4047 const char *g = "string";
4048 ccp = &g + (g ? g-g : 0);
4049 /* HPUX 7.0 cc rejects these. */
4052 ccp = (char const *const *) p;
4053 { /* SCO 3.2v4 cc rejects this. */
4055 char const *s = 0 ? (char *) 0 : (char const *) 0;
4059 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4061 const int *foo = &x[0];
4064 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4065 typedef const int *iptr;
4069 { /* AIX XL C 1.02.0.0 rejects this saying
4070 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4071 struct s { int j; const int *ap[3]; };
4072 struct s *b; b->j = 5;
4074 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4083 rm -f conftest.
$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } &&
4089 { ac_try
='test -s conftest.$ac_objext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4097 echo "$as_me: failed program was:" >&5
4098 cat conftest.
$ac_ext >&5
4101 rm -f conftest.
$ac_objext conftest.
$ac_ext
4103 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4104 echo "${ECHO_T}$ac_cv_c_const" >&6
4105 if test $ac_cv_c_const = no
; then
4107 cat >>confdefs.h
<<\_ACEOF
4113 echo "$as_me:$LINENO: checking for inline" >&5
4114 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4115 if test "${ac_cv_c_inline+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 for ac_kw
in inline __inline__ __inline
; do
4120 cat >conftest.
$ac_ext <<_ACEOF
4121 #line $LINENO "configure"
4122 #include "confdefs.h"
4124 static $ac_kw int static_foo () {return 0; }
4125 $ac_kw int foo () {return 0; }
4129 rm -f conftest.
$ac_objext
4130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4131 (eval $ac_compile) 2>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try
='test -s conftest.$ac_objext'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; }; then
4141 ac_cv_c_inline
=$ac_kw; break
4143 echo "$as_me: failed program was:" >&5
4144 cat conftest.
$ac_ext >&5
4146 rm -f conftest.
$ac_objext conftest.
$ac_ext
4150 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4151 echo "${ECHO_T}$ac_cv_c_inline" >&6
4152 case $ac_cv_c_inline in
4155 cat >>confdefs.h
<<\_ACEOF
4159 *) cat >>confdefs.h
<<_ACEOF
4160 #define inline $ac_cv_c_inline
4165 echo "$as_me:$LINENO: checking for function prototypes" >&5
4166 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4167 if test "$am_cv_prog_cc_stdc" != no
; then
4168 echo "$as_me:$LINENO: result: yes" >&5
4169 echo "${ECHO_T}yes" >&6
4171 cat >>confdefs.h
<<\_ACEOF
4172 #define PROTOTYPES 1
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4179 U
=_ ANSI2KNR
=.
/ansi2knr
4181 # Ensure some checks needed by ansi2knr itself.
4182 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4183 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4184 if test "${ac_cv_header_stdc+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 cat >conftest.
$ac_ext <<_ACEOF
4188 #line $LINENO "configure"
4189 #include "confdefs.h"
4196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4197 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4199 egrep -v '^ *\+' conftest.er1
>conftest.err
4201 cat conftest.err
>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } >/dev
/null
; then
4204 if test -s conftest.err
; then
4205 ac_cpp_err
=$ac_c_preproc_warn_flag
4212 if test -z "$ac_cpp_err"; then
4213 ac_cv_header_stdc
=yes
4215 echo "$as_me: failed program was:" >&5
4216 cat conftest.
$ac_ext >&5
4217 ac_cv_header_stdc
=no
4219 rm -f conftest.err conftest.
$ac_ext
4221 if test $ac_cv_header_stdc = yes; then
4222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4223 cat >conftest.
$ac_ext <<_ACEOF
4224 #line $LINENO "configure"
4225 #include "confdefs.h"
4229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4230 egrep "memchr" >/dev
/null
2>&1; then
4233 ac_cv_header_stdc
=no
4239 if test $ac_cv_header_stdc = yes; then
4240 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4241 cat >conftest.
$ac_ext <<_ACEOF
4242 #line $LINENO "configure"
4243 #include "confdefs.h"
4247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4248 egrep "free" >/dev
/null
2>&1; then
4251 ac_cv_header_stdc
=no
4257 if test $ac_cv_header_stdc = yes; then
4258 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4259 if test "$cross_compiling" = yes; then
4262 cat >conftest.
$ac_ext <<_ACEOF
4263 #line $LINENO "configure"
4264 #include "confdefs.h"
4266 #if ((' ' & 0x0FF) == 0x020)
4267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4270 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4271 || ('j' <= (c) && (c) <= 'r') \
4272 || ('s' <= (c) && (c) <= 'z'))
4273 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4276 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4281 for (i = 0; i < 256; i++)
4282 if (XOR (islower (i), ISLOWER (i))
4283 || toupper (i) != TOUPPER (i))
4288 rm -f conftest
$ac_exeext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4290 (eval $ac_link) 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4301 echo "$as_me: program exited with status $ac_status" >&5
4302 echo "$as_me: failed program was:" >&5
4303 cat conftest.
$ac_ext >&5
4304 ac_cv_header_stdc
=no
4306 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4310 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4311 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4312 if test $ac_cv_header_stdc = yes; then
4314 cat >>confdefs.h
<<\_ACEOF
4315 #define STDC_HEADERS 1
4320 for ac_header
in string.h
4322 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4324 echo "$as_me:$LINENO: checking for $ac_header" >&5
4325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4332 # Is the header compilable?
4333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4335 cat >conftest.
$ac_ext <<_ACEOF
4336 #line $LINENO "configure"
4337 #include "confdefs.h"
4338 $ac_includes_default
4339 #include <$ac_header>
4341 rm -f conftest.
$ac_objext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try
='test -s conftest.$ac_objext'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
4353 ac_header_compiler
=yes
4355 echo "$as_me: failed program was:" >&5
4356 cat conftest.
$ac_ext >&5
4357 ac_header_compiler
=no
4359 rm -f conftest.
$ac_objext conftest.
$ac_ext
4360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4361 echo "${ECHO_T}$ac_header_compiler" >&6
4363 # Is the header present?
4364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4366 cat >conftest.
$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4368 #include "confdefs.h"
4369 #include <$ac_header>
4371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4374 egrep -v '^ *\+' conftest.er1
>conftest.err
4376 cat conftest.err
>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } >/dev
/null
; then
4379 if test -s conftest.err
; then
4380 ac_cpp_err
=$ac_c_preproc_warn_flag
4387 if test -z "$ac_cpp_err"; then
4388 ac_header_preproc
=yes
4390 echo "$as_me: failed program was:" >&5
4391 cat conftest.
$ac_ext >&5
4392 ac_header_preproc
=no
4394 rm -f conftest.err conftest.
$ac_ext
4395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4396 echo "${ECHO_T}$ac_header_preproc" >&6
4398 # So? What about this header?
4399 case $ac_header_compiler:$ac_header_preproc in
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4413 echo "$as_me:$LINENO: checking for $ac_header" >&5
4414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 eval "$as_ac_Header=$ac_header_preproc"
4420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4425 cat >>confdefs.h
<<_ACEOF
4426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4433 # Checks for library functions.
4434 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4435 # for constant arguments. Useless!
4436 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4437 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4438 if test "${ac_cv_working_alloca_h+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 cat >conftest.
$ac_ext <<_ACEOF
4442 #line $LINENO "configure"
4443 #include "confdefs.h"
4445 #ifdef F77_DUMMY_MAIN
4449 int F77_DUMMY_MAIN() { return 1; }
4454 char *p = (char *) alloca (2 * sizeof (int));
4459 rm -f conftest.
$ac_objext conftest
$ac_exeext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461 (eval $ac_link) 2>&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } &&
4465 { ac_try
='test -s conftest$ac_exeext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 ac_cv_working_alloca_h
=yes
4473 echo "$as_me: failed program was:" >&5
4474 cat conftest.
$ac_ext >&5
4475 ac_cv_working_alloca_h
=no
4477 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4479 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4480 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4481 if test $ac_cv_working_alloca_h = yes; then
4483 cat >>confdefs.h
<<\_ACEOF
4484 #define HAVE_ALLOCA_H 1
4489 echo "$as_me:$LINENO: checking for alloca" >&5
4490 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4491 if test "${ac_cv_func_alloca_works+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 cat >conftest.
$ac_ext <<_ACEOF
4495 #line $LINENO "configure"
4496 #include "confdefs.h"
4498 # define alloca __builtin_alloca
4501 # include <malloc.h>
4502 # define alloca _alloca
4505 # include <alloca.h>
4510 # ifndef alloca /* predefined by HP cc +Olibcalls */
4518 #ifdef F77_DUMMY_MAIN
4522 int F77_DUMMY_MAIN() { return 1; }
4527 char *p = (char *) alloca (1);
4532 rm -f conftest.
$ac_objext conftest
$ac_exeext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4534 (eval $ac_link) 2>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try
='test -s conftest$ac_exeext'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 ac_cv_func_alloca_works
=yes
4546 echo "$as_me: failed program was:" >&5
4547 cat conftest.
$ac_ext >&5
4548 ac_cv_func_alloca_works
=no
4550 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4552 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4553 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4555 if test $ac_cv_func_alloca_works = yes; then
4557 cat >>confdefs.h
<<\_ACEOF
4558 #define HAVE_ALLOCA 1
4562 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4563 # that cause trouble. Some versions do not even contain alloca or
4564 # contain a buggy version. If you still want to use their alloca,
4565 # use ar to extract alloca.o from them instead of compiling alloca.c.
4567 ALLOCA
=alloca.
$ac_objext
4569 cat >>confdefs.h
<<\_ACEOF
4573 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4574 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4575 if test "${ac_cv_os_cray+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 cat >conftest.
$ac_ext <<_ACEOF
4579 #line $LINENO "configure"
4580 #include "confdefs.h"
4581 #if defined(CRAY) && ! defined(CRAY2)
4588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4589 egrep "webecray" >/dev
/null
2>&1; then
4597 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4598 echo "${ECHO_T}$ac_cv_os_cray" >&6
4599 if test $ac_cv_os_cray = yes; then
4600 for ac_func
in _getb67 GETB67 getb67
; do
4601 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4602 echo "$as_me:$LINENO: checking for $ac_func" >&5
4603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4604 if eval "test \"\${$as_ac_var+set}\" = set"; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 cat >conftest.
$ac_ext <<_ACEOF
4608 #line $LINENO "configure"
4609 #include "confdefs.h"
4610 /* System header to define __stub macros and hopefully few prototypes,
4611 which can conflict with char $ac_func (); below. */
4613 /* Override any gcc2 internal prototype to avoid an error. */
4617 /* We use char because int might match the return type of a gcc2
4618 builtin and then its argument prototype would still apply. */
4622 #ifdef F77_DUMMY_MAIN
4626 int F77_DUMMY_MAIN() { return 1; }
4631 /* The GNU C library defines this for functions which it implements
4632 to always fail with ENOSYS. Some functions are actually named
4633 something starting with __ and the normal name is an alias. */
4634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4644 rm -f conftest.
$ac_objext conftest
$ac_exeext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646 (eval $ac_link) 2>&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try
='test -s conftest$ac_exeext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 eval "$as_ac_var=yes"
4658 echo "$as_me: failed program was:" >&5
4659 cat conftest.
$ac_ext >&5
4660 eval "$as_ac_var=no"
4662 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4666 if test `eval echo '${'$as_ac_var'}'` = yes; then
4668 cat >>confdefs.h
<<_ACEOF
4669 #define CRAY_STACKSEG_END $ac_func
4678 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4679 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4680 if test "${ac_cv_c_stack_direction+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 if test "$cross_compiling" = yes; then
4684 ac_cv_c_stack_direction
=0
4686 cat >conftest.
$ac_ext <<_ACEOF
4687 #line $LINENO "configure"
4688 #include "confdefs.h"
4690 find_stack_direction ()
4692 static char *addr = 0;
4697 return find_stack_direction ();
4700 return (&dummy > addr) ? 1 : -1;
4706 exit (find_stack_direction () < 0);
4709 rm -f conftest
$ac_exeext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711 (eval $ac_link) 2>&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 ac_cv_c_stack_direction
=1
4722 echo "$as_me: program exited with status $ac_status" >&5
4723 echo "$as_me: failed program was:" >&5
4724 cat conftest.
$ac_ext >&5
4725 ac_cv_c_stack_direction
=-1
4727 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4730 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4731 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4733 cat >>confdefs.h
<<_ACEOF
4734 #define STACK_DIRECTION $ac_cv_c_stack_direction
4739 for ac_func
in mkstemp setlocale
4741 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4742 echo "$as_me:$LINENO: checking for $ac_func" >&5
4743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4744 if eval "test \"\${$as_ac_var+set}\" = set"; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 cat >conftest.
$ac_ext <<_ACEOF
4748 #line $LINENO "configure"
4749 #include "confdefs.h"
4750 /* System header to define __stub macros and hopefully few prototypes,
4751 which can conflict with char $ac_func (); below. */
4753 /* Override any gcc2 internal prototype to avoid an error. */
4757 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4762 #ifdef F77_DUMMY_MAIN
4766 int F77_DUMMY_MAIN() { return 1; }
4771 /* The GNU C library defines this for functions which it implements
4772 to always fail with ENOSYS. Some functions are actually named
4773 something starting with __ and the normal name is an alias. */
4774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4784 rm -f conftest.
$ac_objext conftest
$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786 (eval $ac_link) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try
='test -s conftest$ac_exeext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 eval "$as_ac_var=yes"
4798 echo "$as_me: failed program was:" >&5
4799 cat conftest.
$ac_ext >&5
4800 eval "$as_ac_var=no"
4802 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4806 if test `eval echo '${'$as_ac_var'}'` = yes; then
4807 cat >>confdefs.h
<<_ACEOF
4808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4814 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
4815 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
4816 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 cat >conftest.
$ac_ext <<_ACEOF
4820 #line $LINENO "configure"
4821 #include "confdefs.h"
4822 $ac_includes_default
4823 #ifdef F77_DUMMY_MAIN
4827 int F77_DUMMY_MAIN() { return 1; }
4833 char *p = (char *) stpcpy;
4840 rm -f conftest.
$ac_objext
4841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842 (eval $ac_compile) 2>&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } &&
4846 { ac_try
='test -s conftest.$ac_objext'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; }; then
4852 ac_cv_have_decl_stpcpy
=yes
4854 echo "$as_me: failed program was:" >&5
4855 cat conftest.
$ac_ext >&5
4856 ac_cv_have_decl_stpcpy
=no
4858 rm -f conftest.
$ac_objext conftest.
$ac_ext
4860 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
4861 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
4862 if test $ac_cv_have_decl_stpcpy = yes; then
4864 cat >>confdefs.h
<<_ACEOF
4865 #define HAVE_DECL_STPCPY 1
4869 cat >>confdefs.h
<<_ACEOF
4870 #define HAVE_DECL_STPCPY 0
4874 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
4875 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
4876 if test "${ac_cv_have_decl_strndup+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 cat >conftest.
$ac_ext <<_ACEOF
4880 #line $LINENO "configure"
4881 #include "confdefs.h"
4882 $ac_includes_default
4883 #ifdef F77_DUMMY_MAIN
4887 int F77_DUMMY_MAIN() { return 1; }
4893 char *p = (char *) strndup;
4900 rm -f conftest.
$ac_objext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try
='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_cv_have_decl_strndup
=yes
4914 echo "$as_me: failed program was:" >&5
4915 cat conftest.
$ac_ext >&5
4916 ac_cv_have_decl_strndup
=no
4918 rm -f conftest.
$ac_objext conftest.
$ac_ext
4920 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
4921 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
4922 if test $ac_cv_have_decl_strndup = yes; then
4924 cat >>confdefs.h
<<_ACEOF
4925 #define HAVE_DECL_STRNDUP 1
4929 cat >>confdefs.h
<<_ACEOF
4930 #define HAVE_DECL_STRNDUP 0
4934 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
4935 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
4936 if test "${ac_cv_have_decl_strnlen+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 cat >conftest.
$ac_ext <<_ACEOF
4940 #line $LINENO "configure"
4941 #include "confdefs.h"
4942 $ac_includes_default
4943 #ifdef F77_DUMMY_MAIN
4947 int F77_DUMMY_MAIN() { return 1; }
4953 char *p = (char *) strnlen;
4960 rm -f conftest.
$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try
='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 ac_cv_have_decl_strnlen
=yes
4974 echo "$as_me: failed program was:" >&5
4975 cat conftest.
$ac_ext >&5
4976 ac_cv_have_decl_strnlen
=no
4978 rm -f conftest.
$ac_objext conftest.
$ac_ext
4980 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
4981 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
4982 if test $ac_cv_have_decl_strnlen = yes; then
4984 cat >>confdefs.h
<<_ACEOF
4985 #define HAVE_DECL_STRNLEN 1
4989 cat >>confdefs.h
<<_ACEOF
4990 #define HAVE_DECL_STRNLEN 0
4994 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
4995 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4996 if test "${ac_cv_have_decl_memchr+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 cat >conftest.
$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5001 #include "confdefs.h"
5002 $ac_includes_default
5003 #ifdef F77_DUMMY_MAIN
5007 int F77_DUMMY_MAIN() { return 1; }
5013 char *p = (char *) memchr;
5020 rm -f conftest.
$ac_objext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022 (eval $ac_compile) 2>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try
='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_cv_have_decl_memchr
=yes
5034 echo "$as_me: failed program was:" >&5
5035 cat conftest.
$ac_ext >&5
5036 ac_cv_have_decl_memchr
=no
5038 rm -f conftest.
$ac_objext conftest.
$ac_ext
5040 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5041 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5042 if test $ac_cv_have_decl_memchr = yes; then
5044 cat >>confdefs.h
<<_ACEOF
5045 #define HAVE_DECL_MEMCHR 1
5049 cat >>confdefs.h
<<_ACEOF
5050 #define HAVE_DECL_MEMCHR 0
5055 for ac_func
in stpcpy strndup strnlen strspn memchr
5057 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5058 echo "$as_me:$LINENO: checking for $ac_func" >&5
5059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5060 if eval "test \"\${$as_ac_var+set}\" = set"; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 cat >conftest.
$ac_ext <<_ACEOF
5064 #line $LINENO "configure"
5065 #include "confdefs.h"
5066 /* System header to define __stub macros and hopefully few prototypes,
5067 which can conflict with char $ac_func (); below. */
5069 /* Override any gcc2 internal prototype to avoid an error. */
5073 /* We use char because int might match the return type of a gcc2
5074 builtin and then its argument prototype would still apply. */
5078 #ifdef F77_DUMMY_MAIN
5082 int F77_DUMMY_MAIN() { return 1; }
5087 /* The GNU C library defines this for functions which it implements
5088 to always fail with ENOSYS. Some functions are actually named
5089 something starting with __ and the normal name is an alias. */
5090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5100 rm -f conftest.
$ac_objext conftest
$ac_exeext
5101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5102 (eval $ac_link) 2>&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try
='test -s conftest$ac_exeext'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
5112 eval "$as_ac_var=yes"
5114 echo "$as_me: failed program was:" >&5
5115 cat conftest.
$ac_ext >&5
5116 eval "$as_ac_var=no"
5118 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5122 if test `eval echo '${'$as_ac_var'}'` = yes; then
5123 cat >>confdefs.h
<<_ACEOF
5124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5128 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
5132 cat >>confdefs.h
<<_ACEOF
5133 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5136 echo "$as_me:$LINENO: checking for working malloc" >&5
5137 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5138 if test "${jm_cv_func_working_malloc+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 if test "$cross_compiling" = yes; then
5142 jm_cv_func_working_malloc
=no
5144 cat >conftest.
$ac_ext <<_ACEOF
5145 #line $LINENO "configure"
5146 #include "confdefs.h"
5152 exit (malloc (0) ? 0 : 1);
5156 rm -f conftest
$ac_exeext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5158 (eval $ac_link) 2>&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5167 jm_cv_func_working_malloc
=yes
5169 echo "$as_me: program exited with status $ac_status" >&5
5170 echo "$as_me: failed program was:" >&5
5171 cat conftest.
$ac_ext >&5
5172 jm_cv_func_working_malloc
=no
5174 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5178 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5179 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5180 if test $jm_cv_func_working_malloc = no
; then
5182 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5184 cat >>confdefs.h
<<_ACEOF
5185 #define malloc rpl_malloc
5190 cat >>confdefs.h
<<_ACEOF
5191 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5194 echo "$as_me:$LINENO: checking for working realloc" >&5
5195 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5196 if test "${jm_cv_func_working_realloc+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 if test "$cross_compiling" = yes; then
5200 jm_cv_func_working_realloc
=no
5202 cat >conftest.
$ac_ext <<_ACEOF
5203 #line $LINENO "configure"
5204 #include "confdefs.h"
5210 exit (realloc (0, 0) ? 0 : 1);
5214 rm -f conftest
$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5225 jm_cv_func_working_realloc
=yes
5227 echo "$as_me: program exited with status $ac_status" >&5
5228 echo "$as_me: failed program was:" >&5
5229 cat conftest.
$ac_ext >&5
5230 jm_cv_func_working_realloc
=no
5232 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5236 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5237 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5238 if test $jm_cv_func_working_realloc = no
; then
5240 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
5242 cat >>confdefs.h
<<_ACEOF
5243 #define realloc rpl_realloc
5248 for ac_func
in isascii iswprint mbsinit
5250 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5251 echo "$as_me:$LINENO: checking for $ac_func" >&5
5252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5253 if eval "test \"\${$as_ac_var+set}\" = set"; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 cat >conftest.
$ac_ext <<_ACEOF
5257 #line $LINENO "configure"
5258 #include "confdefs.h"
5259 /* System header to define __stub macros and hopefully few prototypes,
5260 which can conflict with char $ac_func (); below. */
5262 /* Override any gcc2 internal prototype to avoid an error. */
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5271 #ifdef F77_DUMMY_MAIN
5275 int F77_DUMMY_MAIN() { return 1; }
5280 /* The GNU C library defines this for functions which it implements
5281 to always fail with ENOSYS. Some functions are actually named
5282 something starting with __ and the normal name is an alias. */
5283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5293 rm -f conftest.
$ac_objext conftest
$ac_exeext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5295 (eval $ac_link) 2>&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try
='test -s conftest$ac_exeext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 eval "$as_ac_var=yes"
5307 echo "$as_me: failed program was:" >&5
5308 cat conftest.
$ac_ext >&5
5309 eval "$as_ac_var=no"
5311 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5315 if test `eval echo '${'$as_ac_var'}'` = yes; then
5316 cat >>confdefs.h
<<_ACEOF
5317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5323 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5324 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5325 if test "${jm_cv_func_mbrtowc+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 cat >conftest.
$ac_ext <<_ACEOF
5329 #line $LINENO "configure"
5330 #include "confdefs.h"
5332 #ifdef F77_DUMMY_MAIN
5336 int F77_DUMMY_MAIN() { return 1; }
5341 mbstate_t state; return ! (sizeof state && mbrtowc);
5346 rm -f conftest.
$ac_objext conftest
$ac_exeext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5348 (eval $ac_link) 2>&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
5352 { ac_try
='test -s conftest$ac_exeext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 jm_cv_func_mbrtowc
=yes
5360 echo "$as_me: failed program was:" >&5
5361 cat conftest.
$ac_ext >&5
5362 jm_cv_func_mbrtowc
=no
5364 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5366 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5367 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5368 if test $jm_cv_func_mbrtowc = yes; then
5370 cat >>confdefs.h
<<\_ACEOF
5371 #define HAVE_MBRTOWC 1
5376 for ac_header
in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5378 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380 echo "$as_me:$LINENO: checking for $ac_header" >&5
5381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5388 # Is the header compilable?
5389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5391 cat >conftest.
$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5393 #include "confdefs.h"
5394 $ac_includes_default
5395 #include <$ac_header>
5397 rm -f conftest.
$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399 (eval $ac_compile) 2>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
5403 { ac_try
='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 ac_header_compiler
=yes
5411 echo "$as_me: failed program was:" >&5
5412 cat conftest.
$ac_ext >&5
5413 ac_header_compiler
=no
5415 rm -f conftest.
$ac_objext conftest.
$ac_ext
5416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5417 echo "${ECHO_T}$ac_header_compiler" >&6
5419 # Is the header present?
5420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5422 cat >conftest.
$ac_ext <<_ACEOF
5423 #line $LINENO "configure"
5424 #include "confdefs.h"
5425 #include <$ac_header>
5427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5428 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5430 egrep -v '^ *\+' conftest.er1
>conftest.err
5432 cat conftest.err
>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } >/dev
/null
; then
5435 if test -s conftest.err
; then
5436 ac_cpp_err
=$ac_c_preproc_warn_flag
5443 if test -z "$ac_cpp_err"; then
5444 ac_header_preproc
=yes
5446 echo "$as_me: failed program was:" >&5
5447 cat conftest.
$ac_ext >&5
5448 ac_header_preproc
=no
5450 rm -f conftest.err conftest.
$ac_ext
5451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5452 echo "${ECHO_T}$ac_header_preproc" >&6
5454 # So? What about this header?
5455 case $ac_header_compiler:$ac_header_preproc in
5457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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: checking for $ac_header" >&5
5470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 eval "$as_ac_Header=$ac_header_preproc"
5476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5481 cat >>confdefs.h
<<_ACEOF
5482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5489 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5490 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5491 if test "${ac_cv_header_stdc+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 cat >conftest.
$ac_ext <<_ACEOF
5495 #line $LINENO "configure"
5496 #include "confdefs.h"
5503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5504 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5506 egrep -v '^ *\+' conftest.er1
>conftest.err
5508 cat conftest.err
>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } >/dev
/null
; then
5511 if test -s conftest.err
; then
5512 ac_cpp_err
=$ac_c_preproc_warn_flag
5519 if test -z "$ac_cpp_err"; then
5520 ac_cv_header_stdc
=yes
5522 echo "$as_me: failed program was:" >&5
5523 cat conftest.
$ac_ext >&5
5524 ac_cv_header_stdc
=no
5526 rm -f conftest.err conftest.
$ac_ext
5528 if test $ac_cv_header_stdc = yes; then
5529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5530 cat >conftest.
$ac_ext <<_ACEOF
5531 #line $LINENO "configure"
5532 #include "confdefs.h"
5536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537 egrep "memchr" >/dev
/null
2>&1; then
5540 ac_cv_header_stdc
=no
5546 if test $ac_cv_header_stdc = yes; then
5547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5548 cat >conftest.
$ac_ext <<_ACEOF
5549 #line $LINENO "configure"
5550 #include "confdefs.h"
5554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5555 egrep "free" >/dev
/null
2>&1; then
5558 ac_cv_header_stdc
=no
5564 if test $ac_cv_header_stdc = yes; then
5565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5566 if test "$cross_compiling" = yes; then
5569 cat >conftest.
$ac_ext <<_ACEOF
5570 #line $LINENO "configure"
5571 #include "confdefs.h"
5573 #if ((' ' & 0x0FF) == 0x020)
5574 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5575 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5577 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5578 || ('j' <= (c) && (c) <= 'r') \
5579 || ('s' <= (c) && (c) <= 'z'))
5580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5588 for (i = 0; i < 256; i++)
5589 if (XOR (islower (i), ISLOWER (i))
5590 || toupper (i) != TOUPPER (i))
5595 rm -f conftest
$ac_exeext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597 (eval $ac_link) 2>&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5608 echo "$as_me: program exited with status $ac_status" >&5
5609 echo "$as_me: failed program was:" >&5
5610 cat conftest.
$ac_ext >&5
5611 ac_cv_header_stdc
=no
5613 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5617 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5618 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5619 if test $ac_cv_header_stdc = yes; then
5621 cat >>confdefs.h
<<\_ACEOF
5622 #define STDC_HEADERS 1
5627 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5628 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5629 if test "${ac_cv_c_backslash_a+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 cat >conftest.
$ac_ext <<_ACEOF
5633 #line $LINENO "configure"
5634 #include "confdefs.h"
5636 #ifdef F77_DUMMY_MAIN
5640 int F77_DUMMY_MAIN() { return 1; }
5649 char buf['\a' == 'a' ? -1 : 1];
5651 return buf[0] != "\a"[0];
5657 rm -f conftest.
$ac_objext
5658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5659 (eval $ac_compile) 2>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try
='test -s conftest.$ac_objext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_cv_c_backslash_a
=yes
5671 echo "$as_me: failed program was:" >&5
5672 cat conftest.
$ac_ext >&5
5673 ac_cv_c_backslash_a
=no
5675 rm -f conftest.
$ac_objext conftest.
$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5678 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5679 if test $ac_cv_c_backslash_a = yes; then
5681 cat >>confdefs.h
<<\_ACEOF
5682 #define HAVE_C_BACKSLASH_A 1
5687 for ac_header
in stdlib.h
5689 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5691 echo "$as_me:$LINENO: checking for $ac_header" >&5
5692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5699 # Is the header compilable?
5700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5702 cat >conftest.
$ac_ext <<_ACEOF
5703 #line $LINENO "configure"
5704 #include "confdefs.h"
5705 $ac_includes_default
5706 #include <$ac_header>
5708 rm -f conftest.
$ac_objext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710 (eval $ac_compile) 2>&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try
='test -s conftest.$ac_objext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 ac_header_compiler
=yes
5722 echo "$as_me: failed program was:" >&5
5723 cat conftest.
$ac_ext >&5
5724 ac_header_compiler
=no
5726 rm -f conftest.
$ac_objext conftest.
$ac_ext
5727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5728 echo "${ECHO_T}$ac_header_compiler" >&6
5730 # Is the header present?
5731 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5733 cat >conftest.
$ac_ext <<_ACEOF
5734 #line $LINENO "configure"
5735 #include "confdefs.h"
5736 #include <$ac_header>
5738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5739 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5741 egrep -v '^ *\+' conftest.er1
>conftest.err
5743 cat conftest.err
>&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } >/dev
/null
; then
5746 if test -s conftest.err
; then
5747 ac_cpp_err
=$ac_c_preproc_warn_flag
5754 if test -z "$ac_cpp_err"; then
5755 ac_header_preproc
=yes
5757 echo "$as_me: failed program was:" >&5
5758 cat conftest.
$ac_ext >&5
5759 ac_header_preproc
=no
5761 rm -f conftest.err conftest.
$ac_ext
5762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5763 echo "${ECHO_T}$ac_header_preproc" >&6
5765 # So? What about this header?
5766 case $ac_header_compiler:$ac_header_preproc in
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5780 echo "$as_me:$LINENO: checking for $ac_header" >&5
5781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 eval "$as_ac_Header=$ac_header_preproc"
5787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5792 cat >>confdefs.h
<<_ACEOF
5793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5800 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5801 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5802 if test "${ac_cv_type_mbstate_t+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 cat >conftest.
$ac_ext <<_ACEOF
5806 #line $LINENO "configure"
5807 #include "confdefs.h"
5810 # include <stdlib.h>
5813 #ifdef F77_DUMMY_MAIN
5817 int F77_DUMMY_MAIN() { return 1; }
5822 mbstate_t x; return sizeof x;
5827 rm -f conftest.
$ac_objext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829 (eval $ac_compile) 2>&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try
='test -s conftest.$ac_objext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_type_mbstate_t
=yes
5841 echo "$as_me: failed program was:" >&5
5842 cat conftest.
$ac_ext >&5
5843 ac_cv_type_mbstate_t
=no
5845 rm -f conftest.
$ac_objext conftest.
$ac_ext
5847 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5848 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5849 if test $ac_cv_type_mbstate_t = no
; then
5851 cat >>confdefs.h
<<\_ACEOF
5852 #define mbstate_t int
5857 echo "$as_me:$LINENO: checking for function prototypes" >&5
5858 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5859 if test "$am_cv_prog_cc_stdc" != no
; then
5860 echo "$as_me:$LINENO: result: yes" >&5
5861 echo "${ECHO_T}yes" >&6
5863 cat >>confdefs.h
<<\_ACEOF
5864 #define PROTOTYPES 1
5869 echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6
5871 U
=_ ANSI2KNR
=.
/ansi2knr
5873 # Ensure some checks needed by ansi2knr itself.
5874 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5875 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5876 if test "${ac_cv_header_stdc+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 cat >conftest.
$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 #include "confdefs.h"
5888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5889 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5891 egrep -v '^ *\+' conftest.er1
>conftest.err
5893 cat conftest.err
>&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev
/null
; then
5896 if test -s conftest.err
; then
5897 ac_cpp_err
=$ac_c_preproc_warn_flag
5904 if test -z "$ac_cpp_err"; then
5905 ac_cv_header_stdc
=yes
5907 echo "$as_me: failed program was:" >&5
5908 cat conftest.
$ac_ext >&5
5909 ac_cv_header_stdc
=no
5911 rm -f conftest.err conftest.
$ac_ext
5913 if test $ac_cv_header_stdc = yes; then
5914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5915 cat >conftest.
$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 #include "confdefs.h"
5921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5922 egrep "memchr" >/dev
/null
2>&1; then
5925 ac_cv_header_stdc
=no
5931 if test $ac_cv_header_stdc = yes; then
5932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5933 cat >conftest.
$ac_ext <<_ACEOF
5934 #line $LINENO "configure"
5935 #include "confdefs.h"
5939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5940 egrep "free" >/dev
/null
2>&1; then
5943 ac_cv_header_stdc
=no
5949 if test $ac_cv_header_stdc = yes; then
5950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5951 if test "$cross_compiling" = yes; then
5954 cat >conftest.
$ac_ext <<_ACEOF
5955 #line $LINENO "configure"
5956 #include "confdefs.h"
5958 #if ((' ' & 0x0FF) == 0x020)
5959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5962 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5963 || ('j' <= (c) && (c) <= 'r') \
5964 || ('s' <= (c) && (c) <= 'z'))
5965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5973 for (i = 0; i < 256; i++)
5974 if (XOR (islower (i), ISLOWER (i))
5975 || toupper (i) != TOUPPER (i))
5980 rm -f conftest
$ac_exeext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5982 (eval $ac_link) 2>&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5993 echo "$as_me: program exited with status $ac_status" >&5
5994 echo "$as_me: failed program was:" >&5
5995 cat conftest.
$ac_ext >&5
5996 ac_cv_header_stdc
=no
5998 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6002 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6003 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6004 if test $ac_cv_header_stdc = yes; then
6006 cat >>confdefs.h
<<\_ACEOF
6007 #define STDC_HEADERS 1
6012 for ac_header
in string.h
6014 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo "$as_me:$LINENO: checking for $ac_header" >&5
6017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6024 # Is the header compilable?
6025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6027 cat >conftest.
$ac_ext <<_ACEOF
6028 #line $LINENO "configure"
6029 #include "confdefs.h"
6030 $ac_includes_default
6031 #include <$ac_header>
6033 rm -f conftest.
$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try
='test -s conftest.$ac_objext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_header_compiler
=yes
6047 echo "$as_me: failed program was:" >&5
6048 cat conftest.
$ac_ext >&5
6049 ac_header_compiler
=no
6051 rm -f conftest.
$ac_objext conftest.
$ac_ext
6052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6053 echo "${ECHO_T}$ac_header_compiler" >&6
6055 # Is the header present?
6056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6058 cat >conftest.
$ac_ext <<_ACEOF
6059 #line $LINENO "configure"
6060 #include "confdefs.h"
6061 #include <$ac_header>
6063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6064 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6066 egrep -v '^ *\+' conftest.er1
>conftest.err
6068 cat conftest.err
>&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } >/dev
/null
; then
6071 if test -s conftest.err
; then
6072 ac_cpp_err
=$ac_c_preproc_warn_flag
6079 if test -z "$ac_cpp_err"; then
6080 ac_header_preproc
=yes
6082 echo "$as_me: failed program was:" >&5
6083 cat conftest.
$ac_ext >&5
6084 ac_header_preproc
=no
6086 rm -f conftest.err conftest.
$ac_ext
6087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6088 echo "${ECHO_T}$ac_header_preproc" >&6
6090 # So? What about this header?
6091 case $ac_header_compiler:$ac_header_preproc in
6093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6105 echo "$as_me:$LINENO: checking for $ac_header" >&5
6106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 eval "$as_ac_Header=$ac_header_preproc"
6112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117 cat >>confdefs.h
<<_ACEOF
6118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125 for ac_func
in strerror strerror_r vprintf doprnt
6127 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6128 echo "$as_me:$LINENO: checking for $ac_func" >&5
6129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6130 if eval "test \"\${$as_ac_var+set}\" = set"; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 cat >conftest.
$ac_ext <<_ACEOF
6134 #line $LINENO "configure"
6135 #include "confdefs.h"
6136 /* System header to define __stub macros and hopefully few prototypes,
6137 which can conflict with char $ac_func (); below. */
6139 /* Override any gcc2 internal prototype to avoid an error. */
6143 /* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */
6148 #ifdef F77_DUMMY_MAIN
6152 int F77_DUMMY_MAIN() { return 1; }
6157 /* The GNU C library defines this for functions which it implements
6158 to always fail with ENOSYS. Some functions are actually named
6159 something starting with __ and the normal name is an alias. */
6160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6170 rm -f conftest.
$ac_objext conftest
$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try
='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 eval "$as_ac_var=yes"
6184 echo "$as_me: failed program was:" >&5
6185 cat conftest.
$ac_ext >&5
6186 eval "$as_ac_var=no"
6188 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6192 if test `eval echo '${'$as_ac_var'}'` = yes; then
6193 cat >>confdefs.h
<<_ACEOF
6194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6200 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6202 if test "${ac_cv_header_stdc+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 cat >conftest.
$ac_ext <<_ACEOF
6206 #line $LINENO "configure"
6207 #include "confdefs.h"
6214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6215 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6217 egrep -v '^ *\+' conftest.er1
>conftest.err
6219 cat conftest.err
>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } >/dev
/null
; then
6222 if test -s conftest.err
; then
6223 ac_cpp_err
=$ac_c_preproc_warn_flag
6230 if test -z "$ac_cpp_err"; then
6231 ac_cv_header_stdc
=yes
6233 echo "$as_me: failed program was:" >&5
6234 cat conftest.
$ac_ext >&5
6235 ac_cv_header_stdc
=no
6237 rm -f conftest.err conftest.
$ac_ext
6239 if test $ac_cv_header_stdc = yes; then
6240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6241 cat >conftest.
$ac_ext <<_ACEOF
6242 #line $LINENO "configure"
6243 #include "confdefs.h"
6247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6248 egrep "memchr" >/dev
/null
2>&1; then
6251 ac_cv_header_stdc
=no
6257 if test $ac_cv_header_stdc = yes; then
6258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6259 cat >conftest.
$ac_ext <<_ACEOF
6260 #line $LINENO "configure"
6261 #include "confdefs.h"
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 egrep "free" >/dev
/null
2>&1; then
6269 ac_cv_header_stdc
=no
6275 if test $ac_cv_header_stdc = yes; then
6276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6277 if test "$cross_compiling" = yes; then
6280 cat >conftest.
$ac_ext <<_ACEOF
6281 #line $LINENO "configure"
6282 #include "confdefs.h"
6284 #if ((' ' & 0x0FF) == 0x020)
6285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6288 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6289 || ('j' <= (c) && (c) <= 'r') \
6290 || ('s' <= (c) && (c) <= 'z'))
6291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6299 for (i = 0; i < 256; i++)
6300 if (XOR (islower (i), ISLOWER (i))
6301 || toupper (i) != TOUPPER (i))
6306 rm -f conftest
$ac_exeext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308 (eval $ac_link) 2>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6319 echo "$as_me: program exited with status $ac_status" >&5
6320 echo "$as_me: failed program was:" >&5
6321 cat conftest.
$ac_ext >&5
6322 ac_cv_header_stdc
=no
6324 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6328 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6329 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6330 if test $ac_cv_header_stdc = yes; then
6332 cat >>confdefs.h
<<\_ACEOF
6333 #define STDC_HEADERS 1
6338 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6339 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6340 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 cat >conftest.
$ac_ext <<_ACEOF
6344 #line $LINENO "configure"
6345 #include "confdefs.h"
6346 $ac_includes_default
6347 #ifdef F77_DUMMY_MAIN
6351 int F77_DUMMY_MAIN() { return 1; }
6357 char *p = (char *) strerror_r;
6364 rm -f conftest.
$ac_objext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366 (eval $ac_compile) 2>&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try
='test -s conftest.$ac_objext'
6371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 ac_cv_have_decl_strerror_r
=yes
6378 echo "$as_me: failed program was:" >&5
6379 cat conftest.
$ac_ext >&5
6380 ac_cv_have_decl_strerror_r
=no
6382 rm -f conftest.
$ac_objext conftest.
$ac_ext
6384 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6385 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6386 if test $ac_cv_have_decl_strerror_r = yes; then
6388 cat >>confdefs.h
<<_ACEOF
6389 #define HAVE_DECL_STRERROR_R 1
6393 cat >>confdefs.h
<<_ACEOF
6394 #define HAVE_DECL_STRERROR_R 0
6399 for ac_func
in strerror_r
6401 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6402 echo "$as_me:$LINENO: checking for $ac_func" >&5
6403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6404 if eval "test \"\${$as_ac_var+set}\" = set"; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 cat >conftest.
$ac_ext <<_ACEOF
6408 #line $LINENO "configure"
6409 #include "confdefs.h"
6410 /* System header to define __stub macros and hopefully few prototypes,
6411 which can conflict with char $ac_func (); below. */
6413 /* Override any gcc2 internal prototype to avoid an error. */
6417 /* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6422 #ifdef F77_DUMMY_MAIN
6426 int F77_DUMMY_MAIN() { return 1; }
6431 /* The GNU C library defines this for functions which it implements
6432 to always fail with ENOSYS. Some functions are actually named
6433 something starting with __ and the normal name is an alias. */
6434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6444 rm -f conftest.
$ac_objext conftest
$ac_exeext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try
='test -s conftest$ac_exeext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 eval "$as_ac_var=yes"
6458 echo "$as_me: failed program was:" >&5
6459 cat conftest.
$ac_ext >&5
6460 eval "$as_ac_var=no"
6462 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6466 if test `eval echo '${'$as_ac_var'}'` = yes; then
6467 cat >>confdefs.h
<<_ACEOF
6468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6474 if test $ac_cv_func_strerror_r = yes; then
6476 for ac_header
in string.h
6478 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6480 echo "$as_me:$LINENO: checking for $ac_header" >&5
6481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6488 # Is the header compilable?
6489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6491 cat >conftest.
$ac_ext <<_ACEOF
6492 #line $LINENO "configure"
6493 #include "confdefs.h"
6494 $ac_includes_default
6495 #include <$ac_header>
6497 rm -f conftest.
$ac_objext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499 (eval $ac_compile) 2>&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try
='test -s conftest.$ac_objext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_header_compiler
=yes
6511 echo "$as_me: failed program was:" >&5
6512 cat conftest.
$ac_ext >&5
6513 ac_header_compiler
=no
6515 rm -f conftest.
$ac_objext conftest.
$ac_ext
6516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6517 echo "${ECHO_T}$ac_header_compiler" >&6
6519 # Is the header present?
6520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6522 cat >conftest.
$ac_ext <<_ACEOF
6523 #line $LINENO "configure"
6524 #include "confdefs.h"
6525 #include <$ac_header>
6527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6528 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6530 egrep -v '^ *\+' conftest.er1
>conftest.err
6532 cat conftest.err
>&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } >/dev
/null
; then
6535 if test -s conftest.err
; then
6536 ac_cpp_err
=$ac_c_preproc_warn_flag
6543 if test -z "$ac_cpp_err"; then
6544 ac_header_preproc
=yes
6546 echo "$as_me: failed program was:" >&5
6547 cat conftest.
$ac_ext >&5
6548 ac_header_preproc
=no
6550 rm -f conftest.err conftest.
$ac_ext
6551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6552 echo "${ECHO_T}$ac_header_preproc" >&6
6554 # So? What about this header?
6555 case $ac_header_compiler:$ac_header_preproc in
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6569 echo "$as_me:$LINENO: checking for $ac_header" >&5
6570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 eval "$as_ac_Header=$ac_header_preproc"
6576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6581 cat >>confdefs.h
<<_ACEOF
6582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6589 echo "$as_me:$LINENO: checking for working strerror_r" >&5
6590 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6591 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 cat >conftest.
$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6597 #include "confdefs.h"
6601 # include <string.h>
6604 #ifdef F77_DUMMY_MAIN
6608 int F77_DUMMY_MAIN() { return 1; }
6615 char x = *strerror_r (0, buf, sizeof buf);
6621 rm -f conftest.
$ac_objext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6623 (eval $ac_compile) 2>&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try
='test -s conftest.$ac_objext'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; }; then
6633 ac_cv_func_strerror_r_works
=yes
6635 echo "$as_me: failed program was:" >&5
6636 cat conftest.
$ac_ext >&5
6637 ac_cv_func_strerror_r_works
=no
6640 rm -f conftest.
$ac_objext conftest.
$ac_ext
6641 if test $ac_cv_func_strerror_r_works = no
; then
6642 # strerror_r seems not to work, but now we have to choose between
6643 # systems that have relatively inaccessible declarations for the
6644 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6645 # former has a strerror_r that returns char*, while the latter
6646 # has a strerror_r that returns `int'.
6647 # This test should segfault on the DEC system.
6648 if test "$cross_compiling" = yes; then
6649 ac_cv_func_strerror_r_works
=no
6651 cat >conftest.
$ac_ext <<_ACEOF
6652 #line $LINENO "configure"
6653 #include "confdefs.h"
6656 # include <string.h>
6659 extern char *strerror_r ();
6665 char x = *strerror_r (0, buf, sizeof buf);
6666 exit (!isalpha (x));
6670 rm -f conftest
$ac_exeext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_cv_func_strerror_r_works
=yes
6683 echo "$as_me: program exited with status $ac_status" >&5
6684 echo "$as_me: failed program was:" >&5
6685 cat conftest.
$ac_ext >&5
6686 ac_cv_func_strerror_r_works
=no
6688 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6693 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5
6694 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6695 if test $ac_cv_func_strerror_r_works = yes; then
6697 cat >>confdefs.h
<<_ACEOF
6698 #define HAVE_WORKING_STRERROR_R 1
6704 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6705 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6707 # Check whether --with-dmalloc or --without-dmalloc was given.
6708 if test "${with_dmalloc+set}" = set; then
6709 withval
="$with_dmalloc"
6710 if test "$withval" = yes; then
6711 echo "$as_me:$LINENO: result: yes" >&5
6712 echo "${ECHO_T}yes" >&6
6714 cat >>confdefs.h
<<\_ACEOF
6715 #define WITH_DMALLOC 1
6718 LIBS
="$LIBS -ldmalloc"
6719 LDFLAGS
="$LDFLAGS -g"
6721 echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6
6725 echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6
6729 ALL_LINGUAS
="de es et fr ja nl tr ru"
6730 # Make sure we can run config.sub.
6731 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6732 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6733 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6734 { (exit 1); exit 1; }; }
6736 echo "$as_me:$LINENO: checking build system type" >&5
6737 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6738 if test "${ac_cv_build+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 ac_cv_build_alias
=$build_alias
6742 test -z "$ac_cv_build_alias" &&
6743 ac_cv_build_alias
=`$ac_config_guess`
6744 test -z "$ac_cv_build_alias" &&
6745 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6746 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6747 { (exit 1); exit 1; }; }
6748 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6749 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6750 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6751 { (exit 1); exit 1; }; }
6754 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6755 echo "${ECHO_T}$ac_cv_build" >&6
6757 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6758 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6759 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6761 echo "$as_me:$LINENO: checking host system type" >&5
6762 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6763 if test "${ac_cv_host+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 ac_cv_host_alias
=$host_alias
6767 test -z "$ac_cv_host_alias" &&
6768 ac_cv_host_alias
=$ac_cv_build_alias
6769 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6770 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6771 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6772 { (exit 1); exit 1; }; }
6775 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6776 echo "${ECHO_T}$ac_cv_host" >&6
6778 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6779 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6780 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6782 echo "$as_me:$LINENO: checking for off_t" >&5
6783 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6784 if test "${ac_cv_type_off_t+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 cat >conftest.
$ac_ext <<_ACEOF
6788 #line $LINENO "configure"
6789 #include "confdefs.h"
6790 $ac_includes_default
6791 #ifdef F77_DUMMY_MAIN
6795 int F77_DUMMY_MAIN() { return 1; }
6808 rm -f conftest.
$ac_objext
6809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810 (eval $ac_compile) 2>&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try
='test -s conftest.$ac_objext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 ac_cv_type_off_t
=yes
6822 echo "$as_me: failed program was:" >&5
6823 cat conftest.
$ac_ext >&5
6826 rm -f conftest.
$ac_objext conftest.
$ac_ext
6828 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6829 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6830 if test $ac_cv_type_off_t = yes; then
6834 cat >>confdefs.h
<<_ACEOF
6840 echo "$as_me:$LINENO: checking for size_t" >&5
6841 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6842 if test "${ac_cv_type_size_t+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 cat >conftest.
$ac_ext <<_ACEOF
6846 #line $LINENO "configure"
6847 #include "confdefs.h"
6848 $ac_includes_default
6849 #ifdef F77_DUMMY_MAIN
6853 int F77_DUMMY_MAIN() { return 1; }
6860 if (sizeof (size_t))
6866 rm -f conftest.
$ac_objext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868 (eval $ac_compile) 2>&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } &&
6872 { ac_try
='test -s conftest.$ac_objext'
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
6878 ac_cv_type_size_t
=yes
6880 echo "$as_me: failed program was:" >&5
6881 cat conftest.
$ac_ext >&5
6882 ac_cv_type_size_t
=no
6884 rm -f conftest.
$ac_objext conftest.
$ac_ext
6886 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6887 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6888 if test $ac_cv_type_size_t = yes; then
6892 cat >>confdefs.h
<<_ACEOF
6893 #define size_t unsigned
6898 for ac_header
in stdlib.h unistd.h
6900 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6902 echo "$as_me:$LINENO: checking for $ac_header" >&5
6903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6910 # Is the header compilable?
6911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6913 cat >conftest.
$ac_ext <<_ACEOF
6914 #line $LINENO "configure"
6915 #include "confdefs.h"
6916 $ac_includes_default
6917 #include <$ac_header>
6919 rm -f conftest.
$ac_objext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921 (eval $ac_compile) 2>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } &&
6925 { ac_try
='test -s conftest.$ac_objext'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; }; then
6931 ac_header_compiler
=yes
6933 echo "$as_me: failed program was:" >&5
6934 cat conftest.
$ac_ext >&5
6935 ac_header_compiler
=no
6937 rm -f conftest.
$ac_objext conftest.
$ac_ext
6938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6939 echo "${ECHO_T}$ac_header_compiler" >&6
6941 # Is the header present?
6942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6944 cat >conftest.
$ac_ext <<_ACEOF
6945 #line $LINENO "configure"
6946 #include "confdefs.h"
6947 #include <$ac_header>
6949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6950 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6952 egrep -v '^ *\+' conftest.er1
>conftest.err
6954 cat conftest.err
>&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } >/dev
/null
; then
6957 if test -s conftest.err
; then
6958 ac_cpp_err
=$ac_c_preproc_warn_flag
6965 if test -z "$ac_cpp_err"; then
6966 ac_header_preproc
=yes
6968 echo "$as_me: failed program was:" >&5
6969 cat conftest.
$ac_ext >&5
6970 ac_header_preproc
=no
6972 rm -f conftest.err conftest.
$ac_ext
6973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6974 echo "${ECHO_T}$ac_header_preproc" >&6
6976 # So? What about this header?
6977 case $ac_header_compiler:$ac_header_preproc in
6979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6987 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6991 echo "$as_me:$LINENO: checking for $ac_header" >&5
6992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 eval "$as_ac_Header=$ac_header_preproc"
6998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7003 cat >>confdefs.h
<<_ACEOF
7004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7011 for ac_func
in getpagesize
7013 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7014 echo "$as_me:$LINENO: checking for $ac_func" >&5
7015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7016 if eval "test \"\${$as_ac_var+set}\" = set"; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 cat >conftest.
$ac_ext <<_ACEOF
7020 #line $LINENO "configure"
7021 #include "confdefs.h"
7022 /* System header to define __stub macros and hopefully few prototypes,
7023 which can conflict with char $ac_func (); below. */
7025 /* Override any gcc2 internal prototype to avoid an error. */
7029 /* We use char because int might match the return type of a gcc2
7030 builtin and then its argument prototype would still apply. */
7034 #ifdef F77_DUMMY_MAIN
7038 int F77_DUMMY_MAIN() { return 1; }
7043 /* The GNU C library defines this for functions which it implements
7044 to always fail with ENOSYS. Some functions are actually named
7045 something starting with __ and the normal name is an alias. */
7046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7056 rm -f conftest.
$ac_objext conftest
$ac_exeext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7058 (eval $ac_link) 2>&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try
='test -s conftest$ac_exeext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 eval "$as_ac_var=yes"
7070 echo "$as_me: failed program was:" >&5
7071 cat conftest.
$ac_ext >&5
7072 eval "$as_ac_var=no"
7074 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7078 if test `eval echo '${'$as_ac_var'}'` = yes; then
7079 cat >>confdefs.h
<<_ACEOF
7080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7086 echo "$as_me:$LINENO: checking for working mmap" >&5
7087 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7088 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 if test "$cross_compiling" = yes; then
7092 ac_cv_func_mmap_fixed_mapped
=no
7094 cat >conftest.
$ac_ext <<_ACEOF
7095 #line $LINENO "configure"
7096 #include "confdefs.h"
7097 $ac_includes_default
7098 /* Thanks to Mike Haertel and Jim Avera for this test.
7099 Here is a matrix of mmap possibilities:
7100 mmap private not fixed
7101 mmap private fixed at somewhere currently unmapped
7102 mmap private fixed at somewhere already mapped
7103 mmap shared not fixed
7104 mmap shared fixed at somewhere currently unmapped
7105 mmap shared fixed at somewhere already mapped
7106 For private mappings, we should verify that changes cannot be read()
7107 back from the file, nor mmap's back from the file at a different
7108 address. (There have been systems where private was not correctly
7109 implemented like the infamous i386 svr4.0, and systems where the
7110 VM page cache was not coherent with the file system buffer cache
7111 like early versions of FreeBSD and possibly contemporary NetBSD.)
7112 For shared mappings, we should conversely verify that changes get
7113 propogated back to all the places they're supposed to be.
7115 Grep wants private fixed already mapped.
7116 The main things grep needs to know about mmap are:
7117 * does it exist and is it safe to write into the mmap'd area
7118 * how to use it (BSD variants) */
7121 #include <sys/mman.h>
7123 #if !STDC_HEADERS && !HAVE_STDLIB_H
7127 /* This mess was copied from the GNU getpagesize.h. */
7128 #if !HAVE_GETPAGESIZE
7129 /* Assume that all systems that can run configure have sys/param.h. */
7130 # if !HAVE_SYS_PARAM_H
7131 # define HAVE_SYS_PARAM_H 1
7134 # ifdef _SC_PAGESIZE
7135 # define getpagesize() sysconf(_SC_PAGESIZE)
7136 # else /* no _SC_PAGESIZE */
7137 # if HAVE_SYS_PARAM_H
7138 # include <sys/param.h>
7139 # ifdef EXEC_PAGESIZE
7140 # define getpagesize() EXEC_PAGESIZE
7141 # else /* no EXEC_PAGESIZE */
7143 # define getpagesize() NBPG * CLSIZE
7146 # endif /* no CLSIZE */
7147 # else /* no NBPG */
7149 # define getpagesize() NBPC
7150 # else /* no NBPC */
7152 # define getpagesize() PAGESIZE
7153 # endif /* PAGESIZE */
7154 # endif /* no NBPC */
7155 # endif /* no NBPG */
7156 # endif /* no EXEC_PAGESIZE */
7157 # else /* no HAVE_SYS_PARAM_H */
7158 # define getpagesize() 8192 /* punt totally */
7159 # endif /* no HAVE_SYS_PARAM_H */
7160 # endif /* no _SC_PAGESIZE */
7162 #endif /* no HAVE_GETPAGESIZE */
7167 char *data, *data2, *data3;
7171 pagesize = getpagesize ();
7173 /* First, make a file with some known garbage in it. */
7174 data = (char *) malloc (pagesize);
7177 for (i = 0; i < pagesize; ++i)
7178 *(data + i) = rand ();
7180 fd = creat ("conftest.mmap", 0600);
7183 if (write (fd, data, pagesize) != pagesize)
7187 /* Next, try to mmap the file at a fixed address which already has
7188 something else allocated at it. If we can, also make sure that
7189 we see the same garbage. */
7190 fd = open ("conftest.mmap", O_RDWR);
7193 data2 = (char *) malloc (2 * pagesize);
7196 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7197 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7198 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7200 for (i = 0; i < pagesize; ++i)
7201 if (*(data + i) != *(data2 + i))
7204 /* Finally, make sure that changes to the mapped area do not
7205 percolate back to the file as seen by read(). (This is a bug on
7206 some variants of i386 svr4.0.) */
7207 for (i = 0; i < pagesize; ++i)
7208 *(data2 + i) = *(data2 + i) + 1;
7209 data3 = (char *) malloc (pagesize);
7212 if (read (fd, data3, pagesize) != pagesize)
7214 for (i = 0; i < pagesize; ++i)
7215 if (*(data + i) != *(data3 + i))
7221 rm -f conftest
$ac_exeext
7222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7223 (eval $ac_link) 2>&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 ac_cv_func_mmap_fixed_mapped
=yes
7234 echo "$as_me: program exited with status $ac_status" >&5
7235 echo "$as_me: failed program was:" >&5
7236 cat conftest.
$ac_ext >&5
7237 ac_cv_func_mmap_fixed_mapped
=no
7239 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7242 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7243 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7244 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7246 cat >>confdefs.h
<<\_ACEOF
7253 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7254 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7255 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 cat >conftest.
$ac_ext <<_ACEOF
7259 #line $LINENO "configure"
7260 #include "confdefs.h"
7262 #include <features.h>
7263 #ifdef __GNU_LIBRARY__
7264 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7271 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7272 ac_cv_gnu_library_2_1
=yes
7274 ac_cv_gnu_library_2_1
=no
7279 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7280 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7282 GLIBC21
="$ac_cv_gnu_library_2_1"
7284 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7285 stdlib.h string.h unistd.h sys
/param.h
7287 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7289 echo "$as_me:$LINENO: checking for $ac_header" >&5
7290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7297 # Is the header compilable?
7298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7300 cat >conftest.
$ac_ext <<_ACEOF
7301 #line $LINENO "configure"
7302 #include "confdefs.h"
7303 $ac_includes_default
7304 #include <$ac_header>
7306 rm -f conftest.
$ac_objext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308 (eval $ac_compile) 2>&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } &&
7312 { ac_try
='test -s conftest.$ac_objext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 ac_header_compiler
=yes
7320 echo "$as_me: failed program was:" >&5
7321 cat conftest.
$ac_ext >&5
7322 ac_header_compiler
=no
7324 rm -f conftest.
$ac_objext conftest.
$ac_ext
7325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7326 echo "${ECHO_T}$ac_header_compiler" >&6
7328 # Is the header present?
7329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7331 cat >conftest.
$ac_ext <<_ACEOF
7332 #line $LINENO "configure"
7333 #include "confdefs.h"
7334 #include <$ac_header>
7336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7337 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7339 egrep -v '^ *\+' conftest.er1
>conftest.err
7341 cat conftest.err
>&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } >/dev
/null
; then
7344 if test -s conftest.err
; then
7345 ac_cpp_err
=$ac_c_preproc_warn_flag
7352 if test -z "$ac_cpp_err"; then
7353 ac_header_preproc
=yes
7355 echo "$as_me: failed program was:" >&5
7356 cat conftest.
$ac_ext >&5
7357 ac_header_preproc
=no
7359 rm -f conftest.err conftest.
$ac_ext
7360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7361 echo "${ECHO_T}$ac_header_preproc" >&6
7363 # So? What about this header?
7364 case $ac_header_compiler:$ac_header_preproc in
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7378 echo "$as_me:$LINENO: checking for $ac_header" >&5
7379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 eval "$as_ac_Header=$ac_header_preproc"
7385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7390 cat >>confdefs.h
<<_ACEOF
7391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7398 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7399 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7400 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7402 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7403 echo "$as_me:$LINENO: checking for $ac_func" >&5
7404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7405 if eval "test \"\${$as_ac_var+set}\" = set"; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 cat >conftest.
$ac_ext <<_ACEOF
7409 #line $LINENO "configure"
7410 #include "confdefs.h"
7411 /* System header to define __stub macros and hopefully few prototypes,
7412 which can conflict with char $ac_func (); below. */
7414 /* Override any gcc2 internal prototype to avoid an error. */
7418 /* We use char because int might match the return type of a gcc2
7419 builtin and then its argument prototype would still apply. */
7423 #ifdef F77_DUMMY_MAIN
7427 int F77_DUMMY_MAIN() { return 1; }
7432 /* The GNU C library defines this for functions which it implements
7433 to always fail with ENOSYS. Some functions are actually named
7434 something starting with __ and the normal name is an alias. */
7435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7445 rm -f conftest.
$ac_objext conftest
$ac_exeext
7446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7447 (eval $ac_link) 2>&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try
='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 eval "$as_ac_var=yes"
7459 echo "$as_me: failed program was:" >&5
7460 cat conftest.
$ac_ext >&5
7461 eval "$as_ac_var=no"
7463 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7467 if test `eval echo '${'$as_ac_var'}'` = yes; then
7468 cat >>confdefs.h
<<_ACEOF
7469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7475 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7476 if test "${with_libiconv_prefix+set}" = set; then
7477 withval
="$with_libiconv_prefix"
7479 for dir
in `echo "$withval" | tr : ' '`; do
7480 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7481 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7486 echo "$as_me:$LINENO: checking for iconv" >&5
7487 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7488 if test "${am_cv_func_iconv+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 am_cv_func_iconv
="no, consider installing GNU libiconv"
7494 cat >conftest.
$ac_ext <<_ACEOF
7495 #line $LINENO "configure"
7496 #include "confdefs.h"
7499 #ifdef F77_DUMMY_MAIN
7503 int F77_DUMMY_MAIN() { return 1; }
7508 iconv_t cd = iconv_open("","");
7509 iconv(cd,NULL,NULL,NULL,NULL);
7515 rm -f conftest.
$ac_objext conftest
$ac_exeext
7516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7517 (eval $ac_link) 2>&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try
='test -s conftest$ac_exeext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 am_cv_func_iconv
=yes
7529 echo "$as_me: failed program was:" >&5
7530 cat conftest.
$ac_ext >&5
7532 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7533 if test "$am_cv_func_iconv" != yes; then
7534 am_save_LIBS
="$LIBS"
7535 LIBS
="$LIBS -liconv"
7536 cat >conftest.
$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7538 #include "confdefs.h"
7541 #ifdef F77_DUMMY_MAIN
7545 int F77_DUMMY_MAIN() { return 1; }
7550 iconv_t cd = iconv_open("","");
7551 iconv(cd,NULL,NULL,NULL,NULL);
7557 rm -f conftest.
$ac_objext conftest
$ac_exeext
7558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559 (eval $ac_link) 2>&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try
='test -s conftest$ac_exeext'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
7570 am_cv_func_iconv
=yes
7572 echo "$as_me: failed program was:" >&5
7573 cat conftest.
$ac_ext >&5
7575 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7576 LIBS
="$am_save_LIBS"
7580 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7581 echo "${ECHO_T}$am_cv_func_iconv" >&6
7582 if test "$am_cv_func_iconv" = yes; then
7584 cat >>confdefs.h
<<\_ACEOF
7585 #define HAVE_ICONV 1
7588 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7589 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7590 if test "${am_cv_proto_iconv+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 cat >conftest.
$ac_ext <<_ACEOF
7595 #line $LINENO "configure"
7596 #include "confdefs.h"
7604 #if defined(__STDC__) || defined(__cplusplus)
7605 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7610 #ifdef F77_DUMMY_MAIN
7614 int F77_DUMMY_MAIN() { return 1; }
7624 rm -f conftest.
$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try
='test -s conftest.$ac_objext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 am_cv_proto_iconv_arg1
=""
7638 echo "$as_me: failed program was:" >&5
7639 cat conftest.
$ac_ext >&5
7640 am_cv_proto_iconv_arg1
="const"
7642 rm -f conftest.
$ac_objext conftest.
$ac_ext
7643 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);"
7646 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7647 echo "$as_me:$LINENO: result: ${ac_t:-
7648 }$am_cv_proto_iconv" >&5
7649 echo "${ECHO_T}${ac_t:-
7650 }$am_cv_proto_iconv" >&6
7652 cat >>confdefs.h
<<_ACEOF
7653 #define ICONV_CONST $am_cv_proto_iconv_arg1
7658 if test "$am_cv_lib_iconv" = yes; then
7662 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7663 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7664 if test "${am_cv_langinfo_codeset+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 cat >conftest.
$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7669 #include "confdefs.h"
7670 #include <langinfo.h>
7671 #ifdef F77_DUMMY_MAIN
7675 int F77_DUMMY_MAIN() { return 1; }
7680 char* cs = nl_langinfo(CODESET);
7685 rm -f conftest.
$ac_objext conftest
$ac_exeext
7686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7687 (eval $ac_link) 2>&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try
='test -s conftest$ac_exeext'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; }; then
7697 am_cv_langinfo_codeset
=yes
7699 echo "$as_me: failed program was:" >&5
7700 cat conftest.
$ac_ext >&5
7701 am_cv_langinfo_codeset
=no
7703 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7706 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7707 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7708 if test $am_cv_langinfo_codeset = yes; then
7710 cat >>confdefs.h
<<\_ACEOF
7711 #define HAVE_LANGINFO_CODESET 1
7716 if test $ac_cv_header_locale_h = yes; then
7717 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7718 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7719 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 cat >conftest.
$ac_ext <<_ACEOF
7723 #line $LINENO "configure"
7724 #include "confdefs.h"
7726 #ifdef F77_DUMMY_MAIN
7730 int F77_DUMMY_MAIN() { return 1; }
7740 rm -f conftest.
$ac_objext conftest
$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742 (eval $ac_link) 2>&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } &&
7746 { ac_try
='test -s conftest$ac_exeext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 am_cv_val_LC_MESSAGES
=yes
7754 echo "$as_me: failed program was:" >&5
7755 cat conftest.
$ac_ext >&5
7756 am_cv_val_LC_MESSAGES
=no
7758 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7760 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7761 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7762 if test $am_cv_val_LC_MESSAGES = yes; then
7764 cat >>confdefs.h
<<\_ACEOF
7765 #define HAVE_LC_MESSAGES 1
7770 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7771 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7772 # Check whether --enable-nls or --disable-nls was given.
7773 if test "${enable_nls+set}" = set; then
7774 enableval
="$enable_nls"
7779 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7780 echo "${ECHO_T}$USE_NLS" >&6
7782 BUILD_INCLUDED_LIBINTL
=no
7783 USE_INCLUDED_LIBINTL
=no
7786 if test "$USE_NLS" = "yes"; then
7788 cat >>confdefs.h
<<\_ACEOF
7789 #define ENABLE_NLS 1
7792 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7793 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7795 # Check whether --with-included-gettext or --without-included-gettext was given.
7796 if test "${with_included_gettext+set}" = set; then
7797 withval
="$with_included_gettext"
7798 nls_cv_force_use_gnu_gettext
=$withval
7800 nls_cv_force_use_gnu_gettext
=no
7802 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7803 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7805 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7806 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7809 if test "${ac_cv_header_libintl_h+set}" = set; then
7810 echo "$as_me:$LINENO: checking for libintl.h" >&5
7811 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7812 if test "${ac_cv_header_libintl_h+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7816 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7818 # Is the header compilable?
7819 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7820 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7821 cat >conftest.
$ac_ext <<_ACEOF
7822 #line $LINENO "configure"
7823 #include "confdefs.h"
7824 $ac_includes_default
7825 #include <libintl.h>
7827 rm -f conftest.
$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try
='test -s conftest.$ac_objext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_header_compiler
=yes
7841 echo "$as_me: failed program was:" >&5
7842 cat conftest.
$ac_ext >&5
7843 ac_header_compiler
=no
7845 rm -f conftest.
$ac_objext conftest.
$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7847 echo "${ECHO_T}$ac_header_compiler" >&6
7849 # Is the header present?
7850 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7851 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7852 cat >conftest.
$ac_ext <<_ACEOF
7853 #line $LINENO "configure"
7854 #include "confdefs.h"
7855 #include <libintl.h>
7857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7858 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7860 egrep -v '^ *\+' conftest.er1
>conftest.err
7862 cat conftest.err
>&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } >/dev
/null
; then
7865 if test -s conftest.err
; then
7866 ac_cpp_err
=$ac_c_preproc_warn_flag
7873 if test -z "$ac_cpp_err"; then
7874 ac_header_preproc
=yes
7876 echo "$as_me: failed program was:" >&5
7877 cat conftest.
$ac_ext >&5
7878 ac_header_preproc
=no
7880 rm -f conftest.err conftest.
$ac_ext
7881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882 echo "${ECHO_T}$ac_header_preproc" >&6
7884 # So? What about this header?
7885 case $ac_header_compiler:$ac_header_preproc in
7887 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7888 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7890 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7892 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7893 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7894 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7895 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7897 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7899 echo "$as_me:$LINENO: checking for libintl.h" >&5
7900 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7901 if test "${ac_cv_header_libintl_h+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 ac_cv_header_libintl_h
=$ac_header_preproc
7906 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7907 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7910 if test $ac_cv_header_libintl_h = yes; then
7911 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7912 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7913 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 cat >conftest.
$ac_ext <<_ACEOF
7917 #line $LINENO "configure"
7918 #include "confdefs.h"
7919 #include <libintl.h>
7920 extern int _nl_msg_cat_cntr;
7921 #ifdef F77_DUMMY_MAIN
7925 int F77_DUMMY_MAIN() { return 1; }
7930 bindtextdomain ("", "");
7931 return (int) gettext ("") + _nl_msg_cat_cntr
7936 rm -f conftest.
$ac_objext conftest
$ac_exeext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7938 (eval $ac_link) 2>&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try
='test -s conftest$ac_exeext'
7943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
7948 gt_cv_func_gnugettext1_libc
=yes
7950 echo "$as_me: failed program was:" >&5
7951 cat conftest.
$ac_ext >&5
7952 gt_cv_func_gnugettext1_libc
=no
7954 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7956 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7957 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7959 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7960 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7961 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7962 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 gt_save_LIBS
="$LIBS"
7966 LIBS
="$LIBS -lintl $LIBICONV"
7967 cat >conftest.
$ac_ext <<_ACEOF
7968 #line $LINENO "configure"
7969 #include "confdefs.h"
7970 #include <libintl.h>
7971 extern int _nl_msg_cat_cntr;
7972 #ifdef F77_DUMMY_MAIN
7976 int F77_DUMMY_MAIN() { return 1; }
7981 bindtextdomain ("", "");
7982 return (int) gettext ("") + _nl_msg_cat_cntr
7987 rm -f conftest.
$ac_objext conftest
$ac_exeext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } &&
7993 { ac_try
='test -s conftest$ac_exeext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 gt_cv_func_gnugettext1_libintl
=yes
8001 echo "$as_me: failed program was:" >&5
8002 cat conftest.
$ac_ext >&5
8003 gt_cv_func_gnugettext1_libintl
=no
8005 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8006 LIBS
="$gt_save_LIBS"
8008 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
8009 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
8012 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8013 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8014 && test "$PACKAGE" != gettext; }; then
8016 cat >>confdefs.h
<<\_ACEOF
8017 #define HAVE_GETTEXT 1
8020 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8021 INTLLIBS
="-lintl $LIBICONV"
8024 gt_save_LIBS
="$LIBS"
8025 LIBS
="$LIBS $INTLLIBS"
8027 for ac_func
in dcgettext
8029 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8030 echo "$as_me:$LINENO: checking for $ac_func" >&5
8031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8032 if eval "test \"\${$as_ac_var+set}\" = set"; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 cat >conftest.
$ac_ext <<_ACEOF
8036 #line $LINENO "configure"
8037 #include "confdefs.h"
8038 /* System header to define __stub macros and hopefully few prototypes,
8039 which can conflict with char $ac_func (); below. */
8041 /* Override any gcc2 internal prototype to avoid an error. */
8045 /* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8050 #ifdef F77_DUMMY_MAIN
8054 int F77_DUMMY_MAIN() { return 1; }
8059 /* The GNU C library defines this for functions which it implements
8060 to always fail with ENOSYS. Some functions are actually named
8061 something starting with __ and the normal name is an alias. */
8062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8072 rm -f conftest.
$ac_objext conftest
$ac_exeext
8073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8074 (eval $ac_link) 2>&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try
='test -s conftest$ac_exeext'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; }; then
8084 eval "$as_ac_var=yes"
8086 echo "$as_me: failed program was:" >&5
8087 cat conftest.
$ac_ext >&5
8088 eval "$as_ac_var=no"
8090 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8094 if test `eval echo '${'$as_ac_var'}'` = yes; then
8095 cat >>confdefs.h
<<_ACEOF
8096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8102 LIBS
="$gt_save_LIBS"
8104 # Extract the first word of "msgfmt", so it can be a program name with args.
8105 set dummy msgfmt
; ac_word
=$2
8106 echo "$as_me:$LINENO: checking for $ac_word" >&5
8107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8108 if test "${ac_cv_path_MSGFMT+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8116 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8117 for ac_dir
in $PATH; do
8118 test -z "$ac_dir" && ac_dir
=.
8119 if test -f $ac_dir/$ac_word; then
8120 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8121 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8127 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8131 MSGFMT
="$ac_cv_path_MSGFMT"
8132 if test "$MSGFMT" != ":"; then
8133 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8134 echo "${ECHO_T}$MSGFMT" >&6
8136 echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6
8140 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8141 set dummy gmsgfmt
; ac_word
=$2
8142 echo "$as_me:$LINENO: checking for $ac_word" >&5
8143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8144 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8156 test -z "$as_dir" && as_dir
=.
8157 for ac_exec_ext
in '' $ac_executable_extensions; do
8158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8159 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8170 GMSGFMT
=$ac_cv_path_GMSGFMT
8172 if test -n "$GMSGFMT"; then
8173 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8174 echo "${ECHO_T}$GMSGFMT" >&6
8176 echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6
8180 # Extract the first word of "xgettext", so it can be a program name with args.
8181 set dummy xgettext
; ac_word
=$2
8182 echo "$as_me:$LINENO: checking for $ac_word" >&5
8183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8184 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8192 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8193 for ac_dir
in $PATH; do
8194 test -z "$ac_dir" && ac_dir
=.
8195 if test -f $ac_dir/$ac_word; then
8196 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8197 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8203 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8207 XGETTEXT
="$ac_cv_path_XGETTEXT"
8208 if test "$XGETTEXT" != ":"; then
8209 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8210 echo "${ECHO_T}$XGETTEXT" >&6
8212 echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6
8221 if test "$CATOBJEXT" = "NONE"; then
8222 nls_cv_use_gnu_gettext
=yes
8226 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8227 INTLOBJS
="\$(GETTOBJS)"
8228 # Extract the first word of "msgfmt", so it can be a program name with args.
8229 set dummy msgfmt
; ac_word
=$2
8230 echo "$as_me:$LINENO: checking for $ac_word" >&5
8231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8232 if test "${ac_cv_path_MSGFMT+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8240 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8241 for ac_dir
in $PATH; do
8242 test -z "$ac_dir" && ac_dir
=.
8243 if test -f $ac_dir/$ac_word; then
8244 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8245 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8251 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8255 MSGFMT
="$ac_cv_path_MSGFMT"
8256 if test "$MSGFMT" != ":"; then
8257 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8258 echo "${ECHO_T}$MSGFMT" >&6
8260 echo "$as_me:$LINENO: result: no" >&5
8261 echo "${ECHO_T}no" >&6
8264 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8265 set dummy gmsgfmt
; ac_word
=$2
8266 echo "$as_me:$LINENO: checking for $ac_word" >&5
8267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8268 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8280 test -z "$as_dir" && as_dir
=.
8281 for ac_exec_ext
in '' $ac_executable_extensions; do
8282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8283 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8294 GMSGFMT
=$ac_cv_path_GMSGFMT
8296 if test -n "$GMSGFMT"; then
8297 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8298 echo "${ECHO_T}$GMSGFMT" >&6
8300 echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6
8304 # Extract the first word of "xgettext", so it can be a program name with args.
8305 set dummy xgettext
; ac_word
=$2
8306 echo "$as_me:$LINENO: checking for $ac_word" >&5
8307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8308 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8316 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8317 for ac_dir
in $PATH; do
8318 test -z "$ac_dir" && ac_dir
=.
8319 if test -f $ac_dir/$ac_word; then
8320 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8321 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8327 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8331 XGETTEXT
="$ac_cv_path_XGETTEXT"
8332 if test "$XGETTEXT" != ":"; then
8333 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8334 echo "${ECHO_T}$XGETTEXT" >&6
8336 echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6
8340 BUILD_INCLUDED_LIBINTL
=yes
8341 USE_INCLUDED_LIBINTL
=yes
8343 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8344 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8347 if test "$GMSGFMT" != ":"; then
8348 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8351 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8352 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8357 if test "$XGETTEXT" != ":"; then
8358 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8361 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8362 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8369 ac_config_commands
="$ac_config_commands default-2"
8371 if test "$PACKAGE" = gettext; then
8372 BUILD_INCLUDED_LIBINTL
=yes
8375 for ac_prog
in bison
8377 # Extract the first word of "$ac_prog", so it can be a program name with args.
8378 set dummy
$ac_prog; ac_word
=$2
8379 echo "$as_me:$LINENO: checking for $ac_word" >&5
8380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8381 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 if test -n "$INTLBISON"; then
8385 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir
=.
8392 for ac_exec_ext
in '' $ac_executable_extensions; do
8393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_INTLBISON
="$ac_prog"
8395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 INTLBISON
=$ac_cv_prog_INTLBISON
8404 if test -n "$INTLBISON"; then
8405 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8406 echo "${ECHO_T}$INTLBISON" >&6
8408 echo "$as_me:$LINENO: result: no" >&5
8409 echo "${ECHO_T}no" >&6
8412 test -n "$INTLBISON" && break
8415 if test -z "$INTLBISON"; then
8418 echo "$as_me:$LINENO: checking version of bison" >&5
8419 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8420 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8421 case $ac_prog_version in
8422 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8423 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8424 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8425 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8427 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8428 echo "${ECHO_T}$ac_prog_version" >&6
8430 if test $ac_verc_fail = yes; then
8434 for lang
in $ALL_LINGUAS; do
8435 GMOFILES
="$GMOFILES $lang.gmo"
8436 POFILES
="$POFILES $lang.po"
8440 nls_cv_header_libgt
=
8448 if test "x$CATOBJEXT" != "x"; then
8449 if test "x$ALL_LINGUAS" = "x"; then
8452 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8453 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8455 for presentlang
in $ALL_LINGUAS; do
8457 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8458 # Use the presentlang catalog if desiredlang is
8459 # a. equal to presentlang, or
8460 # b. a variant of presentlang (because in this case,
8461 # presentlang can be used as a fallback for messages
8462 # which are not translated in the desiredlang catalog).
8463 case "$desiredlang" in
8464 "$presentlang"*) useit
=yes;;
8467 if test $useit = yes; then
8468 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8471 LINGUAS
=$NEW_LINGUAS
8472 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8473 echo "${ECHO_T}$LINGUAS" >&6
8476 if test -n "$LINGUAS"; then
8477 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8482 if test -n "$ac_aux_dir"; then
8483 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8485 if test -z "$MKINSTALLDIRS"; then
8486 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8489 INTL_LIBTOOL_SUFFIX_PREFIX
=
8491 # This is necessary so that .o files in LIBOBJS are also built via
8492 # the ANSI2KNR-filtering rules.
8493 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8495 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8496 cat >confcache
<<\_ACEOF
8497 # This file is a shell script that caches the results of configure
8498 # tests run on this system so they can be shared between configure
8499 # scripts and configure runs, see configure's option --config-cache.
8500 # It is not useful on other systems. If it contains results you don't
8501 # want to keep, you may remove or edit it.
8503 # config.status only pays attention to the cache file if you give it
8504 # the --recheck option to rerun configure.
8506 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8512 # The following way of writing the cache mishandles newlines in values,
8513 # but we know of no workaround that is simple, portable, and efficient.
8514 # So, don't put newlines in cache variables' values.
8515 # Ultrix sh set writes to stderr and can't be redirected directly,
8516 # and sets the high bit in the cache file unless we assign to the vars.
8519 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8521 # `set' does not quote correctly, so add quotes (double-quote
8522 # substitution turns \\\\ into \\, and sed turns \\ into \).
8525 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8528 # `set' quotes correctly as required by POSIX, so do not add quotes.
8530 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8537 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8539 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8541 if cmp -s $cache_file confcache
; then :; else
8542 if test -w $cache_file; then
8543 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8544 cat confcache
>$cache_file
8546 echo "not updating unwritable cache $cache_file"
8551 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8552 # Let make expand exec_prefix.
8553 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8555 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8556 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8557 # trailing colons and then remove the whole line if VPATH becomes empty
8558 # (actually we leave an empty line to preserve line numbers).
8559 if test "x$srcdir" = x.
; then
8560 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8561 s/:*\$(srcdir):*/:/;
8562 s/:*\${srcdir}:*/:/;
8564 s/^\([^=]*=[ ]*\):*/\1/;
8570 DEFS
=-DHAVE_CONFIG_H
8572 : ${CONFIG_STATUS=./config.status}
8573 ac_clean_files_save
=$ac_clean_files
8574 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8575 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8576 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8577 cat >$CONFIG_STATUS <<_ACEOF
8579 # Generated automatically by $as_me.
8580 # Run this file to recreate the current configuration.
8581 # Compiler output produced by configure, useful for debugging
8582 # configure, is in config.log if it exists.
8585 SHELL=\${CONFIG_SHELL-$SHELL}
8588 cat >>$CONFIG_STATUS <<\_ACEOF
8590 ## --------------------- ##
8591 ## M4sh Initialization. ##
8592 ## --------------------- ##
8594 # Be Bourne compatible
8595 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8598 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8602 # Name of the executable.
8603 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
8605 # If LINENO is not supported by the shell, produce a version of this
8606 # script where LINENO is hard coded. Rewrite if not up to date only.
8607 # Comparing LINENO against _oline_ is not a good solution, since in
8608 # the case of embedded executables (such as config.status within
8609 # configure) you'd compare LINENO wrt config.status vs. _oline_ vs
8610 # configure. Hence a useless rewrite (not to mention the risk of
8611 # ``infinite'' rewrites. Merely check that LINENO is incremented
8612 # between two lines, which is a property guaranteed for _oline_, hence
8613 # it protects us from repetitive rewrites. Be sure to have a test
8614 # that does detect non LINENO support...
8617 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
8618 if test "x$as_lineno_1" = "x$as_lineno_2" ||
8619 test "x$as_lineno_3" != "x$as_lineno_2";
8623 *[\\/]* | ?:[\\/]* ) as_myself=$0 ;;
8624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 test -z "$as_dir" && as_dir=.
8629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8634 if test ! -f $as_myself; then
8635 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8636 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8637 { (exit 1); exit 1; }; }
8639 if test ! -f $as_me.lineno ||
8640 test x`ls -1dt $as_me.lineno
$as_myself 2>/dev
/null
| sed 1q
` \
8641 != x$as_me.lineno; then
8642 # Be sure to write the pattern so that it doesn't replace itself:
8643 # it must not match itself.
8645 if ($0 ~ /[$]LINENO/)
8646 while (sub (/[$]LINENO/, NR))
8649 }' <$as_myself >$as_me.lineno
8650 chmod +x $as_me.lineno
8652 exec ${SHELL-/bin/sh} ./$as_me.lineno ${1+"$@"}
8655 # Avoid depending upon Character Ranges.
8656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8659 as_cr_digits='0123456789'
8660 as_cr_alnum=$as_cr_Letters$as_cr_digits
8662 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
8663 *c*,-n*) ECHO_N= ECHO_C='
8665 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8666 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8669 if expr a : '\(a\)' >/dev/null 2>&1; then
8675 rm -f conf$$ conf$$.exe conf$$.file
8677 if ln -s conf$$.file conf$$ 2>/dev/null; then
8678 # We could just check for DJGPP; but this test a) works b) is more generic
8679 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8680 if test -f conf$$.exe; then
8681 # Don't use ln at all; we don't have any links
8686 elif ln conf$$.file conf$$ 2>/dev/null; then
8691 rm -f conf$$ conf$$.exe conf$$.file
8693 # The user is always right.
8694 if test "${PATH_SEPARATOR+set}" != set; then
8695 echo "#! $SHELL" >conftest.sh
8696 echo "exit 0" >>conftest.sh
8697 chmod +x conftest.sh
8698 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8706 as_executable_p="test -f"
8708 # Sed expression to map a string onto a valid CPP name.
8709 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8711 # Sed expression to map a string onto a valid variable name.
8712 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8714 # Support unset when possible.
8715 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8722 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8723 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8724 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8725 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8726 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8727 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8728 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8729 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8732 # We need space, tab and new line, in precisely that order.
8738 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8742 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8743 # report actual input values of CONFIG_FILES etc. instead of their
8744 # values after options handling. Logging --version etc. is OK.
8748 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8749 ## Running $as_me. ##
8754 This file was extended by GNU Bison $as_me 1.29c, which was
8755 generated by GNU Autoconf 2.52e. Invocation command line was
8757 CONFIG_FILES = $CONFIG_FILES
8758 CONFIG_HEADERS = $CONFIG_HEADERS
8759 CONFIG_LINKS = $CONFIG_LINKS
8760 CONFIG_COMMANDS = $CONFIG_COMMANDS
8764 echo "on `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`" >&5
8768 # Files that config.status was made for.
8769 if test -n "$ac_config_files"; then
8770 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8773 if test -n "$ac_config_headers"; then
8774 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8777 if test -n "$ac_config_links"; then
8778 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8781 if test -n "$ac_config_commands"; then
8782 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8785 cat >>$CONFIG_STATUS <<\_ACEOF
8788 \`$as_me' instantiates files from templates according to the
8789 current configuration.
8791 Usage: $0 [OPTIONS] [FILE]...
8793 -h, --help print this help, then exit
8794 -V, --version print version number, then exit
8795 -d, --debug don't remove temporary files
8796 --recheck update
$as_me by reconfiguring
in the same conditions
8797 --file=FILE
[:TEMPLATE
]
8798 instantiate the configuration
file FILE
8799 --header=FILE
[:TEMPLATE
]
8800 instantiate the configuration header FILE
8802 Configuration files
:
8805 Configuration headers
:
8808 Configuration commands
:
8811 Report bugs to
<bug
-autoconf@gnu.org
>.
"
8814 cat >>$CONFIG_STATUS <<_ACEOF
8816 GNU Bison config.status
1.29c
8817 configured by
$0, generated by GNU Autoconf
2.52e
,
8818 with options
\\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8820 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8821 Free Software Foundation
, Inc.
8822 This config.status
script is free software
; the Free Software Foundation
8823 gives unlimited permission to copy
, distribute and modify it.
"
8828 cat >>$CONFIG_STATUS <<\_ACEOF
8829 # If no file are specified by the user, then we need to provide default
8830 # value. By we need to know if files were specified by the user.
8836 ac_option=`expr "x
$1" : 'x\([^=]*\)='`
8837 ac_optarg=`expr "x
$1" : 'x[^=]*=\(.*\)'`
8839 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8843 *) # This is not an option, so the user has probably given explicit
8845 ac_need_defaults=false;;
8849 # Handling of the options.
8851 cat >>$CONFIG_STATUS <<_ACEOF
8852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8853 echo "running
$SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8854 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8856 cat >>$CONFIG_STATUS <<\_ACEOF
8857 --version | --vers* | -V )
8858 echo "$ac_cs_version"; exit 0 ;;
8860 # Conflict between --help and --header
8861 { { echo "$as_me:$LINENO: error
: ambiguous option
: $1
8862 Try \
`$0 --help' for more information." >&5
8863 echo "$as_me: error: ambiguous option: $1
8864 Try \`$0 --help' for more information." >&2;}
8865 { (exit 1); exit 1; }; };;
8866 --help | --hel | -h )
8867 echo "$ac_cs_usage"; exit 0 ;;
8868 --debug | --d* | -d )
8870 --file | --fil | --fi | --f )
8872 CONFIG_FILES="$CONFIG_FILES $1"
8873 ac_need_defaults=false;;
8874 --header | --heade | --head | --hea )
8876 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8877 ac_need_defaults=false;;
8880 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8881 Try \`$0 --help' for more information.
" >&5
8882 echo "$as_me: error
: unrecognized option
: $1
8883 Try \
`$0 --help' for more information." >&2;}
8884 { (exit 1); exit 1; }; } ;;
8886 *) ac_config_targets="$ac_config_targets $1" ;;
8894 cat >>$CONFIG_STATUS <<_ACEOF
8896 # INIT-COMMANDS section.
8899 PACKAGE_NAME='$PACKAGE_NAME'
8900 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8901 PACKAGE_VERSION='$PACKAGE_VERSION'
8902 PACKAGE_STRING='$PACKAGE_STRING'
8903 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8905 AMDEP_TRUE="$AMDEP_TRUE"
8906 ac_aux_dir="$ac_aux_dir"
8910 cat >>$CONFIG_STATUS <<\_ACEOF
8911 for ac_config_target in $ac_config_targets
8913 case "$ac_config_target" in
8914 # Handling of arguments.
8915 "tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
8916 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8917 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
8918 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8919 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8920 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8921 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8922 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8923 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
8924 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8925 "tests/package.m4" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/package.m4" ;;
8926 "tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
8927 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8928 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
8929 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
8930 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8931 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8932 { (exit 1); exit 1; }; };;
8936 # If the user did not use the arguments to specify the items to instantiate,
8937 # then the envvar interface is used. Set only those that are not.
8938 # We use the long form for the default assignment because of an extremely
8939 # bizarre bug on SunOS 4.1.3.
8940 if $ac_need_defaults; then
8941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8946 # Create a temporary directory, and hook for its removal unless debugging.
8949 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8950 trap '{ (exit 1); exit 1; }' 1 2 13 15
8953 # Create a (secure) tmp directory for tmp files.
8956 tmp=`(umask 077 && mktemp
-d -q "$TMPDIR/csXXXXXX") 2>/dev
/null
` &&
8957 test -n "$tmp" && test -d "$tmp"
8960 tmp=$TMPDIR/cs$$-$RANDOM
8961 (umask 077 && mkdir $tmp)
8964 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8965 { (exit 1); exit 1; }
8970 cat >>$CONFIG_STATUS <<_ACEOF
8973 # CONFIG_FILES section.
8976 # No need to generate the scripts if there are no CONFIG_FILES.
8977 # This happens for instance when ./config.status config.h
8978 if test -n "\$CONFIG_FILES"; then
8979 # Protect against being on the right side of a sed subst in config.status.
8980 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8981 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8982 s,@SHELL@,$SHELL,;t t
8983 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8984 s,@exec_prefix@,$exec_prefix,;t t
8985 s,@prefix@,$prefix,;t t
8986 s,@program_transform_name@,$program_transform_name,;t t
8987 s,@bindir@,$bindir,;t t
8988 s,@sbindir@,$sbindir,;t t
8989 s,@libexecdir@,$libexecdir,;t t
8990 s,@datadir@,$datadir,;t t
8991 s,@sysconfdir@,$sysconfdir,;t t
8992 s,@sharedstatedir@,$sharedstatedir,;t t
8993 s,@localstatedir@,$localstatedir,;t t
8994 s,@libdir@,$libdir,;t t
8995 s,@includedir@,$includedir,;t t
8996 s,@oldincludedir@,$oldincludedir,;t t
8997 s,@infodir@,$infodir,;t t
8998 s,@mandir@,$mandir,;t t
8999 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9000 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9001 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9002 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9003 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9004 s,@build_alias@,$build_alias,;t t
9005 s,@host_alias@,$host_alias,;t t
9006 s,@target_alias@,$target_alias,;t t
9008 s,@ECHO_C@,$ECHO_C,;t t
9009 s,@ECHO_N@,$ECHO_N,;t t
9010 s,@ECHO_T@,$ECHO_T,;t t
9012 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9013 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9014 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9015 s,@PACKAGE@,$PACKAGE,;t t
9016 s,@VERSION@,$VERSION,;t t
9017 s,@EXEEXT@,$EXEEXT,;t t
9018 s,@OBJEXT@,$OBJEXT,;t t
9019 s,@ACLOCAL@,$ACLOCAL,;t t
9020 s,@AUTOCONF@,$AUTOCONF,;t t
9021 s,@AUTOMAKE@,$AUTOMAKE,;t t
9022 s,@AUTOHEADER@,$AUTOHEADER,;t t
9023 s,@MAKEINFO@,$MAKEINFO,;t t
9024 s,@AMTAR@,$AMTAR,;t t
9025 s,@install_sh@,$install_sh,;t t
9026 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9028 s,@SET_MAKE@,$SET_MAKE,;t t
9029 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9030 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9031 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9032 s,@DEPDIR@,$DEPDIR,;t t
9034 s,@CFLAGS@,$CFLAGS,;t t
9035 s,@LDFLAGS@,$LDFLAGS,;t t
9036 s,@CPPFLAGS@,$CPPFLAGS,;t t
9037 s,@ac_ct_CC@,$ac_ct_CC,;t t
9038 s,@am__include@,$am__include,;t t
9039 s,@am__quote@,$am__quote,;t t
9040 s,@CCDEPMODE@,$CCDEPMODE,;t t
9042 s,@RANLIB@,$RANLIB,;t t
9043 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9045 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9047 s,@ANSI2KNR@,$ANSI2KNR,;t t
9048 s,@ALLOCA@,$ALLOCA,;t t
9049 s,@LIBOBJS@,$LIBOBJS,;t t
9050 s,@build@,$build,;t t
9051 s,@build_cpu@,$build_cpu,;t t
9052 s,@build_vendor@,$build_vendor,;t t
9053 s,@build_os@,$build_os,;t t
9055 s,@host_cpu@,$host_cpu,;t t
9056 s,@host_vendor@,$host_vendor,;t t
9057 s,@host_os@,$host_os,;t t
9058 s,@GLIBC21@,$GLIBC21,;t t
9059 s,@LIBICONV@,$LIBICONV,;t t
9060 s,@USE_NLS@,$USE_NLS,;t t
9061 s,@MSGFMT@,$MSGFMT,;t t
9062 s,@GMSGFMT@,$GMSGFMT,;t t
9063 s,@XGETTEXT@,$XGETTEXT,;t t
9064 s,@INTLBISON@,$INTLBISON,;t t
9065 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9066 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9067 s,@CATALOGS@,$CATALOGS,;t t
9068 s,@CATOBJEXT@,$CATOBJEXT,;t t
9069 s,@GMOFILES@,$GMOFILES,;t t
9070 s,@INTLLIBS@,$INTLLIBS,;t t
9071 s,@INTLOBJS@,$INTLOBJS,;t t
9072 s,@POFILES@,$POFILES,;t t
9073 s,@POSUB@,$POSUB,;t t
9074 s,@DATADIRNAME@,$DATADIRNAME,;t t
9075 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9076 s,@GENCAT@,$GENCAT,;t t
9077 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9078 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9083 cat >>$CONFIG_STATUS <<\_ACEOF
9084 # Split the substitutions into bite-sized pieces for seds with
9085 # small command number limits, like on Digital OSF/1 and HP-UX.
9087 ac_sed_frag=1 # Number of current file.
9088 ac_beg=1 # First line for current file.
9089 ac_end=$ac_max_sed_lines # Line after last line for current file.
9092 while $ac_more_lines; do
9093 if test $ac_beg -gt 1; then
9094 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9096 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9098 if test ! -s $tmp/subs.frag; then
9101 # The purpose of the label and of the branching condition is to
9102 # speed up the sed processing (if there are no `@
' at all, there
9103 # is no need to browse any of the substitutions).
9104 # These are the two extra sed commands mentioned above.
9106 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9107 if test -z "$ac_sed_cmds"; then
9108 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9110 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9112 ac_sed_frag=`expr $ac_sed_frag + 1`
9114 ac_end=`expr $ac_end + $ac_max_sed_lines`
9117 if test -z "$ac_sed_cmds"; then
9120 fi # test -n "$CONFIG_FILES"
9123 cat >>$CONFIG_STATUS <<\_ACEOF
9124 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9127 - | *:- | *:-:* ) # input from stdin
9129 ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9130 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9131 *:* ) ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9132 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9133 * ) ac_file_in=$ac_file.in ;;
9136 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9137 ac_dir=`$as_expr X"$ac_file" : 'X\
(.
*[^/]\)//*[^/][^/]*/*$
' \
| \
9138 X
"$ac_file" : 'X\(//\)[^/]' \
| \
9139 X
"$ac_file" : 'X\(//\)$' \
| \
9140 X
"$ac_file" : 'X\(/\)' \
| \
9141 .
: '\(.\)' 2>/dev
/null
||
9143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9145 /^X\(\/\/\)$/{ s//\1/; q; }
9146 /^X\(\/\).*/{ s//\1/; q; }
9149 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9153 for as_mkdir_dir in `IFS
='/\\'; set X
$as_dummy; shift; echo "$@"`; do
9154 case $as_mkdir_dir in
9155 # Skip DOS drivespec
9156 ?:) as_incr_dir=$as_mkdir_dir ;;
9158 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9159 test -d "$as_incr_dir" ||
9160 mkdir "$as_incr_dir" ||
9161 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9162 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9163 { (exit 1); exit 1; }; }
9170 if test "$ac_dir" != .; then
9171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9172 # A "../" for each directory in $ac_dir_suffix.
9173 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9175 ac_dir_suffix= ac_top_builddir=
9179 .) # No --srcdir option. We are building in place.
9181 if test -z "$ac_top_builddir"; then
9184 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9186 [\\/]* | ?:[\\/]* ) # Absolute path.
9187 ac_srcdir=$srcdir$ac_dir_suffix;
9188 ac_top_srcdir=$srcdir ;;
9190 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9191 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9193 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9195 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
9196 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9197 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9198 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9202 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9205 if test x"$ac_file" != x-; then
9206 { echo "$as_me:$LINENO: creating $ac_file" >&5
9207 echo "$as_me: creating $ac_file" >&6;}
9210 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9211 # use $as_me), people would be surprised to read:
9212 # /* config.h. Generated automatically by config.status. */
9213 configure_input
="Generated automatically from `echo $ac_file_in |
9214 sed 's,.*/,,'` by configure."
9216 # First look for the input files in the build tree, otherwise in the
9218 ac_file_inputs
=`IFS=:
9219 for f in $ac_file_in; do
9221 -) echo $tmp/stdin ;;
9223 # Absolute (can't be DOS-style, as IFS=:)
9224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9225 echo "$as_me: error: cannot find input file: $f" >&2;}
9226 { (exit 1); exit 1; }; }
9229 if test -f "$f"; then
9232 elif test -f "$srcdir/$f"; then
9237 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9238 echo "$as_me: error: cannot find input file: $f" >&2;}
9239 { (exit 1); exit 1; }; }
9242 done` || { (exit 1); exit 1; }
9244 cat >>$CONFIG_STATUS <<_ACEOF
9248 cat >>$CONFIG_STATUS <<\_ACEOF
9250 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9251 s
,@configure_input@
,$configure_input,;t t
9252 s
,@srcdir@
,$ac_srcdir,;t t
9253 s
,@srcpath@
,$ac_srcpath,;t t
9254 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9255 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9256 s
,@builddir@
,$ac_builddir,;t t
9257 s
,@buildpath@
,$ac_buildpath,;t t
9258 s
,@top_builddir@
,$ac_top_builddir,;t t
9259 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9260 s
,@INSTALL@
,$ac_INSTALL,;t t
9261 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9263 if test x"$ac_file" != x-; then
9264 mv $tmp/out $ac_file
9272 cat >>$CONFIG_STATUS <<\_ACEOF
9275 # CONFIG_HEADER section.
9278 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9279 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9281 # ac_d sets the value in "#define NAME VALUE" lines.
9282 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9283 ac_dB
='[ ].*$,\1#\2'
9286 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9287 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9288 ac_uB
='$,\1#\2define\3'
9292 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9293 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9295 - | *:- | *:-:* ) # input from stdin
9297 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9298 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9299 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9300 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9301 * ) ac_file_in
=$ac_file.
in ;;
9304 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9305 echo "$as_me: creating $ac_file" >&6;}
9307 # First look for the input files in the build tree, otherwise in the
9309 ac_file_inputs
=`IFS=:
9310 for f in $ac_file_in; do
9312 -) echo $tmp/stdin ;;
9314 # Absolute (can't be DOS-style, as IFS=:)
9315 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9316 echo "$as_me: error: cannot find input file: $f" >&2;}
9317 { (exit 1); exit 1; }; }
9320 if test -f "$f"; then
9323 elif test -f "$srcdir/$f"; then
9328 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9329 echo "$as_me: error: cannot find input file: $f" >&2;}
9330 { (exit 1); exit 1; }; }
9333 done` || { (exit 1); exit 1; }
9334 # Remove the trailing spaces.
9335 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9339 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9340 # `conftest.undefs', that substitutes the proper values into
9341 # config.h.in to produce config.h. The first handles `#define'
9342 # templates, and the second `#undef' templates.
9343 # And first: Protect against being on the right side of a sed subst in
9344 # config.status. Protect against being in an unquoted here document
9346 rm -f conftest.defines conftest.undefs
9347 # Using a here document instead of a string reduces the quoting nightmare.
9348 # Putting comments in sed scripts is not portable.
9350 # `end' is used to avoid that the second main sed command (meant for
9351 # 0-ary CPP macros) applies to n-ary macro definitions.
9352 # See the Autoconf documentation for `clear'.
9353 cat >confdef2sed.
sed <<\_ACEOF
9358 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9360 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9363 # If some macros were called several times there might be several times
9364 # the same #defines, which is useless. Nevertheless, we may not want to
9365 # sort them, since we want the *last* AC-DEFINE to be honored.
9366 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9367 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9368 rm -f confdef2sed.sed
9370 # This sed command replaces #undef with comments. This is necessary, for
9371 # example, in the case of _POSIX_SOURCE, which is predefined and required
9372 # on some systems where configure will not decide to define it.
9373 cat >>conftest.undefs <<\_ACEOF
9374 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9377 # Break up conftest.defines because some shells have a limit on the size
9378 # of here documents, and old seds have small limits too (100 cmds).
9379 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9380 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9381 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9382 echo ' :' >>$CONFIG_STATUS
9384 while grep . conftest.defines >/dev/null
9386 # Write a limited-size here document to $tmp/defines.sed.
9387 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9388 # Speed up: don't consider the non `#define' lines.
9389 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9390 # Work around the forget-to-reset-the-flag bug.
9391 echo 't clr' >>$CONFIG_STATUS
9392 echo ': clr' >>$CONFIG_STATUS
9393 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9395 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9399 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9400 rm -f conftest.defines
9401 mv conftest.
tail conftest.defines
9403 rm -f conftest.defines
9404 echo ' fi # egrep' >>$CONFIG_STATUS
9405 echo >>$CONFIG_STATUS
9407 # Break up conftest.undefs because some shells have a limit on the size
9408 # of here documents, and old seds have small limits too (100 cmds).
9409 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9411 while grep . conftest.undefs
>/dev
/null
9413 # Write a limited-size here document to $tmp/undefs.sed.
9414 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9415 # Speed up: don't consider the non
`#undef'
9416 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9417 # Work around the forget-to-reset-the-flag bug.
9418 echo 't clr' >>$CONFIG_STATUS
9419 echo ': clr' >>$CONFIG_STATUS
9420 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9422 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9426 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9427 rm -f conftest.undefs
9428 mv conftest.tail conftest.undefs
9430 rm -f conftest.undefs
9432 cat >>$CONFIG_STATUS <<\_ACEOF
9433 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9434 # use $as_me), people would be surprised to read:
9435 # /* config.h. Generated automatically by config.status. */
9436 if test x
"$ac_file" = x
-; then
9437 echo "/* Generated automatically by configure. */" >$tmp/config.h
9439 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9441 cat $tmp/in >>$tmp/config.h
9443 if test x
"$ac_file" != x
-; then
9444 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9445 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9446 echo "$as_me: $ac_file is unchanged" >&6;}
9448 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9449 X"$ac_file" : 'X\(//\)[^/]' \| \
9450 X"$ac_file" : 'X\(//\)$' \| \
9451 X"$ac_file" : 'X\(/\)' \| \
9452 . : '\(.\)' 2>/dev/null ||
9454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9455 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9456 /^X\(\/\/\)$/{ s//\1/; q; }
9457 /^X\(\/\).*/{ s//\1/; q; }
9460 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9464 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9465 case $as_mkdir_dir in
9466 # Skip DOS drivespec
9467 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9469 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9470 test -d "$as_incr_dir" ||
9471 mkdir "$as_incr_dir" ||
9472 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9473 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9474 { (exit 1); exit 1; }; }
9480 mv $tmp/config.h
$ac_file
9486 # Run the commands associated with the file.
9488 config.h
) # update the timestamp
9489 echo timestamp
>"./stamp-h1"
9494 cat >>$CONFIG_STATUS <<\_ACEOF
9497 # CONFIG_COMMANDS section.
9499 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9500 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9501 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9502 ac_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9503 X"$ac_dest" : 'X\(//\)[^/]' \| \
9504 X"$ac_dest" : 'X\(//\)$' \| \
9505 X"$ac_dest" : 'X\(/\)' \| \
9506 . : '\(.\)' 2>/dev/null ||
9508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9510 /^X\(\/\/\)$/{ s//\1/; q; }
9511 /^X\(\/\).*/{ s//\1/; q; }
9515 if test "$ac_dir" != .
; then
9516 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9517 # A "../" for each directory in $ac_dir_suffix.
9518 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9520 ac_dir_suffix
= ac_top_builddir
=
9524 .
) # No --srcdir option. We are building in place.
9526 if test -z "$ac_top_builddir"; then
9529 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9531 [\\/]* | ?
:[\\/]* ) # Absolute path.
9532 ac_srcdir
=$srcdir$ac_dir_suffix;
9533 ac_top_srcdir
=$srcdir ;;
9535 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9536 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9538 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9540 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9541 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9542 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9543 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9545 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9546 echo "$as_me: executing $ac_dest commands" >&6;}
9548 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9549 # Signature of the current package.
9550 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9551 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9552 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9553 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9554 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9557 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9558 # Configurable variable values for building test suites.
9560 # Copyright 2000, 2001 Free Software Foundation, Inc.
9563 buildpath='$ac_buildpath'
9565 srcpath='$ac_srcpath'
9566 top_srcdir='$ac_top_srcdir'
9567 top_srcpath='$ac_top_srcpath'
9568 top_builddir='$ac_top_builddir'
9569 top_buildpath='$ac_top_buildpath'
9571 AUTOTEST_PATH='tests'
9573 SHELL=\${CONFIG_SHELL-'$SHELL'}
9577 test x
"$AMDEP_TRUE" != x
"" ||
9578 for mf
in $CONFIG_FILES; do
9580 Makefile
) dirpart
=.
;;
9581 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9584 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9585 # Extract the definition of DEP_FILES from the Makefile without
9587 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9588 test -z "$DEPDIR" && continue
9589 # When using ansi2knr, U may be empty or an underscore; expand it
9590 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9591 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9592 # We invoke sed twice because it is the simplest approach to
9593 # changing $(DEPDIR) to its actual value in the expansion.
9594 for file in `sed -n -e '
9595 /^DEP_FILES = .*\\\\$/ {
9604 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9605 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9606 # Make sure the directory exists.
9607 test -f "$dirpart/$file" && continue
9608 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9609 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9610 # echo "creating $dirpart/$file"
9611 echo '# dummy' > "$dirpart/$file"
9615 default
-2 ) for ac_file
in $CONFIG_FILES; do
9616 # Support "outfile[:infile[:infile...]]"
9618 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9620 # PO directories have a Makefile.in generated from Makefile.in.in.
9621 case "$ac_file" in */Makefile.
in)
9622 # Adjust a relative srcdir.
9623 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9624 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9625 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9626 # In autoconf-2.13 it is called $ac_given_srcdir.
9627 # In autoconf-2.50 it is called $srcdir.
9628 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9629 case "$ac_given_srcdir" in
9630 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9631 /*) top_srcdir
="$ac_given_srcdir" ;;
9632 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9634 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9635 rm -f "$ac_dir/POTFILES"
9636 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9637 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9638 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9639 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9648 cat >>$CONFIG_STATUS <<\_ACEOF
9650 { (exit 0); exit 0; }
9652 chmod +x
$CONFIG_STATUS
9653 ac_clean_files
=$ac_clean_files_save
9655 # configure is writing to config.log, and then calls config.status.
9656 # config.status does its own redirection, appending to config.log.
9657 # Unfortunately, on DOS this fails, as config.log is still kept open
9658 # by configure, so config.status won't be able to write to it; its
9659 # output is simply discarded. So we exec the FD to /dev/null,
9660 # effectively closing config.log, so it can be properly (re)opened and
9661 # appended to by config.status. When coming back to configure, we
9662 # need to make the FD available again.
9663 if test "$no_create" != yes; then
9666 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9669 # would make configure fail if this is the last instruction.
9670 $ac_cs_success || { (exit 1); exit 1; }