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 mbrtowc
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 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
5325 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5327 echo "$as_me:$LINENO: checking for $ac_header" >&5
5328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5335 # Is the header compilable?
5336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5338 cat >conftest.
$ac_ext <<_ACEOF
5339 #line $LINENO "configure"
5340 #include "confdefs.h"
5341 $ac_includes_default
5342 #include <$ac_header>
5344 rm -f conftest.
$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try
='test -s conftest.$ac_objext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_header_compiler
=yes
5358 echo "$as_me: failed program was:" >&5
5359 cat conftest.
$ac_ext >&5
5360 ac_header_compiler
=no
5362 rm -f conftest.
$ac_objext conftest.
$ac_ext
5363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5364 echo "${ECHO_T}$ac_header_compiler" >&6
5366 # Is the header present?
5367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5369 cat >conftest.
$ac_ext <<_ACEOF
5370 #line $LINENO "configure"
5371 #include "confdefs.h"
5372 #include <$ac_header>
5374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5375 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5377 egrep -v '^ *\+' conftest.er1
>conftest.err
5379 cat conftest.err
>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } >/dev
/null
; then
5382 if test -s conftest.err
; then
5383 ac_cpp_err
=$ac_c_preproc_warn_flag
5390 if test -z "$ac_cpp_err"; then
5391 ac_header_preproc
=yes
5393 echo "$as_me: failed program was:" >&5
5394 cat conftest.
$ac_ext >&5
5395 ac_header_preproc
=no
5397 rm -f conftest.err conftest.
$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5399 echo "${ECHO_T}$ac_header_preproc" >&6
5401 # So? What about this header?
5402 case $ac_header_compiler:$ac_header_preproc in
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5416 echo "$as_me:$LINENO: checking for $ac_header" >&5
5417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 eval "$as_ac_Header=$ac_header_preproc"
5423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5428 cat >>confdefs.h
<<_ACEOF
5429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5436 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5437 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5438 if test "${ac_cv_header_stdc+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 cat >conftest.
$ac_ext <<_ACEOF
5442 #line $LINENO "configure"
5443 #include "confdefs.h"
5450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5451 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5453 egrep -v '^ *\+' conftest.er1
>conftest.err
5455 cat conftest.err
>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } >/dev
/null
; then
5458 if test -s conftest.err
; then
5459 ac_cpp_err
=$ac_c_preproc_warn_flag
5466 if test -z "$ac_cpp_err"; then
5467 ac_cv_header_stdc
=yes
5469 echo "$as_me: failed program was:" >&5
5470 cat conftest.
$ac_ext >&5
5471 ac_cv_header_stdc
=no
5473 rm -f conftest.err conftest.
$ac_ext
5475 if test $ac_cv_header_stdc = yes; then
5476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5477 cat >conftest.
$ac_ext <<_ACEOF
5478 #line $LINENO "configure"
5479 #include "confdefs.h"
5483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5484 egrep "memchr" >/dev
/null
2>&1; then
5487 ac_cv_header_stdc
=no
5493 if test $ac_cv_header_stdc = yes; then
5494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5495 cat >conftest.
$ac_ext <<_ACEOF
5496 #line $LINENO "configure"
5497 #include "confdefs.h"
5501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5502 egrep "free" >/dev
/null
2>&1; then
5505 ac_cv_header_stdc
=no
5511 if test $ac_cv_header_stdc = yes; then
5512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5513 if test "$cross_compiling" = yes; then
5516 cat >conftest.
$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5518 #include "confdefs.h"
5520 #if ((' ' & 0x0FF) == 0x020)
5521 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5522 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5524 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5525 || ('j' <= (c) && (c) <= 'r') \
5526 || ('s' <= (c) && (c) <= 'z'))
5527 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5535 for (i = 0; i < 256; i++)
5536 if (XOR (islower (i), ISLOWER (i))
5537 || toupper (i) != TOUPPER (i))
5542 rm -f conftest
$ac_exeext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5544 (eval $ac_link) 2>&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5555 echo "$as_me: program exited with status $ac_status" >&5
5556 echo "$as_me: failed program was:" >&5
5557 cat conftest.
$ac_ext >&5
5558 ac_cv_header_stdc
=no
5560 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5564 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5565 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5566 if test $ac_cv_header_stdc = yes; then
5568 cat >>confdefs.h
<<\_ACEOF
5569 #define STDC_HEADERS 1
5574 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
5575 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
5576 if test "${ac_cv_c_backslash_a+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 cat >conftest.
$ac_ext <<_ACEOF
5580 #line $LINENO "configure"
5581 #include "confdefs.h"
5583 #ifdef F77_DUMMY_MAIN
5587 int F77_DUMMY_MAIN() { return 1; }
5596 char buf['\a' == 'a' ? -1 : 1];
5598 return buf[0] != "\a"[0];
5604 rm -f conftest.
$ac_objext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606 (eval $ac_compile) 2>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try
='test -s conftest.$ac_objext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_c_backslash_a
=yes
5618 echo "$as_me: failed program was:" >&5
5619 cat conftest.
$ac_ext >&5
5620 ac_cv_c_backslash_a
=no
5622 rm -f conftest.
$ac_objext conftest.
$ac_ext
5624 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
5625 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
5626 if test $ac_cv_c_backslash_a = yes; then
5628 cat >>confdefs.h
<<\_ACEOF
5629 #define HAVE_C_BACKSLASH_A 1
5634 for ac_header
in stdlib.h
5636 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5638 echo "$as_me:$LINENO: checking for $ac_header" >&5
5639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5646 # Is the header compilable?
5647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5649 cat >conftest.
$ac_ext <<_ACEOF
5650 #line $LINENO "configure"
5651 #include "confdefs.h"
5652 $ac_includes_default
5653 #include <$ac_header>
5655 rm -f conftest.
$ac_objext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657 (eval $ac_compile) 2>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try
='test -s conftest.$ac_objext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_header_compiler
=yes
5669 echo "$as_me: failed program was:" >&5
5670 cat conftest.
$ac_ext >&5
5671 ac_header_compiler
=no
5673 rm -f conftest.
$ac_objext conftest.
$ac_ext
5674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5675 echo "${ECHO_T}$ac_header_compiler" >&6
5677 # Is the header present?
5678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5680 cat >conftest.
$ac_ext <<_ACEOF
5681 #line $LINENO "configure"
5682 #include "confdefs.h"
5683 #include <$ac_header>
5685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5686 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5688 egrep -v '^ *\+' conftest.er1
>conftest.err
5690 cat conftest.err
>&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } >/dev
/null
; then
5693 if test -s conftest.err
; then
5694 ac_cpp_err
=$ac_c_preproc_warn_flag
5701 if test -z "$ac_cpp_err"; then
5702 ac_header_preproc
=yes
5704 echo "$as_me: failed program was:" >&5
5705 cat conftest.
$ac_ext >&5
5706 ac_header_preproc
=no
5708 rm -f conftest.err conftest.
$ac_ext
5709 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5710 echo "${ECHO_T}$ac_header_preproc" >&6
5712 # So? What about this header?
5713 case $ac_header_compiler:$ac_header_preproc in
5715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5727 echo "$as_me:$LINENO: checking for $ac_header" >&5
5728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 eval "$as_ac_Header=$ac_header_preproc"
5734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5739 cat >>confdefs.h
<<_ACEOF
5740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5747 echo "$as_me:$LINENO: checking for mbstate_t" >&5
5748 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
5749 if test "${ac_cv_type_mbstate_t+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 cat >conftest.
$ac_ext <<_ACEOF
5753 #line $LINENO "configure"
5754 #include "confdefs.h"
5757 # include <stdlib.h>
5760 #ifdef F77_DUMMY_MAIN
5764 int F77_DUMMY_MAIN() { return 1; }
5769 mbstate_t x; return sizeof x;
5774 rm -f conftest.
$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 { ac_try
='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_cv_type_mbstate_t
=yes
5788 echo "$as_me: failed program was:" >&5
5789 cat conftest.
$ac_ext >&5
5790 ac_cv_type_mbstate_t
=no
5792 rm -f conftest.
$ac_objext conftest.
$ac_ext
5794 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
5795 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
5796 if test $ac_cv_type_mbstate_t = no
; then
5798 cat >>confdefs.h
<<\_ACEOF
5799 #define mbstate_t int
5804 echo "$as_me:$LINENO: checking for function prototypes" >&5
5805 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5806 if test "$am_cv_prog_cc_stdc" != no
; then
5807 echo "$as_me:$LINENO: result: yes" >&5
5808 echo "${ECHO_T}yes" >&6
5810 cat >>confdefs.h
<<\_ACEOF
5811 #define PROTOTYPES 1
5816 echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6
5818 U
=_ ANSI2KNR
=.
/ansi2knr
5820 # Ensure some checks needed by ansi2knr itself.
5821 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5822 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5823 if test "${ac_cv_header_stdc+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 cat >conftest.
$ac_ext <<_ACEOF
5827 #line $LINENO "configure"
5828 #include "confdefs.h"
5835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5836 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5838 egrep -v '^ *\+' conftest.er1
>conftest.err
5840 cat conftest.err
>&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } >/dev
/null
; then
5843 if test -s conftest.err
; then
5844 ac_cpp_err
=$ac_c_preproc_warn_flag
5851 if test -z "$ac_cpp_err"; then
5852 ac_cv_header_stdc
=yes
5854 echo "$as_me: failed program was:" >&5
5855 cat conftest.
$ac_ext >&5
5856 ac_cv_header_stdc
=no
5858 rm -f conftest.err conftest.
$ac_ext
5860 if test $ac_cv_header_stdc = yes; then
5861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5862 cat >conftest.
$ac_ext <<_ACEOF
5863 #line $LINENO "configure"
5864 #include "confdefs.h"
5868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5869 egrep "memchr" >/dev
/null
2>&1; then
5872 ac_cv_header_stdc
=no
5878 if test $ac_cv_header_stdc = yes; then
5879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5880 cat >conftest.
$ac_ext <<_ACEOF
5881 #line $LINENO "configure"
5882 #include "confdefs.h"
5886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5887 egrep "free" >/dev
/null
2>&1; then
5890 ac_cv_header_stdc
=no
5896 if test $ac_cv_header_stdc = yes; then
5897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5898 if test "$cross_compiling" = yes; then
5901 cat >conftest.
$ac_ext <<_ACEOF
5902 #line $LINENO "configure"
5903 #include "confdefs.h"
5905 #if ((' ' & 0x0FF) == 0x020)
5906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5909 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5910 || ('j' <= (c) && (c) <= 'r') \
5911 || ('s' <= (c) && (c) <= 'z'))
5912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5920 for (i = 0; i < 256; i++)
5921 if (XOR (islower (i), ISLOWER (i))
5922 || toupper (i) != TOUPPER (i))
5927 rm -f conftest
$ac_exeext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5940 echo "$as_me: program exited with status $ac_status" >&5
5941 echo "$as_me: failed program was:" >&5
5942 cat conftest.
$ac_ext >&5
5943 ac_cv_header_stdc
=no
5945 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5949 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5950 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5951 if test $ac_cv_header_stdc = yes; then
5953 cat >>confdefs.h
<<\_ACEOF
5954 #define STDC_HEADERS 1
5959 for ac_header
in string.h
5961 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5963 echo "$as_me:$LINENO: checking for $ac_header" >&5
5964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5971 # Is the header compilable?
5972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5974 cat >conftest.
$ac_ext <<_ACEOF
5975 #line $LINENO "configure"
5976 #include "confdefs.h"
5977 $ac_includes_default
5978 #include <$ac_header>
5980 rm -f conftest.
$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try
='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_header_compiler
=yes
5994 echo "$as_me: failed program was:" >&5
5995 cat conftest.
$ac_ext >&5
5996 ac_header_compiler
=no
5998 rm -f conftest.
$ac_objext conftest.
$ac_ext
5999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6000 echo "${ECHO_T}$ac_header_compiler" >&6
6002 # Is the header present?
6003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6005 cat >conftest.
$ac_ext <<_ACEOF
6006 #line $LINENO "configure"
6007 #include "confdefs.h"
6008 #include <$ac_header>
6010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6011 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6013 egrep -v '^ *\+' conftest.er1
>conftest.err
6015 cat conftest.err
>&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } >/dev
/null
; then
6018 if test -s conftest.err
; then
6019 ac_cpp_err
=$ac_c_preproc_warn_flag
6026 if test -z "$ac_cpp_err"; then
6027 ac_header_preproc
=yes
6029 echo "$as_me: failed program was:" >&5
6030 cat conftest.
$ac_ext >&5
6031 ac_header_preproc
=no
6033 rm -f conftest.err conftest.
$ac_ext
6034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6035 echo "${ECHO_T}$ac_header_preproc" >&6
6037 # So? What about this header?
6038 case $ac_header_compiler:$ac_header_preproc in
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6052 echo "$as_me:$LINENO: checking for $ac_header" >&5
6053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 eval "$as_ac_Header=$ac_header_preproc"
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6064 cat >>confdefs.h
<<_ACEOF
6065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6072 for ac_func
in strerror strerror_r vprintf doprnt
6074 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6075 echo "$as_me:$LINENO: checking for $ac_func" >&5
6076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6077 if eval "test \"\${$as_ac_var+set}\" = set"; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 cat >conftest.
$ac_ext <<_ACEOF
6081 #line $LINENO "configure"
6082 #include "confdefs.h"
6083 /* System header to define __stub macros and hopefully few prototypes,
6084 which can conflict with char $ac_func (); below. */
6086 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6095 #ifdef F77_DUMMY_MAIN
6099 int F77_DUMMY_MAIN() { return 1; }
6104 /* The GNU C library defines this for functions which it implements
6105 to always fail with ENOSYS. Some functions are actually named
6106 something starting with __ and the normal name is an alias. */
6107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6117 rm -f conftest.
$ac_objext conftest
$ac_exeext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6119 (eval $ac_link) 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try
='test -s conftest$ac_exeext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 eval "$as_ac_var=yes"
6131 echo "$as_me: failed program was:" >&5
6132 cat conftest.
$ac_ext >&5
6133 eval "$as_ac_var=no"
6135 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6139 if test `eval echo '${'$as_ac_var'}'` = yes; then
6140 cat >>confdefs.h
<<_ACEOF
6141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6147 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6149 if test "${ac_cv_header_stdc+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 cat >conftest.
$ac_ext <<_ACEOF
6153 #line $LINENO "configure"
6154 #include "confdefs.h"
6161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6162 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6164 egrep -v '^ *\+' conftest.er1
>conftest.err
6166 cat conftest.err
>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } >/dev
/null
; then
6169 if test -s conftest.err
; then
6170 ac_cpp_err
=$ac_c_preproc_warn_flag
6177 if test -z "$ac_cpp_err"; then
6178 ac_cv_header_stdc
=yes
6180 echo "$as_me: failed program was:" >&5
6181 cat conftest.
$ac_ext >&5
6182 ac_cv_header_stdc
=no
6184 rm -f conftest.err conftest.
$ac_ext
6186 if test $ac_cv_header_stdc = yes; then
6187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6188 cat >conftest.
$ac_ext <<_ACEOF
6189 #line $LINENO "configure"
6190 #include "confdefs.h"
6194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6195 egrep "memchr" >/dev
/null
2>&1; then
6198 ac_cv_header_stdc
=no
6204 if test $ac_cv_header_stdc = yes; then
6205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6206 cat >conftest.
$ac_ext <<_ACEOF
6207 #line $LINENO "configure"
6208 #include "confdefs.h"
6212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6213 egrep "free" >/dev
/null
2>&1; then
6216 ac_cv_header_stdc
=no
6222 if test $ac_cv_header_stdc = yes; then
6223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6224 if test "$cross_compiling" = yes; then
6227 cat >conftest.
$ac_ext <<_ACEOF
6228 #line $LINENO "configure"
6229 #include "confdefs.h"
6231 #if ((' ' & 0x0FF) == 0x020)
6232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6235 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6236 || ('j' <= (c) && (c) <= 'r') \
6237 || ('s' <= (c) && (c) <= 'z'))
6238 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6246 for (i = 0; i < 256; i++)
6247 if (XOR (islower (i), ISLOWER (i))
6248 || toupper (i) != TOUPPER (i))
6253 rm -f conftest
$ac_exeext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255 (eval $ac_link) 2>&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6266 echo "$as_me: program exited with status $ac_status" >&5
6267 echo "$as_me: failed program was:" >&5
6268 cat conftest.
$ac_ext >&5
6269 ac_cv_header_stdc
=no
6271 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6275 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6276 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6277 if test $ac_cv_header_stdc = yes; then
6279 cat >>confdefs.h
<<\_ACEOF
6280 #define STDC_HEADERS 1
6285 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6286 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6287 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 cat >conftest.
$ac_ext <<_ACEOF
6291 #line $LINENO "configure"
6292 #include "confdefs.h"
6293 $ac_includes_default
6294 #ifdef F77_DUMMY_MAIN
6298 int F77_DUMMY_MAIN() { return 1; }
6304 char *p = (char *) strerror_r;
6311 rm -f conftest.
$ac_objext
6312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6313 (eval $ac_compile) 2>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try
='test -s conftest.$ac_objext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 ac_cv_have_decl_strerror_r
=yes
6325 echo "$as_me: failed program was:" >&5
6326 cat conftest.
$ac_ext >&5
6327 ac_cv_have_decl_strerror_r
=no
6329 rm -f conftest.
$ac_objext conftest.
$ac_ext
6331 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6332 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6333 if test $ac_cv_have_decl_strerror_r = yes; then
6335 cat >>confdefs.h
<<_ACEOF
6336 #define HAVE_DECL_STRERROR_R 1
6340 cat >>confdefs.h
<<_ACEOF
6341 #define HAVE_DECL_STRERROR_R 0
6346 for ac_func
in strerror_r
6348 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6349 echo "$as_me:$LINENO: checking for $ac_func" >&5
6350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6351 if eval "test \"\${$as_ac_var+set}\" = set"; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 cat >conftest.
$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6356 #include "confdefs.h"
6357 /* System header to define __stub macros and hopefully few prototypes,
6358 which can conflict with char $ac_func (); below. */
6360 /* Override any gcc2 internal prototype to avoid an error. */
6364 /* We use char because int might match the return type of a gcc2
6365 builtin and then its argument prototype would still apply. */
6369 #ifdef F77_DUMMY_MAIN
6373 int F77_DUMMY_MAIN() { return 1; }
6378 /* The GNU C library defines this for functions which it implements
6379 to always fail with ENOSYS. Some functions are actually named
6380 something starting with __ and the normal name is an alias. */
6381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6391 rm -f conftest.
$ac_objext conftest
$ac_exeext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6393 (eval $ac_link) 2>&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try
='test -s conftest$ac_exeext'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; }; then
6403 eval "$as_ac_var=yes"
6405 echo "$as_me: failed program was:" >&5
6406 cat conftest.
$ac_ext >&5
6407 eval "$as_ac_var=no"
6409 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6413 if test `eval echo '${'$as_ac_var'}'` = yes; then
6414 cat >>confdefs.h
<<_ACEOF
6415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6421 if test $ac_cv_func_strerror_r = yes; then
6423 for ac_header
in string.h
6425 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6427 echo "$as_me:$LINENO: checking for $ac_header" >&5
6428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6435 # Is the header compilable?
6436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6438 cat >conftest.
$ac_ext <<_ACEOF
6439 #line $LINENO "configure"
6440 #include "confdefs.h"
6441 $ac_includes_default
6442 #include <$ac_header>
6444 rm -f conftest.
$ac_objext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446 (eval $ac_compile) 2>&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try
='test -s conftest.$ac_objext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 ac_header_compiler
=yes
6458 echo "$as_me: failed program was:" >&5
6459 cat conftest.
$ac_ext >&5
6460 ac_header_compiler
=no
6462 rm -f conftest.
$ac_objext conftest.
$ac_ext
6463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6464 echo "${ECHO_T}$ac_header_compiler" >&6
6466 # Is the header present?
6467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6469 cat >conftest.
$ac_ext <<_ACEOF
6470 #line $LINENO "configure"
6471 #include "confdefs.h"
6472 #include <$ac_header>
6474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6475 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6477 egrep -v '^ *\+' conftest.er1
>conftest.err
6479 cat conftest.err
>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } >/dev
/null
; then
6482 if test -s conftest.err
; then
6483 ac_cpp_err
=$ac_c_preproc_warn_flag
6490 if test -z "$ac_cpp_err"; then
6491 ac_header_preproc
=yes
6493 echo "$as_me: failed program was:" >&5
6494 cat conftest.
$ac_ext >&5
6495 ac_header_preproc
=no
6497 rm -f conftest.err conftest.
$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6501 # So? What about this header?
6502 case $ac_header_compiler:$ac_header_preproc in
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6516 echo "$as_me:$LINENO: checking for $ac_header" >&5
6517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 eval "$as_ac_Header=$ac_header_preproc"
6523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6528 cat >>confdefs.h
<<_ACEOF
6529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6536 echo "$as_me:$LINENO: checking for working strerror_r" >&5
6537 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
6538 if test "${ac_cv_func_strerror_r_works+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 cat >conftest.
$ac_ext <<_ACEOF
6543 #line $LINENO "configure"
6544 #include "confdefs.h"
6548 # include <string.h>
6551 #ifdef F77_DUMMY_MAIN
6555 int F77_DUMMY_MAIN() { return 1; }
6562 char x = *strerror_r (0, buf, sizeof buf);
6568 rm -f conftest.
$ac_objext
6569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6570 (eval $ac_compile) 2>&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try
='test -s conftest.$ac_objext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6580 ac_cv_func_strerror_r_works
=yes
6582 echo "$as_me: failed program was:" >&5
6583 cat conftest.
$ac_ext >&5
6584 ac_cv_func_strerror_r_works
=no
6587 rm -f conftest.
$ac_objext conftest.
$ac_ext
6588 if test $ac_cv_func_strerror_r_works = no
; then
6589 # strerror_r seems not to work, but now we have to choose between
6590 # systems that have relatively inaccessible declarations for the
6591 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6592 # former has a strerror_r that returns char*, while the latter
6593 # has a strerror_r that returns `int'.
6594 # This test should segfault on the DEC system.
6595 if test "$cross_compiling" = yes; then
6596 ac_cv_func_strerror_r_works
=no
6598 cat >conftest.
$ac_ext <<_ACEOF
6599 #line $LINENO "configure"
6600 #include "confdefs.h"
6603 # include <string.h>
6606 extern char *strerror_r ();
6612 char x = *strerror_r (0, buf, sizeof buf);
6613 exit (!isalpha (x));
6617 rm -f conftest
$ac_exeext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619 (eval $ac_link) 2>&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 ac_cv_func_strerror_r_works
=yes
6630 echo "$as_me: program exited with status $ac_status" >&5
6631 echo "$as_me: failed program was:" >&5
6632 cat conftest.
$ac_ext >&5
6633 ac_cv_func_strerror_r_works
=no
6635 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6640 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5
6641 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
6642 if test $ac_cv_func_strerror_r_works = yes; then
6644 cat >>confdefs.h
<<_ACEOF
6645 #define HAVE_WORKING_STRERROR_R 1
6651 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6652 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6654 # Check whether --with-dmalloc or --without-dmalloc was given.
6655 if test "${with_dmalloc+set}" = set; then
6656 withval
="$with_dmalloc"
6657 if test "$withval" = yes; then
6658 echo "$as_me:$LINENO: result: yes" >&5
6659 echo "${ECHO_T}yes" >&6
6661 cat >>confdefs.h
<<\_ACEOF
6662 #define WITH_DMALLOC 1
6665 LIBS
="$LIBS -ldmalloc"
6666 LDFLAGS
="$LDFLAGS -g"
6668 echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6
6672 echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6
6676 ALL_LINGUAS
="de es et fr ja nl tr ru"
6677 # Make sure we can run config.sub.
6678 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6679 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6680 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6681 { (exit 1); exit 1; }; }
6683 echo "$as_me:$LINENO: checking build system type" >&5
6684 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6685 if test "${ac_cv_build+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 ac_cv_build_alias
=$build_alias
6689 test -z "$ac_cv_build_alias" &&
6690 ac_cv_build_alias
=`$ac_config_guess`
6691 test -z "$ac_cv_build_alias" &&
6692 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6693 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6694 { (exit 1); exit 1; }; }
6695 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6696 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
6697 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
6698 { (exit 1); exit 1; }; }
6701 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6702 echo "${ECHO_T}$ac_cv_build" >&6
6704 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6705 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6706 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6708 echo "$as_me:$LINENO: checking host system type" >&5
6709 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6710 if test "${ac_cv_host+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_cv_host_alias
=$host_alias
6714 test -z "$ac_cv_host_alias" &&
6715 ac_cv_host_alias
=$ac_cv_build_alias
6716 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6717 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6718 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6719 { (exit 1); exit 1; }; }
6722 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6723 echo "${ECHO_T}$ac_cv_host" >&6
6725 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6726 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6727 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6729 echo "$as_me:$LINENO: checking for off_t" >&5
6730 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6731 if test "${ac_cv_type_off_t+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 cat >conftest.
$ac_ext <<_ACEOF
6735 #line $LINENO "configure"
6736 #include "confdefs.h"
6737 $ac_includes_default
6738 #ifdef F77_DUMMY_MAIN
6742 int F77_DUMMY_MAIN() { return 1; }
6755 rm -f conftest.
$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757 (eval $ac_compile) 2>&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
6761 { ac_try
='test -s conftest.$ac_objext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_cv_type_off_t
=yes
6769 echo "$as_me: failed program was:" >&5
6770 cat conftest.
$ac_ext >&5
6773 rm -f conftest.
$ac_objext conftest.
$ac_ext
6775 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6776 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6777 if test $ac_cv_type_off_t = yes; then
6781 cat >>confdefs.h
<<_ACEOF
6787 echo "$as_me:$LINENO: checking for size_t" >&5
6788 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6789 if test "${ac_cv_type_size_t+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.
$ac_ext <<_ACEOF
6793 #line $LINENO "configure"
6794 #include "confdefs.h"
6795 $ac_includes_default
6796 #ifdef F77_DUMMY_MAIN
6800 int F77_DUMMY_MAIN() { return 1; }
6807 if (sizeof (size_t))
6813 rm -f conftest.
$ac_objext
6814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6815 (eval $ac_compile) 2>&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try
='test -s conftest.$ac_objext'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6825 ac_cv_type_size_t
=yes
6827 echo "$as_me: failed program was:" >&5
6828 cat conftest.
$ac_ext >&5
6829 ac_cv_type_size_t
=no
6831 rm -f conftest.
$ac_objext conftest.
$ac_ext
6833 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6834 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6835 if test $ac_cv_type_size_t = yes; then
6839 cat >>confdefs.h
<<_ACEOF
6840 #define size_t unsigned
6845 for ac_header
in stdlib.h unistd.h
6847 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849 echo "$as_me:$LINENO: checking for $ac_header" >&5
6850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6857 # Is the header compilable?
6858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6860 cat >conftest.
$ac_ext <<_ACEOF
6861 #line $LINENO "configure"
6862 #include "confdefs.h"
6863 $ac_includes_default
6864 #include <$ac_header>
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_header_compiler
=yes
6880 echo "$as_me: failed program was:" >&5
6881 cat conftest.
$ac_ext >&5
6882 ac_header_compiler
=no
6884 rm -f conftest.
$ac_objext conftest.
$ac_ext
6885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6886 echo "${ECHO_T}$ac_header_compiler" >&6
6888 # Is the header present?
6889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6891 cat >conftest.
$ac_ext <<_ACEOF
6892 #line $LINENO "configure"
6893 #include "confdefs.h"
6894 #include <$ac_header>
6896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6897 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6899 egrep -v '^ *\+' conftest.er1
>conftest.err
6901 cat conftest.err
>&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } >/dev
/null
; then
6904 if test -s conftest.err
; then
6905 ac_cpp_err
=$ac_c_preproc_warn_flag
6912 if test -z "$ac_cpp_err"; then
6913 ac_header_preproc
=yes
6915 echo "$as_me: failed program was:" >&5
6916 cat conftest.
$ac_ext >&5
6917 ac_header_preproc
=no
6919 rm -f conftest.err conftest.
$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6921 echo "${ECHO_T}$ac_header_preproc" >&6
6923 # So? What about this header?
6924 case $ac_header_compiler:$ac_header_preproc in
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6938 echo "$as_me:$LINENO: checking for $ac_header" >&5
6939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 eval "$as_ac_Header=$ac_header_preproc"
6945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6950 cat >>confdefs.h
<<_ACEOF
6951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6958 for ac_func
in getpagesize
6960 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6961 echo "$as_me:$LINENO: checking for $ac_func" >&5
6962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6963 if eval "test \"\${$as_ac_var+set}\" = set"; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 cat >conftest.
$ac_ext <<_ACEOF
6967 #line $LINENO "configure"
6968 #include "confdefs.h"
6969 /* System header to define __stub macros and hopefully few prototypes,
6970 which can conflict with char $ac_func (); below. */
6972 /* Override any gcc2 internal prototype to avoid an error. */
6976 /* We use char because int might match the return type of a gcc2
6977 builtin and then its argument prototype would still apply. */
6981 #ifdef F77_DUMMY_MAIN
6985 int F77_DUMMY_MAIN() { return 1; }
6990 /* The GNU C library defines this for functions which it implements
6991 to always fail with ENOSYS. Some functions are actually named
6992 something starting with __ and the normal name is an alias. */
6993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7003 rm -f conftest.
$ac_objext conftest
$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try
='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 eval "$as_ac_var=yes"
7017 echo "$as_me: failed program was:" >&5
7018 cat conftest.
$ac_ext >&5
7019 eval "$as_ac_var=no"
7021 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7025 if test `eval echo '${'$as_ac_var'}'` = yes; then
7026 cat >>confdefs.h
<<_ACEOF
7027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7033 echo "$as_me:$LINENO: checking for working mmap" >&5
7034 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7035 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 if test "$cross_compiling" = yes; then
7039 ac_cv_func_mmap_fixed_mapped
=no
7041 cat >conftest.
$ac_ext <<_ACEOF
7042 #line $LINENO "configure"
7043 #include "confdefs.h"
7044 $ac_includes_default
7045 /* Thanks to Mike Haertel and Jim Avera for this test.
7046 Here is a matrix of mmap possibilities:
7047 mmap private not fixed
7048 mmap private fixed at somewhere currently unmapped
7049 mmap private fixed at somewhere already mapped
7050 mmap shared not fixed
7051 mmap shared fixed at somewhere currently unmapped
7052 mmap shared fixed at somewhere already mapped
7053 For private mappings, we should verify that changes cannot be read()
7054 back from the file, nor mmap's back from the file at a different
7055 address. (There have been systems where private was not correctly
7056 implemented like the infamous i386 svr4.0, and systems where the
7057 VM page cache was not coherent with the file system buffer cache
7058 like early versions of FreeBSD and possibly contemporary NetBSD.)
7059 For shared mappings, we should conversely verify that changes get
7060 propogated back to all the places they're supposed to be.
7062 Grep wants private fixed already mapped.
7063 The main things grep needs to know about mmap are:
7064 * does it exist and is it safe to write into the mmap'd area
7065 * how to use it (BSD variants) */
7068 #include <sys/mman.h>
7070 #if !STDC_HEADERS && !HAVE_STDLIB_H
7074 /* This mess was copied from the GNU getpagesize.h. */
7075 #if !HAVE_GETPAGESIZE
7076 /* Assume that all systems that can run configure have sys/param.h. */
7077 # if !HAVE_SYS_PARAM_H
7078 # define HAVE_SYS_PARAM_H 1
7081 # ifdef _SC_PAGESIZE
7082 # define getpagesize() sysconf(_SC_PAGESIZE)
7083 # else /* no _SC_PAGESIZE */
7084 # if HAVE_SYS_PARAM_H
7085 # include <sys/param.h>
7086 # ifdef EXEC_PAGESIZE
7087 # define getpagesize() EXEC_PAGESIZE
7088 # else /* no EXEC_PAGESIZE */
7090 # define getpagesize() NBPG * CLSIZE
7093 # endif /* no CLSIZE */
7094 # else /* no NBPG */
7096 # define getpagesize() NBPC
7097 # else /* no NBPC */
7099 # define getpagesize() PAGESIZE
7100 # endif /* PAGESIZE */
7101 # endif /* no NBPC */
7102 # endif /* no NBPG */
7103 # endif /* no EXEC_PAGESIZE */
7104 # else /* no HAVE_SYS_PARAM_H */
7105 # define getpagesize() 8192 /* punt totally */
7106 # endif /* no HAVE_SYS_PARAM_H */
7107 # endif /* no _SC_PAGESIZE */
7109 #endif /* no HAVE_GETPAGESIZE */
7114 char *data, *data2, *data3;
7118 pagesize = getpagesize ();
7120 /* First, make a file with some known garbage in it. */
7121 data = (char *) malloc (pagesize);
7124 for (i = 0; i < pagesize; ++i)
7125 *(data + i) = rand ();
7127 fd = creat ("conftest.mmap", 0600);
7130 if (write (fd, data, pagesize) != pagesize)
7134 /* Next, try to mmap the file at a fixed address which already has
7135 something else allocated at it. If we can, also make sure that
7136 we see the same garbage. */
7137 fd = open ("conftest.mmap", O_RDWR);
7140 data2 = (char *) malloc (2 * pagesize);
7143 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7144 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7145 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7147 for (i = 0; i < pagesize; ++i)
7148 if (*(data + i) != *(data2 + i))
7151 /* Finally, make sure that changes to the mapped area do not
7152 percolate back to the file as seen by read(). (This is a bug on
7153 some variants of i386 svr4.0.) */
7154 for (i = 0; i < pagesize; ++i)
7155 *(data2 + i) = *(data2 + i) + 1;
7156 data3 = (char *) malloc (pagesize);
7159 if (read (fd, data3, pagesize) != pagesize)
7161 for (i = 0; i < pagesize; ++i)
7162 if (*(data + i) != *(data3 + i))
7168 rm -f conftest
$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170 (eval $ac_link) 2>&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_cv_func_mmap_fixed_mapped
=yes
7181 echo "$as_me: program exited with status $ac_status" >&5
7182 echo "$as_me: failed program was:" >&5
7183 cat conftest.
$ac_ext >&5
7184 ac_cv_func_mmap_fixed_mapped
=no
7186 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7189 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7190 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7191 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7193 cat >>confdefs.h
<<\_ACEOF
7200 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7201 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7202 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cat >conftest.
$ac_ext <<_ACEOF
7206 #line $LINENO "configure"
7207 #include "confdefs.h"
7209 #include <features.h>
7210 #ifdef __GNU_LIBRARY__
7211 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7218 egrep "Lucky GNU user" >/dev
/null
2>&1; then
7219 ac_cv_gnu_library_2_1
=yes
7221 ac_cv_gnu_library_2_1
=no
7226 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7227 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7229 GLIBC21
="$ac_cv_gnu_library_2_1"
7231 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7232 stdlib.h string.h unistd.h sys
/param.h
7234 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7236 echo "$as_me:$LINENO: checking for $ac_header" >&5
7237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7244 # Is the header compilable?
7245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7247 cat >conftest.
$ac_ext <<_ACEOF
7248 #line $LINENO "configure"
7249 #include "confdefs.h"
7250 $ac_includes_default
7251 #include <$ac_header>
7253 rm -f conftest.
$ac_objext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7255 (eval $ac_compile) 2>&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try
='test -s conftest.$ac_objext'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7265 ac_header_compiler
=yes
7267 echo "$as_me: failed program was:" >&5
7268 cat conftest.
$ac_ext >&5
7269 ac_header_compiler
=no
7271 rm -f conftest.
$ac_objext conftest.
$ac_ext
7272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7273 echo "${ECHO_T}$ac_header_compiler" >&6
7275 # Is the header present?
7276 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7278 cat >conftest.
$ac_ext <<_ACEOF
7279 #line $LINENO "configure"
7280 #include "confdefs.h"
7281 #include <$ac_header>
7283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7284 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7286 egrep -v '^ *\+' conftest.er1
>conftest.err
7288 cat conftest.err
>&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } >/dev
/null
; then
7291 if test -s conftest.err
; then
7292 ac_cpp_err
=$ac_c_preproc_warn_flag
7299 if test -z "$ac_cpp_err"; then
7300 ac_header_preproc
=yes
7302 echo "$as_me: failed program was:" >&5
7303 cat conftest.
$ac_ext >&5
7304 ac_header_preproc
=no
7306 rm -f conftest.err conftest.
$ac_ext
7307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7308 echo "${ECHO_T}$ac_header_preproc" >&6
7310 # So? What about this header?
7311 case $ac_header_compiler:$ac_header_preproc in
7313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7325 echo "$as_me:$LINENO: checking for $ac_header" >&5
7326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 eval "$as_ac_Header=$ac_header_preproc"
7332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7337 cat >>confdefs.h
<<_ACEOF
7338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7345 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7346 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7347 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7349 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7350 echo "$as_me:$LINENO: checking for $ac_func" >&5
7351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7352 if eval "test \"\${$as_ac_var+set}\" = set"; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 cat >conftest.
$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7357 #include "confdefs.h"
7358 /* System header to define __stub macros and hopefully few prototypes,
7359 which can conflict with char $ac_func (); below. */
7361 /* Override any gcc2 internal prototype to avoid an error. */
7365 /* We use char because int might match the return type of a gcc2
7366 builtin and then its argument prototype would still apply. */
7370 #ifdef F77_DUMMY_MAIN
7374 int F77_DUMMY_MAIN() { return 1; }
7379 /* The GNU C library defines this for functions which it implements
7380 to always fail with ENOSYS. Some functions are actually named
7381 something starting with __ and the normal name is an alias. */
7382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7392 rm -f conftest.
$ac_objext conftest
$ac_exeext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7394 (eval $ac_link) 2>&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try
='test -s conftest$ac_exeext'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; }; then
7404 eval "$as_ac_var=yes"
7406 echo "$as_me: failed program was:" >&5
7407 cat conftest.
$ac_ext >&5
7408 eval "$as_ac_var=no"
7410 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7414 if test `eval echo '${'$as_ac_var'}'` = yes; then
7415 cat >>confdefs.h
<<_ACEOF
7416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7422 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7423 if test "${with_libiconv_prefix+set}" = set; then
7424 withval
="$with_libiconv_prefix"
7426 for dir
in `echo "$withval" | tr : ' '`; do
7427 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7428 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
7433 echo "$as_me:$LINENO: checking for iconv" >&5
7434 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7435 if test "${am_cv_func_iconv+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 am_cv_func_iconv
="no, consider installing GNU libiconv"
7441 cat >conftest.
$ac_ext <<_ACEOF
7442 #line $LINENO "configure"
7443 #include "confdefs.h"
7446 #ifdef F77_DUMMY_MAIN
7450 int F77_DUMMY_MAIN() { return 1; }
7455 iconv_t cd = iconv_open("","");
7456 iconv(cd,NULL,NULL,NULL,NULL);
7462 rm -f conftest.
$ac_objext conftest
$ac_exeext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464 (eval $ac_link) 2>&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try
='test -s conftest$ac_exeext'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
7474 am_cv_func_iconv
=yes
7476 echo "$as_me: failed program was:" >&5
7477 cat conftest.
$ac_ext >&5
7479 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7480 if test "$am_cv_func_iconv" != yes; then
7481 am_save_LIBS
="$LIBS"
7482 LIBS
="$LIBS -liconv"
7483 cat >conftest.
$ac_ext <<_ACEOF
7484 #line $LINENO "configure"
7485 #include "confdefs.h"
7488 #ifdef F77_DUMMY_MAIN
7492 int F77_DUMMY_MAIN() { return 1; }
7497 iconv_t cd = iconv_open("","");
7498 iconv(cd,NULL,NULL,NULL,NULL);
7504 rm -f conftest.
$ac_objext conftest
$ac_exeext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7506 (eval $ac_link) 2>&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try
='test -s conftest$ac_exeext'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; }; then
7517 am_cv_func_iconv
=yes
7519 echo "$as_me: failed program was:" >&5
7520 cat conftest.
$ac_ext >&5
7522 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7523 LIBS
="$am_save_LIBS"
7527 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7528 echo "${ECHO_T}$am_cv_func_iconv" >&6
7529 if test "$am_cv_func_iconv" = yes; then
7531 cat >>confdefs.h
<<\_ACEOF
7532 #define HAVE_ICONV 1
7535 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7536 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7537 if test "${am_cv_proto_iconv+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 cat >conftest.
$ac_ext <<_ACEOF
7542 #line $LINENO "configure"
7543 #include "confdefs.h"
7551 #if defined(__STDC__) || defined(__cplusplus)
7552 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7557 #ifdef F77_DUMMY_MAIN
7561 int F77_DUMMY_MAIN() { return 1; }
7571 rm -f conftest.
$ac_objext
7572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573 (eval $ac_compile) 2>&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } &&
7577 { ac_try
='test -s conftest.$ac_objext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 am_cv_proto_iconv_arg1
=""
7585 echo "$as_me: failed program was:" >&5
7586 cat conftest.
$ac_ext >&5
7587 am_cv_proto_iconv_arg1
="const"
7589 rm -f conftest.
$ac_objext conftest.
$ac_ext
7590 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);"
7593 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7594 echo "$as_me:$LINENO: result: ${ac_t:-
7595 }$am_cv_proto_iconv" >&5
7596 echo "${ECHO_T}${ac_t:-
7597 }$am_cv_proto_iconv" >&6
7599 cat >>confdefs.h
<<_ACEOF
7600 #define ICONV_CONST $am_cv_proto_iconv_arg1
7605 if test "$am_cv_lib_iconv" = yes; then
7609 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7610 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7611 if test "${am_cv_langinfo_codeset+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 cat >conftest.
$ac_ext <<_ACEOF
7615 #line $LINENO "configure"
7616 #include "confdefs.h"
7617 #include <langinfo.h>
7618 #ifdef F77_DUMMY_MAIN
7622 int F77_DUMMY_MAIN() { return 1; }
7627 char* cs = nl_langinfo(CODESET);
7632 rm -f conftest.
$ac_objext conftest
$ac_exeext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634 (eval $ac_link) 2>&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
7638 { ac_try
='test -s conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 am_cv_langinfo_codeset
=yes
7646 echo "$as_me: failed program was:" >&5
7647 cat conftest.
$ac_ext >&5
7648 am_cv_langinfo_codeset
=no
7650 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7653 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7654 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7655 if test $am_cv_langinfo_codeset = yes; then
7657 cat >>confdefs.h
<<\_ACEOF
7658 #define HAVE_LANGINFO_CODESET 1
7663 if test $ac_cv_header_locale_h = yes; then
7664 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7665 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7666 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat >conftest.
$ac_ext <<_ACEOF
7670 #line $LINENO "configure"
7671 #include "confdefs.h"
7673 #ifdef F77_DUMMY_MAIN
7677 int F77_DUMMY_MAIN() { return 1; }
7687 rm -f conftest.
$ac_objext conftest
$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try
='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699 am_cv_val_LC_MESSAGES
=yes
7701 echo "$as_me: failed program was:" >&5
7702 cat conftest.
$ac_ext >&5
7703 am_cv_val_LC_MESSAGES
=no
7705 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7707 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7708 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7709 if test $am_cv_val_LC_MESSAGES = yes; then
7711 cat >>confdefs.h
<<\_ACEOF
7712 #define HAVE_LC_MESSAGES 1
7717 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7718 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7719 # Check whether --enable-nls or --disable-nls was given.
7720 if test "${enable_nls+set}" = set; then
7721 enableval
="$enable_nls"
7726 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7727 echo "${ECHO_T}$USE_NLS" >&6
7729 BUILD_INCLUDED_LIBINTL
=no
7730 USE_INCLUDED_LIBINTL
=no
7733 if test "$USE_NLS" = "yes"; then
7735 cat >>confdefs.h
<<\_ACEOF
7736 #define ENABLE_NLS 1
7739 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7740 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7742 # Check whether --with-included-gettext or --without-included-gettext was given.
7743 if test "${with_included_gettext+set}" = set; then
7744 withval
="$with_included_gettext"
7745 nls_cv_force_use_gnu_gettext
=$withval
7747 nls_cv_force_use_gnu_gettext
=no
7749 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7750 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7752 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7753 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7756 if test "${ac_cv_header_libintl_h+set}" = set; then
7757 echo "$as_me:$LINENO: checking for libintl.h" >&5
7758 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7759 if test "${ac_cv_header_libintl_h+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7763 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7765 # Is the header compilable?
7766 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7767 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7768 cat >conftest.
$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 #include "confdefs.h"
7771 $ac_includes_default
7772 #include <libintl.h>
7774 rm -f conftest.
$ac_objext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776 (eval $ac_compile) 2>&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try
='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_header_compiler
=yes
7788 echo "$as_me: failed program was:" >&5
7789 cat conftest.
$ac_ext >&5
7790 ac_header_compiler
=no
7792 rm -f conftest.
$ac_objext conftest.
$ac_ext
7793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7794 echo "${ECHO_T}$ac_header_compiler" >&6
7796 # Is the header present?
7797 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7798 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7799 cat >conftest.
$ac_ext <<_ACEOF
7800 #line $LINENO "configure"
7801 #include "confdefs.h"
7802 #include <libintl.h>
7804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7805 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7807 egrep -v '^ *\+' conftest.er1
>conftest.err
7809 cat conftest.err
>&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } >/dev
/null
; then
7812 if test -s conftest.err
; then
7813 ac_cpp_err
=$ac_c_preproc_warn_flag
7820 if test -z "$ac_cpp_err"; then
7821 ac_header_preproc
=yes
7823 echo "$as_me: failed program was:" >&5
7824 cat conftest.
$ac_ext >&5
7825 ac_header_preproc
=no
7827 rm -f conftest.err conftest.
$ac_ext
7828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7829 echo "${ECHO_T}$ac_header_preproc" >&6
7831 # So? What about this header?
7832 case $ac_header_compiler:$ac_header_preproc in
7834 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7835 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7836 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7837 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7839 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
7840 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
7841 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7842 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7844 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7846 echo "$as_me:$LINENO: checking for libintl.h" >&5
7847 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7848 if test "${ac_cv_header_libintl_h+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 ac_cv_header_libintl_h
=$ac_header_preproc
7853 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7854 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7857 if test $ac_cv_header_libintl_h = yes; then
7858 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7859 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7860 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 cat >conftest.
$ac_ext <<_ACEOF
7864 #line $LINENO "configure"
7865 #include "confdefs.h"
7866 #include <libintl.h>
7867 extern int _nl_msg_cat_cntr;
7868 #ifdef F77_DUMMY_MAIN
7872 int F77_DUMMY_MAIN() { return 1; }
7877 bindtextdomain ("", "");
7878 return (int) gettext ("") + _nl_msg_cat_cntr
7883 rm -f conftest.
$ac_objext conftest
$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885 (eval $ac_link) 2>&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try
='test -s conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 gt_cv_func_gnugettext1_libc
=yes
7897 echo "$as_me: failed program was:" >&5
7898 cat conftest.
$ac_ext >&5
7899 gt_cv_func_gnugettext1_libc
=no
7901 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7903 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7904 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7906 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7907 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7908 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7909 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 gt_save_LIBS
="$LIBS"
7913 LIBS
="$LIBS -lintl $LIBICONV"
7914 cat >conftest.
$ac_ext <<_ACEOF
7915 #line $LINENO "configure"
7916 #include "confdefs.h"
7917 #include <libintl.h>
7918 extern int _nl_msg_cat_cntr;
7919 #ifdef F77_DUMMY_MAIN
7923 int F77_DUMMY_MAIN() { return 1; }
7928 bindtextdomain ("", "");
7929 return (int) gettext ("") + _nl_msg_cat_cntr
7934 rm -f conftest.
$ac_objext conftest
$ac_exeext
7935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7936 (eval $ac_link) 2>&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } &&
7940 { ac_try
='test -s conftest$ac_exeext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 gt_cv_func_gnugettext1_libintl
=yes
7948 echo "$as_me: failed program was:" >&5
7949 cat conftest.
$ac_ext >&5
7950 gt_cv_func_gnugettext1_libintl
=no
7952 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7953 LIBS
="$gt_save_LIBS"
7955 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7956 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7959 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7960 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7961 && test "$PACKAGE" != gettext; }; then
7963 cat >>confdefs.h
<<\_ACEOF
7964 #define HAVE_GETTEXT 1
7967 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7968 INTLLIBS
="-lintl $LIBICONV"
7971 gt_save_LIBS
="$LIBS"
7972 LIBS
="$LIBS $INTLLIBS"
7974 for ac_func
in dcgettext
7976 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7977 echo "$as_me:$LINENO: checking for $ac_func" >&5
7978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7979 if eval "test \"\${$as_ac_var+set}\" = set"; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 cat >conftest.
$ac_ext <<_ACEOF
7983 #line $LINENO "configure"
7984 #include "confdefs.h"
7985 /* System header to define __stub macros and hopefully few prototypes,
7986 which can conflict with char $ac_func (); below. */
7988 /* Override any gcc2 internal prototype to avoid an error. */
7992 /* We use char because int might match the return type of a gcc2
7993 builtin and then its argument prototype would still apply. */
7997 #ifdef F77_DUMMY_MAIN
8001 int F77_DUMMY_MAIN() { return 1; }
8006 /* The GNU C library defines this for functions which it implements
8007 to always fail with ENOSYS. Some functions are actually named
8008 something starting with __ and the normal name is an alias. */
8009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8019 rm -f conftest.
$ac_objext conftest
$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021 (eval $ac_link) 2>&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } &&
8025 { ac_try
='test -s conftest$ac_exeext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8031 eval "$as_ac_var=yes"
8033 echo "$as_me: failed program was:" >&5
8034 cat conftest.
$ac_ext >&5
8035 eval "$as_ac_var=no"
8037 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8041 if test `eval echo '${'$as_ac_var'}'` = yes; then
8042 cat >>confdefs.h
<<_ACEOF
8043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8049 LIBS
="$gt_save_LIBS"
8051 # Extract the first word of "msgfmt", so it can be a program name with args.
8052 set dummy msgfmt
; ac_word
=$2
8053 echo "$as_me:$LINENO: checking for $ac_word" >&5
8054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8055 if test "${ac_cv_path_MSGFMT+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8063 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8064 for ac_dir
in $PATH; do
8065 test -z "$ac_dir" && ac_dir
=.
8066 if test -f $ac_dir/$ac_word; then
8067 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8068 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8074 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8078 MSGFMT
="$ac_cv_path_MSGFMT"
8079 if test "$MSGFMT" != ":"; then
8080 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8081 echo "${ECHO_T}$MSGFMT" >&6
8083 echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6
8087 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8088 set dummy gmsgfmt
; ac_word
=$2
8089 echo "$as_me:$LINENO: checking for $ac_word" >&5
8090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8091 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8103 test -z "$as_dir" && as_dir
=.
8104 for ac_exec_ext
in '' $ac_executable_extensions; do
8105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8117 GMSGFMT
=$ac_cv_path_GMSGFMT
8119 if test -n "$GMSGFMT"; then
8120 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8121 echo "${ECHO_T}$GMSGFMT" >&6
8123 echo "$as_me:$LINENO: result: no" >&5
8124 echo "${ECHO_T}no" >&6
8127 # Extract the first word of "xgettext", so it can be a program name with args.
8128 set dummy xgettext
; ac_word
=$2
8129 echo "$as_me:$LINENO: checking for $ac_word" >&5
8130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8131 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8139 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8140 for ac_dir
in $PATH; do
8141 test -z "$ac_dir" && ac_dir
=.
8142 if test -f $ac_dir/$ac_word; then
8143 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8144 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8150 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8154 XGETTEXT
="$ac_cv_path_XGETTEXT"
8155 if test "$XGETTEXT" != ":"; then
8156 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8157 echo "${ECHO_T}$XGETTEXT" >&6
8159 echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6
8168 if test "$CATOBJEXT" = "NONE"; then
8169 nls_cv_use_gnu_gettext
=yes
8173 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8174 INTLOBJS
="\$(GETTOBJS)"
8175 # Extract the first word of "msgfmt", so it can be a program name with args.
8176 set dummy msgfmt
; ac_word
=$2
8177 echo "$as_me:$LINENO: checking for $ac_word" >&5
8178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8179 if test "${ac_cv_path_MSGFMT+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8187 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8188 for ac_dir
in $PATH; do
8189 test -z "$ac_dir" && ac_dir
=.
8190 if test -f $ac_dir/$ac_word; then
8191 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
8192 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8198 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8202 MSGFMT
="$ac_cv_path_MSGFMT"
8203 if test "$MSGFMT" != ":"; then
8204 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8205 echo "${ECHO_T}$MSGFMT" >&6
8207 echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6
8211 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8212 set dummy gmsgfmt
; ac_word
=$2
8213 echo "$as_me:$LINENO: checking for $ac_word" >&5
8214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8215 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8227 test -z "$as_dir" && as_dir
=.
8228 for ac_exec_ext
in '' $ac_executable_extensions; do
8229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8241 GMSGFMT
=$ac_cv_path_GMSGFMT
8243 if test -n "$GMSGFMT"; then
8244 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8245 echo "${ECHO_T}$GMSGFMT" >&6
8247 echo "$as_me:$LINENO: result: no" >&5
8248 echo "${ECHO_T}no" >&6
8251 # Extract the first word of "xgettext", so it can be a program name with args.
8252 set dummy xgettext
; ac_word
=$2
8253 echo "$as_me:$LINENO: checking for $ac_word" >&5
8254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8255 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8263 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8264 for ac_dir
in $PATH; do
8265 test -z "$ac_dir" && ac_dir
=.
8266 if test -f $ac_dir/$ac_word; then
8267 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
8268 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8274 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8278 XGETTEXT
="$ac_cv_path_XGETTEXT"
8279 if test "$XGETTEXT" != ":"; then
8280 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8281 echo "${ECHO_T}$XGETTEXT" >&6
8283 echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6
8287 BUILD_INCLUDED_LIBINTL
=yes
8288 USE_INCLUDED_LIBINTL
=yes
8290 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
8291 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8294 if test "$GMSGFMT" != ":"; then
8295 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
8298 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8299 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8304 if test "$XGETTEXT" != ":"; then
8305 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
8308 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8309 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8316 ac_config_commands
="$ac_config_commands default-2"
8318 if test "$PACKAGE" = gettext; then
8319 BUILD_INCLUDED_LIBINTL
=yes
8322 for ac_prog
in bison
8324 # Extract the first word of "$ac_prog", so it can be a program name with args.
8325 set dummy
$ac_prog; ac_word
=$2
8326 echo "$as_me:$LINENO: checking for $ac_word" >&5
8327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8328 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 if test -n "$INTLBISON"; then
8332 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8338 test -z "$as_dir" && as_dir
=.
8339 for ac_exec_ext
in '' $ac_executable_extensions; do
8340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_INTLBISON
="$ac_prog"
8342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 INTLBISON
=$ac_cv_prog_INTLBISON
8351 if test -n "$INTLBISON"; then
8352 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8353 echo "${ECHO_T}$INTLBISON" >&6
8355 echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8359 test -n "$INTLBISON" && break
8362 if test -z "$INTLBISON"; then
8365 echo "$as_me:$LINENO: checking version of bison" >&5
8366 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8367 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8368 case $ac_prog_version in
8369 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8370 1.2[6-9]* | 1.
[3-9][0-9]* | [2-9].
*)
8371 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8372 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8374 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8375 echo "${ECHO_T}$ac_prog_version" >&6
8377 if test $ac_verc_fail = yes; then
8381 for lang
in $ALL_LINGUAS; do
8382 GMOFILES
="$GMOFILES $lang.gmo"
8383 POFILES
="$POFILES $lang.po"
8387 nls_cv_header_libgt
=
8395 if test "x$CATOBJEXT" != "x"; then
8396 if test "x$ALL_LINGUAS" = "x"; then
8399 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8400 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8402 for presentlang
in $ALL_LINGUAS; do
8404 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
8405 # Use the presentlang catalog if desiredlang is
8406 # a. equal to presentlang, or
8407 # b. a variant of presentlang (because in this case,
8408 # presentlang can be used as a fallback for messages
8409 # which are not translated in the desiredlang catalog).
8410 case "$desiredlang" in
8411 "$presentlang"*) useit
=yes;;
8414 if test $useit = yes; then
8415 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
8418 LINGUAS
=$NEW_LINGUAS
8419 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8420 echo "${ECHO_T}$LINGUAS" >&6
8423 if test -n "$LINGUAS"; then
8424 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8429 if test -n "$ac_aux_dir"; then
8430 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8432 if test -z "$MKINSTALLDIRS"; then
8433 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8436 INTL_LIBTOOL_SUFFIX_PREFIX
=
8438 # This is necessary so that .o files in LIBOBJS are also built via
8439 # the ANSI2KNR-filtering rules.
8440 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8442 ac_config_files
="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile"
8443 cat >confcache
<<\_ACEOF
8444 # This file is a shell script that caches the results of configure
8445 # tests run on this system so they can be shared between configure
8446 # scripts and configure runs, see configure's option --config-cache.
8447 # It is not useful on other systems. If it contains results you don't
8448 # want to keep, you may remove or edit it.
8450 # config.status only pays attention to the cache file if you give it
8451 # the --recheck option to rerun configure.
8453 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8454 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8459 # The following way of writing the cache mishandles newlines in values,
8460 # but we know of no workaround that is simple, portable, and efficient.
8461 # So, don't put newlines in cache variables' values.
8462 # Ultrix sh set writes to stderr and can't be redirected directly,
8463 # and sets the high bit in the cache file unless we assign to the vars.
8466 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8468 # `set' does not quote correctly, so add quotes (double-quote
8469 # substitution turns \\\\ into \\, and sed turns \\ into \).
8472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8475 # `set' quotes correctly as required by POSIX, so do not add quotes.
8477 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8486 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8488 if cmp -s $cache_file confcache
; then :; else
8489 if test -w $cache_file; then
8490 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8491 cat confcache
>$cache_file
8493 echo "not updating unwritable cache $cache_file"
8498 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8499 # Let make expand exec_prefix.
8500 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8502 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8503 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8504 # trailing colons and then remove the whole line if VPATH becomes empty
8505 # (actually we leave an empty line to preserve line numbers).
8506 if test "x$srcdir" = x.
; then
8507 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8508 s/:*\$(srcdir):*/:/;
8509 s/:*\${srcdir}:*/:/;
8511 s/^\([^=]*=[ ]*\):*/\1/;
8517 DEFS
=-DHAVE_CONFIG_H
8519 : ${CONFIG_STATUS=./config.status}
8520 ac_clean_files_save
=$ac_clean_files
8521 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8522 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8523 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8524 cat >$CONFIG_STATUS <<_ACEOF
8526 # Generated automatically by $as_me.
8527 # Run this file to recreate the current configuration.
8528 # Compiler output produced by configure, useful for debugging
8529 # configure, is in config.log if it exists.
8532 SHELL=\${CONFIG_SHELL-$SHELL}
8535 cat >>$CONFIG_STATUS <<\_ACEOF
8537 ## --------------------- ##
8538 ## M4sh Initialization. ##
8539 ## --------------------- ##
8541 # Be Bourne compatible
8542 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8545 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8549 # Name of the executable.
8550 as_me
=`echo "$0" |sed 's,\(.*[\\/]\+\)\?\([^\\/]\+\)[\\/]*,\2,'`
8552 # If LINENO is not supported by the shell, produce a version of this
8553 # script where LINENO is hard coded. Rewrite if not up to date only.
8554 # Comparing LINENO against _oline_ is not a good solution, since in
8555 # the case of embedded executables (such as config.status within
8556 # configure) you'd compare LINENO wrt config.status vs. _oline_ vs
8557 # configure. Hence a useless rewrite (not to mention the risk of
8558 # ``infinite'' rewrites. Merely check that LINENO is incremented
8559 # between two lines, which is a property guaranteed for _oline_, hence
8560 # it protects us from repetitive rewrites. Be sure to have a test
8561 # that does detect non LINENO support...
8564 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
8565 if test "x$as_lineno_1" = "x$as_lineno_2" ||
8566 test "x$as_lineno_3" != "x$as_lineno_2";
8570 *[\\/]* | ?:[\\/]* ) as_myself=$0 ;;
8571 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 test -z "$as_dir" && as_dir=.
8576 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8581 if test ! -f $as_myself; then
8582 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8583 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8584 { (exit 1); exit 1; }; }
8586 if test ! -f $as_me.lineno ||
8587 test x`ls -1dt $as_me.lineno
$as_myself 2>/dev
/null
| sed 1q
` \
8588 != x$as_me.lineno; then
8589 # Be sure to write the pattern so that it doesn't replace itself:
8590 # it must not match itself.
8592 if ($0 ~ /[$]LINENO/)
8593 while (sub (/[$]LINENO/, NR))
8596 }' <$as_myself >$as_me.lineno
8597 chmod +x $as_me.lineno
8599 exec ${SHELL-/bin/sh} ./$as_me.lineno ${1+"$@"}
8602 # Avoid depending upon Character Ranges.
8603 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8604 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8605 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8606 as_cr_digits='0123456789'
8607 as_cr_alnum=$as_cr_Letters$as_cr_digits
8609 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
8610 *c*,-n*) ECHO_N= ECHO_C='
8612 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8613 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8616 if expr a : '\(a\)' >/dev/null 2>&1; then
8622 rm -f conf$$ conf$$.exe conf$$.file
8624 if ln -s conf$$.file conf$$ 2>/dev/null; then
8625 # We could just check for DJGPP; but this test a) works b) is more generic
8626 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8627 if test -f conf$$.exe; then
8628 # Don't use ln at all; we don't have any links
8633 elif ln conf$$.file conf$$ 2>/dev/null; then
8638 rm -f conf$$ conf$$.exe conf$$.file
8640 # The user is always right.
8641 if test "${PATH_SEPARATOR+set}" != set; then
8642 echo "#! $SHELL" >conftest.sh
8643 echo "exit 0" >>conftest.sh
8644 chmod +x conftest.sh
8645 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8653 as_executable_p="test -f"
8655 # Sed expression to map a string onto a valid CPP name.
8656 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8658 # Sed expression to map a string onto a valid variable name.
8659 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8661 # Support unset when possible.
8662 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8669 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8670 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8671 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8672 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8673 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8674 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8675 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8676 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8679 # We need space, tab and new line, in precisely that order.
8685 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8689 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8690 # report actual input values of CONFIG_FILES etc. instead of their
8691 # values after options handling. Logging --version etc. is OK.
8695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8696 ## Running $as_me. ##
8701 This file was extended by GNU Bison $as_me 1.29c, which was
8702 generated by GNU Autoconf 2.52e. Invocation command line was
8704 CONFIG_FILES = $CONFIG_FILES
8705 CONFIG_HEADERS = $CONFIG_HEADERS
8706 CONFIG_LINKS = $CONFIG_LINKS
8707 CONFIG_COMMANDS = $CONFIG_COMMANDS
8711 echo "on `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`" >&5
8715 # Files that config.status was made for.
8716 if test -n "$ac_config_files"; then
8717 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8720 if test -n "$ac_config_headers"; then
8721 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8724 if test -n "$ac_config_links"; then
8725 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8728 if test -n "$ac_config_commands"; then
8729 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8732 cat >>$CONFIG_STATUS <<\_ACEOF
8735 \`$as_me' instantiates files from templates according to the
8736 current configuration.
8738 Usage: $0 [OPTIONS] [FILE]...
8740 -h, --help print this help, then exit
8741 -V, --version print version number, then exit
8742 -d, --debug don't remove temporary files
8743 --recheck update
$as_me by reconfiguring
in the same conditions
8744 --file=FILE
[:TEMPLATE
]
8745 instantiate the configuration
file FILE
8746 --header=FILE
[:TEMPLATE
]
8747 instantiate the configuration header FILE
8749 Configuration files
:
8752 Configuration headers
:
8755 Configuration commands
:
8758 Report bugs to
<bug
-autoconf@gnu.org
>.
"
8761 cat >>$CONFIG_STATUS <<_ACEOF
8763 GNU Bison config.status
1.29c
8764 configured by
$0, generated by GNU Autoconf
2.52e
,
8765 with options
\\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8767 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8768 Free Software Foundation
, Inc.
8769 This config.status
script is free software
; the Free Software Foundation
8770 gives unlimited permission to copy
, distribute and modify it.
"
8775 cat >>$CONFIG_STATUS <<\_ACEOF
8776 # If no file are specified by the user, then we need to provide default
8777 # value. By we need to know if files were specified by the user.
8783 ac_option=`expr "x
$1" : 'x\([^=]*\)='`
8784 ac_optarg=`expr "x
$1" : 'x[^=]*=\(.*\)'`
8786 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8790 *) # This is not an option, so the user has probably given explicit
8792 ac_need_defaults=false;;
8796 # Handling of the options.
8798 cat >>$CONFIG_STATUS <<_ACEOF
8799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8800 echo "running
$SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8801 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8803 cat >>$CONFIG_STATUS <<\_ACEOF
8804 --version | --vers* | -V )
8805 echo "$ac_cs_version"; exit 0 ;;
8807 # Conflict between --help and --header
8808 { { echo "$as_me:$LINENO: error
: ambiguous option
: $1
8809 Try \
`$0 --help' for more information." >&5
8810 echo "$as_me: error: ambiguous option: $1
8811 Try \`$0 --help' for more information." >&2;}
8812 { (exit 1); exit 1; }; };;
8813 --help | --hel | -h )
8814 echo "$ac_cs_usage"; exit 0 ;;
8815 --debug | --d* | -d )
8817 --file | --fil | --fi | --f )
8819 CONFIG_FILES="$CONFIG_FILES $1"
8820 ac_need_defaults=false;;
8821 --header | --heade | --head | --hea )
8823 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8824 ac_need_defaults=false;;
8827 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8828 Try \`$0 --help' for more information.
" >&5
8829 echo "$as_me: error
: unrecognized option
: $1
8830 Try \
`$0 --help' for more information." >&2;}
8831 { (exit 1); exit 1; }; } ;;
8833 *) ac_config_targets="$ac_config_targets $1" ;;
8841 cat >>$CONFIG_STATUS <<_ACEOF
8843 # INIT-COMMANDS section.
8846 PACKAGE_NAME='$PACKAGE_NAME'
8847 PACKAGE_TARNAME='$PACKAGE_TARNAME'
8848 PACKAGE_VERSION='$PACKAGE_VERSION'
8849 PACKAGE_STRING='$PACKAGE_STRING'
8850 PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
8852 AMDEP_TRUE="$AMDEP_TRUE"
8853 ac_aux_dir="$ac_aux_dir"
8857 cat >>$CONFIG_STATUS <<\_ACEOF
8858 for ac_config_target in $ac_config_targets
8860 case "$ac_config_target" in
8861 # Handling of arguments.
8862 "tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
8863 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8864 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
8865 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
8866 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8867 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8868 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8869 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8870 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
8871 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8872 "tests/package.m4" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/package.m4" ;;
8873 "tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
8874 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8875 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
8876 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
8877 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8878 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8879 { (exit 1); exit 1; }; };;
8883 # If the user did not use the arguments to specify the items to instantiate,
8884 # then the envvar interface is used. Set only those that are not.
8885 # We use the long form for the default assignment because of an extremely
8886 # bizarre bug on SunOS 4.1.3.
8887 if $ac_need_defaults; then
8888 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8889 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8890 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8893 # Create a temporary directory, and hook for its removal unless debugging.
8896 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8897 trap '{ (exit 1); exit 1; }' 1 2 13 15
8900 # Create a (secure) tmp directory for tmp files.
8903 tmp=`(umask 077 && mktemp
-d -q "$TMPDIR/csXXXXXX") 2>/dev
/null
` &&
8904 test -n "$tmp" && test -d "$tmp"
8907 tmp=$TMPDIR/cs$$-$RANDOM
8908 (umask 077 && mkdir $tmp)
8911 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8912 { (exit 1); exit 1; }
8917 cat >>$CONFIG_STATUS <<_ACEOF
8920 # CONFIG_FILES section.
8923 # No need to generate the scripts if there are no CONFIG_FILES.
8924 # This happens for instance when ./config.status config.h
8925 if test -n "\$CONFIG_FILES"; then
8926 # Protect against being on the right side of a sed subst in config.status.
8927 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8928 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8929 s,@SHELL@,$SHELL,;t t
8930 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8931 s,@exec_prefix@,$exec_prefix,;t t
8932 s,@prefix@,$prefix,;t t
8933 s,@program_transform_name@,$program_transform_name,;t t
8934 s,@bindir@,$bindir,;t t
8935 s,@sbindir@,$sbindir,;t t
8936 s,@libexecdir@,$libexecdir,;t t
8937 s,@datadir@,$datadir,;t t
8938 s,@sysconfdir@,$sysconfdir,;t t
8939 s,@sharedstatedir@,$sharedstatedir,;t t
8940 s,@localstatedir@,$localstatedir,;t t
8941 s,@libdir@,$libdir,;t t
8942 s,@includedir@,$includedir,;t t
8943 s,@oldincludedir@,$oldincludedir,;t t
8944 s,@infodir@,$infodir,;t t
8945 s,@mandir@,$mandir,;t t
8946 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8947 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8948 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8949 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8950 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8951 s,@build_alias@,$build_alias,;t t
8952 s,@host_alias@,$host_alias,;t t
8953 s,@target_alias@,$target_alias,;t t
8955 s,@ECHO_C@,$ECHO_C,;t t
8956 s,@ECHO_N@,$ECHO_N,;t t
8957 s,@ECHO_T@,$ECHO_T,;t t
8959 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8960 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8961 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8962 s,@PACKAGE@,$PACKAGE,;t t
8963 s,@VERSION@,$VERSION,;t t
8964 s,@EXEEXT@,$EXEEXT,;t t
8965 s,@OBJEXT@,$OBJEXT,;t t
8966 s,@ACLOCAL@,$ACLOCAL,;t t
8967 s,@AUTOCONF@,$AUTOCONF,;t t
8968 s,@AUTOMAKE@,$AUTOMAKE,;t t
8969 s,@AUTOHEADER@,$AUTOHEADER,;t t
8970 s,@MAKEINFO@,$MAKEINFO,;t t
8971 s,@AMTAR@,$AMTAR,;t t
8972 s,@install_sh@,$install_sh,;t t
8973 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8975 s,@SET_MAKE@,$SET_MAKE,;t t
8976 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8977 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8978 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8979 s,@DEPDIR@,$DEPDIR,;t t
8981 s,@CFLAGS@,$CFLAGS,;t t
8982 s,@LDFLAGS@,$LDFLAGS,;t t
8983 s,@CPPFLAGS@,$CPPFLAGS,;t t
8984 s,@ac_ct_CC@,$ac_ct_CC,;t t
8985 s,@am__include@,$am__include,;t t
8986 s,@am__quote@,$am__quote,;t t
8987 s,@CCDEPMODE@,$CCDEPMODE,;t t
8989 s,@RANLIB@,$RANLIB,;t t
8990 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8992 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
8994 s,@ANSI2KNR@,$ANSI2KNR,;t t
8995 s,@ALLOCA@,$ALLOCA,;t t
8996 s,@LIBOBJS@,$LIBOBJS,;t t
8997 s,@build@,$build,;t t
8998 s,@build_cpu@,$build_cpu,;t t
8999 s,@build_vendor@,$build_vendor,;t t
9000 s,@build_os@,$build_os,;t t
9002 s,@host_cpu@,$host_cpu,;t t
9003 s,@host_vendor@,$host_vendor,;t t
9004 s,@host_os@,$host_os,;t t
9005 s,@GLIBC21@,$GLIBC21,;t t
9006 s,@LIBICONV@,$LIBICONV,;t t
9007 s,@USE_NLS@,$USE_NLS,;t t
9008 s,@MSGFMT@,$MSGFMT,;t t
9009 s,@GMSGFMT@,$GMSGFMT,;t t
9010 s,@XGETTEXT@,$XGETTEXT,;t t
9011 s,@INTLBISON@,$INTLBISON,;t t
9012 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9013 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9014 s,@CATALOGS@,$CATALOGS,;t t
9015 s,@CATOBJEXT@,$CATOBJEXT,;t t
9016 s,@GMOFILES@,$GMOFILES,;t t
9017 s,@INTLLIBS@,$INTLLIBS,;t t
9018 s,@INTLOBJS@,$INTLOBJS,;t t
9019 s,@POFILES@,$POFILES,;t t
9020 s,@POSUB@,$POSUB,;t t
9021 s,@DATADIRNAME@,$DATADIRNAME,;t t
9022 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9023 s,@GENCAT@,$GENCAT,;t t
9024 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9025 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9030 cat >>$CONFIG_STATUS <<\_ACEOF
9031 # Split the substitutions into bite-sized pieces for seds with
9032 # small command number limits, like on Digital OSF/1 and HP-UX.
9034 ac_sed_frag=1 # Number of current file.
9035 ac_beg=1 # First line for current file.
9036 ac_end=$ac_max_sed_lines # Line after last line for current file.
9039 while $ac_more_lines; do
9040 if test $ac_beg -gt 1; then
9041 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9043 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9045 if test ! -s $tmp/subs.frag; then
9048 # The purpose of the label and of the branching condition is to
9049 # speed up the sed processing (if there are no `@
' at all, there
9050 # is no need to browse any of the substitutions).
9051 # These are the two extra sed commands mentioned above.
9053 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9054 if test -z "$ac_sed_cmds"; then
9055 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9057 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9059 ac_sed_frag=`expr $ac_sed_frag + 1`
9061 ac_end=`expr $ac_end + $ac_max_sed_lines`
9064 if test -z "$ac_sed_cmds"; then
9067 fi # test -n "$CONFIG_FILES"
9070 cat >>$CONFIG_STATUS <<\_ACEOF
9071 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9072 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9074 - | *:- | *:-:* ) # input from stdin
9076 ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9077 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9078 *:* ) ac_file_in=`echo "$ac_file" | sed 's
,[^
:]*:,,'`
9079 ac_file=`echo "$ac_file" | sed 's
,:.
*,,'` ;;
9080 * ) ac_file_in=$ac_file.in ;;
9083 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9084 ac_dir=`$as_expr X"$ac_file" : 'X\
(.
*[^/]\)//*[^/][^/]*/*$
' \
| \
9085 X
"$ac_file" : 'X\(//\)[^/]' \
| \
9086 X
"$ac_file" : 'X\(//\)$' \
| \
9087 X
"$ac_file" : 'X\(/\)' \
| \
9088 .
: '\(.\)' 2>/dev
/null
||
9090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9092 /^X\(\/\/\)$/{ s//\1/; q; }
9093 /^X\(\/\).*/{ s//\1/; q; }
9096 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9100 for as_mkdir_dir in `IFS
='/\\'; set X
$as_dummy; shift; echo "$@"`; do
9101 case $as_mkdir_dir in
9102 # Skip DOS drivespec
9103 ?:) as_incr_dir=$as_mkdir_dir ;;
9105 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9106 test -d "$as_incr_dir" ||
9107 mkdir "$as_incr_dir" ||
9108 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9109 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9110 { (exit 1); exit 1; }; }
9117 if test "$ac_dir" != .; then
9118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9119 # A "../" for each directory in $ac_dir_suffix.
9120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9122 ac_dir_suffix= ac_top_builddir=
9126 .) # No --srcdir option. We are building in place.
9128 if test -z "$ac_top_builddir"; then
9131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9133 [\\/]* | ?:[\\/]* ) # Absolute path.
9134 ac_srcdir=$srcdir$ac_dir_suffix;
9135 ac_top_srcdir=$srcdir ;;
9137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9140 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9142 ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
9143 ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9144 ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9145 ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9149 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9152 if test x"$ac_file" != x-; then
9153 { echo "$as_me:$LINENO: creating $ac_file" >&5
9154 echo "$as_me: creating $ac_file" >&6;}
9157 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9158 # use $as_me), people would be surprised to read:
9159 # /* config.h. Generated automatically by config.status. */
9160 configure_input
="Generated automatically from `echo $ac_file_in |
9161 sed 's,.*/,,'` by configure."
9163 # First look for the input files in the build tree, otherwise in the
9165 ac_file_inputs
=`IFS=:
9166 for f in $ac_file_in; do
9168 -) echo $tmp/stdin ;;
9170 # Absolute (can't be DOS-style, as IFS=:)
9171 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9172 echo "$as_me: error: cannot find input file: $f" >&2;}
9173 { (exit 1); exit 1; }; }
9176 if test -f "$f"; then
9179 elif test -f "$srcdir/$f"; then
9184 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9185 echo "$as_me: error: cannot find input file: $f" >&2;}
9186 { (exit 1); exit 1; }; }
9189 done` || { (exit 1); exit 1; }
9191 cat >>$CONFIG_STATUS <<_ACEOF
9195 cat >>$CONFIG_STATUS <<\_ACEOF
9197 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
9198 s
,@configure_input@
,$configure_input,;t t
9199 s
,@srcdir@
,$ac_srcdir,;t t
9200 s
,@srcpath@
,$ac_srcpath,;t t
9201 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9202 s
,@top_srcpath@
,$ac_top_srcpath,;t t
9203 s
,@builddir@
,$ac_builddir,;t t
9204 s
,@buildpath@
,$ac_buildpath,;t t
9205 s
,@top_builddir@
,$ac_top_builddir,;t t
9206 s
,@top_buildpath@
,$ac_top_buildpath,;t t
9207 s
,@INSTALL@
,$ac_INSTALL,;t t
9208 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9210 if test x"$ac_file" != x-; then
9211 mv $tmp/out $ac_file
9219 cat >>$CONFIG_STATUS <<\_ACEOF
9222 # CONFIG_HEADER section.
9225 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9226 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9228 # ac_d sets the value in "#define NAME VALUE" lines.
9229 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9230 ac_dB
='[ ].*$,\1#\2'
9233 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9234 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9235 ac_uB
='$,\1#\2define\3'
9239 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9242 - | *:- | *:-:* ) # input from stdin
9244 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9245 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9246 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9247 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9248 * ) ac_file_in
=$ac_file.
in ;;
9251 test x
"$ac_file" != x
- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9252 echo "$as_me: creating $ac_file" >&6;}
9254 # First look for the input files in the build tree, otherwise in the
9256 ac_file_inputs
=`IFS=:
9257 for f in $ac_file_in; do
9259 -) echo $tmp/stdin ;;
9261 # Absolute (can't be DOS-style, as IFS=:)
9262 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9263 echo "$as_me: error: cannot find input file: $f" >&2;}
9264 { (exit 1); exit 1; }; }
9267 if test -f "$f"; then
9270 elif test -f "$srcdir/$f"; then
9275 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9276 echo "$as_me: error: cannot find input file: $f" >&2;}
9277 { (exit 1); exit 1; }; }
9280 done` || { (exit 1); exit 1; }
9281 # Remove the trailing spaces.
9282 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9286 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9287 # `conftest.undefs', that substitutes the proper values into
9288 # config.h.in to produce config.h. The first handles `#define'
9289 # templates, and the second `#undef' templates.
9290 # And first: Protect against being on the right side of a sed subst in
9291 # config.status. Protect against being in an unquoted here document
9293 rm -f conftest.defines conftest.undefs
9294 # Using a here document instead of a string reduces the quoting nightmare.
9295 # Putting comments in sed scripts is not portable.
9297 # `end' is used to avoid that the second main sed command (meant for
9298 # 0-ary CPP macros) applies to n-ary macro definitions.
9299 # See the Autoconf documentation for `clear'.
9300 cat >confdef2sed.
sed <<\_ACEOF
9305 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9307 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9310 # If some macros were called several times there might be several times
9311 # the same #defines, which is useless. Nevertheless, we may not want to
9312 # sort them, since we want the *last* AC-DEFINE to be honored.
9313 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9314 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9315 rm -f confdef2sed.sed
9317 # This sed command replaces #undef with comments. This is necessary, for
9318 # example, in the case of _POSIX_SOURCE, which is predefined and required
9319 # on some systems where configure will not decide to define it.
9320 cat >>conftest.undefs <<\_ACEOF
9321 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9324 # Break up conftest.defines because some shells have a limit on the size
9325 # of here documents, and old seds have small limits too (100 cmds).
9326 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9327 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9328 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9329 echo ' :' >>$CONFIG_STATUS
9331 while grep . conftest.defines >/dev/null
9333 # Write a limited-size here document to $tmp/defines.sed.
9334 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9335 # Speed up: don't consider the non `#define' lines.
9336 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9337 # Work around the forget-to-reset-the-flag bug.
9338 echo 't clr' >>$CONFIG_STATUS
9339 echo ': clr' >>$CONFIG_STATUS
9340 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9342 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9346 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9347 rm -f conftest.defines
9348 mv conftest.
tail conftest.defines
9350 rm -f conftest.defines
9351 echo ' fi # egrep' >>$CONFIG_STATUS
9352 echo >>$CONFIG_STATUS
9354 # Break up conftest.undefs because some shells have a limit on the size
9355 # of here documents, and old seds have small limits too (100 cmds).
9356 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9358 while grep . conftest.undefs
>/dev
/null
9360 # Write a limited-size here document to $tmp/undefs.sed.
9361 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9362 # Speed up: don't consider the non
`#undef'
9363 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9364 # Work around the forget-to-reset-the-flag bug.
9365 echo 't clr' >>$CONFIG_STATUS
9366 echo ': clr' >>$CONFIG_STATUS
9367 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9369 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9373 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9374 rm -f conftest.undefs
9375 mv conftest.tail conftest.undefs
9377 rm -f conftest.undefs
9379 cat >>$CONFIG_STATUS <<\_ACEOF
9380 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9381 # use $as_me), people would be surprised to read:
9382 # /* config.h. Generated automatically by config.status. */
9383 if test x
"$ac_file" = x
-; then
9384 echo "/* Generated automatically by configure. */" >$tmp/config.h
9386 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9388 cat $tmp/in >>$tmp/config.h
9390 if test x
"$ac_file" != x
-; then
9391 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9392 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9393 echo "$as_me: $ac_file is unchanged" >&6;}
9395 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9396 X"$ac_file" : 'X\(//\)[^/]' \| \
9397 X"$ac_file" : 'X\(//\)$' \| \
9398 X"$ac_file" : 'X\(/\)' \| \
9399 . : '\(.\)' 2>/dev/null ||
9401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9403 /^X\(\/\/\)$/{ s//\1/; q; }
9404 /^X\(\/\).*/{ s//\1/; q; }
9407 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9411 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9412 case $as_mkdir_dir in
9413 # Skip DOS drivespec
9414 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9416 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9417 test -d "$as_incr_dir" ||
9418 mkdir "$as_incr_dir" ||
9419 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9420 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9421 { (exit 1); exit 1; }; }
9427 mv $tmp/config.h
$ac_file
9433 # Run the commands associated with the file.
9435 config.h
) # update the timestamp
9436 echo timestamp
>"./stamp-h1"
9441 cat >>$CONFIG_STATUS <<\_ACEOF
9444 # CONFIG_COMMANDS section.
9446 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9447 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9448 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9449 ac_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9450 X"$ac_dest" : 'X\(//\)[^/]' \| \
9451 X"$ac_dest" : 'X\(//\)$' \| \
9452 X"$ac_dest" : 'X\(/\)' \| \
9453 . : '\(.\)' 2>/dev/null ||
9455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9457 /^X\(\/\/\)$/{ s//\1/; q; }
9458 /^X\(\/\).*/{ s//\1/; q; }
9462 if test "$ac_dir" != .
; then
9463 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9464 # A "../" for each directory in $ac_dir_suffix.
9465 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9467 ac_dir_suffix
= ac_top_builddir
=
9471 .
) # No --srcdir option. We are building in place.
9473 if test -z "$ac_top_builddir"; then
9476 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9478 [\\/]* | ?
:[\\/]* ) # Absolute path.
9479 ac_srcdir
=$srcdir$ac_dir_suffix;
9480 ac_top_srcdir
=$srcdir ;;
9482 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9483 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9485 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9487 ac_buildpath
=`cd "$ac_dir" && cd $ac_builddir && pwd`
9488 ac_top_buildpath
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9489 ac_srcpath
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9490 ac_top_srcpath
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9492 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9493 echo "$as_me: executing $ac_dest commands" >&6;}
9495 tests
/package.
m4 ) cat >tests
/package.
m4 <<ATEOF
9496 # Signature of the current package.
9497 m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
9498 m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
9499 m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
9500 m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
9501 m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
9504 tests
/atconfig
) cat >tests
/atconfig
<<ATEOF
9505 # Configurable variable values for building test suites.
9507 # Copyright 2000, 2001 Free Software Foundation, Inc.
9510 buildpath='$ac_buildpath'
9512 srcpath='$ac_srcpath'
9513 top_srcdir='$ac_top_srcdir'
9514 top_srcpath='$ac_top_srcpath'
9515 top_builddir='$ac_top_builddir'
9516 top_buildpath='$ac_top_buildpath'
9518 AUTOTEST_PATH='tests'
9520 SHELL=\${CONFIG_SHELL-'$SHELL'}
9524 test x
"$AMDEP_TRUE" != x
"" ||
9525 for mf
in $CONFIG_FILES; do
9527 Makefile
) dirpart
=.
;;
9528 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9531 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null
|| continue
9532 # Extract the definition of DEP_FILES from the Makefile without
9534 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9535 test -z "$DEPDIR" && continue
9536 # When using ansi2knr, U may be empty or an underscore; expand it
9537 U
=`sed -n -e '/^U = / s///p' < "$mf"`
9538 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9539 # We invoke sed twice because it is the simplest approach to
9540 # changing $(DEPDIR) to its actual value in the expansion.
9541 for file in `sed -n -e '
9542 /^DEP_FILES = .*\\\\$/ {
9551 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9552 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9553 # Make sure the directory exists.
9554 test -f "$dirpart/$file" && continue
9555 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
9556 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
9557 # echo "creating $dirpart/$file"
9558 echo '# dummy' > "$dirpart/$file"
9562 default
-2 ) for ac_file
in $CONFIG_FILES; do
9563 # Support "outfile[:infile[:infile...]]"
9565 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9567 # PO directories have a Makefile.in generated from Makefile.in.in.
9568 case "$ac_file" in */Makefile.
in)
9569 # Adjust a relative srcdir.
9570 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9571 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
9572 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9573 # In autoconf-2.13 it is called $ac_given_srcdir.
9574 # In autoconf-2.50 it is called $srcdir.
9575 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
9576 case "$ac_given_srcdir" in
9577 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
9578 /*) top_srcdir
="$ac_given_srcdir" ;;
9579 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9581 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9582 rm -f "$ac_dir/POTFILES"
9583 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9584 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9585 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9586 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9595 cat >>$CONFIG_STATUS <<\_ACEOF
9597 { (exit 0); exit 0; }
9599 chmod +x
$CONFIG_STATUS
9600 ac_clean_files
=$ac_clean_files_save
9602 # configure is writing to config.log, and then calls config.status.
9603 # config.status does its own redirection, appending to config.log.
9604 # Unfortunately, on DOS this fails, as config.log is still kept open
9605 # by configure, so config.status won't be able to write to it; its
9606 # output is simply discarded. So we exec the FD to /dev/null,
9607 # effectively closing config.log, so it can be properly (re)opened and
9608 # appended to by config.status. When coming back to configure, we
9609 # need to make the FD available again.
9610 if test "$no_create" != yes; then
9613 $SHELL $CONFIG_STATUS || ac_cs_success
=false
9615 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9616 # would make configure fail if this is the last instruction.
9617 $ac_cs_success || { (exit 1); exit 1; }