2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file="cppmain.c"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
275 # include <sys/types.h>
278 # include <sys/stat.h>
289 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <strings.h>
298 # include <inttypes.h>
308 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP warn_cflags SET_MAKE LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA have_mktemp_command STRIP manext objext PACKAGE VERSION MAINT build_canonical host_canonical target_subdir objdir all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_file build_xm_defines check_languages dep_host_xmake_file dep_tmake_file extra_c_flags extra_headers_list extra_objs extra_parts extra_passes extra_programs gcc_config_arguments gcc_version gcc_version_full gcc_version_trigger host_exeext host_extra_gcc_objs install lang_tree_files local_prefix md_file out_file out_object_file symbolic_link thread_file c_target_objs LIBOBJS LTLIBOBJS'
311 # Initialize some variables set by options.
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
323 program_transform_name=s,x,x,
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361 # Accept the important Cygnus configure options, so we can diagnose typos.
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build_alias ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build_alias=$ac_optarg ;;
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380 cache_file=$ac_optarg ;;
383 cache_file=config.cache ;;
385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389 datadir=$ac_optarg ;;
391 -disable-* | --disable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 eval "enable_$ac_feature=no" ;;
400 -enable-* | --enable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
411 eval "enable_$ac_feature='$ac_optarg'" ;;
413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415 | --exec | --exe | --ex)
416 ac_prev=exec_prefix ;;
417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419 | --exec=* | --exe=* | --ex=*)
420 exec_prefix=$ac_optarg ;;
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
426 -help | --help | --hel | --he | -h)
428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429 ac_init_help=recursive ;;
430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431 ac_init_help=short ;;
433 -host | --host | --hos | --ho)
434 ac_prev=host_alias ;;
435 -host=* | --host=* | --hos=* | --ho=*)
436 host_alias=$ac_optarg ;;
438 -includedir | --includedir | --includedi | --included | --include \
439 | --includ | --inclu | --incl | --inc)
440 ac_prev=includedir ;;
441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442 | --includ=* | --inclu=* | --incl=* | --inc=*)
443 includedir=$ac_optarg ;;
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448 infodir=$ac_optarg ;;
450 -libdir | --libdir | --libdi | --libd)
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456 | --libexe | --libex | --libe)
457 ac_prev=libexecdir ;;
458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459 | --libexe=* | --libex=* | --libe=*)
460 libexecdir=$ac_optarg ;;
462 -localstatedir | --localstatedir | --localstatedi | --localstated \
463 | --localstate | --localstat | --localsta | --localst \
464 | --locals | --local | --loca | --loc | --lo)
465 ac_prev=localstatedir ;;
466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469 localstatedir=$ac_optarg ;;
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 # Obsolete; use --without-fp.
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c | -n)
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490 | --oldin | --oldi | --old | --ol | --o)
491 ac_prev=oldincludedir ;;
492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495 oldincludedir=$ac_optarg ;;
497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
503 | --program-pre | --program-pr | --program-p)
504 ac_prev=program_prefix ;;
505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507 program_prefix=$ac_optarg ;;
509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
510 | --program-suf | --program-su | --program-s)
511 ac_prev=program_suffix ;;
512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514 program_suffix=$ac_optarg ;;
516 -program-transform-name | --program-transform-name \
517 | --program-transform-nam | --program-transform-na \
518 | --program-transform-n | --program-transform- \
519 | --program-transform | --program-transfor \
520 | --program-transfo | --program-transf \
521 | --program-trans | --program-tran \
522 | --progr-tra | --program-tr | --program-t)
523 ac_prev=program_transform_name ;;
524 -program-transform-name=* | --program-transform-name=* \
525 | --program-transform-nam=* | --program-transform-na=* \
526 | --program-transform-n=* | --program-transform-=* \
527 | --program-transform=* | --program-transfor=* \
528 | --program-transfo=* | --program-transf=* \
529 | --program-trans=* | --program-tran=* \
530 | --progr-tra=* | --program-tr=* | --program-t=*)
531 program_transform_name=$ac_optarg ;;
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541 sbindir=$ac_optarg ;;
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552 sharedstatedir=$ac_optarg ;;
554 -site | --site | --sit)
556 -site=* | --site=* | --sit=*)
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565 | --syscon | --sysco | --sysc | --sys | --sy)
566 ac_prev=sysconfdir ;;
567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569 sysconfdir=$ac_optarg ;;
571 -target | --target | --targe | --targ | --tar | --ta | --t)
572 ac_prev=target_alias ;;
573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574 target_alias=$ac_optarg ;;
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
579 -version | --version | --versio | --versi | --vers | -V)
583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584 # Reject names that are not valid shell variable names.
585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid package name: $ac_package" >&2
587 { (exit 1); exit 1; }; }
588 ac_package=`echo $ac_package| sed 's/-/_/g'`
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593 eval "with_$ac_package='$ac_optarg'" ;;
595 -without-* | --without-*)
596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package | sed 's/-/_/g'`
602 eval "with_$ac_package=no" ;;
605 # Obsolete; use --with-x.
608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609 | --x-incl | --x-inc | --x-in | --x-i)
610 ac_prev=x_includes ;;
611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613 x_includes=$ac_optarg ;;
615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617 ac_prev=x_libraries ;;
618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620 x_libraries=$ac_optarg ;;
622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629 # Reject names that are not valid shell variable names.
630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632 { (exit 1); exit 1; }; }
633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634 eval "$ac_envvar='$ac_optarg'"
638 # FIXME: should be removed in autoconf 3.0.
639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 if test -n "$ac_prev"; then
649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650 { echo "$as_me: error: missing argument to $ac_option" >&2
651 { (exit 1); exit 1; }; }
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
657 eval ac_val=$`echo $ac_var`
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
669 eval ac_val=$`echo $ac_var`
671 [\\/$]* | ?:[\\/]* ) ;;
672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673 { (exit 1); exit 1; }; };;
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686 if test "x$build_alias" = x; then
687 cross_compiling=maybe
688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689 If a cross compiler is detected then cross compile mode will be used." >&2
690 elif test "x$build_alias" != "x$host_alias"; then
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698 test "$silent" = yes && exec 6>/dev/null
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703 ac_srcdir_defaulted=yes
704 # Try the directory containing this script, then its parent.
705 ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707 X"$0" : 'X\(//\)[^/]' \| \
708 X"$0" : 'X\(//\)$' \| \
709 X"$0" : 'X\(/\)' \| \
710 . : '\(.\)' 2>/dev/null ||
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
718 if test ! -r $srcdir/$ac_unique_file; then
722 ac_srcdir_defaulted=no
724 if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727 { (exit 1); exit 1; }; }
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730 { (exit 1); exit 1; }; }
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735 { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CPP_set=${CPP+set}
766 ac_env_CPP_value=$CPP
767 ac_cv_env_CPP_set=${CPP+set}
768 ac_cv_env_CPP_value=$CPP
771 # Report the --help message.
773 if test "$ac_init_help" = "long"; then
774 # Omit some internal or obsolete options to make the list less imposing.
775 # This message is too long to be a string in the A/UX 3.1 sh.
777 \`configure' configures this package to adapt to many kinds of systems.
779 Usage: $0 [OPTION]... [VAR=VALUE]...
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE. See below for descriptions of some of the useful variables.
784 Defaults for the options are specified in brackets.
787 -h, --help display this help and exit
788 --help=short display options specific to this package
789 --help=recursive display the short help of all the included packages
790 -V, --version display version information and exit
791 -q, --quiet, --silent do not print \`checking...' messages
792 --cache-file=FILE cache test results in FILE [disabled]
793 -C, --config-cache alias for \`--cache-file=config.cache'
794 -n, --no-create do not create output files
795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
811 For better control, use the options below.
813 Fine tuning of the installation directories:
814 --bindir=DIR user executables [EPREFIX/bin]
815 --sbindir=DIR system admin executables [EPREFIX/sbin]
816 --libexecdir=DIR program executables [EPREFIX/libexec]
817 --datadir=DIR read-only architecture-independent data [PREFIX/share]
818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
824 --infodir=DIR info documentation [PREFIX/info]
825 --mandir=DIR man documentation [PREFIX/man]
831 --program-prefix=PREFIX prepend PREFIX to installed program names
832 --program-suffix=SUFFIX append SUFFIX to installed program names
833 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
837 if test -n "$ac_init_help"; then
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-c-mbchar enable multibyte characters for C and C++
845 --enable-maintainer-mode
846 enable make rules and dependencies not useful
847 (and sometimes confusing) to the casual installer
850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
852 --with-gnu-ld arrange to work with GNU ld.
853 --with-ld arrange to use the specified ld (full pathname)
854 --with-gnu-as arrange to work with GNU as
855 --with-as arrange to use the specified as (full pathname)
856 --with-stabs arrange to use stabs instead of host debug format
857 --with-elf arrange to use ELF instead of host debug format
858 --with-local-prefix=DIR specifies directory to put local include
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix= ac_top_builddir=
891 .) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu; then
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.54. Invocation command line was
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982 test -z "$as_dir" && as_dir=.
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Also quote any args containing shell meta-characters.
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n ) continue ;;
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1012 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1014 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1015 # Get rid of the leading space.
1019 # When interrupted or exit'd, cleanup temporary files, and complete
1020 # config.log. We remove comments because anyway the quotes in there
1021 # would cause problems or look ugly.
1022 # WARNING: Be sure not to use single quotes in there, as some shells,
1023 # such as our DU 5.0 friend, will then `close' the trap.
1024 trap 'exit_status=$?
1025 # Save into config.log some information that might help in debugging.
1030 ## ---------------- ##
1031 ## Cache variables. ##
1032 ## ---------------- ##
1035 # The following way of writing the cache mishandles newlines in values,
1038 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1041 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1046 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1053 ## ----------------- ##
1054 ## Output variables. ##
1055 ## ----------------- ##
1058 for ac_var in $ac_subst_vars
1060 eval ac_val=$`echo $ac_var`
1061 echo "$ac_var='"'"'$ac_val'"'"'"
1065 if test -n "$ac_subst_files"; then
1072 for ac_var in $ac_subst_files
1074 eval ac_val=$`echo $ac_var`
1075 echo "$ac_var='"'"'$ac_val'"'"'"
1080 if test -s confdefs.h; then
1087 sed "/^$/d" confdefs.h | sort
1090 test "$ac_signal" != 0 &&
1091 echo "$as_me: caught signal $ac_signal"
1092 echo "$as_me: exit $exit_status"
1094 rm -f core core.* *.core &&
1095 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1098 for ac_signal in 1 2 13 15; do
1099 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1104 rm -rf conftest* confdefs.h
1105 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1108 # Predefined preprocessor variables.
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_NAME "$PACKAGE_NAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_STRING "$PACKAGE_STRING"
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1135 # Let the site file select an alternate cache file if it wants to.
1136 # Prefer explicitly selected file to automatically selected ones.
1137 if test -z "$CONFIG_SITE"; then
1138 if test "x$prefix" != xNONE; then
1139 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1141 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1144 for ac_site_file in $CONFIG_SITE; do
1145 if test -r "$ac_site_file"; then
1146 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1147 echo "$as_me: loading site script $ac_site_file" >&6;}
1148 sed 's/^/| /' "$ac_site_file" >&5
1153 if test -r "$cache_file"; then
1154 # Some versions of bash will fail to source /dev/null (special
1155 # files actually), so we avoid doing that.
1156 if test -f "$cache_file"; then
1157 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1158 echo "$as_me: loading cache $cache_file" >&6;}
1160 [\\/]* | ?:[\\/]* ) . $cache_file;;
1161 *) . ./$cache_file;;
1165 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1166 echo "$as_me: creating cache $cache_file" >&6;}
1170 # Check that the precious variables saved in the cache have kept the same
1172 ac_cache_corrupted=false
1173 for ac_var in `(set) 2>&1 |
1174 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1175 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1176 eval ac_new_set=\$ac_env_${ac_var}_set
1177 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1178 eval ac_new_val="\$ac_env_${ac_var}_value"
1179 case $ac_old_set,$ac_new_set in
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1185 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1186 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1187 ac_cache_corrupted=: ;;
1190 if test "x$ac_old_val" != "x$ac_new_val"; then
1191 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1192 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1193 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1194 echo "$as_me: former value: $ac_old_val" >&2;}
1195 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1196 echo "$as_me: current value: $ac_new_val" >&2;}
1197 ac_cache_corrupted=:
1200 # Pass precious variables to config.status.
1201 if test "$ac_new_set" = set; then
1203 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1205 *) ac_arg=$ac_var=$ac_new_val ;;
1207 case " $ac_configure_args " in
1208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1209 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1213 if $ac_cache_corrupted; then
1214 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1215 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1216 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1217 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1218 { (exit 1); exit 1; }; }
1222 ac_cpp='$CPP $CPPFLAGS'
1223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1245 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1250 symbolic_link='ln -s'
1253 # Check for additional parameters
1257 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1258 if test "${with_gnu_ld+set}" = set; then
1259 withval="$with_gnu_ld"
1260 gnu_ld_flag="$with_gnu_ld"
1265 # With pre-defined ld
1267 # Check whether --with-ld or --without-ld was given.
1268 if test "${with_ld+set}" = set; then
1270 DEFAULT_LINKER="$with_ld"
1272 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1273 if test ! -x "$DEFAULT_LINKER"; then
1274 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1275 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1276 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1280 cat >>confdefs.h <<_ACEOF
1281 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1288 # Check whether --with-gnu-as or --without-gnu-as was given.
1289 if test "${with_gnu_as+set}" = set; then
1290 withval="$with_gnu_as"
1291 gas_flag="$with_gnu_as"
1297 # Check whether --with-as or --without-as was given.
1298 if test "${with_as+set}" = set; then
1300 DEFAULT_ASSEMBLER="$with_as"
1302 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1303 if test ! -x "$DEFAULT_ASSEMBLER"; then
1304 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1305 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1306 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1310 cat >>confdefs.h <<_ACEOF
1311 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1318 # Check whether --with-stabs or --without-stabs was given.
1319 if test "${with_stabs+set}" = set; then
1320 withval="$with_stabs"
1328 # Check whether --with-elf or --without-elf was given.
1329 if test "${with_elf+set}" = set; then
1336 # Specify the local prefix
1339 # Check whether --with-local-prefix or --without-local-prefix was given.
1340 if test "${with_local_prefix+set}" = set; then
1341 withval="$with_local_prefix"
1342 case "${withval}" in
1343 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1344 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1345 { (exit 1); exit 1; }; } ;;
1347 *) local_prefix=$with_local_prefix ;;
1351 # Default local prefix if it is empty
1352 if test x$local_prefix = x; then
1353 local_prefix=/usr/local
1356 test "$program_prefix" != NONE &&
1357 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1358 # Use a double $ so make ignores it.
1359 test "$program_suffix" != NONE &&
1360 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1361 # Double any \ or $. echo might interpret backslashes.
1362 # By default was `s,x,x', remove it if useless.
1363 cat <<\_ACEOF >conftest.sed
1364 s/[\\$]/&&/g;s/;s,x,x,$//
1366 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1370 # Enable Multibyte Characters for C/C++
1371 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
1372 if test "${enable_c_mbchar+set}" = set; then
1373 enableval="$enable_c_mbchar"
1374 if test x$enable_c_mbchar != xno; then
1376 cat >>confdefs.h <<\_ACEOF
1377 #define MULTIBYTE_CHARS 1
1383 # Find the native compiler
1385 ac_cpp='$CPP $CPPFLAGS'
1386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1389 if test -n "$ac_tool_prefix"; then
1390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1391 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1392 echo "$as_me:$LINENO: checking for $ac_word" >&5
1393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394 if test "${ac_cv_prog_CC+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 if test -n "$CC"; then
1398 ac_cv_prog_CC="$CC" # Let the user override the test.
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404 test -z "$as_dir" && as_dir=.
1405 for ac_exec_ext in '' $ac_executable_extensions; do
1406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1417 if test -n "$CC"; then
1418 echo "$as_me:$LINENO: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1421 echo "$as_me:$LINENO: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1426 if test -z "$ac_cv_prog_CC"; then
1428 # Extract the first word of "gcc", so it can be a program name with args.
1429 set dummy gcc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 test -z "$as_dir" && as_dir=.
1443 for ac_exec_ext in '' $ac_executable_extensions; do
1444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1445 ac_cv_prog_ac_ct_CC="gcc"
1446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1455 if test -n "$ac_ct_CC"; then
1456 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1457 echo "${ECHO_T}$ac_ct_CC" >&6
1459 echo "$as_me:$LINENO: result: no" >&5
1460 echo "${ECHO_T}no" >&6
1468 if test -z "$CC"; then
1469 if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}cc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_CC="${ac_tool_prefix}cc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 if test -n "$CC"; then
1498 echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1506 if test -z "$ac_cv_prog_CC"; then
1508 # Extract the first word of "cc", so it can be a program name with args.
1509 set dummy cc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC="cc"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 # Extract the first word of "cc", so it can be a program name with args.
1551 set dummy cc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 if test -n "$CC"; then
1558 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1569 ac_prog_rejected=yes
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 if test $ac_prog_rejected = yes; then
1580 # We found a bogon in the path, so make sure we never use it.
1581 set dummy $ac_cv_prog_CC
1583 if test $# != 0; then
1584 # We chose a different compiler from the bogus one.
1585 # However, it has the same basename, so the bogon will be chosen
1586 # first if we set CC to just the basename; use the full file name.
1588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1594 if test -n "$CC"; then
1595 echo "$as_me:$LINENO: result: $CC" >&5
1596 echo "${ECHO_T}$CC" >&6
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1638 echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1642 test -n "$CC" && break
1645 if test -z "$CC"; then
1649 # Extract the first word of "$ac_prog", so it can be a program name with args.
1650 set dummy $ac_prog; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_ac_ct_CC="$ac_prog"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1676 if test -n "$ac_ct_CC"; then
1677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678 echo "${ECHO_T}$ac_ct_CC" >&6
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1684 test -n "$ac_ct_CC" && break
1693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1694 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1695 { (exit 1); exit 1; }; }
1697 # Provide some information about the compiler.
1698 echo "$as_me:$LINENO:" \
1699 "checking for C compiler version" >&5
1700 ac_compiler=`set X $ac_compile; echo $2`
1701 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1702 (eval $ac_compiler --version </dev/null >&5) 2>&5
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1707 (eval $ac_compiler -v </dev/null >&5) 2>&5
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); }
1711 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1712 (eval $ac_compiler -V </dev/null >&5) 2>&5
1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715 (exit $ac_status); }
1717 cat >conftest.$ac_ext <<_ACEOF
1718 #line $LINENO "configure"
1719 #include "confdefs.h"
1729 ac_clean_files_save=$ac_clean_files
1730 ac_clean_files="$ac_clean_files a.out a.exe"
1731 # Try to create an executable without -o first, disregard a.out.
1732 # It will help us diagnose broken compilers, and finding out an intuition
1734 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1735 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1736 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1737 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1738 (eval $ac_link_default) 2>&5
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }; then
1742 # Find the output, starting from the most likely. This scheme is
1743 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1746 # Be careful to initialize this variable, since it used to be cached.
1747 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1749 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1750 test -f "$ac_file" || continue
1752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1753 a.out ) # We found the default executable, but exeext='' is most
1756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1757 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1764 echo "$as_me: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1767 check \`config.log' for details." >&5
1768 echo "$as_me: error: C compiler cannot create executables
1769 check \`config.log' for details." >&2;}
1770 { (exit 77); exit 77; }; }
1773 ac_exeext=$ac_cv_exeext
1774 echo "$as_me:$LINENO: result: $ac_file" >&5
1775 echo "${ECHO_T}$ac_file" >&6
1777 # Check the compiler produces executables we can run. If not, either
1778 # the compiler is broken, or we cross compile.
1779 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1780 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1781 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1782 # If not cross compiling, check that we can run a simple program.
1783 if test "$cross_compiling" != yes; then
1784 if { ac_try='./$ac_file'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1792 if test "$cross_compiling" = maybe; then
1795 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1796 If you meant to cross compile, use \`--host'." >&5
1797 echo "$as_me: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&2;}
1799 { (exit 1); exit 1; }; }
1803 echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1806 rm -f a.out a.exe conftest$ac_cv_exeext
1807 ac_clean_files=$ac_clean_files_save
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1811 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1812 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1813 echo "${ECHO_T}$cross_compiling" >&6
1815 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1816 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1818 (eval $ac_link) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1824 # work properly (i.e., refer to `conftest.exe'), while it won't with
1826 for ac_file in conftest.exe conftest conftest.*; do
1827 test -f "$ac_file" || continue
1829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1837 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1838 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1839 { (exit 1); exit 1; }; }
1842 rm -f conftest$ac_cv_exeext
1843 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1844 echo "${ECHO_T}$ac_cv_exeext" >&6
1846 rm -f conftest.$ac_ext
1847 EXEEXT=$ac_cv_exeext
1849 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1851 if test "${ac_cv_objext+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line $LINENO "configure"
1856 #include "confdefs.h"
1866 rm -f conftest.o conftest.obj
1867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); }; then
1872 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1875 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880 echo "$as_me: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1883 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1884 { (exit 1); exit 1; }; }
1887 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1889 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1890 echo "${ECHO_T}$ac_cv_objext" >&6
1891 OBJEXT=$ac_cv_objext
1893 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1894 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1895 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 cat >conftest.$ac_ext <<_ACEOF
1899 #line $LINENO "configure"
1900 #include "confdefs.h"
1913 rm -f conftest.$ac_objext
1914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915 (eval $ac_compile) 2>&5
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); } &&
1919 { ac_try='test -s conftest.$ac_objext'
1920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }; }; then
1927 echo "$as_me: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1931 rm -f conftest.$ac_objext conftest.$ac_ext
1932 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1935 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1936 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1937 GCC=`test $ac_compiler_gnu = yes && echo yes`
1938 ac_test_CFLAGS=${CFLAGS+set}
1939 ac_save_CFLAGS=$CFLAGS
1941 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1942 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1943 if test "${ac_cv_prog_cc_g+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 cat >conftest.$ac_ext <<_ACEOF
1947 #line $LINENO "configure"
1948 #include "confdefs.h"
1958 rm -f conftest.$ac_objext
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960 (eval $ac_compile) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); } &&
1964 { ac_try='test -s conftest.$ac_objext'
1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; }; then
1972 echo "$as_me: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1976 rm -f conftest.$ac_objext conftest.$ac_ext
1978 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1979 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1980 if test "$ac_test_CFLAGS" = set; then
1981 CFLAGS=$ac_save_CFLAGS
1982 elif test $ac_cv_prog_cc_g = yes; then
1983 if test "$GCC" = yes; then
1989 if test "$GCC" = yes; then
1995 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1996 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1997 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 ac_cv_prog_cc_stdc=no
2002 cat >conftest.$ac_ext <<_ACEOF
2003 #line $LINENO "configure"
2004 #include "confdefs.h"
2007 #include <sys/types.h>
2008 #include <sys/stat.h>
2009 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2010 struct buf { int x; };
2011 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2012 static char *e (p, i)
2018 static char *f (char * (*g) (char **, int), char **p, ...)
2023 s = g (p, va_arg (v,int));
2027 int test (int i, double x);
2028 struct s1 {int (*f) (int a);};
2029 struct s2 {int (*f) (double a);};
2030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2036 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2041 # Don't try gcc -ansi; that turns off useful extensions and
2042 # breaks some systems' header files.
2043 # AIX -qlanglvl=ansi
2044 # Ultrix and OSF/1 -std1
2045 # HP-UX 10.20 and later -Ae
2046 # HP-UX older versions -Aa -D_HPUX_SOURCE
2047 # SVR4 -Xc -D__EXTENSIONS__
2048 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2050 CC="$ac_save_CC $ac_arg"
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -s conftest.$ac_objext'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2063 ac_cv_prog_cc_stdc=$ac_arg
2066 echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2069 rm -f conftest.$ac_objext
2071 rm -f conftest.$ac_ext conftest.$ac_objext
2076 case "x$ac_cv_prog_cc_stdc" in
2078 echo "$as_me:$LINENO: result: none needed" >&5
2079 echo "${ECHO_T}none needed" >&6 ;;
2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2082 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2083 CC="$CC $ac_cv_prog_cc_stdc" ;;
2086 # Some people use a C++ compiler to compile C. Since we use `exit',
2087 # in C++ we need to declare it. In case someone uses the same compiler
2088 # for both compiling C and C++ we need to have the C++ compiler decide
2089 # the declaration of exit, since it's the most demanding environment.
2090 cat >conftest.$ac_ext <<_ACEOF
2095 rm -f conftest.$ac_objext
2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try='test -s conftest.$ac_objext'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; }; then
2107 for ac_declaration in \
2109 '#include <stdlib.h>' \
2110 'extern "C" void std::exit (int) throw (); using std::exit;' \
2111 'extern "C" void std::exit (int); using std::exit;' \
2112 'extern "C" void exit (int) throw ();' \
2113 'extern "C" void exit (int);' \
2116 cat >conftest.$ac_ext <<_ACEOF
2117 #line $LINENO "configure"
2118 #include "confdefs.h"
2129 rm -f conftest.$ac_objext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); } &&
2135 { ac_try='test -s conftest.$ac_objext'
2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2143 echo "$as_me: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2147 rm -f conftest.$ac_objext conftest.$ac_ext
2148 cat >conftest.$ac_ext <<_ACEOF
2149 #line $LINENO "configure"
2150 #include "confdefs.h"
2160 rm -f conftest.$ac_objext
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2174 echo "$as_me: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2177 rm -f conftest.$ac_objext conftest.$ac_ext
2180 if test -n "$ac_declaration"; then
2181 echo '#ifdef __cplusplus' >>confdefs.h
2182 echo $ac_declaration >>confdefs.h
2183 echo '#endif' >>confdefs.h
2187 echo "$as_me: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2190 rm -f conftest.$ac_objext conftest.$ac_ext
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 if test "x$CC" != xcc; then
2198 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2199 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2201 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2202 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2204 set dummy $CC; ac_cc=`echo $2 |
2205 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2206 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 cat >conftest.$ac_ext <<_ACEOF
2210 #line $LINENO "configure"
2211 #include "confdefs.h"
2221 # Make sure it works both with $CC and with simple cc.
2222 # We do the test twice because some compilers refuse to overwrite an
2223 # existing .o file with -o, though they will create one.
2224 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2225 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); };
2236 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2237 if test "x$CC" != xcc; then
2238 # Test first that cc exists at all.
2239 if { ac_try='cc -c conftest.$ac_ext >&5'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2246 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); } &&
2251 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); };
2260 # cc exists but doesn't like -o.
2261 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2266 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2271 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2272 echo "$as_me:$LINENO: result: yes" >&5
2273 echo "${ECHO_T}yes" >&6
2275 echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6
2278 cat >>confdefs.h <<\_ACEOF
2279 #define NO_MINUS_C_MINUS_O 1
2284 # autoconf is lame and doesn't give us any substitution variable for this.
2285 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2286 NO_MINUS_C_MINUS_O=yes
2288 OUTPUT_OPTION='-o $@'
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2299 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2300 # On Suns, sometimes $CPP names a directory.
2301 if test -n "$CPP" && test -d "$CPP"; then
2304 if test -z "$CPP"; then
2305 if test "${ac_cv_prog_CPP+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 # Double quotes because CPP needs to be expanded
2309 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2312 for ac_c_preproc_warn_flag in '' yes
2314 # Use a header file that comes with gcc, so configuring glibc
2315 # with a fresh cross-compiler works.
2316 # On the NeXT, cc -E runs the code through the compiler's parser,
2317 # not just through cpp. "Syntax error" is here to catch this case.
2318 cat >conftest.$ac_ext <<_ACEOF
2319 #line $LINENO "configure"
2320 #include "confdefs.h"
2324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2327 grep -v '^ *+' conftest.er1 >conftest.err
2329 cat conftest.err >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } >/dev/null; then
2332 if test -s conftest.err; then
2333 ac_cpp_err=$ac_c_preproc_warn_flag
2340 if test -z "$ac_cpp_err"; then
2343 echo "$as_me: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2345 # Broken: fails on valid input.
2348 rm -f conftest.err conftest.$ac_ext
2350 # OK, works on sane cases. Now check whether non-existent headers
2351 # can be detected and how.
2352 cat >conftest.$ac_ext <<_ACEOF
2353 #line $LINENO "configure"
2354 #include "confdefs.h"
2355 #include <ac_nonexistent.h>
2357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2360 grep -v '^ *+' conftest.er1 >conftest.err
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } >/dev/null; then
2365 if test -s conftest.err; then
2366 ac_cpp_err=$ac_c_preproc_warn_flag
2373 if test -z "$ac_cpp_err"; then
2374 # Broken: success on invalid input.
2377 echo "$as_me: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2379 # Passes both tests.
2383 rm -f conftest.err conftest.$ac_ext
2386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2387 rm -f conftest.err conftest.$ac_ext
2388 if $ac_preproc_ok; then
2400 echo "$as_me:$LINENO: result: $CPP" >&5
2401 echo "${ECHO_T}$CPP" >&6
2403 for ac_c_preproc_warn_flag in '' yes
2405 # Use a header file that comes with gcc, so configuring glibc
2406 # with a fresh cross-compiler works.
2407 # On the NeXT, cc -E runs the code through the compiler's parser,
2408 # not just through cpp. "Syntax error" is here to catch this case.
2409 cat >conftest.$ac_ext <<_ACEOF
2410 #line $LINENO "configure"
2411 #include "confdefs.h"
2415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2418 grep -v '^ *+' conftest.er1 >conftest.err
2420 cat conftest.err >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } >/dev/null; then
2423 if test -s conftest.err; then
2424 ac_cpp_err=$ac_c_preproc_warn_flag
2431 if test -z "$ac_cpp_err"; then
2434 echo "$as_me: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2436 # Broken: fails on valid input.
2439 rm -f conftest.err conftest.$ac_ext
2441 # OK, works on sane cases. Now check whether non-existent headers
2442 # can be detected and how.
2443 cat >conftest.$ac_ext <<_ACEOF
2444 #line $LINENO "configure"
2445 #include "confdefs.h"
2446 #include <ac_nonexistent.h>
2448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2451 grep -v '^ *+' conftest.er1 >conftest.err
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } >/dev/null; then
2456 if test -s conftest.err; then
2457 ac_cpp_err=$ac_c_preproc_warn_flag
2464 if test -z "$ac_cpp_err"; then
2465 # Broken: success on invalid input.
2468 echo "$as_me: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2470 # Passes both tests.
2474 rm -f conftest.err conftest.$ac_ext
2477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2478 rm -f conftest.err conftest.$ac_ext
2479 if $ac_preproc_ok; then
2482 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2483 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2484 { (exit 1); exit 1; }; }
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494 echo "$as_me:$LINENO: checking for inline" >&5
2495 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2496 if test "${ac_cv_c_inline+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 for ac_kw in inline __inline__ __inline; do
2501 cat >conftest.$ac_ext <<_ACEOF
2502 #line $LINENO "configure"
2503 #include "confdefs.h"
2506 static $ac_kw foo_t static_foo () {return 0; }
2507 $ac_kw foo_t foo () {return 0; }
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 ac_cv_c_inline=$ac_kw; break
2525 echo "$as_me: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 rm -f conftest.$ac_objext conftest.$ac_ext
2532 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2533 echo "${ECHO_T}$ac_cv_c_inline" >&6
2534 case $ac_cv_c_inline in
2537 cat >>confdefs.h <<\_ACEOF
2541 *) cat >>confdefs.h <<_ACEOF
2542 #define inline $ac_cv_c_inline
2548 # sizeof(char) is 1 by definition.
2549 echo "$as_me:$LINENO: checking size of short" >&5
2550 echo $ECHO_N "checking size of short... $ECHO_C" >&6
2551 if test "${ac_cv_sizeof_short+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2555 cat >conftest.$ac_ext <<_ACEOF
2556 #line $LINENO "configure"
2557 #include "confdefs.h"
2558 #include "confdefs.h"
2559 #include <sys/types.h>
2565 switch (0) case 0: case (sizeof (short) == $ac_size):;
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 ac_cv_sizeof_short=$ac_size
2584 echo "$as_me: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2587 rm -f conftest.$ac_objext conftest.$ac_ext
2588 if test x$ac_cv_sizeof_short != x ; then break; fi
2593 if test x$ac_cv_sizeof_short = x ; then
2594 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
2595 echo "$as_me: error: cannot determine a size for short" >&2;}
2596 { (exit 1); exit 1; }; }
2598 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
2599 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
2601 cat >>confdefs.h <<_ACEOF
2602 #define SIZEOF_SHORT $ac_cv_sizeof_short
2606 echo "$as_me:$LINENO: checking size of int" >&5
2607 echo $ECHO_N "checking size of int... $ECHO_C" >&6
2608 if test "${ac_cv_sizeof_int+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2612 cat >conftest.$ac_ext <<_ACEOF
2613 #line $LINENO "configure"
2614 #include "confdefs.h"
2615 #include "confdefs.h"
2616 #include <sys/types.h>
2622 switch (0) case 0: case (sizeof (int) == $ac_size):;
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 ac_cv_sizeof_int=$ac_size
2641 echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2644 rm -f conftest.$ac_objext conftest.$ac_ext
2645 if test x$ac_cv_sizeof_int != x ; then break; fi
2650 if test x$ac_cv_sizeof_int = x ; then
2651 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
2652 echo "$as_me: error: cannot determine a size for int" >&2;}
2653 { (exit 1); exit 1; }; }
2655 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
2656 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
2658 cat >>confdefs.h <<_ACEOF
2659 #define SIZEOF_INT $ac_cv_sizeof_int
2663 echo "$as_me:$LINENO: checking size of long" >&5
2664 echo $ECHO_N "checking size of long... $ECHO_C" >&6
2665 if test "${ac_cv_sizeof_long+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2669 cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2671 #include "confdefs.h"
2672 #include "confdefs.h"
2673 #include <sys/types.h>
2679 switch (0) case 0: case (sizeof (long) == $ac_size):;
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686 (eval $ac_compile) 2>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try='test -s conftest.$ac_objext'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 ac_cv_sizeof_long=$ac_size
2698 echo "$as_me: failed program was:" >&5
2699 cat conftest.$ac_ext >&5
2701 rm -f conftest.$ac_objext conftest.$ac_ext
2702 if test x$ac_cv_sizeof_long != x ; then break; fi
2707 if test x$ac_cv_sizeof_long = x ; then
2708 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
2709 echo "$as_me: error: cannot determine a size for long" >&2;}
2710 { (exit 1); exit 1; }; }
2712 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
2713 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
2715 cat >>confdefs.h <<_ACEOF
2716 #define SIZEOF_LONG $ac_cv_sizeof_long
2722 echo "$as_me:$LINENO: checking for egrep" >&5
2723 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2724 if test "${ac_cv_prog_egrep+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2728 then ac_cv_prog_egrep='grep -E'
2729 else ac_cv_prog_egrep='egrep'
2732 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2733 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2734 EGREP=$ac_cv_prog_egrep
2737 echo "$as_me:$LINENO: checking execution character set" >&5
2738 echo $ECHO_N "checking execution character set... $ECHO_C" >&6
2739 if test "${ac_cv_c_charset+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 cat >conftest.$ac_ext <<_ACEOF
2743 #line $LINENO "configure"
2744 #include "confdefs.h"
2745 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
2746 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
2750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2751 $EGREP "ASCII" >/dev/null 2>&1; then
2752 ac_cv_c_charset=ASCII
2756 if test x${ac_cv_c_charset+set} != xset; then
2757 cat >conftest.$ac_ext <<_ACEOF
2758 #line $LINENO "configure"
2759 #include "confdefs.h"
2760 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
2761 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
2765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2766 $EGREP "EBCDIC" >/dev/null 2>&1; then
2767 ac_cv_c_charset=EBCDIC
2772 if test x${ac_cv_c_charset+set} != xset; then
2773 ac_cv_c_charset=unknown
2776 echo "$as_me:$LINENO: result: $ac_cv_c_charset" >&5
2777 echo "${ECHO_T}$ac_cv_c_charset" >&6
2778 if test $ac_cv_c_charset = unknown; then
2779 { { echo "$as_me:$LINENO: error: *** Cannot determine host character set." >&5
2780 echo "$as_me: error: *** Cannot determine host character set." >&2;}
2781 { (exit 1); exit 1; }; }
2782 elif test $ac_cv_c_charset = EBCDIC; then
2784 cat >>confdefs.h <<\_ACEOF
2785 #define HOST_EBCDIC 1
2790 # If the native compiler is GCC, we can enable warnings even in stage1.
2791 # That's useful for people building cross-compilers, or just running a
2794 if test "x$GCC" = "xyes"; then
2795 warn_cflags='$(GCC_WARN_CFLAGS)'
2799 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2800 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2801 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2802 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2805 cat >conftest.make <<\_ACEOF
2807 @echo 'ac_maketemp="${MAKE}"'
2809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2810 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2811 if test -n "$ac_maketemp"; then
2812 eval ac_cv_prog_make_${ac_make}_set=yes
2814 eval ac_cv_prog_make_${ac_make}_set=no
2818 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2819 echo "$as_me:$LINENO: result: yes" >&5
2820 echo "${ECHO_T}yes" >&6
2823 echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2825 SET_MAKE="MAKE=${MAKE-make}"
2829 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2830 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2831 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2832 if test x"$gas_flag" = x"no"; then
2833 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2834 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2836 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2837 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2844 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2845 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
2846 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2847 if test x"$gnu_ld_flag" = x"no"; then
2848 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2849 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
2851 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2852 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
2855 echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2859 # Find some useful tools
2860 echo "$as_me:$LINENO: checking whether ln works" >&5
2861 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
2862 if test "${gcc_cv_prog_LN+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 rm -f conftestdata_t
2866 echo >conftestdata_f
2867 if ln conftestdata_f conftestdata_t 2>/dev/null
2871 if ln -s conftestdata_f conftestdata_t 2>/dev/null
2873 gcc_cv_prog_LN="ln -s"
2878 rm -f conftestdata_f conftestdata_t
2881 LN="$gcc_cv_prog_LN"
2882 if test "$gcc_cv_prog_LN" = "ln"; then
2883 echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6
2886 if test "$gcc_cv_prog_LN" = "ln -s"; then
2887 echo "$as_me:$LINENO: result: no, using ln -s" >&5
2888 echo "${ECHO_T}no, using ln -s" >&6
2890 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
2891 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
2895 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2896 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2897 if test "${gcc_cv_prog_LN_S+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 rm -f conftestdata_t
2901 echo >conftestdata_f
2902 if ln -s conftestdata_f conftestdata_t 2>/dev/null
2904 gcc_cv_prog_LN_S="ln -s"
2906 if ln conftestdata_f conftestdata_t 2>/dev/null
2913 rm -f conftestdata_f conftestdata_t
2916 LN_S="$gcc_cv_prog_LN_S"
2917 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2918 echo "$as_me:$LINENO: result: yes" >&5
2919 echo "${ECHO_T}yes" >&6
2921 if test "$gcc_cv_prog_LN_S" = "ln"; then
2922 echo "$as_me:$LINENO: result: no, using ln" >&5
2923 echo "${ECHO_T}no, using ln" >&6
2925 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
2926 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2933 echo "$as_me:$LINENO: checking for $ac_word" >&5
2934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2935 if test "${ac_cv_prog_RANLIB+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 if test -n "$RANLIB"; then
2939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 RANLIB=$ac_cv_prog_RANLIB
2958 if test -n "$RANLIB"; then
2959 echo "$as_me:$LINENO: result: $RANLIB" >&5
2960 echo "${ECHO_T}$RANLIB" >&6
2962 echo "$as_me:$LINENO: result: no" >&5
2963 echo "${ECHO_T}no" >&6
2967 if test -z "$ac_cv_prog_RANLIB"; then
2968 ac_ct_RANLIB=$RANLIB
2969 # Extract the first word of "ranlib", so it can be a program name with args.
2970 set dummy ranlib; ac_word=$2
2971 echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2973 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 if test -n "$ac_ct_RANLIB"; then
2977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_ac_ct_RANLIB="ranlib"
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2997 if test -n "$ac_ct_RANLIB"; then
2998 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2999 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3001 echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3005 RANLIB=$ac_ct_RANLIB
3007 RANLIB="$ac_cv_prog_RANLIB"
3011 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3012 if test -f $ac_dir/install-sh; then
3014 ac_install_sh="$ac_aux_dir/install-sh -c"
3016 elif test -f $ac_dir/install.sh; then
3018 ac_install_sh="$ac_aux_dir/install.sh -c"
3020 elif test -f $ac_dir/shtool; then
3022 ac_install_sh="$ac_aux_dir/shtool install -c"
3026 if test -z "$ac_aux_dir"; then
3027 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3028 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3029 { (exit 1); exit 1; }; }
3031 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3032 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3033 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3035 # Find a good install program. We prefer a C program (faster),
3036 # so one script is as good as another. But avoid the broken or
3037 # incompatible versions:
3038 # SysV /etc/install, /usr/sbin/install
3039 # SunOS /usr/etc/install
3040 # IRIX /sbin/install
3042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3044 # ./install, which can be erroneously created by make from ./install.sh.
3045 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
3046 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3047 if test -z "$INSTALL"; then
3048 if test "${ac_cv_path_install+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
3052 for ac_dir in $PATH; do
3053 # Account for people who put trailing slashes in PATH elements.
3055 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3057 # OSF1 and SCO ODT 3.0 have their own names for install.
3058 for ac_prog in ginstall scoinst install; do
3059 if test -f $ac_dir/$ac_prog; then
3060 if test $ac_prog = install &&
3061 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3062 # AIX install. It has an incompatible calling convention.
3063 # OSF/1 installbsd also uses dspmsg, but is usable.
3066 ac_cv_path_install="$ac_dir/$ac_prog -c"
3077 if test "${ac_cv_path_install+set}" = set; then
3078 INSTALL="$ac_cv_path_install"
3080 # As a last resort, use the slow shell script. We don't cache a
3081 # path for INSTALL within a source directory, because that will
3082 # break other packages using the cache if that directory is
3083 # removed, or if the path is relative.
3084 INSTALL="$ac_install_sh"
3087 echo "$as_me:$LINENO: result: $INSTALL" >&5
3088 echo "${ECHO_T}$INSTALL" >&6
3090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3091 # It thinks the first close brace ends the variable substitution.
3092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3097 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3099 if test "${ac_cv_header_stdc+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 cat >conftest.$ac_ext <<_ACEOF
3103 #line $LINENO "configure"
3104 #include "confdefs.h"
3111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3114 grep -v '^ *+' conftest.er1 >conftest.err
3116 cat conftest.err >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } >/dev/null; then
3119 if test -s conftest.err; then
3120 ac_cpp_err=$ac_c_preproc_warn_flag
3127 if test -z "$ac_cpp_err"; then
3128 ac_cv_header_stdc=yes
3130 echo "$as_me: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3132 ac_cv_header_stdc=no
3134 rm -f conftest.err conftest.$ac_ext
3136 if test $ac_cv_header_stdc = yes; then
3137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3138 cat >conftest.$ac_ext <<_ACEOF
3139 #line $LINENO "configure"
3140 #include "confdefs.h"
3144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3145 $EGREP "memchr" >/dev/null 2>&1; then
3148 ac_cv_header_stdc=no
3154 if test $ac_cv_header_stdc = yes; then
3155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3156 cat >conftest.$ac_ext <<_ACEOF
3157 #line $LINENO "configure"
3158 #include "confdefs.h"
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163 $EGREP "free" >/dev/null 2>&1; then
3166 ac_cv_header_stdc=no
3172 if test $ac_cv_header_stdc = yes; then
3173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3174 if test "$cross_compiling" = yes; then
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line $LINENO "configure"
3179 #include "confdefs.h"
3181 #if ((' ' & 0x0FF) == 0x020)
3182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3185 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3186 || ('j' <= (c) && (c) <= 'r') \
3187 || ('s' <= (c) && (c) <= 'z'))
3188 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3196 for (i = 0; i < 256; i++)
3197 if (XOR (islower (i), ISLOWER (i))
3198 || toupper (i) != TOUPPER (i))
3203 rm -f conftest$ac_exeext
3204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3205 (eval $ac_link) 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3216 echo "$as_me: program exited with status $ac_status" >&5
3217 echo "$as_me: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3220 ac_cv_header_stdc=no
3222 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3227 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3228 if test $ac_cv_header_stdc = yes; then
3230 cat >>confdefs.h <<\_ACEOF
3231 #define STDC_HEADERS 1
3236 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3237 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3238 if test "${ac_cv_header_time+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 cat >conftest.$ac_ext <<_ACEOF
3242 #line $LINENO "configure"
3243 #include "confdefs.h"
3244 #include <sys/types.h>
3245 #include <sys/time.h>
3251 if ((struct tm *) 0)
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 ac_cv_header_time=yes
3271 echo "$as_me: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3273 ac_cv_header_time=no
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3277 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3278 echo "${ECHO_T}$ac_cv_header_time" >&6
3279 if test $ac_cv_header_time = yes; then
3281 cat >>confdefs.h <<\_ACEOF
3282 #define TIME_WITH_SYS_TIME 1
3287 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
3288 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
3289 if test "${gcc_cv_header_string+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 cat >conftest.$ac_ext <<_ACEOF
3293 #line $LINENO "configure"
3294 #include "confdefs.h"
3296 #include <strings.h>
3305 rm -f conftest.$ac_objext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307 (eval $ac_compile) 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } &&
3311 { ac_try='test -s conftest.$ac_objext'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 gcc_cv_header_string=yes
3319 echo "$as_me: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3321 gcc_cv_header_string=no
3323 rm -f conftest.$ac_objext conftest.$ac_ext
3325 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
3326 echo "${ECHO_T}$gcc_cv_header_string" >&6
3327 if test $gcc_cv_header_string = yes; then
3329 cat >>confdefs.h <<\_ACEOF
3330 #define STRING_WITH_STRINGS 1
3335 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3336 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3337 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 cat >conftest.$ac_ext <<_ACEOF
3341 #line $LINENO "configure"
3342 #include "confdefs.h"
3343 #include <sys/types.h>
3344 #include <sys/wait.h>
3346 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3349 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3357 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3362 rm -f conftest.$ac_objext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364 (eval $ac_compile) 2>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -s conftest.$ac_objext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 ac_cv_header_sys_wait_h=yes
3376 echo "$as_me: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 ac_cv_header_sys_wait_h=no
3380 rm -f conftest.$ac_objext conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3383 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3384 if test $ac_cv_header_sys_wait_h = yes; then
3386 cat >>confdefs.h <<\_ACEOF
3387 #define HAVE_SYS_WAIT_H 1
3392 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3402 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3403 inttypes.h stdint.h unistd.h
3405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3406 echo "$as_me:$LINENO: checking for $ac_header" >&5
3407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 #include "confdefs.h"
3414 $ac_includes_default
3416 #include <$ac_header>
3418 rm -f conftest.$ac_objext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420 (eval $ac_compile) 2>&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } &&
3424 { ac_try='test -s conftest.$ac_objext'
3425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }; }; then
3430 eval "$as_ac_Header=yes"
3432 echo "$as_me: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3434 eval "$as_ac_Header=no"
3436 rm -f conftest.$ac_objext conftest.$ac_ext
3438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3441 cat >>confdefs.h <<_ACEOF
3442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3464 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
3465 fcntl.h unistd.h sys/file.h sys/time.h \
3466 sys/param.h sys/stat.h \
3469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3471 echo "$as_me:$LINENO: checking for $ac_header" >&5
3472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3479 # Is the header compilable?
3480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3482 cat >conftest.$ac_ext <<_ACEOF
3483 #line $LINENO "configure"
3484 #include "confdefs.h"
3485 $ac_includes_default
3486 #include <$ac_header>
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 ac_header_compiler=yes
3502 echo "$as_me: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 ac_header_compiler=no
3506 rm -f conftest.$ac_objext conftest.$ac_ext
3507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3508 echo "${ECHO_T}$ac_header_compiler" >&6
3510 # Is the header present?
3511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3513 cat >conftest.$ac_ext <<_ACEOF
3514 #line $LINENO "configure"
3515 #include "confdefs.h"
3516 #include <$ac_header>
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3521 grep -v '^ *+' conftest.er1 >conftest.err
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } >/dev/null; then
3526 if test -s conftest.err; then
3527 ac_cpp_err=$ac_c_preproc_warn_flag
3534 if test -z "$ac_cpp_err"; then
3535 ac_header_preproc=yes
3537 echo "$as_me: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3539 ac_header_preproc=no
3541 rm -f conftest.err conftest.$ac_ext
3542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3543 echo "${ECHO_T}$ac_header_preproc" >&6
3545 # So? What about this header?
3546 case $ac_header_compiler:$ac_header_preproc in
3548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3560 echo "$as_me:$LINENO: checking for $ac_header" >&5
3561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 eval "$as_ac_Header=$ac_header_preproc"
3567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3572 cat >>confdefs.h <<_ACEOF
3573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3581 # Check for thread headers.
3583 # These tests can't be done till we know if we have limits.h.
3584 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
3585 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
3586 if test "${gcc_cv_decl_char_bit+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 cat >conftest.$ac_ext <<_ACEOF
3590 #line $LINENO "configure"
3591 #include "confdefs.h"
3592 #ifdef HAVE_LIMITS_H
3599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3600 $EGREP "found" >/dev/null 2>&1; then
3601 gcc_cv_decl_char_bit=yes
3603 gcc_cv_decl_char_bit=no
3609 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
3610 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
3611 if test $gcc_cv_decl_char_bit = no; then
3612 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
3613 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
3614 if test "${gcc_cv_c_nbby+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 while test $i -lt 65; do
3620 cat >conftest.$ac_ext <<_ACEOF
3621 #line $LINENO "configure"
3622 #include "confdefs.h"
3628 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
3629 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3647 gcc_cv_c_nbby=$i; break
3649 echo "$as_me: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3652 rm -f conftest.$ac_objext conftest.$ac_ext
3655 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
3658 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
3659 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
3660 if test $gcc_cv_c_nbby = failed; then
3661 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
3662 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
3663 { (exit 1); exit 1; }; }
3666 cat >>confdefs.h <<_ACEOF
3667 #define CHAR_BIT $gcc_cv_c_nbby
3672 echo "$as_me:$LINENO: checking byte ordering" >&5
3673 echo $ECHO_N "checking byte ordering... $ECHO_C" >&6
3674 if test "${ac_cv_c_compile_endian+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_cv_c_compile_endian=unknown
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3687 "configure"
3688 #include "confdefs.h"
3690 #ifdef HAVE_LIMITS_H
3691 # include <limits.h>
3693 /* This structure must have no internal padding. */
3695 char prefix[sizeof "\nendian:" - 1];
3700 #if SIZEOF_SHORT == 4
3701 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
3703 ('A' << CHAR_BIT) | 'B',
3707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708 (eval $ac_compile) 2>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; then
3713 sed 's/^[0-7]*[ ]*/ /
3716 s/ [0-9][0-9][0-9]/./g
3722 if grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then
3723 ac_cv_c_compile_endian=big-endian
3724 elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then
3725 ac_cv_c_compile_endian=little-endian
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737 echo "$as_me:$LINENO: result: $ac_cv_c_compile_endian" >&5
3738 echo "${ECHO_T}$ac_cv_c_compile_endian" >&6
3739 if test $ac_cv_c_compile_endian = unknown; then
3740 { { echo "$as_me:$LINENO: error: *** unable to determine endianness" >&5
3741 echo "$as_me: error: *** unable to determine endianness" >&2;}
3742 { (exit 1); exit 1; }; }
3743 elif test $ac_cv_c_compile_endian = big-endian; then
3745 cat >>confdefs.h <<\_ACEOF
3746 #define HOST_WORDS_BIG_ENDIAN 1
3752 # See if we have the mktemp command.
3753 # Extract the first word of "mktemp", so it can be a program name with args.
3754 set dummy mktemp; ac_word=$2
3755 echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -n "$have_mktemp_command"; then
3761 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_have_mktemp_command="yes"
3771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
3780 have_mktemp_command=$ac_cv_prog_have_mktemp_command
3781 if test -n "$have_mktemp_command"; then
3782 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
3783 echo "${ECHO_T}$have_mktemp_command" >&6
3785 echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6
3790 # Extract the first word of "strip", so it can be a program name with args.
3791 set dummy strip; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_prog_STRIP+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 if test -n "$STRIP"; then
3798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_STRIP="strip"
3808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3817 STRIP=$ac_cv_prog_STRIP
3818 if test -n "$STRIP"; then
3819 echo "$as_me:$LINENO: result: $STRIP" >&5
3820 echo "${ECHO_T}$STRIP" >&6
3822 echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3827 # See if the stage1 system preprocessor understands the ANSI C
3828 # preprocessor stringification operator. (Used by symcat.h.)
3829 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
3830 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
3831 if test "${ac_cv_c_stringize+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 cat >conftest.$ac_ext <<_ACEOF
3835 #line $LINENO "configure"
3836 #include "confdefs.h"
3839 char *s = x(teststring);
3841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3842 $EGREP "#teststring" >/dev/null 2>&1; then
3843 ac_cv_c_stringize=no
3845 ac_cv_c_stringize=yes
3850 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
3851 echo "${ECHO_T}$ac_cv_c_stringize" >&6
3852 if test $ac_cv_c_stringize = yes; then
3854 cat >>confdefs.h <<\_ACEOF
3855 #define HAVE_STRINGIZE 1
3866 for ac_func in clock strchr strrchr lstat
3868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3869 echo "$as_me:$LINENO: checking for $ac_func" >&5
3870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3871 if eval "test \"\${$as_ac_var+set}\" = set"; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 cat >conftest.$ac_ext <<_ACEOF
3875 #line $LINENO "configure"
3876 #include "confdefs.h"
3877 /* System header to define __stub macros and hopefully few prototypes,
3878 which can conflict with char $ac_func (); below. */
3880 /* Override any gcc2 internal prototype to avoid an error. */
3884 /* We use char because int might match the return type of a gcc2
3885 builtin and then its argument prototype would still apply. */
3892 /* The GNU C library defines this for functions which it implements
3893 to always fail with ENOSYS. Some functions are actually named
3894 something starting with __ and the normal name is an alias. */
3895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3905 rm -f conftest.$ac_objext conftest$ac_exeext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3907 (eval $ac_link) 2>&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -s conftest$ac_exeext'
3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3917 eval "$as_ac_var=yes"
3919 echo "$as_me: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3921 eval "$as_ac_var=no"
3923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3927 if test `eval echo '${'$as_ac_var'}'` = yes; then
3928 cat >>confdefs.h <<_ACEOF
3929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3936 echo "$as_me:$LINENO: checking for ssize_t" >&5
3937 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3938 if test "${ac_cv_type_ssize_t+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 cat >conftest.$ac_ext <<_ACEOF
3942 #line $LINENO "configure"
3943 #include "confdefs.h"
3944 $ac_includes_default
3950 if (sizeof (ssize_t))
3956 rm -f conftest.$ac_objext
3957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958 (eval $ac_compile) 2>&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } &&
3962 { ac_try='test -s conftest.$ac_objext'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 ac_cv_type_ssize_t=yes
3970 echo "$as_me: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 ac_cv_type_ssize_t=no
3974 rm -f conftest.$ac_objext conftest.$ac_ext
3976 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
3977 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
3978 if test $ac_cv_type_ssize_t = yes; then
3982 cat >>confdefs.h <<_ACEOF
3990 for ac_func in getpagesize
3992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3993 echo "$as_me:$LINENO: checking for $ac_func" >&5
3994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3995 if eval "test \"\${$as_ac_var+set}\" = set"; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 #include "confdefs.h"
4001 /* System header to define __stub macros and hopefully few prototypes,
4002 which can conflict with char $ac_func (); below. */
4004 /* Override any gcc2 internal prototype to avoid an error. */
4008 /* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4016 /* The GNU C library defines this for functions which it implements
4017 to always fail with ENOSYS. Some functions are actually named
4018 something starting with __ and the normal name is an alias. */
4019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4029 rm -f conftest.$ac_objext conftest$ac_exeext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4031 (eval $ac_link) 2>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -s conftest$ac_exeext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 eval "$as_ac_var=yes"
4043 echo "$as_me: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4045 eval "$as_ac_var=no"
4047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4051 if test `eval echo '${'$as_ac_var'}'` = yes; then
4052 cat >>confdefs.h <<_ACEOF
4053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4059 # The test program for the next two tests is the same except for one
4061 cat >ct-mmap.inc <<'EOF'
4062 #include <sys/types.h>
4063 #include <sys/mman.h>
4069 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4070 # define MAP_ANONYMOUS MAP_ANON
4073 /* This mess was copied from the GNU getpagesize.h. */
4074 #ifndef HAVE_GETPAGESIZE
4075 # ifdef HAVE_UNISTD_H
4076 # include <unistd.h>
4079 /* Assume that all systems that can run configure have sys/param.h. */
4080 # ifndef HAVE_SYS_PARAM_H
4081 # define HAVE_SYS_PARAM_H 1
4084 # ifdef _SC_PAGESIZE
4085 # define getpagesize() sysconf(_SC_PAGESIZE)
4086 # else /* no _SC_PAGESIZE */
4087 # ifdef HAVE_SYS_PARAM_H
4088 # include <sys/param.h>
4089 # ifdef EXEC_PAGESIZE
4090 # define getpagesize() EXEC_PAGESIZE
4091 # else /* no EXEC_PAGESIZE */
4093 # define getpagesize() NBPG * CLSIZE
4096 # endif /* no CLSIZE */
4097 # else /* no NBPG */
4099 # define getpagesize() NBPC
4100 # else /* no NBPC */
4102 # define getpagesize() PAGESIZE
4103 # endif /* PAGESIZE */
4104 # endif /* no NBPC */
4105 # endif /* no NBPG */
4106 # endif /* no EXEC_PAGESIZE */
4107 # else /* no HAVE_SYS_PARAM_H */
4108 # define getpagesize() 8192 /* punt totally */
4109 # endif /* no HAVE_SYS_PARAM_H */
4110 # endif /* no _SC_PAGESIZE */
4112 #endif /* no HAVE_GETPAGESIZE */
4115 # define MAP_FAILED -1
4119 #define perror_exit(str, val) \
4120 do { perror(str); exit(val); } while (0)
4122 /* Some versions of cygwin mmap require that munmap is called with the
4123 same parameters as mmap. GCC expects that this is not the case.
4124 Test for various forms of this problem. Warning - icky signal games. */
4126 static sigset_t unblock_sigsegv;
4136 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4137 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4139 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4140 MAP_PRIVATE, devzero, 0);
4148 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4152 /* Basic functionality test. */
4156 char *x = anonmap (pg);
4157 if (x == (char *) MAP_FAILED)
4158 perror_exit("test 0 mmap", 2);
4162 if (munmap(x, pg) < 0)
4163 perror_exit("test 0 munmap", 3);
4166 /* 1. If we map a 2-page region and unmap its second page, the first page
4171 char *x = anonmap (pg * 2);
4172 if (x == (char *)MAP_FAILED)
4173 perror_exit ("test 1 mmap", 4);
4175 signal (SIGSEGV, sigsegv);
4177 perror_exit ("test 1 fault", 5);
4182 if (munmap (x + pg, pg) < 0)
4183 perror_exit ("test 1 munmap 1", 6);
4186 if (setjmp (r) == 0)
4189 perror_exit ("test 1 no fault", 7);
4191 if (munmap (x, pg) < 0)
4192 perror_exit ("test 1 munmap 2", 8);
4195 /* 2. If we map a 2-page region and unmap its first page, the second
4196 page must remain. */
4200 char *x = anonmap (pg * 2);
4201 if (x == (char *)MAP_FAILED)
4202 perror_exit ("test 2 mmap", 9);
4204 signal (SIGSEGV, sigsegv);
4206 perror_exit ("test 2 fault", 10);
4211 if (munmap (x, pg) < 0)
4212 perror_exit ("test 2 munmap 1", 11);
4216 if (setjmp (r) == 0)
4219 perror_exit ("test 2 no fault", 12);
4222 if (munmap (x+pg, pg) < 0)
4223 perror_exit ("test 2 munmap 2", 13);
4226 /* 3. If we map two adjacent 1-page regions and unmap them both with
4227 one munmap, both must go away.
4229 Getting two adjacent 1-page regions with two mmap calls is slightly
4230 tricky. All OS's tested skip over already-allocated blocks; therefore
4231 we have been careful to unmap all allocated regions in previous tests.
4232 HP/UX allocates pages backward in memory. No OS has yet been observed
4233 to be so perverse as to leave unmapped space between consecutive calls
4242 if (x == (char *)MAP_FAILED)
4243 perror_exit ("test 3 mmap 1", 14);
4245 if (y == (char *)MAP_FAILED)
4246 perror_exit ("test 3 mmap 2", 15);
4251 z = y, y = x, x = z;
4254 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4255 (unsigned long)x, (unsigned long)y);
4260 signal (SIGSEGV, sigsegv);
4262 perror_exit ("test 3 fault", 17);
4267 if (munmap (x, pg*2) < 0)
4268 perror_exit ("test 3 munmap", 18);
4270 if (setjmp (r) == 0)
4273 perror_exit ("test 3 no fault 1", 19);
4276 signal (SIGSEGV, sigsegv);
4277 if (setjmp (r) == 0)
4280 perror_exit ("test 3 no fault 2", 20);
4287 sigemptyset (&unblock_sigsegv);
4288 sigaddset (&unblock_sigsegv, SIGSEGV);
4289 pg = getpagesize ();
4290 #ifndef USE_MAP_ANON
4291 devzero = open ("/dev/zero", O_RDWR);
4293 perror_exit ("open /dev/zero", 1);
4305 echo "$as_me:$LINENO: checking for working mmap from /dev/zero" >&5
4306 echo $ECHO_N "checking for working mmap from /dev/zero... $ECHO_C" >&6
4307 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 if test "$cross_compiling" = yes; then
4311 # If this is not cygwin, and /dev/zero is a character device, it's probably
4312 # safe to assume it works.
4314 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
4315 * ) if test -c /dev/zero
4316 then ac_cv_func_mmap_dev_zero=yes
4317 else ac_cv_func_mmap_dev_zero=no
4321 cat >conftest.$ac_ext <<_ACEOF
4322 #line $LINENO "configure"
4323 #include "confdefs.h"
4324 #include "ct-mmap.inc"
4326 rm -f conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328 (eval $ac_link) 2>&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_cv_func_mmap_dev_zero=yes
4339 echo "$as_me: program exited with status $ac_status" >&5
4340 echo "$as_me: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4344 then ac_cv_func_mmap_dev_zero=no
4345 else ac_cv_func_mmap_dev_zero=buggy
4348 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4352 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
4353 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
4354 if test $ac_cv_func_mmap_dev_zero = yes; then
4356 cat >>confdefs.h <<\_ACEOF
4357 #define HAVE_MMAP_DEV_ZERO 1
4362 echo "$as_me:$LINENO: checking for working mmap with MAP_ANON(YMOUS)" >&5
4363 echo $ECHO_N "checking for working mmap with MAP_ANON(YMOUS)... $ECHO_C" >&6
4364 if test "${ac_cv_func_mmap_anon+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 if test "$cross_compiling" = yes; then
4368 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4369 # just because it's there. Some SCO Un*xen define it but don't implement it.
4370 ac_cv_func_mmap_anon=no
4372 cat >conftest.$ac_ext <<_ACEOF
4373 #line $LINENO "configure"
4374 #include "confdefs.h"
4375 #define USE_MAP_ANON
4376 #include "ct-mmap.inc"
4378 rm -f conftest$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380 (eval $ac_link) 2>&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; }; then
4389 ac_cv_func_mmap_anon=yes
4391 echo "$as_me: program exited with status $ac_status" >&5
4392 echo "$as_me: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4396 then ac_cv_func_mmap_anon=no
4397 else ac_cv_func_mmap_anon=buggy
4400 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4404 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
4405 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
4406 if test $ac_cv_func_mmap_anon = yes; then
4408 cat >>confdefs.h <<\_ACEOF
4409 #define HAVE_MMAP_ANON 1
4415 echo "$as_me:$LINENO: checking for working mmap of a file" >&5
4416 echo $ECHO_N "checking for working mmap of a file... $ECHO_C" >&6
4417 if test "${ac_cv_func_mmap_file+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 # Create a file one thousand bytes long.
4421 for i in 1 2 3 4 5 6 7 8 9 0
4422 do for j in 1 2 3 4 5 6 7 8 9 0
4425 done > conftestdata$$
4427 if test "$cross_compiling" = yes; then
4428 ac_cv_func_mmap_file=no
4430 cat >conftest.$ac_ext <<_ACEOF
4431 #line $LINENO "configure"
4432 #include "confdefs.h"
4434 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4435 Richard Henderson and Alexandre Oliva.
4436 Check whether read-only mmap of a plain file works. */
4437 #include <sys/types.h>
4438 #include <sys/stat.h>
4440 #include <sys/mman.h>
4448 fd = open("conftestdata$$", O_RDONLY);
4452 if (fstat (fd, &st))
4455 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4456 if (x == (char *) -1)
4459 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4462 if (munmap(x, st.st_size) < 0)
4468 rm -f conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_cv_func_mmap_file=yes
4481 echo "$as_me: program exited with status $ac_status" >&5
4482 echo "$as_me: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4485 ac_cv_func_mmap_file=no
4487 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4490 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
4491 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
4492 if test $ac_cv_func_mmap_file = yes; then
4494 cat >>confdefs.h <<\_ACEOF
4495 #define HAVE_MMAP_FILE 1
4501 # We will need to find libiberty.h and ansidecl.h
4502 saved_CFLAGS="$CFLAGS"
4503 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4504 for ac_func in getenv abort errno \
4505 malloc realloc calloc free clock
4507 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4508 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
4509 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
4510 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 cat >conftest.$ac_ext <<_ACEOF
4514 #line $LINENO "configure"
4515 #include "confdefs.h"
4517 #define $ac_tr_decl 1
4519 #include "ansidecl.h"
4526 char *(*pfn) = (char *(*)) $ac_func ;
4532 rm -f conftest.$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -s conftest.$ac_objext'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 eval "gcc_cv_have_decl_$ac_func=yes"
4546 echo "$as_me: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4548 eval "gcc_cv_have_decl_$ac_func=no"
4550 rm -f conftest.$ac_objext conftest.$ac_ext
4553 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4554 echo "$as_me:$LINENO: result: yes" >&5
4555 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
4556 #define $ac_tr_decl 1
4560 echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
4562 #define $ac_tr_decl 0
4568 if test x = y ; then
4570 cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_DECL_GETENV 1
4574 cat >>confdefs.h <<\_ACEOF
4575 #define HAVE_DECL_ABORT 1
4578 cat >>confdefs.h <<\_ACEOF
4579 #define HAVE_DECL_ERRNO 1
4583 cat >>confdefs.h <<\_ACEOF
4584 #define HAVE_DECL_MALLOC 1
4587 cat >>confdefs.h <<\_ACEOF
4588 #define HAVE_DECL_REALLOC 1
4591 cat >>confdefs.h <<\_ACEOF
4592 #define HAVE_DECL_CALLOC 1
4595 cat >>confdefs.h <<\_ACEOF
4596 #define HAVE_DECL_FREE 1
4599 cat >>confdefs.h <<\_ACEOF
4600 #define HAVE_DECL_CLOCK 1
4605 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4606 CFLAGS="$saved_CFLAGS"
4608 # mkdir takes a single argument on some systems.
4609 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
4610 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
4611 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 cat >conftest.$ac_ext <<_ACEOF
4615 #line $LINENO "configure"
4616 #include "confdefs.h"
4618 #include <sys/types.h>
4619 #ifdef HAVE_SYS_STAT_H
4620 # include <sys/stat.h>
4622 #ifdef HAVE_UNISTD_H
4623 # include <unistd.h>
4625 #ifdef HAVE_DIRECT_H
4626 # include <direct.h>
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } &&
4642 { ac_try='test -s conftest.$ac_objext'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4648 gcc_cv_mkdir_takes_one_arg=no
4650 echo "$as_me: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4652 gcc_cv_mkdir_takes_one_arg=yes
4654 rm -f conftest.$ac_objext conftest.$ac_ext
4656 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
4657 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
4658 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4660 cat >>confdefs.h <<\_ACEOF
4661 #define MKDIR_TAKES_ONE_ARG 1
4675 build_install_headers_dir=install-headers-tar
4680 host_truncate_target=
4683 # Decode the host machine, then the target machine.
4684 # For the host machine, we save the xm_file variable as host_xm_file;
4685 # then we decode the target machine and forget everything else
4686 # that came from the host machine.
4687 #for machine in $build $host $target; do
4688 # . ${srcdir}/config.gcc
4691 extra_objs="${host_extra_objs} ${extra_objs}"
4693 # Default the target-machine variables that were not explicitly set.
4694 if test x"$tm_file" = x
4695 then tm_file=$cpu_type/$cpu_type.h; fi
4697 if test x"$extra_headers" = x
4698 then extra_headers=; fi
4700 if test x$md_file = x
4701 then md_file=$cpu_type/$cpu_type.md; fi
4703 if test x$out_file = x
4704 then out_file=$cpu_type/$cpu_type.c; fi
4706 if test x"$tmake_file" = x
4707 then tmake_file=$cpu_type/t-$cpu_type
4710 if test x"$dwarf2" = xyes
4711 then tm_file="$tm_file tm-dwarf2.h"
4714 # Handle cpp installation.
4715 if test x$enable_cpp != xno
4717 tmake_file="$tmake_file t-install-cpp"
4720 # auto-host.h is the file containing items generated by autoconf and is
4721 # the first file included by config.h.
4722 # If host=build, it is correct to have hconfig include auto-host.h
4723 # as well. If host!=build, we are in error and need to do more
4724 # work to find out the build config parameters.
4725 if test x$host = x$build
4727 build_auto=auto-host.h
4729 # We create a subdir, then run autoconf in the subdir.
4730 # To prevent recursion we set host and build for the new
4731 # invocation of configure to the build for this invocation
4738 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
4739 *) realsrcdir=../${srcdir};;
4741 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4742 --target=$target --host=$build --build=$build
4744 # We just finished tests for the build machine, so rename
4745 # the file auto-build.h in the gcc directory.
4746 mv auto-host.h ../auto-build.h
4749 build_auto=auto-build.h
4752 tm_file="${tm_file} defaults.h"
4753 host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
4754 build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
4755 xm_file="ansidecl.h ${xm_file} ${tm_file}"
4757 # Truncate the target if necessary
4758 if test x$host_truncate_target != x; then
4759 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4762 # Get the version trigger filename from the toplevel
4763 if test "${with_gcc_version_trigger+set}" = set; then
4764 gcc_version_trigger=$with_gcc_version_trigger
4766 gcc_version_trigger=${srcdir}/version.c
4768 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
4769 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4771 # Compile in configure arguments.
4772 if test -f configargs.h ; then
4773 # Being re-configured.
4774 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
4775 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
4777 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
4779 cat > configargs.h <<EOF
4780 /* Generated automatically. */
4781 static const char configuration_arguments[] = "$gcc_config_arguments";
4782 static const char thread_model[] = "$thread_file";
4785 # Internationalization
4787 VERSION="$gcc_version"
4789 cat >>confdefs.h <<_ACEOF
4790 #define PACKAGE "$PACKAGE"
4794 cat >>confdefs.h <<_ACEOF
4795 #define VERSION "$VERSION"
4803 # Get an absolute path to the GCC top-level source directory
4809 out_object_file=`basename $out_file .c`.o
4811 # Figure out what assembler we will be using.
4812 echo "$as_me:$LINENO: checking what assembler to use" >&5
4813 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
4815 gcc_cv_gas_major_version=
4816 gcc_cv_gas_minor_version=
4817 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4818 if test -x "$DEFAULT_ASSEMBLER"; then
4819 gcc_cv_as="$DEFAULT_ASSEMBLER"
4820 elif test -x "$AS"; then
4822 elif test -x as$host_exeext; then
4823 # Build using assembler in the current directory.
4824 gcc_cv_as=./as$host_exeext
4825 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4826 # Single tree build which includes gas.
4827 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4829 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4830 if test x$gcc_cv_gas_version != x; then
4834 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4835 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4838 if test "x$gcc_cv_as" = x -a x$host = x$target; then
4840 # Search the same directories that the installed compiler will
4841 # search. Else we may find the wrong assembler and lose. If we
4842 # do not find a suitable assembler binary, then try the user's
4845 # Also note we have to check MD_EXEC_PREFIX before checking the
4846 # user's path. Unfortunately, there is no good way to get at the
4847 # value of MD_EXEC_PREFIX here. So we do a brute force search
4848 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4849 # to be fixed as part of the make/configure rewrite too.
4851 if test "x$exec_prefix" = xNONE; then
4852 if test "x$prefix" = xNONE; then
4853 test_prefix=/usr/local
4858 test_prefix=$exec_prefix
4861 # If the loop below does not find an assembler, then use whatever
4862 # one we can find in the users's path.
4864 gcc_cv_as=as$host_exeext
4866 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4867 $test_prefix/lib/gcc-lib/$target \
4868 /usr/lib/gcc/$target/$gcc_version \
4869 /usr/lib/gcc/$target \
4870 $test_prefix/$target/bin/$target/$gcc_version \
4871 $test_prefix/$target/bin \
4876 /bsd43/usr/lib/cmplrs/cc \
4877 /usr/cross64/usr/bin \
4878 /usr/lib/cmplrs/cc \
4879 /sysv/usr/lib/cmplrs/cc \
4880 /svr4/usr/lib/cmplrs/cc \
4883 for dir in $test_dirs; do
4884 if test -f $dir/as$host_exeext; then
4885 gcc_cv_as=$dir/as$host_exeext
4890 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4891 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
4892 echo "${ECHO_T}\"newly built gas\"" >&6
4894 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
4895 echo "${ECHO_T}$gcc_cv_as" >&6
4898 # Figure out what nm we will be using.
4899 echo "$as_me:$LINENO: checking what nm to use" >&5
4900 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
4901 if test -x nm$host_exeext; then
4902 gcc_cv_nm=./nm$host_exeext
4903 elif test x$host = x$target; then
4905 gcc_cv_nm=nm$host_exeext
4907 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
4908 echo "${ECHO_T}$gcc_cv_nm" >&6
4911 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4912 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4913 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4914 if test "${enable_maintainer_mode+set}" = set; then
4915 enableval="$enable_maintainer_mode"
4916 maintainer_mode=$enableval
4921 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
4922 echo "${ECHO_T}$maintainer_mode" >&6
4924 if test "$maintainer_mode" = "yes"; then
4930 # These (without "all_") are set in each config-lang.in.
4931 # `language' must be a single word so is spelled singularly.
4933 all_outputs='Makefile'
4934 # List of language makefile fragments.
4936 # Add the language fragments.
4937 # Languages are added via two mechanisms. Some information must be
4938 # recorded in makefile variables, these are defined in config-lang.in.
4939 # We accumulate them and plug them into the main Makefile.
4940 # The other mechanism is a set of hooks for each of the main targets
4941 # like `clean', `install', etc.
4943 language_fragments="Make-lang"
4945 # Define variables host_canonical and build_canonical
4946 # because some Cygnus local changes in the Makefile depend on them.
4947 build_canonical=${build}
4948 host_canonical=${host}
4950 if test "${host}" != "${target}" ; then
4951 target_subdir=${target_alias}/
4957 # Nothing to do for FLOAT_H, float_format already handled.
4961 # Substitute configuration variables
4993 #AC_SUBST_FILE(target_overrides)
4994 #AC_SUBST_FILE(host_overrides)
4995 #AC_SUBST(cross_defines)
4996 #AC_SUBST_FILE(cross_overrides)
4997 #AC_SUBST_FILE(build_overrides)
4999 # Create the Makefile
5000 # and configure language subdirectories
5001 ac_config_files="$ac_config_files $all_outputs"
5002 ac_config_commands="$ac_config_commands default"
5003 cat >confcache <<\_ACEOF
5004 # This file is a shell script that caches the results of configure
5005 # tests run on this system so they can be shared between configure
5006 # scripts and configure runs, see configure's option --config-cache.
5007 # It is not useful on other systems. If it contains results you don't
5008 # want to keep, you may remove or edit it.
5010 # config.status only pays attention to the cache file if you give it
5011 # the --recheck option to rerun configure.
5013 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5019 # The following way of writing the cache mishandles newlines in values,
5020 # but we know of no workaround that is simple, portable, and efficient.
5021 # So, don't put newlines in cache variables' values.
5022 # Ultrix sh set writes to stderr and can't be redirected directly,
5023 # and sets the high bit in the cache file unless we assign to the vars.
5026 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5028 # `set' does not quote correctly, so add quotes (double-quote
5029 # substitution turns \\\\ into \\, and sed turns \\ into \).
5032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5035 # `set' quotes correctly as required by POSIX, so do not add quotes.
5037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5044 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5046 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5048 if cmp -s $cache_file confcache; then :; else
5049 if test -w $cache_file; then
5050 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5051 cat confcache >$cache_file
5053 echo "not updating unwritable cache $cache_file"
5058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5059 # Let make expand exec_prefix.
5060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5062 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5063 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5064 # trailing colons and then remove the whole line if VPATH becomes empty
5065 # (actually we leave an empty line to preserve line numbers).
5066 if test "x$srcdir" = x.; then
5067 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5068 s/:*\$(srcdir):*/:/;
5069 s/:*\${srcdir}:*/:/;
5071 s/^\([^=]*=[ ]*\):*/\1/;
5077 DEFS=-DHAVE_CONFIG_H
5081 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5082 # 1. Remove the extension, and $U if already installed.
5083 ac_i=`echo "$ac_i" |
5084 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5086 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5087 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5091 LTLIBOBJS=$ac_ltlibobjs
5095 : ${CONFIG_STATUS=./config.status}
5096 ac_clean_files_save=$ac_clean_files
5097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5098 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5099 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5100 cat >$CONFIG_STATUS <<_ACEOF
5102 # Generated by $as_me.
5103 # Run this file to recreate the current configuration.
5104 # Compiler output produced by configure, useful for debugging
5105 # configure, is in config.log if it exists.
5108 SHELL=\${CONFIG_SHELL-$SHELL}
5111 cat >>$CONFIG_STATUS <<\_ACEOF
5112 ## --------------------- ##
5113 ## M4sh Initialization. ##
5114 ## --------------------- ##
5116 # Be Bourne compatible
5117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5120 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5121 # is contrary to our usage. Disable this feature.
5122 alias -g '${1+"$@"}'='"$@"'
5123 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5127 # Support unset when possible.
5128 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5135 # Work around bugs in pre-3.0 UWIN ksh.
5136 $as_unset ENV MAIL MAILPATH
5142 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
5144 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5145 eval $as_var=C; export $as_var
5151 # Required to use basename.
5152 if expr a : '\(a\)' >/dev/null 2>&1; then
5158 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5159 as_basename=basename
5165 # Name of the executable.
5166 as_me=`$as_basename "$0" ||
5167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5168 X"$0" : 'X\(//\)$' \| \
5169 X"$0" : 'X\(/\)$' \| \
5170 . : '\(.\)' 2>/dev/null ||
5172 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5173 /^X\/\(\/\/\)$/{ s//\1/; q; }
5174 /^X\/\(\/\).*/{ s//\1/; q; }
5178 # PATH needs CR, and LINENO needs CR and PATH.
5179 # Avoid depending upon Character Ranges.
5180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5183 as_cr_digits='0123456789'
5184 as_cr_alnum=$as_cr_Letters$as_cr_digits
5186 # The user is always right.
5187 if test "${PATH_SEPARATOR+set}" != set; then
5188 echo "#! /bin/sh" >conftest.sh
5189 echo "exit 0" >>conftest.sh
5190 chmod +x conftest.sh
5191 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
5202 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5203 test "x$as_lineno_1" != "x$as_lineno_2" &&
5204 test "x$as_lineno_3" = "x$as_lineno_2" || {
5205 # Find who we are. Look in the path if we contain no path at all
5208 *[\\/]* ) as_myself=$0 ;;
5209 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 test -z "$as_dir" && as_dir=.
5214 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5219 # We did not find ourselves, most probably we were run as `sh COMMAND'
5220 # in which case we are not to be found in the path.
5221 if test "x$as_myself" = x; then
5224 if test ! -f "$as_myself"; then
5225 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5226 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5227 { (exit 1); exit 1; }; }
5229 case $CONFIG_SHELL in
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5235 test -z "$as_dir" && as_dir=.
5236 for as_base in sh bash ksh sh5; do
5239 if ("$as_dir/$as_base" -c '
5242 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5243 test "x$as_lineno_1" != "x$as_lineno_2" &&
5244 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5245 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5246 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5247 CONFIG_SHELL=$as_dir/$as_base
5249 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5257 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5258 # uniformly replaced by the line number. The first 'sed' inserts a
5259 # line-number line before each line; the second 'sed' does the real
5260 # work. The second script uses 'N' to pair each line-number line
5261 # with the numbered line, and appends trailing '-' during
5262 # substitution so that $LINENO is not a special case at line end.
5263 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5264 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5265 sed '=' <$as_myself |
5270 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5273 s,^['$as_cr_digits']*\n,,
5275 chmod +x $as_me.lineno ||
5276 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5277 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5278 { (exit 1); exit 1; }; }
5280 # Don't try to exec as it changes $[0], causing all sort of problems
5281 # (the dirname of $[0] is not the place where we might find the
5282 # original and so on. Autoconf is especially sensible to this).
5284 # Exit status is that of the last command.
5289 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5290 *c*,-n*) ECHO_N= ECHO_C='
5292 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5293 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5296 if expr a : '\(a\)' >/dev/null 2>&1; then
5302 rm -f conf$$ conf$$.exe conf$$.file
5304 if ln -s conf$$.file conf$$ 2>/dev/null; then
5305 # We could just check for DJGPP; but this test a) works b) is more generic
5306 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5307 if test -f conf$$.exe; then
5308 # Don't use ln at all; we don't have any links
5313 elif ln conf$$.file conf$$ 2>/dev/null; then
5318 rm -f conf$$ conf$$.exe conf$$.file
5320 if mkdir -p . 2>/dev/null; then
5326 as_executable_p="test -f"
5328 # Sed expression to map a string onto a valid CPP name.
5329 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5331 # Sed expression to map a string onto a valid variable name.
5332 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5336 # We need space, tab and new line, in precisely that order.
5346 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5347 # report actual input values of CONFIG_FILES etc. instead of their
5348 # values after options handling. Logging --version etc. is OK.
5352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5353 ## Running $as_me. ##
5358 This file was extended by $as_me, which was
5359 generated by GNU Autoconf 2.54. Invocation command line was
5361 CONFIG_FILES = $CONFIG_FILES
5362 CONFIG_HEADERS = $CONFIG_HEADERS
5363 CONFIG_LINKS = $CONFIG_LINKS
5364 CONFIG_COMMANDS = $CONFIG_COMMANDS
5368 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5372 # Files that config.status was made for.
5373 if test -n "$ac_config_files"; then
5374 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5377 if test -n "$ac_config_headers"; then
5378 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5381 if test -n "$ac_config_links"; then
5382 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5385 if test -n "$ac_config_commands"; then
5386 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5389 cat >>$CONFIG_STATUS <<\_ACEOF
5392 \`$as_me' instantiates files from templates according to the
5393 current configuration.
5395 Usage: $0 [OPTIONS] [FILE]...
5397 -h, --help print this help, then exit
5398 -V, --version print version number, then exit
5399 -d, --debug don't remove temporary files
5400 --recheck update $as_me by reconfiguring in the same conditions
5401 --file=FILE[:TEMPLATE]
5402 instantiate the configuration file FILE
5403 --header=FILE[:TEMPLATE]
5404 instantiate the configuration header FILE
5406 Configuration files:
5409 Configuration headers:
5412 Configuration commands:
5415 Report bugs to <bug-autoconf@gnu.org>."
5418 cat >>$CONFIG_STATUS <<_ACEOF
5421 configured by $0, generated by GNU Autoconf 2.54,
5422 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5424 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5425 Free Software Foundation, Inc.
5426 This config.status script is free software; the Free Software Foundation
5427 gives unlimited permission to copy, distribute and modify it."
5431 cat >>$CONFIG_STATUS <<\_ACEOF
5432 # If no file are specified by the user, then we need to provide default
5433 # value. By we need to know if files were specified by the user.
5439 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5440 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5448 *) # This is not an option, so the user has probably given explicit
5451 ac_need_defaults=false;;
5455 # Handling of the options.
5457 cat >>$CONFIG_STATUS <<_ACEOF
5458 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5459 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5460 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5462 cat >>$CONFIG_STATUS <<\_ACEOF
5463 --version | --vers* | -V )
5464 echo "$ac_cs_version"; exit 0 ;;
5466 # Conflict between --help and --header
5467 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5468 Try \`$0 --help' for more information." >&5
5469 echo "$as_me: error: ambiguous option: $1
5470 Try \`$0 --help' for more information." >&2;}
5471 { (exit 1); exit 1; }; };;
5472 --help | --hel | -h )
5473 echo "$ac_cs_usage"; exit 0 ;;
5474 --debug | --d* | -d )
5476 --file | --fil | --fi | --f )
5478 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5479 ac_need_defaults=false;;
5480 --header | --heade | --head | --hea )
5482 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5483 ac_need_defaults=false;;
5486 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5487 Try \`$0 --help' for more information." >&5
5488 echo "$as_me: error: unrecognized option: $1
5489 Try \`$0 --help' for more information." >&2;}
5490 { (exit 1); exit 1; }; } ;;
5492 *) ac_config_targets="$ac_config_targets $1" ;;
5500 cat >>$CONFIG_STATUS <<_ACEOF
5502 # INIT-COMMANDS section.
5509 target_alias='${target_alias}'
5511 symbolic_link='${symbolic_link}'
5512 program_transform_set='${program_transform_set}'
5513 program_transform_name='${program_transform_name}'
5514 dep_host_xmake_file='${dep_host_xmake_file}'
5515 host_xmake_file='${host_xmake_file}'
5516 dep_tmake_file='${dep_tmake_file}'
5517 tmake_file='${tmake_file}'
5518 thread_file='${thread_file}'
5519 gcc_config_arguments='${gcc_config_arguments}'
5520 gcc_version='${gcc_version}'
5521 gcc_version_full='${gcc_version_full}'
5522 gcc_version_trigger='${gcc_version_trigger}'
5523 local_prefix='${local_prefix}'
5524 build_install_headers_dir='${build_install_headers_dir}'
5525 build_exeext='${build_exeext}'
5526 host_exeext='${host_exeext}'
5527 out_file='${out_file}'
5528 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5529 SET_MAKE='${SET_MAKE}'
5530 target_list='${target_list}'
5531 target_overrides='${target_overrides}'
5532 host_overrides='${host_overrides}'
5533 cross_defines='${cross_defines}'
5534 cross_overrides='${cross_overrides}'
5535 build_overrides='${build_overrides}'
5536 cpp_install_dir='${cpp_install_dir}'
5543 cat >>$CONFIG_STATUS <<\_ACEOF
5544 for ac_config_target in $ac_config_targets
5546 case "$ac_config_target" in
5547 # Handling of arguments.
5548 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
5549 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5550 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
5551 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5552 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5553 { (exit 1); exit 1; }; };;
5557 # If the user did not use the arguments to specify the items to instantiate,
5558 # then the envvar interface is used. Set only those that are not.
5559 # We use the long form for the default assignment because of an extremely
5560 # bizarre bug on SunOS 4.1.3.
5561 if $ac_need_defaults; then
5562 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5563 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5564 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5567 # Create a temporary directory, and hook for its removal unless debugging.
5570 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5571 trap '{ (exit 1); exit 1; }' 1 2 13 15
5574 # Create a (secure) tmp directory for tmp files.
5577 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5578 test -n "$tmp" && test -d "$tmp"
5581 tmp=$TMPDIR/cs$$-$RANDOM
5582 (umask 077 && mkdir $tmp)
5585 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5586 { (exit 1); exit 1; }
5591 cat >>$CONFIG_STATUS <<_ACEOF
5594 # CONFIG_FILES section.
5597 # No need to generate the scripts if there are no CONFIG_FILES.
5598 # This happens for instance when ./config.status config.h
5599 if test -n "\$CONFIG_FILES"; then
5600 # Protect against being on the right side of a sed subst in config.status.
5601 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5602 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5603 s,@SHELL@,$SHELL,;t t
5604 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5605 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5606 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5607 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5608 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5609 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5610 s,@exec_prefix@,$exec_prefix,;t t
5611 s,@prefix@,$prefix,;t t
5612 s,@program_transform_name@,$program_transform_name,;t t
5613 s,@bindir@,$bindir,;t t
5614 s,@sbindir@,$sbindir,;t t
5615 s,@libexecdir@,$libexecdir,;t t
5616 s,@datadir@,$datadir,;t t
5617 s,@sysconfdir@,$sysconfdir,;t t
5618 s,@sharedstatedir@,$sharedstatedir,;t t
5619 s,@localstatedir@,$localstatedir,;t t
5620 s,@libdir@,$libdir,;t t
5621 s,@includedir@,$includedir,;t t
5622 s,@oldincludedir@,$oldincludedir,;t t
5623 s,@infodir@,$infodir,;t t
5624 s,@mandir@,$mandir,;t t
5625 s,@build_alias@,$build_alias,;t t
5626 s,@host_alias@,$host_alias,;t t
5627 s,@target_alias@,$target_alias,;t t
5629 s,@ECHO_C@,$ECHO_C,;t t
5630 s,@ECHO_N@,$ECHO_N,;t t
5631 s,@ECHO_T@,$ECHO_T,;t t
5634 s,@CFLAGS@,$CFLAGS,;t t
5635 s,@LDFLAGS@,$LDFLAGS,;t t
5636 s,@CPPFLAGS@,$CPPFLAGS,;t t
5637 s,@ac_ct_CC@,$ac_ct_CC,;t t
5638 s,@EXEEXT@,$EXEEXT,;t t
5639 s,@OBJEXT@,$OBJEXT,;t t
5640 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
5641 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
5643 s,@EGREP@,$EGREP,;t t
5644 s,@warn_cflags@,$warn_cflags,;t t
5645 s,@SET_MAKE@,$SET_MAKE,;t t
5648 s,@RANLIB@,$RANLIB,;t t
5649 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5650 s,@INSTALL@,$INSTALL,;t t
5651 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5652 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5653 s,@have_mktemp_command@,$have_mktemp_command,;t t
5654 s,@STRIP@,$STRIP,;t t
5655 s,@manext@,$manext,;t t
5656 s,@objext@,$objext,;t t
5657 s,@PACKAGE@,$PACKAGE,;t t
5658 s,@VERSION@,$VERSION,;t t
5659 s,@MAINT@,$MAINT,;t t
5660 s,@build_canonical@,$build_canonical,;t t
5661 s,@host_canonical@,$host_canonical,;t t
5662 s,@target_subdir@,$target_subdir,;t t
5663 s,@objdir@,$objdir,;t t
5664 s,@all_stagestuff@,$all_stagestuff,;t t
5665 s,@build_exeext@,$build_exeext,;t t
5666 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
5667 s,@build_xm_file_list@,$build_xm_file_list,;t t
5668 s,@build_xm_file@,$build_xm_file,;t t
5669 s,@build_xm_defines@,$build_xm_defines,;t t
5670 s,@check_languages@,$check_languages,;t t
5671 s,@dep_host_xmake_file@,$dep_host_xmake_file,;t t
5672 s,@dep_tmake_file@,$dep_tmake_file,;t t
5673 s,@extra_c_flags@,$extra_c_flags,;t t
5674 s,@extra_headers_list@,$extra_headers_list,;t t
5675 s,@extra_objs@,$extra_objs,;t t
5676 s,@extra_parts@,$extra_parts,;t t
5677 s,@extra_passes@,$extra_passes,;t t
5678 s,@extra_programs@,$extra_programs,;t t
5679 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
5680 s,@gcc_version@,$gcc_version,;t t
5681 s,@gcc_version_full@,$gcc_version_full,;t t
5682 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
5683 s,@host_exeext@,$host_exeext,;t t
5684 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
5685 s,@install@,$install,;t t
5686 s,@lang_tree_files@,$lang_tree_files,;t t
5687 s,@local_prefix@,$local_prefix,;t t
5688 s,@md_file@,$md_file,;t t
5689 s,@out_file@,$out_file,;t t
5690 s,@out_object_file@,$out_object_file,;t t
5691 s,@symbolic_link@,$symbolic_link,;t t
5692 s,@thread_file@,$thread_file,;t t
5693 s,@c_target_objs@,$c_target_objs,;t t
5694 s,@LIBOBJS@,$LIBOBJS,;t t
5695 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5700 cat >>$CONFIG_STATUS <<\_ACEOF
5701 # Split the substitutions into bite-sized pieces for seds with
5702 # small command number limits, like on Digital OSF/1 and HP-UX.
5704 ac_sed_frag=1 # Number of current file.
5705 ac_beg=1 # First line for current file.
5706 ac_end=$ac_max_sed_lines # Line after last line for current file.
5709 while $ac_more_lines; do
5710 if test $ac_beg -gt 1; then
5711 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5713 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5715 if test ! -s $tmp/subs.frag; then
5718 # The purpose of the label and of the branching condition is to
5719 # speed up the sed processing (if there are no `@' at all, there
5720 # is no need to browse any of the substitutions).
5721 # These are the two extra sed commands mentioned above.
5723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5724 if test -z "$ac_sed_cmds"; then
5725 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5727 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5729 ac_sed_frag=`expr $ac_sed_frag + 1`
5731 ac_end=`expr $ac_end + $ac_max_sed_lines`
5734 if test -z "$ac_sed_cmds"; then
5737 fi # test -n "$CONFIG_FILES"
5740 cat >>$CONFIG_STATUS <<\_ACEOF
5741 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5742 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5744 - | *:- | *:-:* ) # input from stdin
5746 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5747 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5748 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5749 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5750 * ) ac_file_in=$ac_file.in ;;
5753 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5754 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5756 X"$ac_file" : 'X\(//\)[^/]' \| \
5757 X"$ac_file" : 'X\(//\)$' \| \
5758 X"$ac_file" : 'X\(/\)' \| \
5759 . : '\(.\)' 2>/dev/null ||
5761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5763 /^X\(\/\/\)$/{ s//\1/; q; }
5764 /^X\(\/\).*/{ s//\1/; q; }
5766 { if $as_mkdir_p; then
5771 while test ! -d "$as_dir"; do
5772 as_dirs="$as_dir $as_dirs"
5773 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5775 X"$as_dir" : 'X\(//\)[^/]' \| \
5776 X"$as_dir" : 'X\(//\)$' \| \
5777 X"$as_dir" : 'X\(/\)' \| \
5778 . : '\(.\)' 2>/dev/null ||
5780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5782 /^X\(\/\/\)$/{ s//\1/; q; }
5783 /^X\(\/\).*/{ s//\1/; q; }
5786 test ! -n "$as_dirs" || mkdir $as_dirs
5787 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5788 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5789 { (exit 1); exit 1; }; }; }
5793 if test "$ac_dir" != .; then
5794 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5795 # A "../" for each directory in $ac_dir_suffix.
5796 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5798 ac_dir_suffix= ac_top_builddir=
5802 .) # No --srcdir option. We are building in place.
5804 if test -z "$ac_top_builddir"; then
5807 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5809 [\\/]* | ?:[\\/]* ) # Absolute path.
5810 ac_srcdir=$srcdir$ac_dir_suffix;
5811 ac_top_srcdir=$srcdir ;;
5813 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5814 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5816 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5818 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5819 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5820 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5821 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5825 if test x"$ac_file" != x-; then
5826 { echo "$as_me:$LINENO: creating $ac_file" >&5
5827 echo "$as_me: creating $ac_file" >&6;}
5830 # Let's still pretend it is `configure' which instantiates (i.e., don't
5831 # use $as_me), people would be surprised to read:
5832 # /* config.h. Generated by config.status. */
5833 if test x"$ac_file" = x-; then
5836 configure_input="$ac_file. "
5838 configure_input=$configure_input"Generated from `echo $ac_file_in |
5839 sed 's,.*/,,'` by configure."
5841 # First look for the input files in the build tree, otherwise in the
5843 ac_file_inputs=`IFS=:
5844 for f in $ac_file_in; do
5846 -) echo $tmp/stdin ;;
5848 # Absolute (can't be DOS-style, as IFS=:)
5849 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5850 echo "$as_me: error: cannot find input file: $f" >&2;}
5851 { (exit 1); exit 1; }; }
5854 if test -f "$f"; then
5857 elif test -f "$srcdir/$f"; then
5862 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5863 echo "$as_me: error: cannot find input file: $f" >&2;}
5864 { (exit 1); exit 1; }; }
5867 done` || { (exit 1); exit 1; }
5869 cat >>$CONFIG_STATUS <<_ACEOF
5873 cat >>$CONFIG_STATUS <<\_ACEOF
5875 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5876 s,@configure_input@,$configure_input,;t t
5877 s,@srcdir@,$ac_srcdir,;t t
5878 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5879 s,@top_srcdir@,$ac_top_srcdir,;t t
5880 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5881 s,@builddir@,$ac_builddir,;t t
5882 s,@abs_builddir@,$ac_abs_builddir,;t t
5883 s,@top_builddir@,$ac_top_builddir,;t t
5884 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5885 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5887 if test x"$ac_file" != x-; then
5888 mv $tmp/out $ac_file
5896 cat >>$CONFIG_STATUS <<\_ACEOF
5899 # CONFIG_HEADER section.
5902 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5903 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5905 # ac_d sets the value in "#define NAME VALUE" lines.
5906 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5907 ac_dB='[ ].*$,\1#\2'
5910 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5911 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5912 ac_uB='$,\1#\2define\3'
5916 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5919 - | *:- | *:-:* ) # input from stdin
5921 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5923 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5925 * ) ac_file_in=$ac_file.in ;;
5928 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5929 echo "$as_me: creating $ac_file" >&6;}
5931 # First look for the input files in the build tree, otherwise in the
5933 ac_file_inputs=`IFS=:
5934 for f in $ac_file_in; do
5936 -) echo $tmp/stdin ;;
5938 # Absolute (can't be DOS-style, as IFS=:)
5939 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5940 echo "$as_me: error: cannot find input file: $f" >&2;}
5941 { (exit 1); exit 1; }; }
5944 if test -f "$f"; then
5947 elif test -f "$srcdir/$f"; then
5952 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5953 echo "$as_me: error: cannot find input file: $f" >&2;}
5954 { (exit 1); exit 1; }; }
5957 done` || { (exit 1); exit 1; }
5958 # Remove the trailing spaces.
5959 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5963 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5964 # `conftest.undefs', that substitutes the proper values into
5965 # config.h.in to produce config.h. The first handles `#define'
5966 # templates, and the second `#undef' templates.
5967 # And first: Protect against being on the right side of a sed subst in
5968 # config.status. Protect against being in an unquoted here document
5970 rm -f conftest.defines conftest.undefs
5971 # Using a here document instead of a string reduces the quoting nightmare.
5972 # Putting comments in sed scripts is not portable.
5974 # `end' is used to avoid that the second main sed command (meant for
5975 # 0-ary CPP macros) applies to n-ary macro definitions.
5976 # See the Autoconf documentation for `clear'.
5977 cat >confdef2sed.sed <<\_ACEOF
5982 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5984 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5987 # If some macros were called several times there might be several times
5988 # the same #defines, which is useless. Nevertheless, we may not want to
5989 # sort them, since we want the *last* AC-DEFINE to be honored.
5990 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5991 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5992 rm -f confdef2sed.sed
5994 # This sed command replaces #undef with comments. This is necessary, for
5995 # example, in the case of _POSIX_SOURCE, which is predefined and required
5996 # on some systems where configure will not decide to define it.
5997 cat >>conftest.undefs <<\_ACEOF
5998 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6001 # Break up conftest.defines because some shells have a limit on the size
6002 # of here documents, and old seds have small limits too (100 cmds).
6003 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6004 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6005 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6006 echo ' :' >>$CONFIG_STATUS
6008 while grep . conftest.defines >/dev/null
6010 # Write a limited-size here document to $tmp/defines.sed.
6011 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6012 # Speed up: don't consider the non `#define' lines.
6013 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6014 # Work around the forget-to-reset-the-flag bug.
6015 echo 't clr' >>$CONFIG_STATUS
6016 echo ': clr' >>$CONFIG_STATUS
6017 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6019 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6023 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6024 rm -f conftest.defines
6025 mv conftest.tail conftest.defines
6027 rm -f conftest.defines
6028 echo ' fi # grep' >>$CONFIG_STATUS
6029 echo >>$CONFIG_STATUS
6031 # Break up conftest.undefs because some shells have a limit on the size
6032 # of here documents, and old seds have small limits too (100 cmds).
6033 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6035 while grep . conftest.undefs >/dev/null
6037 # Write a limited-size here document to $tmp/undefs.sed.
6038 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6039 # Speed up: don't consider the non `#undef'
6040 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6041 # Work around the forget-to-reset-the-flag bug.
6042 echo 't clr' >>$CONFIG_STATUS
6043 echo ': clr' >>$CONFIG_STATUS
6044 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6046 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6050 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6051 rm -f conftest.undefs
6052 mv conftest.tail conftest.undefs
6054 rm -f conftest.undefs
6056 cat >>$CONFIG_STATUS <<\_ACEOF
6057 # Let's still pretend it is `configure' which instantiates (i.e., don't
6058 # use $as_me), people would be surprised to read:
6059 # /* config.h. Generated by config.status. */
6060 if test x"$ac_file" = x-; then
6061 echo "/* Generated by configure. */" >$tmp/config.h
6063 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6065 cat $tmp/in >>$tmp/config.h
6067 if test x"$ac_file" != x-; then
6068 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6069 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6070 echo "$as_me: $ac_file is unchanged" >&6;}
6072 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6073 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6074 X"$ac_file" : 'X\(//\)[^/]' \| \
6075 X"$ac_file" : 'X\(//\)$' \| \
6076 X"$ac_file" : 'X\(/\)' \| \
6077 . : '\(.\)' 2>/dev/null ||
6079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6081 /^X\(\/\/\)$/{ s//\1/; q; }
6082 /^X\(\/\).*/{ s//\1/; q; }
6084 { if $as_mkdir_p; then
6089 while test ! -d "$as_dir"; do
6090 as_dirs="$as_dir $as_dirs"
6091 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6093 X"$as_dir" : 'X\(//\)[^/]' \| \
6094 X"$as_dir" : 'X\(//\)$' \| \
6095 X"$as_dir" : 'X\(/\)' \| \
6096 . : '\(.\)' 2>/dev/null ||
6098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6100 /^X\(\/\/\)$/{ s//\1/; q; }
6101 /^X\(\/\).*/{ s//\1/; q; }
6104 test ! -n "$as_dirs" || mkdir $as_dirs
6105 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6106 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6107 { (exit 1); exit 1; }; }; }
6110 mv $tmp/config.h $ac_file
6118 cat >>$CONFIG_STATUS <<\_ACEOF
6121 # CONFIG_COMMANDS section.
6123 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6124 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6125 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6126 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6127 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6128 X"$ac_dest" : 'X\(//\)[^/]' \| \
6129 X"$ac_dest" : 'X\(//\)$' \| \
6130 X"$ac_dest" : 'X\(/\)' \| \
6131 . : '\(.\)' 2>/dev/null ||
6133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6135 /^X\(\/\/\)$/{ s//\1/; q; }
6136 /^X\(\/\).*/{ s//\1/; q; }
6140 if test "$ac_dir" != .; then
6141 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6142 # A "../" for each directory in $ac_dir_suffix.
6143 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6145 ac_dir_suffix= ac_top_builddir=
6149 .) # No --srcdir option. We are building in place.
6151 if test -z "$ac_top_builddir"; then
6154 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6156 [\\/]* | ?:[\\/]* ) # Absolute path.
6157 ac_srcdir=$srcdir$ac_dir_suffix;
6158 ac_top_srcdir=$srcdir ;;
6160 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6161 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6163 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6165 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6166 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6167 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6168 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6171 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6172 echo "$as_me: executing $ac_dest commands" >&6;}
6175 case x$CONFIG_HEADERS in
6176 xauto-host.h:config.in)
6180 # Avoid having to add intl to our include paths.
6181 if test -f intl/libintl.h; then
6182 echo creating libintl.h
6183 echo '#include "intl/libintl.h"' >libintl.h
6190 cat >>$CONFIG_STATUS <<\_ACEOF
6192 { (exit 0); exit 0; }
6194 chmod +x $CONFIG_STATUS
6195 ac_clean_files=$ac_clean_files_save
6198 # configure is writing to config.log, and then calls config.status.
6199 # config.status does its own redirection, appending to config.log.
6200 # Unfortunately, on DOS this fails, as config.log is still kept open
6201 # by configure, so config.status won't be able to write to it; its
6202 # output is simply discarded. So we exec the FD to /dev/null,
6203 # effectively closing config.log, so it can be properly (re)opened and
6204 # appended to by config.status. When coming back to configure, we
6205 # need to make the FD available again.
6206 if test "$no_create" != yes; then
6209 $SHELL $CONFIG_STATUS || ac_cs_success=false
6211 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6212 # would make configure fail if this is the last instruction.
6213 $ac_cs_success || { (exit 1); exit 1; }