2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile m68hc11_extra_objs cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-inline=inlines Specify which functions should be inlined.
862 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
863 --enable-sim-hostendian=end Specify host byte endian orientation.
864 --enable-build-warnings Enable build-time compiler warnings if gcc is used
865 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
866 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-included-gettext use the GNU gettext library included here
873 Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
895 if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 ac_dir_suffix= ac_top_builddir=
904 .) # No --srcdir option. We are building in place.
906 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
922 .) ac_abs_builddir="$ac_dir";;
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
981 Copyright (C) 2003 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
992 It was created by $as_me, which was
993 generated by GNU Autoconf 2.59. Invocation command line was
1004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1043 # Keep a trace of the command line.
1044 # Strip out --no-create and --no-recursion so they do not pile up.
1045 # Strip out --silent because we don't want to record it for future runs.
1046 # Also quote any args containing shell meta-characters.
1047 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_must_keep_next=false
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 -* ) ac_must_keep_next=true ;;
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1091 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094 # When interrupted or exit'd, cleanup temporary files, and complete
1095 # config.log. We remove comments because anyway the quotes in there
1096 # would cause problems or look ugly.
1097 # WARNING: Be sure not to use single quotes in there, as some shells,
1098 # such as our DU 5.0 friend, will then `close' the trap.
1099 trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1105 ## ---------------- ##
1106 ## Cache variables. ##
1107 ## ---------------- ##
1110 # The following way of writing the cache mishandles newlines in values,
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1128 ## ----------------- ##
1129 ## Output variables. ##
1130 ## ----------------- ##
1133 for ac_var in $ac_subst_vars
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1140 if test -n "$ac_subst_files"; then
1147 for ac_var in $ac_subst_files
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1155 if test -s confdefs.h; then
1162 sed "/^$/d" confdefs.h | sort
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1179 rm -rf conftest* confdefs.h
1180 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 # Predefined preprocessor variables.
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 # Let the site file select an alternate cache file if it wants to.
1211 # Prefer explicitly selected file to automatically selected ones.
1212 if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222 echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
1228 if test -r "$cache_file"; then
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233 echo "$as_me: loading cache $cache_file" >&6;}
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241 echo "$as_me: creating cache $cache_file" >&6;}
1245 # Check that the precious variables saved in the cache have kept the same
1247 ac_cache_corrupted=false
1248 for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269 echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271 echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323 if test -f $ac_dir/install-sh; then
1325 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 elif test -f $ac_dir/install.sh; then
1329 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 elif test -f $ac_dir/shtool; then
1333 ac_install_sh="$ac_aux_dir/shtool install -c"
1337 if test -z "$ac_aux_dir"; then
1338 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340 { (exit 1); exit 1; }; }
1342 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346 # Make sure we can run config.sub.
1347 $ac_config_sub sun4 >/dev/null 2>&1 ||
1348 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1349 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350 { (exit 1); exit 1; }; }
1352 echo "$as_me:$LINENO: checking build system type" >&5
1353 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354 if test "${ac_cv_build+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 ac_cv_build_alias=$build_alias
1358 test -z "$ac_cv_build_alias" &&
1359 ac_cv_build_alias=`$ac_config_guess`
1360 test -z "$ac_cv_build_alias" &&
1361 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1362 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363 { (exit 1); exit 1; }; }
1364 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1370 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1371 echo "${ECHO_T}$ac_cv_build" >&6
1373 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378 echo "$as_me:$LINENO: checking host system type" >&5
1379 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380 if test "${ac_cv_host+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 ac_cv_host_alias=$host_alias
1384 test -z "$ac_cv_host_alias" &&
1385 ac_cv_host_alias=$ac_cv_build_alias
1386 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1392 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1393 echo "${ECHO_T}$ac_cv_host" >&6
1395 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1401 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1402 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1403 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 cat >conftest.make <<\_ACEOF
1408 @echo 'ac_maketemp="$(MAKE)"'
1410 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1411 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1412 if test -n "$ac_maketemp"; then
1413 eval ac_cv_prog_make_${ac_make}_set=yes
1415 eval ac_cv_prog_make_${ac_make}_set=no
1419 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1420 echo "$as_me:$LINENO: result: yes" >&5
1421 echo "${ECHO_T}yes" >&6
1424 echo "$as_me:$LINENO: result: no" >&5
1425 echo "${ECHO_T}no" >&6
1426 SET_MAKE="MAKE=${MAKE-make}"
1430 echo "$as_me:$LINENO: checking for library containing strerror" >&5
1431 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1432 if test "${ac_cv_search_strerror+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 ac_func_search_save_LIBS=$LIBS
1436 ac_cv_search_strerror=no
1437 cat >conftest.$ac_ext <<_ACEOF
1440 cat confdefs.h >>conftest.$ac_ext
1441 cat >>conftest.$ac_ext <<_ACEOF
1442 /* end confdefs.h. */
1444 /* Override any gcc2 internal prototype to avoid an error. */
1448 /* We use char because int might match the return type of a gcc2
1449 builtin and then its argument prototype would still apply. */
1459 rm -f conftest.$ac_objext conftest$ac_exeext
1460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1461 (eval $ac_link) 2>conftest.er1
1463 grep -v '^ *+' conftest.er1 >conftest.err
1465 cat conftest.err >&5
1466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1467 (exit $ac_status); } &&
1468 { ac_try='test -z "$ac_c_werror_flag"
1469 || test ! -s conftest.err'
1470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1474 (exit $ac_status); }; } &&
1475 { ac_try='test -s conftest$ac_exeext'
1476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1480 (exit $ac_status); }; }; then
1481 ac_cv_search_strerror="none required"
1483 echo "$as_me: failed program was:" >&5
1484 sed 's/^/| /' conftest.$ac_ext >&5
1487 rm -f conftest.err conftest.$ac_objext \
1488 conftest$ac_exeext conftest.$ac_ext
1489 if test "$ac_cv_search_strerror" = no; then
1490 for ac_lib in cposix; do
1491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1492 cat >conftest.$ac_ext <<_ACEOF
1495 cat confdefs.h >>conftest.$ac_ext
1496 cat >>conftest.$ac_ext <<_ACEOF
1497 /* end confdefs.h. */
1499 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1514 rm -f conftest.$ac_objext conftest$ac_exeext
1515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1516 (eval $ac_link) 2>conftest.er1
1518 grep -v '^ *+' conftest.er1 >conftest.err
1520 cat conftest.err >&5
1521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1522 (exit $ac_status); } &&
1523 { ac_try='test -z "$ac_c_werror_flag"
1524 || test ! -s conftest.err'
1525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1529 (exit $ac_status); }; } &&
1530 { ac_try='test -s conftest$ac_exeext'
1531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1535 (exit $ac_status); }; }; then
1536 ac_cv_search_strerror="-l$ac_lib"
1539 echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1543 rm -f conftest.err conftest.$ac_objext \
1544 conftest$ac_exeext conftest.$ac_ext
1547 LIBS=$ac_func_search_save_LIBS
1549 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1550 echo "${ECHO_T}$ac_cv_search_strerror" >&6
1551 if test "$ac_cv_search_strerror" != no; then
1552 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1557 ac_cpp='$CPP $CPPFLAGS'
1558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1561 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1562 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1563 # On Suns, sometimes $CPP names a directory.
1564 if test -n "$CPP" && test -d "$CPP"; then
1567 if test -z "$CPP"; then
1568 if test "${ac_cv_prog_CPP+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 # Double quotes because CPP needs to be expanded
1572 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1575 for ac_c_preproc_warn_flag in '' yes
1577 # Use a header file that comes with gcc, so configuring glibc
1578 # with a fresh cross-compiler works.
1579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1580 # <limits.h> exists even on freestanding compilers.
1581 # On the NeXT, cc -E runs the code through the compiler's parser,
1582 # not just through cpp. "Syntax error" is here to catch this case.
1583 cat >conftest.$ac_ext <<_ACEOF
1586 cat confdefs.h >>conftest.$ac_ext
1587 cat >>conftest.$ac_ext <<_ACEOF
1588 /* end confdefs.h. */
1590 # include <limits.h>
1592 # include <assert.h>
1596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1599 grep -v '^ *+' conftest.er1 >conftest.err
1601 cat conftest.err >&5
1602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603 (exit $ac_status); } >/dev/null; then
1604 if test -s conftest.err; then
1605 ac_cpp_err=$ac_c_preproc_warn_flag
1606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1613 if test -z "$ac_cpp_err"; then
1616 echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1619 # Broken: fails on valid input.
1622 rm -f conftest.err conftest.$ac_ext
1624 # OK, works on sane cases. Now check whether non-existent headers
1625 # can be detected and how.
1626 cat >conftest.$ac_ext <<_ACEOF
1629 cat confdefs.h >>conftest.$ac_ext
1630 cat >>conftest.$ac_ext <<_ACEOF
1631 /* end confdefs.h. */
1632 #include <ac_nonexistent.h>
1634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1637 grep -v '^ *+' conftest.er1 >conftest.err
1639 cat conftest.err >&5
1640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1641 (exit $ac_status); } >/dev/null; then
1642 if test -s conftest.err; then
1643 ac_cpp_err=$ac_c_preproc_warn_flag
1644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1651 if test -z "$ac_cpp_err"; then
1652 # Broken: success on invalid input.
1655 echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 # Passes both tests.
1662 rm -f conftest.err conftest.$ac_ext
1665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1666 rm -f conftest.err conftest.$ac_ext
1667 if $ac_preproc_ok; then
1679 echo "$as_me:$LINENO: result: $CPP" >&5
1680 echo "${ECHO_T}$CPP" >&6
1682 for ac_c_preproc_warn_flag in '' yes
1684 # Use a header file that comes with gcc, so configuring glibc
1685 # with a fresh cross-compiler works.
1686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1687 # <limits.h> exists even on freestanding compilers.
1688 # On the NeXT, cc -E runs the code through the compiler's parser,
1689 # not just through cpp. "Syntax error" is here to catch this case.
1690 cat >conftest.$ac_ext <<_ACEOF
1693 cat confdefs.h >>conftest.$ac_ext
1694 cat >>conftest.$ac_ext <<_ACEOF
1695 /* end confdefs.h. */
1697 # include <limits.h>
1699 # include <assert.h>
1703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1706 grep -v '^ *+' conftest.er1 >conftest.err
1708 cat conftest.err >&5
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); } >/dev/null; then
1711 if test -s conftest.err; then
1712 ac_cpp_err=$ac_c_preproc_warn_flag
1713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1720 if test -z "$ac_cpp_err"; then
1723 echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1726 # Broken: fails on valid input.
1729 rm -f conftest.err conftest.$ac_ext
1731 # OK, works on sane cases. Now check whether non-existent headers
1732 # can be detected and how.
1733 cat >conftest.$ac_ext <<_ACEOF
1736 cat confdefs.h >>conftest.$ac_ext
1737 cat >>conftest.$ac_ext <<_ACEOF
1738 /* end confdefs.h. */
1739 #include <ac_nonexistent.h>
1741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1744 grep -v '^ *+' conftest.er1 >conftest.err
1746 cat conftest.err >&5
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); } >/dev/null; then
1749 if test -s conftest.err; then
1750 ac_cpp_err=$ac_c_preproc_warn_flag
1751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1758 if test -z "$ac_cpp_err"; then
1759 # Broken: success on invalid input.
1762 echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 # Passes both tests.
1769 rm -f conftest.err conftest.$ac_ext
1772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1773 rm -f conftest.err conftest.$ac_ext
1774 if $ac_preproc_ok; then
1777 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1780 See \`config.log' for more details." >&2;}
1781 { (exit 1); exit 1; }; }
1785 ac_cpp='$CPP $CPPFLAGS'
1786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791 echo "$as_me:$LINENO: checking for egrep" >&5
1792 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1793 if test "${ac_cv_prog_egrep+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1797 then ac_cv_prog_egrep='grep -E'
1798 else ac_cv_prog_egrep='egrep'
1801 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1802 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1803 EGREP=$ac_cv_prog_egrep
1806 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1808 if test "${ac_cv_header_stdc+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 cat >conftest.$ac_ext <<_ACEOF
1814 cat confdefs.h >>conftest.$ac_ext
1815 cat >>conftest.$ac_ext <<_ACEOF
1816 /* end confdefs.h. */
1830 rm -f conftest.$ac_objext
1831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1832 (eval $ac_compile) 2>conftest.er1
1834 grep -v '^ *+' conftest.er1 >conftest.err
1836 cat conftest.err >&5
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); } &&
1839 { ac_try='test -z "$ac_c_werror_flag"
1840 || test ! -s conftest.err'
1841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }; } &&
1846 { ac_try='test -s conftest.$ac_objext'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 ac_cv_header_stdc=yes
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 ac_cv_header_stdc=no
1859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1861 if test $ac_cv_header_stdc = yes; then
1862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1863 cat >conftest.$ac_ext <<_ACEOF
1866 cat confdefs.h >>conftest.$ac_ext
1867 cat >>conftest.$ac_ext <<_ACEOF
1868 /* end confdefs.h. */
1872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1873 $EGREP "memchr" >/dev/null 2>&1; then
1876 ac_cv_header_stdc=no
1882 if test $ac_cv_header_stdc = yes; then
1883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1884 cat >conftest.$ac_ext <<_ACEOF
1887 cat confdefs.h >>conftest.$ac_ext
1888 cat >>conftest.$ac_ext <<_ACEOF
1889 /* end confdefs.h. */
1893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1894 $EGREP "free" >/dev/null 2>&1; then
1897 ac_cv_header_stdc=no
1903 if test $ac_cv_header_stdc = yes; then
1904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1905 if test "$cross_compiling" = yes; then
1908 cat >conftest.$ac_ext <<_ACEOF
1911 cat confdefs.h >>conftest.$ac_ext
1912 cat >>conftest.$ac_ext <<_ACEOF
1913 /* end confdefs.h. */
1915 #if ((' ' & 0x0FF) == 0x020)
1916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1919 # define ISLOWER(c) \
1920 (('a' <= (c) && (c) <= 'i') \
1921 || ('j' <= (c) && (c) <= 'r') \
1922 || ('s' <= (c) && (c) <= 'z'))
1923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1931 for (i = 0; i < 256; i++)
1932 if (XOR (islower (i), ISLOWER (i))
1933 || toupper (i) != TOUPPER (i))
1938 rm -f conftest$ac_exeext
1939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1940 (eval $ac_link) 2>&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1951 echo "$as_me: program exited with status $ac_status" >&5
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1956 ac_cv_header_stdc=no
1958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
1964 if test $ac_cv_header_stdc = yes; then
1966 cat >>confdefs.h <<\_ACEOF
1967 #define STDC_HEADERS 1
1972 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1973 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1974 if test "${ac_cv_c_const+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 cat >conftest.$ac_ext <<_ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1987 /* FIXME: Include the comments suggested by Paul. */
1989 /* Ultrix mips cc rejects this. */
1990 typedef int charset[2];
1992 /* SunOS 4.1.1 cc rejects this. */
1993 char const *const *ccp;
1995 /* NEC SVR4.0.2 mips cc rejects this. */
1996 struct point {int x, y;};
1997 static struct point const zero = {0,0};
1998 /* AIX XL C 1.02.0.0 rejects this.
1999 It does not let you subtract one const X* pointer from another in
2000 an arm of an if-expression whose if-part is not a constant
2002 const char *g = "string";
2003 ccp = &g + (g ? g-g : 0);
2004 /* HPUX 7.0 cc rejects these. */
2007 ccp = (char const *const *) p;
2008 { /* SCO 3.2v4 cc rejects this. */
2010 char const *s = 0 ? (char *) 0 : (char const *) 0;
2014 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2016 const int *foo = &x[0];
2019 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2020 typedef const int *iptr;
2024 { /* AIX XL C 1.02.0.0 rejects this saying
2025 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2026 struct s { int j; const int *ap[3]; };
2027 struct s *b; b->j = 5;
2029 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2038 rm -f conftest.$ac_objext
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>conftest.er1
2042 grep -v '^ *+' conftest.er1 >conftest.err
2044 cat conftest.err >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); } &&
2047 { ac_try='test -z "$ac_c_werror_flag"
2048 || test ! -s conftest.err'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; } &&
2054 { ac_try='test -s conftest.$ac_objext'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; }; then
2062 echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2069 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2070 echo "${ECHO_T}$ac_cv_c_const" >&6
2071 if test $ac_cv_c_const = no; then
2073 cat >>confdefs.h <<\_ACEOF
2079 echo "$as_me:$LINENO: checking for inline" >&5
2080 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2081 if test "${ac_cv_c_inline+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 for ac_kw in inline __inline__ __inline; do
2086 cat >conftest.$ac_ext <<_ACEOF
2089 cat confdefs.h >>conftest.$ac_ext
2090 cat >>conftest.$ac_ext <<_ACEOF
2091 /* end confdefs.h. */
2094 static $ac_kw foo_t static_foo () {return 0; }
2095 $ac_kw foo_t foo () {return 0; }
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>conftest.er1
2103 grep -v '^ *+' conftest.er1 >conftest.err
2105 cat conftest.err >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -z "$ac_c_werror_flag"
2109 || test ! -s conftest.err'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2121 ac_cv_c_inline=$ac_kw; break
2123 echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2131 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2132 echo "${ECHO_T}$ac_cv_c_inline" >&6
2135 case $ac_cv_c_inline in
2138 case $ac_cv_c_inline in
2140 *) ac_val=$ac_cv_c_inline;;
2142 cat >>confdefs.h <<_ACEOF
2144 #define inline $ac_val
2150 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2160 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2161 inttypes.h stdint.h unistd.h
2163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2164 echo "$as_me:$LINENO: checking for $ac_header" >&5
2165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 cat >conftest.$ac_ext <<_ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2175 $ac_includes_default
2177 #include <$ac_header>
2179 rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181 (eval $ac_compile) 2>conftest.er1
2183 grep -v '^ *+' conftest.er1 >conftest.err
2185 cat conftest.err >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -z "$ac_c_werror_flag"
2189 || test ! -s conftest.err'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2201 eval "$as_ac_Header=yes"
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2206 eval "$as_ac_Header=no"
2208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2213 cat >>confdefs.h <<_ACEOF
2214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2222 echo "$as_me:$LINENO: checking for off_t" >&5
2223 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2224 if test "${ac_cv_type_off_t+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 cat >conftest.$ac_ext <<_ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2233 $ac_includes_default
2245 rm -f conftest.$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2249 grep -v '^ *+' conftest.er1 >conftest.err
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -z "$ac_c_werror_flag"
2255 || test ! -s conftest.err'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; } &&
2261 { ac_try='test -s conftest.$ac_objext'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2267 ac_cv_type_off_t=yes
2269 echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2277 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2278 if test $ac_cv_type_off_t = yes; then
2282 cat >>confdefs.h <<_ACEOF
2288 echo "$as_me:$LINENO: checking for size_t" >&5
2289 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2290 if test "${ac_cv_type_size_t+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 cat >conftest.$ac_ext <<_ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2299 $ac_includes_default
2305 if (sizeof (size_t))
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2315 grep -v '^ *+' conftest.er1 >conftest.err
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 ac_cv_type_size_t=yes
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2338 ac_cv_type_size_t=no
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2343 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2344 if test $ac_cv_type_size_t = yes; then
2348 cat >>confdefs.h <<_ACEOF
2349 #define size_t unsigned
2354 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2355 # for constant arguments. Useless!
2356 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2357 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2358 if test "${ac_cv_working_alloca_h+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2371 char *p = (char *) alloca (2 * sizeof (int));
2376 rm -f conftest.$ac_objext conftest$ac_exeext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2378 (eval $ac_link) 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag"
2386 || test ! -s conftest.err'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest$ac_exeext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2398 ac_cv_working_alloca_h=yes
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2403 ac_cv_working_alloca_h=no
2405 rm -f conftest.err conftest.$ac_objext \
2406 conftest$ac_exeext conftest.$ac_ext
2408 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2409 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2410 if test $ac_cv_working_alloca_h = yes; then
2412 cat >>confdefs.h <<\_ACEOF
2413 #define HAVE_ALLOCA_H 1
2418 echo "$as_me:$LINENO: checking for alloca" >&5
2419 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2420 if test "${ac_cv_func_alloca_works+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2430 # define alloca __builtin_alloca
2433 # include <malloc.h>
2434 # define alloca _alloca
2437 # include <alloca.h>
2442 # ifndef alloca /* predefined by HP cc +Olibcalls */
2453 char *p = (char *) alloca (1);
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2460 (eval $ac_link) 2>conftest.er1
2462 grep -v '^ *+' conftest.er1 >conftest.err
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag"
2468 || test ! -s conftest.err'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try='test -s conftest$ac_exeext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 ac_cv_func_alloca_works=yes
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2485 ac_cv_func_alloca_works=no
2487 rm -f conftest.err conftest.$ac_objext \
2488 conftest$ac_exeext conftest.$ac_ext
2490 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2491 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2493 if test $ac_cv_func_alloca_works = yes; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define HAVE_ALLOCA 1
2500 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2501 # that cause trouble. Some versions do not even contain alloca or
2502 # contain a buggy version. If you still want to use their alloca,
2503 # use ar to extract alloca.o from them instead of compiling alloca.c.
2505 ALLOCA=alloca.$ac_objext
2507 cat >>confdefs.h <<\_ACEOF
2512 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2513 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2514 if test "${ac_cv_os_cray+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523 #if defined(CRAY) && ! defined(CRAY2)
2530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2531 $EGREP "webecray" >/dev/null 2>&1; then
2539 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2540 echo "${ECHO_T}$ac_cv_os_cray" >&6
2541 if test $ac_cv_os_cray = yes; then
2542 for ac_func in _getb67 GETB67 getb67; do
2543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2544 echo "$as_me:$LINENO: checking for $ac_func" >&5
2545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2546 if eval "test \"\${$as_ac_var+set}\" = set"; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 cat >conftest.$ac_ext <<_ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2557 #define $ac_func innocuous_$ac_func
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char $ac_func (); below.
2561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562 <limits.h> exists even on freestanding compilers. */
2565 # include <limits.h>
2567 # include <assert.h>
2572 /* Override any gcc2 internal prototype to avoid an error. */
2577 /* We use char because int might match the return type of a gcc2
2578 builtin and then its argument prototype would still apply. */
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2586 char (*f) () = $ac_func;
2595 return f != $ac_func;
2600 rm -f conftest.$ac_objext conftest$ac_exeext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2602 (eval $ac_link) 2>conftest.er1
2604 grep -v '^ *+' conftest.er1 >conftest.err
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest$ac_exeext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 eval "$as_ac_var=yes"
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2627 eval "$as_ac_var=no"
2629 rm -f conftest.err conftest.$ac_objext \
2630 conftest$ac_exeext conftest.$ac_ext
2632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2634 if test `eval echo '${'$as_ac_var'}'` = yes; then
2636 cat >>confdefs.h <<_ACEOF
2637 #define CRAY_STACKSEG_END $ac_func
2646 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2647 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2648 if test "${ac_cv_c_stack_direction+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 if test "$cross_compiling" = yes; then
2652 ac_cv_c_stack_direction=0
2654 cat >conftest.$ac_ext <<_ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2661 find_stack_direction ()
2663 static char *addr = 0;
2668 return find_stack_direction ();
2671 return (&dummy > addr) ? 1 : -1;
2677 exit (find_stack_direction () < 0);
2680 rm -f conftest$ac_exeext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2682 (eval $ac_link) 2>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 ac_cv_c_stack_direction=1
2693 echo "$as_me: program exited with status $ac_status" >&5
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2698 ac_cv_c_stack_direction=-1
2700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2703 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2704 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2706 cat >>confdefs.h <<_ACEOF
2707 #define STACK_DIRECTION $ac_cv_c_stack_direction
2715 for ac_header in stdlib.h unistd.h
2717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2719 echo "$as_me:$LINENO: checking for $ac_header" >&5
2720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2727 # Is the header compilable?
2728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2730 cat >conftest.$ac_ext <<_ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2736 $ac_includes_default
2737 #include <$ac_header>
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>conftest.er1
2743 grep -v '^ *+' conftest.er1 >conftest.err
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_c_werror_flag"
2749 || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_header_compiler=yes
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2766 ac_header_compiler=no
2768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2770 echo "${ECHO_T}$ac_header_compiler" >&6
2772 # Is the header present?
2773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2781 #include <$ac_header>
2783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2786 grep -v '^ *+' conftest.er1 >conftest.err
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } >/dev/null; then
2791 if test -s conftest.err; then
2792 ac_cpp_err=$ac_c_preproc_warn_flag
2793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2800 if test -z "$ac_cpp_err"; then
2801 ac_header_preproc=yes
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 ac_header_preproc=no
2808 rm -f conftest.err conftest.$ac_ext
2809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2810 echo "${ECHO_T}$ac_header_preproc" >&6
2812 # So? What about this header?
2813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2819 ac_header_preproc=yes
2822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2836 ## ------------------------------------------ ##
2837 ## Report this to the AC_PACKAGE_NAME lists. ##
2838 ## ------------------------------------------ ##
2841 sed "s/^/$as_me: WARNING: /" >&2
2844 echo "$as_me:$LINENO: checking for $ac_header" >&5
2845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 eval "$as_ac_Header=\$ac_header_preproc"
2851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2856 cat >>confdefs.h <<_ACEOF
2857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2865 for ac_func in getpagesize
2867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2868 echo "$as_me:$LINENO: checking for $ac_func" >&5
2869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2870 if eval "test \"\${$as_ac_var+set}\" = set"; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 cat >conftest.$ac_ext <<_ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2881 #define $ac_func innocuous_$ac_func
2883 /* System header to define __stub macros and hopefully few prototypes,
2884 which can conflict with char $ac_func (); below.
2885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2886 <limits.h> exists even on freestanding compilers. */
2889 # include <limits.h>
2891 # include <assert.h>
2896 /* Override any gcc2 internal prototype to avoid an error. */
2901 /* We use char because int might match the return type of a gcc2
2902 builtin and then its argument prototype would still apply. */
2904 /* The GNU C library defines this for functions which it implements
2905 to always fail with ENOSYS. Some functions are actually named
2906 something starting with __ and the normal name is an alias. */
2907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2910 char (*f) () = $ac_func;
2919 return f != $ac_func;
2924 rm -f conftest.$ac_objext conftest$ac_exeext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest$ac_exeext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 eval "$as_ac_var=yes"
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 eval "$as_ac_var=no"
2953 rm -f conftest.err conftest.$ac_objext \
2954 conftest$ac_exeext conftest.$ac_ext
2956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2958 if test `eval echo '${'$as_ac_var'}'` = yes; then
2959 cat >>confdefs.h <<_ACEOF
2960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2966 echo "$as_me:$LINENO: checking for working mmap" >&5
2967 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2968 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 if test "$cross_compiling" = yes; then
2972 ac_cv_func_mmap_fixed_mapped=no
2974 cat >conftest.$ac_ext <<_ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2980 $ac_includes_default
2981 /* malloc might have been renamed as rpl_malloc. */
2984 /* Thanks to Mike Haertel and Jim Avera for this test.
2985 Here is a matrix of mmap possibilities:
2986 mmap private not fixed
2987 mmap private fixed at somewhere currently unmapped
2988 mmap private fixed at somewhere already mapped
2989 mmap shared not fixed
2990 mmap shared fixed at somewhere currently unmapped
2991 mmap shared fixed at somewhere already mapped
2992 For private mappings, we should verify that changes cannot be read()
2993 back from the file, nor mmap's back from the file at a different
2994 address. (There have been systems where private was not correctly
2995 implemented like the infamous i386 svr4.0, and systems where the
2996 VM page cache was not coherent with the file system buffer cache
2997 like early versions of FreeBSD and possibly contemporary NetBSD.)
2998 For shared mappings, we should conversely verify that changes get
2999 propagated back to all the places they're supposed to be.
3001 Grep wants private fixed already mapped.
3002 The main things grep needs to know about mmap are:
3003 * does it exist and is it safe to write into the mmap'd area
3004 * how to use it (BSD variants) */
3007 #include <sys/mman.h>
3009 #if !STDC_HEADERS && !HAVE_STDLIB_H
3013 /* This mess was copied from the GNU getpagesize.h. */
3014 #if !HAVE_GETPAGESIZE
3015 /* Assume that all systems that can run configure have sys/param.h. */
3016 # if !HAVE_SYS_PARAM_H
3017 # define HAVE_SYS_PARAM_H 1
3020 # ifdef _SC_PAGESIZE
3021 # define getpagesize() sysconf(_SC_PAGESIZE)
3022 # else /* no _SC_PAGESIZE */
3023 # if HAVE_SYS_PARAM_H
3024 # include <sys/param.h>
3025 # ifdef EXEC_PAGESIZE
3026 # define getpagesize() EXEC_PAGESIZE
3027 # else /* no EXEC_PAGESIZE */
3029 # define getpagesize() NBPG * CLSIZE
3032 # endif /* no CLSIZE */
3033 # else /* no NBPG */
3035 # define getpagesize() NBPC
3036 # else /* no NBPC */
3038 # define getpagesize() PAGESIZE
3039 # endif /* PAGESIZE */
3040 # endif /* no NBPC */
3041 # endif /* no NBPG */
3042 # endif /* no EXEC_PAGESIZE */
3043 # else /* no HAVE_SYS_PARAM_H */
3044 # define getpagesize() 8192 /* punt totally */
3045 # endif /* no HAVE_SYS_PARAM_H */
3046 # endif /* no _SC_PAGESIZE */
3048 #endif /* no HAVE_GETPAGESIZE */
3053 char *data, *data2, *data3;
3057 pagesize = getpagesize ();
3059 /* First, make a file with some known garbage in it. */
3060 data = (char *) malloc (pagesize);
3063 for (i = 0; i < pagesize; ++i)
3064 *(data + i) = rand ();
3066 fd = creat ("conftest.mmap", 0600);
3069 if (write (fd, data, pagesize) != pagesize)
3073 /* Next, try to mmap the file at a fixed address which already has
3074 something else allocated at it. If we can, also make sure that
3075 we see the same garbage. */
3076 fd = open ("conftest.mmap", O_RDWR);
3079 data2 = (char *) malloc (2 * pagesize);
3082 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3083 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3084 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3086 for (i = 0; i < pagesize; ++i)
3087 if (*(data + i) != *(data2 + i))
3090 /* Finally, make sure that changes to the mapped area do not
3091 percolate back to the file as seen by read(). (This is a bug on
3092 some variants of i386 svr4.0.) */
3093 for (i = 0; i < pagesize; ++i)
3094 *(data2 + i) = *(data2 + i) + 1;
3095 data3 = (char *) malloc (pagesize);
3098 if (read (fd, data3, pagesize) != pagesize)
3100 for (i = 0; i < pagesize; ++i)
3101 if (*(data + i) != *(data3 + i))
3107 rm -f conftest$ac_exeext
3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3109 (eval $ac_link) 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 ac_cv_func_mmap_fixed_mapped=yes
3120 echo "$as_me: program exited with status $ac_status" >&5
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3125 ac_cv_func_mmap_fixed_mapped=no
3127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3130 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3131 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3132 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3134 cat >>confdefs.h <<\_ACEOF
3142 # autoconf.info says this should be called right after AC_INIT.
3143 ac_config_headers="$ac_config_headers config.h:config.in"
3145 echo "$as_me:$LINENO: checking target system type" >&5
3146 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3147 if test "${ac_cv_target+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 ac_cv_target_alias=$target_alias
3151 test "x$ac_cv_target_alias" = "x" &&
3152 ac_cv_target_alias=$ac_cv_host_alias
3153 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3154 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3155 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3156 { (exit 1); exit 1; }; }
3159 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3160 echo "${ECHO_T}$ac_cv_target" >&6
3161 target=$ac_cv_target
3162 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3163 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3164 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3167 # The aliases save the names the user supplied, while $host etc.
3168 # will get canonicalized.
3169 test -n "$target_alias" &&
3170 test "$program_prefix$program_suffix$program_transform_name" = \
3172 program_prefix=${target_alias}-
3173 test "$program_prefix" != NONE &&
3174 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3175 # Use a double $ so make ignores it.
3176 test "$program_suffix" != NONE &&
3177 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3178 # Double any \ or $. echo might interpret backslashes.
3179 # By default was `s,x,x', remove it if useless.
3180 cat <<\_ACEOF >conftest.sed
3181 s/[\\$]/&&/g;s/;s,x,x,$//
3183 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 if test -n "$ac_tool_prefix"; then
3192 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3194 echo "$as_me:$LINENO: checking for $ac_word" >&5
3195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196 if test "${ac_cv_prog_CC+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 if test -n "$CC"; then
3220 echo "$as_me:$LINENO: result: $CC" >&5
3221 echo "${ECHO_T}$CC" >&6
3223 echo "$as_me:$LINENO: result: no" >&5
3224 echo "${ECHO_T}no" >&6
3228 if test -z "$ac_cv_prog_CC"; then
3230 # Extract the first word of "gcc", so it can be a program name with args.
3231 set dummy gcc; ac_word=$2
3232 echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 if test -n "$ac_ct_CC"; then
3238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_ac_ct_CC="gcc"
3248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3257 if test -n "$ac_ct_CC"; then
3258 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3259 echo "${ECHO_T}$ac_ct_CC" >&6
3261 echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3270 if test -z "$CC"; then
3271 if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}cc; ac_word=$2
3274 echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276 if test "${ac_cv_prog_CC+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="${ac_tool_prefix}cc"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 if test -n "$CC"; then
3300 echo "$as_me:$LINENO: result: $CC" >&5
3301 echo "${ECHO_T}$CC" >&6
3303 echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3308 if test -z "$ac_cv_prog_CC"; then
3310 # Extract the first word of "cc", so it can be a program name with args.
3311 set dummy cc; ac_word=$2
3312 echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="cc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3339 echo "${ECHO_T}$ac_ct_CC" >&6
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3351 if test -z "$CC"; then
3352 # Extract the first word of "cc", so it can be a program name with args.
3353 set dummy cc; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_CC+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3371 ac_prog_rejected=yes
3375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 if test $ac_prog_rejected = yes; then
3382 # We found a bogon in the path, so make sure we never use it.
3383 set dummy $ac_cv_prog_CC
3385 if test $# != 0; then
3386 # We chose a different compiler from the bogus one.
3387 # However, it has the same basename, so the bogon will be chosen
3388 # first if we set CC to just the basename; use the full file name.
3390 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3396 if test -n "$CC"; then
3397 echo "$as_me:$LINENO: result: $CC" >&5
3398 echo "${ECHO_T}$CC" >&6
3400 echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3405 if test -z "$CC"; then
3406 if test -n "$ac_tool_prefix"; then
3409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_CC+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 if test -n "$CC"; then
3417 ac_cv_prog_CC="$CC" # Let the user override the test.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 if test -n "$CC"; then
3437 echo "$as_me:$LINENO: result: $CC" >&5
3438 echo "${ECHO_T}$CC" >&6
3440 echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3444 test -n "$CC" && break
3447 if test -z "$CC"; then
3451 # Extract the first word of "$ac_prog", so it can be a program name with args.
3452 set dummy $ac_prog; ac_word=$2
3453 echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 if test -n "$ac_ct_CC"; then
3459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_prog_ac_ct_CC="$ac_prog"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478 if test -n "$ac_ct_CC"; then
3479 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3480 echo "${ECHO_T}$ac_ct_CC" >&6
3482 echo "$as_me:$LINENO: result: no" >&5
3483 echo "${ECHO_T}no" >&6
3486 test -n "$ac_ct_CC" && break
3495 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3496 See \`config.log' for more details." >&5
3497 echo "$as_me: error: no acceptable C compiler found in \$PATH
3498 See \`config.log' for more details." >&2;}
3499 { (exit 1); exit 1; }; }
3501 # Provide some information about the compiler.
3502 echo "$as_me:$LINENO:" \
3503 "checking for C compiler version" >&5
3504 ac_compiler=`set X $ac_compile; echo $2`
3505 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3506 (eval $ac_compiler --version </dev/null >&5) 2>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }
3510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3511 (eval $ac_compiler -v </dev/null >&5) 2>&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }
3515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3516 (eval $ac_compiler -V </dev/null >&5) 2>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3536 ac_clean_files_save=$ac_clean_files
3537 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3538 # Try to create an executable without -o first, disregard a.out.
3539 # It will help us diagnose broken compilers, and finding out an intuition
3541 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3542 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3543 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3544 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3545 (eval $ac_link_default) 2>&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; then
3549 # Find the output, starting from the most likely. This scheme is
3550 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3553 # Be careful to initialize this variable, since it used to be cached.
3554 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3556 # b.out is created by i960 compilers.
3557 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3559 test -f "$ac_file" || continue
3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3564 # This is the source file.
3567 # We found the default executable, but exeext='' is most
3571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3572 # FIXME: I believe we export ac_cv_exeext for Libtool,
3573 # but it would be cool to find out if it's true. Does anybody
3574 # maintain Libtool? --akim.
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3586 See \`config.log' for more details." >&5
3587 echo "$as_me: error: C compiler cannot create executables
3588 See \`config.log' for more details." >&2;}
3589 { (exit 77); exit 77; }; }
3592 ac_exeext=$ac_cv_exeext
3593 echo "$as_me:$LINENO: result: $ac_file" >&5
3594 echo "${ECHO_T}$ac_file" >&6
3596 # Check the compiler produces executables we can run. If not, either
3597 # the compiler is broken, or we cross compile.
3598 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3601 # If not cross compiling, check that we can run a simple program.
3602 if test "$cross_compiling" != yes; then
3603 if { ac_try='./$ac_file'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; }; then
3611 if test "$cross_compiling" = maybe; then
3614 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3615 If you meant to cross compile, use \`--host'.
3616 See \`config.log' for more details." >&5
3617 echo "$as_me: error: cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details." >&2;}
3620 { (exit 1); exit 1; }; }
3624 echo "$as_me:$LINENO: result: yes" >&5
3625 echo "${ECHO_T}yes" >&6
3627 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3628 ac_clean_files=$ac_clean_files_save
3629 # Check the compiler produces executables we can run. If not, either
3630 # the compiler is broken, or we cross compile.
3631 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3632 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3633 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3634 echo "${ECHO_T}$cross_compiling" >&6
3636 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3637 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639 (eval $ac_link) 2>&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; then
3643 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3644 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3645 # work properly (i.e., refer to `conftest.exe'), while it won't with
3647 for ac_file in conftest.exe conftest conftest.*; do
3648 test -f "$ac_file" || continue
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3658 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3659 See \`config.log' for more details." >&5
3660 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3661 See \`config.log' for more details." >&2;}
3662 { (exit 1); exit 1; }; }
3665 rm -f conftest$ac_cv_exeext
3666 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3667 echo "${ECHO_T}$ac_cv_exeext" >&6
3669 rm -f conftest.$ac_ext
3670 EXEEXT=$ac_cv_exeext
3672 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3673 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3674 if test "${ac_cv_objext+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3692 rm -f conftest.o conftest.obj
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; then
3698 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3710 See \`config.log' for more details." >&5
3711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3712 See \`config.log' for more details." >&2;}
3713 { (exit 1); exit 1; }; }
3716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3718 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3719 echo "${ECHO_T}$ac_cv_objext" >&6
3720 OBJEXT=$ac_cv_objext
3722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 cat >conftest.$ac_ext <<_ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3745 rm -f conftest.$ac_objext
3746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3747 (eval $ac_compile) 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } &&
3754 { ac_try='test -z "$ac_c_werror_flag"
3755 || test ! -s conftest.err'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; } &&
3761 { ac_try='test -s conftest.$ac_objext'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3778 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3780 GCC=`test $ac_compiler_gnu = yes && echo yes`
3781 ac_test_CFLAGS=${CFLAGS+set}
3782 ac_save_CFLAGS=$CFLAGS
3784 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3786 if test "${ac_cv_prog_cc_g+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3804 rm -f conftest.$ac_objext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806 (eval $ac_compile) 2>conftest.er1
3808 grep -v '^ *+' conftest.er1 >conftest.err
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -z "$ac_c_werror_flag"
3814 || test ! -s conftest.err'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3836 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3837 if test "$ac_test_CFLAGS" = set; then
3838 CFLAGS=$ac_save_CFLAGS
3839 elif test $ac_cv_prog_cc_g = yes; then
3840 if test "$GCC" = yes; then
3846 if test "$GCC" = yes; then
3852 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3853 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3854 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 ac_cv_prog_cc_stdc=no
3859 cat >conftest.$ac_ext <<_ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3867 #include <sys/types.h>
3868 #include <sys/stat.h>
3869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3870 struct buf { int x; };
3871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3872 static char *e (p, i)
3878 static char *f (char * (*g) (char **, int), char **p, ...)
3883 s = g (p, va_arg (v,int));
3888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3889 function prototypes and stuff, but not '\xHH' hex character constants.
3890 These don't provoke an error unfortunately, instead are silently treated
3891 as 'x'. The following induces an error, until -std1 is added to get
3892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3893 array size at least. It's necessary to write '\x00'==0 to get something
3894 that's true only with -std1. */
3895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3897 int test (int i, double x);
3898 struct s1 {int (*f) (int a);};
3899 struct s2 {int (*f) (double a);};
3900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3906 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3911 # Don't try gcc -ansi; that turns off useful extensions and
3912 # breaks some systems' header files.
3913 # AIX -qlanglvl=ansi
3914 # Ultrix and OSF/1 -std1
3915 # HP-UX 10.20 and later -Ae
3916 # HP-UX older versions -Aa -D_HPUX_SOURCE
3917 # SVR4 -Xc -D__EXTENSIONS__
3918 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3920 CC="$ac_save_CC $ac_arg"
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>conftest.er1
3925 grep -v '^ *+' conftest.er1 >conftest.err
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_c_werror_flag"
3931 || test ! -s conftest.err'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; } &&
3937 { ac_try='test -s conftest.$ac_objext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 ac_cv_prog_cc_stdc=$ac_arg
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3950 rm -f conftest.err conftest.$ac_objext
3952 rm -f conftest.$ac_ext conftest.$ac_objext
3957 case "x$ac_cv_prog_cc_stdc" in
3959 echo "$as_me:$LINENO: result: none needed" >&5
3960 echo "${ECHO_T}none needed" >&6 ;;
3962 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3963 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3964 CC="$CC $ac_cv_prog_cc_stdc" ;;
3967 # Some people use a C++ compiler to compile C. Since we use `exit',
3968 # in C++ we need to declare it. In case someone uses the same compiler
3969 # for both compiling C and C++ we need to have the C++ compiler decide
3970 # the declaration of exit, since it's the most demanding environment.
3971 cat >conftest.$ac_ext <<_ACEOF
3976 rm -f conftest.$ac_objext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -z "$ac_c_werror_flag"
3986 || test ! -s conftest.err'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 for ac_declaration in \
4000 'extern "C" void std::exit (int) throw (); using std::exit;' \
4001 'extern "C" void std::exit (int); using std::exit;' \
4002 'extern "C" void exit (int) throw ();' \
4003 'extern "C" void exit (int);' \
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4022 rm -f conftest.$ac_objext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>conftest.er1
4026 grep -v '^ *+' conftest.er1 >conftest.err
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_c_werror_flag"
4032 || test ! -s conftest.err'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069 (eval $ac_compile) 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_c_werror_flag"
4077 || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest.$ac_objext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098 if test -n "$ac_declaration"; then
4099 echo '#ifdef __cplusplus' >>confdefs.h
4100 echo $ac_declaration >>confdefs.h
4101 echo '#endif' >>confdefs.h
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116 # Find a good install program. We prefer a C program (faster),
4117 # so one script is as good as another. But avoid the broken or
4118 # incompatible versions:
4119 # SysV /etc/install, /usr/sbin/install
4120 # SunOS /usr/etc/install
4121 # IRIX /sbin/install
4123 # AmigaOS /C/install, which installs bootblocks on floppy discs
4124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4127 # OS/2's system install, which has a completely different semantic
4128 # ./install, which can be erroneously created by make from ./install.sh.
4129 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4130 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4131 if test -z "$INSTALL"; then
4132 if test "${ac_cv_path_install+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 # Account for people who put trailing slashes in PATH elements.
4142 ./ | .// | /cC/* | \
4143 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4144 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4147 # OSF1 and SCO ODT 3.0 have their own names for install.
4148 # Don't use installbsd from OSF since it installs stuff as root
4150 for ac_prog in ginstall scoinst install; do
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4153 if test $ac_prog = install &&
4154 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4155 # AIX install. It has an incompatible calling convention.
4157 elif test $ac_prog = install &&
4158 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4159 # program-specific install script used by HP pwplus--don't use.
4162 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4174 if test "${ac_cv_path_install+set}" = set; then
4175 INSTALL=$ac_cv_path_install
4177 # As a last resort, use the slow shell script. We don't cache a
4178 # path for INSTALL within a source directory, because that will
4179 # break other packages using the cache if that directory is
4180 # removed, or if the path is relative.
4181 INSTALL=$ac_install_sh
4184 echo "$as_me:$LINENO: result: $INSTALL" >&5
4185 echo "${ECHO_T}$INSTALL" >&6
4187 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4188 # It thinks the first close brace ends the variable substitution.
4189 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4191 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4193 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4196 # Put a plausible default for CC_FOR_BUILD in Makefile.
4197 if test "x$cross_compiling" = "xno"; then
4198 CC_FOR_BUILD='$(CC)'
4208 if test -n "$ac_tool_prefix"; then
4209 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4211 echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4213 if test "${ac_cv_prog_RANLIB+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 if test -n "$RANLIB"; then
4217 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 RANLIB=$ac_cv_prog_RANLIB
4236 if test -n "$RANLIB"; then
4237 echo "$as_me:$LINENO: result: $RANLIB" >&5
4238 echo "${ECHO_T}$RANLIB" >&6
4240 echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6
4245 if test -z "$ac_cv_prog_RANLIB"; then
4246 ac_ct_RANLIB=$RANLIB
4247 # Extract the first word of "ranlib", so it can be a program name with args.
4248 set dummy ranlib; ac_word=$2
4249 echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -n "$ac_ct_RANLIB"; then
4255 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_ac_ct_RANLIB="ranlib"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4274 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4275 if test -n "$ac_ct_RANLIB"; then
4276 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4277 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4279 echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6
4283 RANLIB=$ac_ct_RANLIB
4285 RANLIB="$ac_cv_prog_RANLIB"
4300 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4301 unistd.h values.h sys/param.h
4303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4305 echo "$as_me:$LINENO: checking for $ac_header" >&5
4306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4313 # Is the header compilable?
4314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4316 cat >conftest.$ac_ext <<_ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 $ac_includes_default
4323 #include <$ac_header>
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -z "$ac_c_werror_flag"
4335 || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_header_compiler=yes
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 ac_header_compiler=no
4354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4356 echo "${ECHO_T}$ac_header_compiler" >&6
4358 # Is the header present?
4359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4361 cat >conftest.$ac_ext <<_ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 #include <$ac_header>
4369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4372 grep -v '^ *+' conftest.er1 >conftest.err
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } >/dev/null; then
4377 if test -s conftest.err; then
4378 ac_cpp_err=$ac_c_preproc_warn_flag
4379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4386 if test -z "$ac_cpp_err"; then
4387 ac_header_preproc=yes
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 ac_header_preproc=no
4394 rm -f conftest.err conftest.$ac_ext
4395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4396 echo "${ECHO_T}$ac_header_preproc" >&6
4398 # So? What about this header?
4399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4405 ac_header_preproc=yes
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4422 ## ------------------------------------------ ##
4423 ## Report this to the AC_PACKAGE_NAME lists. ##
4424 ## ------------------------------------------ ##
4427 sed "s/^/$as_me: WARNING: /" >&2
4430 echo "$as_me:$LINENO: checking for $ac_header" >&5
4431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 eval "$as_ac_Header=\$ac_header_preproc"
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4442 cat >>confdefs.h <<_ACEOF
4443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4460 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4461 __argz_count __argz_stringify __argz_next
4463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4464 echo "$as_me:$LINENO: checking for $ac_func" >&5
4465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4466 if eval "test \"\${$as_ac_var+set}\" = set"; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 cat >conftest.$ac_ext <<_ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4477 #define $ac_func innocuous_$ac_func
4479 /* System header to define __stub macros and hopefully few prototypes,
4480 which can conflict with char $ac_func (); below.
4481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482 <limits.h> exists even on freestanding compilers. */
4485 # include <limits.h>
4487 # include <assert.h>
4492 /* Override any gcc2 internal prototype to avoid an error. */
4497 /* We use char because int might match the return type of a gcc2
4498 builtin and then its argument prototype would still apply. */
4500 /* The GNU C library defines this for functions which it implements
4501 to always fail with ENOSYS. Some functions are actually named
4502 something starting with __ and the normal name is an alias. */
4503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4506 char (*f) () = $ac_func;
4515 return f != $ac_func;
4520 rm -f conftest.$ac_objext conftest$ac_exeext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4522 (eval $ac_link) 2>conftest.er1
4524 grep -v '^ *+' conftest.er1 >conftest.err
4526 cat conftest.err >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } &&
4529 { ac_try='test -z "$ac_c_werror_flag"
4530 || test ! -s conftest.err'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; } &&
4536 { ac_try='test -s conftest$ac_exeext'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 eval "$as_ac_var=yes"
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 eval "$as_ac_var=no"
4549 rm -f conftest.err conftest.$ac_objext \
4550 conftest$ac_exeext conftest.$ac_ext
4552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4554 if test `eval echo '${'$as_ac_var'}'` = yes; then
4555 cat >>confdefs.h <<_ACEOF
4556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4563 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4565 for ac_func in stpcpy
4567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4568 echo "$as_me:$LINENO: checking for $ac_func" >&5
4569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4570 if eval "test \"\${$as_ac_var+set}\" = set"; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 cat >conftest.$ac_ext <<_ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4581 #define $ac_func innocuous_$ac_func
4583 /* System header to define __stub macros and hopefully few prototypes,
4584 which can conflict with char $ac_func (); below.
4585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4586 <limits.h> exists even on freestanding compilers. */
4589 # include <limits.h>
4591 # include <assert.h>
4596 /* Override any gcc2 internal prototype to avoid an error. */
4601 /* We use char because int might match the return type of a gcc2
4602 builtin and then its argument prototype would still apply. */
4604 /* The GNU C library defines this for functions which it implements
4605 to always fail with ENOSYS. Some functions are actually named
4606 something starting with __ and the normal name is an alias. */
4607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4610 char (*f) () = $ac_func;
4619 return f != $ac_func;
4624 rm -f conftest.$ac_objext conftest$ac_exeext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4626 (eval $ac_link) 2>conftest.er1
4628 grep -v '^ *+' conftest.er1 >conftest.err
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_c_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try='test -s conftest$ac_exeext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 eval "$as_ac_var=yes"
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 eval "$as_ac_var=no"
4653 rm -f conftest.err conftest.$ac_objext \
4654 conftest$ac_exeext conftest.$ac_ext
4656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4658 if test `eval echo '${'$as_ac_var'}'` = yes; then
4659 cat >>confdefs.h <<_ACEOF
4660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4667 if test "${ac_cv_func_stpcpy}" = "yes"; then
4668 cat >>confdefs.h <<\_ACEOF
4669 #define HAVE_STPCPY 1
4674 if test $ac_cv_header_locale_h = yes; then
4675 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4676 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4677 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 cat >conftest.$ac_ext <<_ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4695 rm -f conftest.$ac_objext conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697 (eval $ac_link) 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest$ac_exeext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 am_cv_val_LC_MESSAGES=yes
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 am_cv_val_LC_MESSAGES=no
4724 rm -f conftest.err conftest.$ac_objext \
4725 conftest$ac_exeext conftest.$ac_ext
4727 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4728 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4729 if test $am_cv_val_LC_MESSAGES = yes; then
4730 cat >>confdefs.h <<\_ACEOF
4731 #define HAVE_LC_MESSAGES 1
4736 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4737 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4738 # Check whether --enable-nls or --disable-nls was given.
4739 if test "${enable_nls+set}" = set; then
4740 enableval="$enable_nls"
4745 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4746 echo "${ECHO_T}$USE_NLS" >&6
4749 USE_INCLUDED_LIBINTL=no
4751 if test "$USE_NLS" = "yes"; then
4752 cat >>confdefs.h <<\_ACEOF
4753 #define ENABLE_NLS 1
4756 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4757 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4759 # Check whether --with-included-gettext or --without-included-gettext was given.
4760 if test "${with_included_gettext+set}" = set; then
4761 withval="$with_included_gettext"
4762 nls_cv_force_use_gnu_gettext=$withval
4764 nls_cv_force_use_gnu_gettext=no
4766 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4767 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4769 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4770 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4772 nls_cv_header_libgt=
4775 if test "${ac_cv_header_libintl_h+set}" = set; then
4776 echo "$as_me:$LINENO: checking for libintl.h" >&5
4777 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4778 if test "${ac_cv_header_libintl_h+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4782 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4784 # Is the header compilable?
4785 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4786 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4794 #include <libintl.h>
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_c_werror_flag"
4806 || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 ac_header_compiler=yes
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4823 ac_header_compiler=no
4825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4827 echo "${ECHO_T}$ac_header_compiler" >&6
4829 # Is the header present?
4830 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4831 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 #include <libintl.h>
4840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4843 grep -v '^ *+' conftest.er1 >conftest.err
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } >/dev/null; then
4848 if test -s conftest.err; then
4849 ac_cpp_err=$ac_c_preproc_warn_flag
4850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4857 if test -z "$ac_cpp_err"; then
4858 ac_header_preproc=yes
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 ac_header_preproc=no
4865 rm -f conftest.err conftest.$ac_ext
4866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4867 echo "${ECHO_T}$ac_header_preproc" >&6
4869 # So? What about this header?
4870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4872 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4873 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4874 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4875 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4876 ac_header_preproc=yes
4879 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4880 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4881 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4882 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4884 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4886 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4888 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4889 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4890 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4893 ## ------------------------------------------ ##
4894 ## Report this to the AC_PACKAGE_NAME lists. ##
4895 ## ------------------------------------------ ##
4898 sed "s/^/$as_me: WARNING: /" >&2
4901 echo "$as_me:$LINENO: checking for libintl.h" >&5
4902 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4903 if test "${ac_cv_header_libintl_h+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 ac_cv_header_libintl_h=$ac_header_preproc
4908 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4909 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4912 if test $ac_cv_header_libintl_h = yes; then
4913 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4914 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4915 if test "${gt_cv_func_gettext_libc+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 cat >conftest.$ac_ext <<_ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 #include <libintl.h>
4928 return (int) gettext ("")
4933 rm -f conftest.$ac_objext conftest$ac_exeext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935 (eval $ac_link) 2>conftest.er1
4937 grep -v '^ *+' conftest.er1 >conftest.err
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -z "$ac_c_werror_flag"
4943 || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest$ac_exeext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 gt_cv_func_gettext_libc=yes
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4960 gt_cv_func_gettext_libc=no
4962 rm -f conftest.err conftest.$ac_objext \
4963 conftest$ac_exeext conftest.$ac_ext
4965 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4966 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4968 if test "$gt_cv_func_gettext_libc" != "yes"; then
4969 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4970 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4971 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 ac_check_lib_save_LIBS=$LIBS
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4983 /* Override any gcc2 internal prototype to avoid an error. */
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4989 char bindtextdomain ();
4998 rm -f conftest.$ac_objext conftest$ac_exeext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5000 (eval $ac_link) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1 >conftest.err
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest$ac_exeext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_lib_intl_bindtextdomain=yes
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 ac_cv_lib_intl_bindtextdomain=no
5027 rm -f conftest.err conftest.$ac_objext \
5028 conftest$ac_exeext conftest.$ac_ext
5029 LIBS=$ac_check_lib_save_LIBS
5031 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5032 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5033 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5034 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5035 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5036 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 cat >conftest.$ac_ext <<_ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5049 return (int) gettext ("")
5054 rm -f conftest.$ac_objext conftest$ac_exeext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5056 (eval $ac_link) 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -z "$ac_c_werror_flag"
5064 || test ! -s conftest.err'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; } &&
5070 { ac_try='test -s conftest$ac_exeext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 gt_cv_func_gettext_libintl=yes
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 gt_cv_func_gettext_libintl=no
5083 rm -f conftest.err conftest.$ac_objext \
5084 conftest$ac_exeext conftest.$ac_ext
5086 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5087 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5092 if test "$gt_cv_func_gettext_libc" = "yes" \
5093 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5094 cat >>confdefs.h <<\_ACEOF
5095 #define HAVE_GETTEXT 1
5098 # Extract the first word of "msgfmt", so it can be a program name with args.
5099 set dummy msgfmt; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_path_MSGFMT+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5111 for ac_dir in $PATH; do
5112 test -z "$ac_dir" && ac_dir=.
5113 if test -f $ac_dir/$ac_word; then
5114 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5115 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5121 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5125 MSGFMT="$ac_cv_path_MSGFMT"
5126 if test -n "$MSGFMT"; then
5127 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5128 echo "${ECHO_T}$MSGFMT" >&6
5130 echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5133 if test "$MSGFMT" != "no"; then
5135 for ac_func in dcgettext
5137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5138 echo "$as_me:$LINENO: checking for $ac_func" >&5
5139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5140 if eval "test \"\${$as_ac_var+set}\" = set"; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 cat >conftest.$ac_ext <<_ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5151 #define $ac_func innocuous_$ac_func
5153 /* System header to define __stub macros and hopefully few prototypes,
5154 which can conflict with char $ac_func (); below.
5155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5156 <limits.h> exists even on freestanding compilers. */
5159 # include <limits.h>
5161 # include <assert.h>
5166 /* Override any gcc2 internal prototype to avoid an error. */
5171 /* We use char because int might match the return type of a gcc2
5172 builtin and then its argument prototype would still apply. */
5174 /* The GNU C library defines this for functions which it implements
5175 to always fail with ENOSYS. Some functions are actually named
5176 something starting with __ and the normal name is an alias. */
5177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5180 char (*f) () = $ac_func;
5189 return f != $ac_func;
5194 rm -f conftest.$ac_objext conftest$ac_exeext
5195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5196 (eval $ac_link) 2>conftest.er1
5198 grep -v '^ *+' conftest.er1 >conftest.err
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -z "$ac_c_werror_flag"
5204 || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try='test -s conftest$ac_exeext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 eval "$as_ac_var=yes"
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 eval "$as_ac_var=no"
5223 rm -f conftest.err conftest.$ac_objext \
5224 conftest$ac_exeext conftest.$ac_ext
5226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5228 if test `eval echo '${'$as_ac_var'}'` = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5236 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5237 set dummy gmsgfmt; ac_word=$2
5238 echo "$as_me:$LINENO: checking for $ac_word" >&5
5239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5240 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5266 GMSGFMT=$ac_cv_path_GMSGFMT
5268 if test -n "$GMSGFMT"; then
5269 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5270 echo "${ECHO_T}$GMSGFMT" >&6
5272 echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6
5276 # Extract the first word of "xgettext", so it can be a program name with args.
5277 set dummy xgettext; ac_word=$2
5278 echo "$as_me:$LINENO: checking for $ac_word" >&5
5279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5280 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5289 for ac_dir in $PATH; do
5290 test -z "$ac_dir" && ac_dir=.
5291 if test -f $ac_dir/$ac_word; then
5292 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5293 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5299 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5303 XGETTEXT="$ac_cv_path_XGETTEXT"
5304 if test -n "$XGETTEXT"; then
5305 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5306 echo "${ECHO_T}$XGETTEXT" >&6
5308 echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5312 cat >conftest.$ac_ext <<_ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5322 extern int _nl_msg_cat_cntr;
5323 return _nl_msg_cat_cntr
5328 rm -f conftest.$ac_objext conftest$ac_exeext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5330 (eval $ac_link) 2>conftest.er1
5332 grep -v '^ *+' conftest.er1 >conftest.err
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -z "$ac_c_werror_flag"
5338 || test ! -s conftest.err'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest$ac_exeext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5359 rm -f conftest.err conftest.$ac_objext \
5360 conftest$ac_exeext conftest.$ac_ext
5370 if test "$CATOBJEXT" = "NONE"; then
5371 nls_cv_use_gnu_gettext=yes
5375 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5376 INTLOBJS="\$(GETTOBJS)"
5377 # Extract the first word of "msgfmt", so it can be a program name with args.
5378 set dummy msgfmt; ac_word=$2
5379 echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381 if test "${ac_cv_path_MSGFMT+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5390 for ac_dir in $PATH; do
5391 test -z "$ac_dir" && ac_dir=.
5392 if test -f $ac_dir/$ac_word; then
5393 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5394 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5400 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5404 MSGFMT="$ac_cv_path_MSGFMT"
5405 if test -n "$MSGFMT"; then
5406 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5407 echo "${ECHO_T}$MSGFMT" >&6
5409 echo "$as_me:$LINENO: result: no" >&5
5410 echo "${ECHO_T}no" >&6
5413 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5414 set dummy gmsgfmt; ac_word=$2
5415 echo "$as_me:$LINENO: checking for $ac_word" >&5
5416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5417 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5443 GMSGFMT=$ac_cv_path_GMSGFMT
5445 if test -n "$GMSGFMT"; then
5446 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5447 echo "${ECHO_T}$GMSGFMT" >&6
5449 echo "$as_me:$LINENO: result: no" >&5
5450 echo "${ECHO_T}no" >&6
5453 # Extract the first word of "xgettext", so it can be a program name with args.
5454 set dummy xgettext; ac_word=$2
5455 echo "$as_me:$LINENO: checking for $ac_word" >&5
5456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5457 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5466 for ac_dir in $PATH; do
5467 test -z "$ac_dir" && ac_dir=.
5468 if test -f $ac_dir/$ac_word; then
5469 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5470 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5476 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5480 XGETTEXT="$ac_cv_path_XGETTEXT"
5481 if test -n "$XGETTEXT"; then
5482 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5483 echo "${ECHO_T}$XGETTEXT" >&6
5485 echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6
5490 USE_INCLUDED_LIBINTL=yes
5494 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5496 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5497 nls_cv_header_intl=libintl.h
5498 nls_cv_header_libgt=libgettext.h
5501 if test "$XGETTEXT" != ":"; then
5502 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5505 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5506 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5511 # We need to process the po/ directory.
5515 nls_cv_header_intl=libintl.h
5516 nls_cv_header_libgt=libgettext.h
5519 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5520 # because some of the sources are only built for this goal.
5521 if test "$PACKAGE" = gettext; then
5523 USE_INCLUDED_LIBINTL=yes
5526 for lang in $ALL_LINGUAS; do
5527 GMOFILES="$GMOFILES $lang.gmo"
5528 POFILES="$POFILES $lang.po"
5544 if test "x$CATOBJEXT" != "x"; then
5545 if test "x$ALL_LINGUAS" = "x"; then
5548 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5549 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5551 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5552 case "$ALL_LINGUAS" in
5553 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5556 LINGUAS=$NEW_LINGUAS
5557 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5558 echo "${ECHO_T}$LINGUAS" >&6
5561 if test -n "$LINGUAS"; then
5562 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5566 if test $ac_cv_header_locale_h = yes; then
5567 INCLUDE_LOCALE_H="#include <locale.h>"
5570 /* The system does not provide the header <locale.h>. Take care yourself. */"
5574 if test -f $srcdir/po2tbl.sed.in; then
5575 if test "$CATOBJEXT" = ".cat"; then
5576 if test "${ac_cv_header_linux_version_h+set}" = set; then
5577 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5578 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5579 if test "${ac_cv_header_linux_version_h+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5583 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5585 # Is the header compilable?
5586 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5587 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5588 cat >conftest.$ac_ext <<_ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 $ac_includes_default
5595 #include <linux/version.h>
5597 rm -f conftest.$ac_objext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599 (eval $ac_compile) 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -z "$ac_c_werror_flag"
5607 || test ! -s conftest.err'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_header_compiler=yes
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 ac_header_compiler=no
5626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5628 echo "${ECHO_T}$ac_header_compiler" >&6
5630 # Is the header present?
5631 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5632 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5633 cat >conftest.$ac_ext <<_ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 #include <linux/version.h>
5641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5644 grep -v '^ *+' conftest.er1 >conftest.err
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } >/dev/null; then
5649 if test -s conftest.err; then
5650 ac_cpp_err=$ac_c_preproc_warn_flag
5651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5658 if test -z "$ac_cpp_err"; then
5659 ac_header_preproc=yes
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5664 ac_header_preproc=no
5666 rm -f conftest.err conftest.$ac_ext
5667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5668 echo "${ECHO_T}$ac_header_preproc" >&6
5670 # So? What about this header?
5671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5673 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5674 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5676 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5677 ac_header_preproc=yes
5680 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5681 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5682 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5683 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5684 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5685 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5686 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5687 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5689 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5690 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5691 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5694 ## ------------------------------------------ ##
5695 ## Report this to the AC_PACKAGE_NAME lists. ##
5696 ## ------------------------------------------ ##
5699 sed "s/^/$as_me: WARNING: /" >&2
5702 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5703 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5704 if test "${ac_cv_header_linux_version_h+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 ac_cv_header_linux_version_h=$ac_header_preproc
5709 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5710 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5713 if test $ac_cv_header_linux_version_h = yes; then
5721 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5723 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5724 $srcdir/po2tbl.sed.in > po2tbl.sed
5727 if test "$PACKAGE" = "gettext"; then
5737 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5743 if test -d $srcdir/po; then
5744 test -d po || mkdir po
5745 if test "x$srcdir" != "x."; then
5746 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5747 posrcprefix="$srcdir/"
5749 posrcprefix="../$srcdir/"
5755 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5756 < $srcdir/po/POTFILES.in > po/POTFILES
5760 # Check for common headers.
5761 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5762 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5768 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5772 echo "$as_me:$LINENO: checking for $ac_header" >&5
5773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5780 # Is the header compilable?
5781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 $ac_includes_default
5790 #include <$ac_header>
5792 rm -f conftest.$ac_objext
5793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 { ac_try='test -z "$ac_c_werror_flag"
5802 || test ! -s conftest.err'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; } &&
5808 { ac_try='test -s conftest.$ac_objext'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; }; then
5814 ac_header_compiler=yes
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5819 ac_header_compiler=no
5821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5823 echo "${ECHO_T}$ac_header_compiler" >&6
5825 # Is the header present?
5826 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5828 cat >conftest.$ac_ext <<_ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #include <$ac_header>
5836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5839 grep -v '^ *+' conftest.er1 >conftest.err
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } >/dev/null; then
5844 if test -s conftest.err; then
5845 ac_cpp_err=$ac_c_preproc_warn_flag
5846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5853 if test -z "$ac_cpp_err"; then
5854 ac_header_preproc=yes
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5859 ac_header_preproc=no
5861 rm -f conftest.err conftest.$ac_ext
5862 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5863 echo "${ECHO_T}$ac_header_preproc" >&6
5865 # So? What about this header?
5866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5872 ac_header_preproc=yes
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5889 ## ------------------------------------------ ##
5890 ## Report this to the AC_PACKAGE_NAME lists. ##
5891 ## ------------------------------------------ ##
5894 sed "s/^/$as_me: WARNING: /" >&2
5897 echo "$as_me:$LINENO: checking for $ac_header" >&5
5898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 eval "$as_ac_Header=\$ac_header_preproc"
5904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5909 cat >>confdefs.h <<_ACEOF
5910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5919 for ac_header in sys/time.h sys/resource.h
5921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5923 echo "$as_me:$LINENO: checking for $ac_header" >&5
5924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5931 # Is the header compilable?
5932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 $ac_includes_default
5941 #include <$ac_header>
5943 rm -f conftest.$ac_objext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5945 (eval $ac_compile) 2>conftest.er1
5947 grep -v '^ *+' conftest.er1 >conftest.err
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag"
5953 || test ! -s conftest.err'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; } &&
5959 { ac_try='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_header_compiler=yes
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5970 ac_header_compiler=no
5972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5974 echo "${ECHO_T}$ac_header_compiler" >&6
5976 # Is the header present?
5977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5979 cat >conftest.$ac_ext <<_ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 #include <$ac_header>
5987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5990 grep -v '^ *+' conftest.er1 >conftest.err
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev/null; then
5995 if test -s conftest.err; then
5996 ac_cpp_err=$ac_c_preproc_warn_flag
5997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6004 if test -z "$ac_cpp_err"; then
6005 ac_header_preproc=yes
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 ac_header_preproc=no
6012 rm -f conftest.err conftest.$ac_ext
6013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6014 echo "${ECHO_T}$ac_header_preproc" >&6
6016 # So? What about this header?
6017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6023 ac_header_preproc=yes
6026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6040 ## ------------------------------------------ ##
6041 ## Report this to the AC_PACKAGE_NAME lists. ##
6042 ## ------------------------------------------ ##
6045 sed "s/^/$as_me: WARNING: /" >&2
6048 echo "$as_me:$LINENO: checking for $ac_header" >&5
6049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 eval "$as_ac_Header=\$ac_header_preproc"
6055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6060 cat >>confdefs.h <<_ACEOF
6061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6070 for ac_header in fcntl.h fpu_control.h
6072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074 echo "$as_me:$LINENO: checking for $ac_header" >&5
6075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6082 # Is the header compilable?
6083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 $ac_includes_default
6092 #include <$ac_header>
6094 rm -f conftest.$ac_objext
6095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6096 (eval $ac_compile) 2>conftest.er1
6098 grep -v '^ *+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_c_werror_flag"
6104 || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest.$ac_objext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 ac_header_compiler=yes
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6121 ac_header_compiler=no
6123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6125 echo "${ECHO_T}$ac_header_compiler" >&6
6127 # Is the header present?
6128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6130 cat >conftest.$ac_ext <<_ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 #include <$ac_header>
6138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } >/dev/null; then
6146 if test -s conftest.err; then
6147 ac_cpp_err=$ac_c_preproc_warn_flag
6148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6155 if test -z "$ac_cpp_err"; then
6156 ac_header_preproc=yes
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 ac_header_preproc=no
6163 rm -f conftest.err conftest.$ac_ext
6164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6165 echo "${ECHO_T}$ac_header_preproc" >&6
6167 # So? What about this header?
6168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6174 ac_header_preproc=yes
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6191 ## ------------------------------------------ ##
6192 ## Report this to the AC_PACKAGE_NAME lists. ##
6193 ## ------------------------------------------ ##
6196 sed "s/^/$as_me: WARNING: /" >&2
6199 echo "$as_me:$LINENO: checking for $ac_header" >&5
6200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 eval "$as_ac_Header=\$ac_header_preproc"
6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211 cat >>confdefs.h <<_ACEOF
6212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6222 for ac_header in dlfcn.h errno.h sys/stat.h
6224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226 echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6234 # Is the header compilable?
6235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6237 cat >conftest.$ac_ext <<_ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6243 $ac_includes_default
6244 #include <$ac_header>
6246 rm -f conftest.$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6250 grep -v '^ *+' conftest.er1 >conftest.err
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_c_werror_flag"
6256 || test ! -s conftest.err'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_header_compiler=yes
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_header_compiler=no
6275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6277 echo "${ECHO_T}$ac_header_compiler" >&6
6279 # Is the header present?
6280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6282 cat >conftest.$ac_ext <<_ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 #include <$ac_header>
6290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6293 grep -v '^ *+' conftest.er1 >conftest.err
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } >/dev/null; then
6298 if test -s conftest.err; then
6299 ac_cpp_err=$ac_c_preproc_warn_flag
6300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6307 if test -z "$ac_cpp_err"; then
6308 ac_header_preproc=yes
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_header_preproc=no
6315 rm -f conftest.err conftest.$ac_ext
6316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6317 echo "${ECHO_T}$ac_header_preproc" >&6
6319 # So? What about this header?
6320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6326 ac_header_preproc=yes
6329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6343 ## ------------------------------------------ ##
6344 ## Report this to the AC_PACKAGE_NAME lists. ##
6345 ## ------------------------------------------ ##
6348 sed "s/^/$as_me: WARNING: /" >&2
6351 echo "$as_me:$LINENO: checking for $ac_header" >&5
6352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 eval "$as_ac_Header=\$ac_header_preproc"
6358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6363 cat >>confdefs.h <<_ACEOF
6364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6375 for ac_func in getrusage time sigaction __setfpucw
6377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6378 echo "$as_me:$LINENO: checking for $ac_func" >&5
6379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6380 if eval "test \"\${$as_ac_var+set}\" = set"; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 cat >conftest.$ac_ext <<_ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6391 #define $ac_func innocuous_$ac_func
6393 /* System header to define __stub macros and hopefully few prototypes,
6394 which can conflict with char $ac_func (); below.
6395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6396 <limits.h> exists even on freestanding compilers. */
6399 # include <limits.h>
6401 # include <assert.h>
6406 /* Override any gcc2 internal prototype to avoid an error. */
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6414 /* The GNU C library defines this for functions which it implements
6415 to always fail with ENOSYS. Some functions are actually named
6416 something starting with __ and the normal name is an alias. */
6417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6420 char (*f) () = $ac_func;
6429 return f != $ac_func;
6434 rm -f conftest.$ac_objext conftest$ac_exeext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>conftest.er1
6438 grep -v '^ *+' conftest.er1 >conftest.err
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -z "$ac_c_werror_flag"
6444 || test ! -s conftest.err'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try='test -s conftest$ac_exeext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 eval "$as_ac_var=yes"
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 eval "$as_ac_var=no"
6463 rm -f conftest.err conftest.$ac_objext \
6464 conftest$ac_exeext conftest.$ac_ext
6466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6468 if test `eval echo '${'$as_ac_var'}'` = yes; then
6469 cat >>confdefs.h <<_ACEOF
6470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6477 # Check for socket libraries
6479 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6480 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6481 if test "${ac_cv_lib_socket_bind+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 ac_check_lib_save_LIBS=$LIBS
6485 LIBS="-lsocket $LIBS"
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6493 /* Override any gcc2 internal prototype to avoid an error. */
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510 (eval $ac_link) 2>conftest.er1
6512 grep -v '^ *+' conftest.er1 >conftest.err
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -z "$ac_c_werror_flag"
6518 || test ! -s conftest.err'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest$ac_exeext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 ac_cv_lib_socket_bind=yes
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 ac_cv_lib_socket_bind=no
6537 rm -f conftest.err conftest.$ac_objext \
6538 conftest$ac_exeext conftest.$ac_ext
6539 LIBS=$ac_check_lib_save_LIBS
6541 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6542 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6543 if test $ac_cv_lib_socket_bind = yes; then
6544 cat >>confdefs.h <<_ACEOF
6545 #define HAVE_LIBSOCKET 1
6548 LIBS="-lsocket $LIBS"
6553 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6554 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6555 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 ac_check_lib_save_LIBS=$LIBS
6560 cat >conftest.$ac_ext <<_ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6567 /* Override any gcc2 internal prototype to avoid an error. */
6571 /* We use char because int might match the return type of a gcc2
6572 builtin and then its argument prototype would still apply. */
6573 char gethostbyname ();
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6584 (eval $ac_link) 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
6591 { ac_try='test -z "$ac_c_werror_flag"
6592 || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest$ac_exeext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_cv_lib_nsl_gethostbyname=yes
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 ac_cv_lib_nsl_gethostbyname=no
6611 rm -f conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6613 LIBS=$ac_check_lib_save_LIBS
6615 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6616 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6617 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6618 cat >>confdefs.h <<_ACEOF
6619 #define HAVE_LIBNSL 1
6627 . ${srcdir}/../../bfd/configure.host
6631 USE_MAINTAINER_MODE=no
6632 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6633 if test "${enable_maintainer_mode+set}" = set; then
6634 enableval="$enable_maintainer_mode"
6635 case "${enableval}" in
6636 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6638 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6639 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6640 { (exit 1); exit 1; }; }; MAINT="#" ;;
6642 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6643 echo "Setting maintainer mode" 6>&1
6650 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6651 if test "${enable_sim_bswap+set}" = set; then
6652 enableval="$enable_sim_bswap"
6653 case "${enableval}" in
6654 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6655 no) sim_bswap="-DWITH_BSWAP=0";;
6656 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6657 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6658 { (exit 1); exit 1; }; }; sim_bswap="";;
6660 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6661 echo "Setting bswap flags = $sim_bswap" 6>&1
6668 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6669 if test "${enable_sim_cflags+set}" = set; then
6670 enableval="$enable_sim_cflags"
6671 case "${enableval}" in
6672 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6673 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6674 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6675 { (exit 1); exit 1; }; }; sim_cflags="";;
6677 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6679 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6680 echo "Setting sim cflags = $sim_cflags" 6>&1
6687 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6688 if test "${enable_sim_debug+set}" = set; then
6689 enableval="$enable_sim_debug"
6690 case "${enableval}" in
6691 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6692 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6693 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6695 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6696 echo "Setting sim debug = $sim_debug" 6>&1
6703 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6704 if test "${enable_sim_stdio+set}" = set; then
6705 enableval="$enable_sim_stdio"
6706 case "${enableval}" in
6707 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6708 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6709 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6710 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6711 { (exit 1); exit 1; }; }; sim_stdio="";;
6713 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6714 echo "Setting stdio flags = $sim_stdio" 6>&1
6721 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6722 if test "${enable_sim_trace+set}" = set; then
6723 enableval="$enable_sim_trace"
6724 case "${enableval}" in
6725 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6726 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6728 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6731 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6732 if test x"$sim_trace" = x; then
6733 sim_trace="-DWITH_TRACE='(TRACE_$x"
6735 sim_trace="${sim_trace}|TRACE_$x"
6738 sim_trace="$sim_trace)'" ;;
6740 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6741 echo "Setting sim trace = $sim_trace" 6>&1
6748 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6749 if test "${enable_sim_profile+set}" = set; then
6750 enableval="$enable_sim_profile"
6751 case "${enableval}" in
6752 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6753 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6755 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6758 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6759 if test x"$sim_profile" = x; then
6760 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6762 sim_profile="${sim_profile}|PROFILE_$x"
6765 sim_profile="$sim_profile)'" ;;
6767 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6768 echo "Setting sim profile = $sim_profile" 6>&1
6771 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6775 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6776 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6777 if test "${ac_cv_type_signal+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 cat >conftest.$ac_ext <<_ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <sys/types.h>
6792 extern "C" void (*signal (int, void (*)(int)))(int);
6794 void (*signal ()) ();
6805 rm -f conftest.$ac_objext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6807 (eval $ac_compile) 2>conftest.er1
6809 grep -v '^ *+' conftest.er1 >conftest.err
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -z "$ac_c_werror_flag"
6815 || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest.$ac_objext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_type_signal=void
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 ac_cv_type_signal=int
6834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6836 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6837 echo "${ECHO_T}$ac_cv_type_signal" >&6
6839 cat >>confdefs.h <<_ACEOF
6840 #define RETSIGTYPE $ac_cv_type_signal
6850 sim_link_links=tconfig.h
6851 if test -f ${srcdir}/tconfig.in
6853 sim_link_files=tconfig.in
6855 sim_link_files=../common/tconfig.in
6858 # targ-vals.def points to the libc macro description file.
6860 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6862 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6863 sim_link_links="${sim_link_links} targ-vals.def"
6868 default_sim_inline=""
6869 # Check whether --enable-sim-inline or --disable-sim-inline was given.
6870 if test "${enable_sim_inline+set}" = set; then
6871 enableval="$enable_sim_inline"
6873 case "$enableval" in
6874 no) sim_inline="-DDEFAULT_INLINE=0";;
6875 0) sim_inline="-DDEFAULT_INLINE=0";;
6876 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
6877 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
6878 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6881 *_INLINE=*) new_flag="-D$x";;
6882 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6883 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
6884 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
6886 if test x"$sim_inline" = x""; then
6887 sim_inline="$new_flag"
6889 sim_inline="$sim_inline $new_flag"
6893 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6894 echo "Setting inline flags = $sim_inline" 6>&1
6898 if test "x$cross_compiling" = "xno"; then
6899 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
6900 sim_inline="${default_sim_inline}"
6901 if test x"$silent" != x"yes"; then
6902 echo "Setting inline flags = $sim_inline" 6>&1
6908 sim_inline="-DDEFAULT_INLINE=0"
6911 wire_alignment="NONSTRICT_ALIGNMENT"
6912 default_alignment=""
6914 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
6915 if test "${enable_sim_alignment+set}" = set; then
6916 enableval="$enable_sim_alignment"
6917 case "${enableval}" in
6918 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
6919 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
6920 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
6921 yes) if test x"$wire_alignment" != x; then
6922 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6924 if test x"$default_alignment" != x; then
6925 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
6927 echo "No hard-wired alignment for target $target" 1>&6
6928 sim_alignment="-DWITH_ALIGNMENT=0"
6931 no) if test x"$default_alignment" != x; then
6932 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6934 if test x"$wire_alignment" != x; then
6935 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
6937 echo "No default alignment for target $target" 1>&6
6938 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
6941 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
6942 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
6943 { (exit 1); exit 1; }; }; sim_alignment="";;
6945 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
6946 echo "Setting alignment flags = $sim_alignment" 6>&1
6949 if test x"$default_alignment" != x; then
6950 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6952 if test x"$wire_alignment" != x; then
6953 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6960 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
6961 if test "${enable_sim_hostendian+set}" = set; then
6962 enableval="$enable_sim_hostendian"
6963 case "${enableval}" in
6964 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
6965 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6966 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
6967 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
6968 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
6969 { (exit 1); exit 1; }; }; sim_hostendian="";;
6971 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
6972 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6976 if test "x$cross_compiling" = "xno"; then
6977 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6978 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6979 if test "${ac_cv_c_bigendian+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 # See if sys/param.h defines the BYTE_ORDER macro.
6983 cat >conftest.$ac_ext <<_ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <sys/types.h>
6990 #include <sys/param.h>
6995 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7003 rm -f conftest.$ac_objext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005 (eval $ac_compile) 2>conftest.er1
7007 grep -v '^ *+' conftest.er1 >conftest.err
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest.$ac_objext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 # It does; now see whether it defined to BIG_ENDIAN or not.
7026 cat >conftest.$ac_ext <<_ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 #include <sys/types.h>
7033 #include <sys/param.h>
7038 #if BYTE_ORDER != BIG_ENDIAN
7046 rm -f conftest.$ac_objext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048 (eval $ac_compile) 2>conftest.er1
7050 grep -v '^ *+' conftest.er1 >conftest.err
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -z "$ac_c_werror_flag"
7056 || test ! -s conftest.err'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; } &&
7062 { ac_try='test -s conftest.$ac_objext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 ac_cv_c_bigendian=yes
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7073 ac_cv_c_bigendian=no
7075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 # It does not; compile a test program.
7081 if test "$cross_compiling" = yes; then
7082 # try to guess the endianness by grepping values into an object file
7083 ac_cv_c_bigendian=unknown
7084 cat >conftest.$ac_ext <<_ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7091 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7092 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7093 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7094 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7095 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7099 _ascii (); _ebcdic ();
7104 rm -f conftest.$ac_objext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>conftest.er1
7108 grep -v '^ *+' conftest.er1 >conftest.err
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_c_werror_flag"
7114 || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7127 ac_cv_c_bigendian=yes
7129 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7130 if test "$ac_cv_c_bigendian" = unknown; then
7131 ac_cv_c_bigendian=no
7133 # finding both strings is unlikely to happen, but who knows?
7134 ac_cv_c_bigendian=unknown
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7144 cat >conftest.$ac_ext <<_ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7153 /* Are we little or big endian? From Harbison&Steele. */
7157 char c[sizeof (long)];
7160 exit (u.c[sizeof (long) - 1] == 1);
7163 rm -f conftest$ac_exeext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7165 (eval $ac_link) 2>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_c_bigendian=no
7176 echo "$as_me: program exited with status $ac_status" >&5
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7181 ac_cv_c_bigendian=yes
7183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7188 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7189 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7190 case $ac_cv_c_bigendian in
7193 cat >>confdefs.h <<\_ACEOF
7194 #define WORDS_BIGENDIAN 1
7200 { { echo "$as_me:$LINENO: error: unknown endianness
7201 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7202 echo "$as_me: error: unknown endianness
7203 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7204 { (exit 1); exit 1; }; } ;;
7207 if test $ac_cv_c_bigendian = yes; then
7208 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7210 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7213 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
7217 # NOTE: Don't add -Wall or -Wunused, they both include
7218 # -Wunused-parameter which reports bogus warnings.
7219 # NOTE: If you add to this list, remember to update
7220 # gdb/doc/gdbint.texinfo.
7221 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7222 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7223 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7224 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7225 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7226 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7227 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7228 # -Woverloaded-virtual -Winline -Werror"
7229 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7230 if test "${enable_build_warnings+set}" = set; then
7231 enableval="$enable_build_warnings"
7232 case "${enableval}" in
7234 no) build_warnings="-w";;
7235 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7236 build_warnings="${build_warnings} ${t}";;
7237 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7238 build_warnings="${t} ${build_warnings}";;
7239 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7241 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7242 echo "Setting compiler warning flags = $build_warnings" 6>&1
7244 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7245 if test "${enable_sim_build_warnings+set}" = set; then
7246 enableval="$enable_sim_build_warnings"
7247 case "${enableval}" in
7249 no) build_warnings="-w";;
7250 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7251 build_warnings="${build_warnings} ${t}";;
7252 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7253 build_warnings="${t} ${build_warnings}";;
7254 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7256 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7257 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7261 if test "x${build_warnings}" != x -a "x$GCC" = xyes
7263 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7264 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7265 # Separate out the -Werror flag as some files just cannot be
7266 # compiled with it enabled.
7267 for w in ${build_warnings}; do
7269 -Werr*) WERROR_CFLAGS=-Werror ;;
7270 *) # Check that GCC accepts it
7271 saved_CFLAGS="$CFLAGS"
7273 cat >conftest.$ac_ext <<_ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7288 rm -f conftest.$ac_objext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7290 (eval $ac_compile) 2>conftest.er1
7292 grep -v '^ *+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } &&
7297 { ac_try='test -z "$ac_c_werror_flag"
7298 || test ! -s conftest.err'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; } &&
7304 { ac_try='test -s conftest.$ac_objext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 WARN_CFLAGS="${WARN_CFLAGS} $w"
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7317 CFLAGS="$saved_CFLAGS"
7320 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7321 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7326 # Add simulated hardware devices
7330 m68hc11-*-*|m6811-*-*)
7332 hw_extra_devices="m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram"
7333 m68hc11_extra_objs="dv-sockser.o"
7334 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_M68HC11=1"
7337 m68hc11_extra_objs=""
7341 if test x"$hw_enabled" = x"yes"; then
7346 if test "$hw_devices"; then
7347 hardware="core pal glue"
7349 hardware="core pal glue $hw_extra_devices"
7351 sim_hw_cflags="-DWITH_HW=1"
7353 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7354 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7355 if test "${enable_sim_hardware+set}" = set; then
7356 enableval="$enable_sim_hardware"
7358 case "${enableval}" in
7361 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7362 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7363 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7365 if test "$sim_hw_p" != yes; then
7367 sim_hw_cflags="-DWITH_HW=0"
7370 sim_hw_cflags="-DWITH_HW=1"
7373 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
7374 for i in x $hardware ; do
7378 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
7382 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
7383 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7387 if test "$sim_hw_p" != yes; then
7389 sim_hw_cflags="-DWITH_HW=0"
7392 if test x"$silent" != x"yes"; then
7393 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7402 for ac_header in string.h strings.h stdlib.h stdlib.h fcntl.h
7404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7406 echo "$as_me:$LINENO: checking for $ac_header" >&5
7407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7414 # Is the header compilable?
7415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 $ac_includes_default
7424 #include <$ac_header>
7426 rm -f conftest.$ac_objext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428 (eval $ac_compile) 2>conftest.er1
7430 grep -v '^ *+' conftest.er1 >conftest.err
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
7435 { ac_try='test -z "$ac_c_werror_flag"
7436 || test ! -s conftest.err'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; } &&
7442 { ac_try='test -s conftest.$ac_objext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 ac_header_compiler=yes
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7453 ac_header_compiler=no
7455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7457 echo "${ECHO_T}$ac_header_compiler" >&6
7459 # Is the header present?
7460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7462 cat >conftest.$ac_ext <<_ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <$ac_header>
7470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7473 grep -v '^ *+' conftest.er1 >conftest.err
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } >/dev/null; then
7478 if test -s conftest.err; then
7479 ac_cpp_err=$ac_c_preproc_warn_flag
7480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7487 if test -z "$ac_cpp_err"; then
7488 ac_header_preproc=yes
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 ac_header_preproc=no
7495 rm -f conftest.err conftest.$ac_ext
7496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7497 echo "${ECHO_T}$ac_header_preproc" >&6
7499 # So? What about this header?
7500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7506 ac_header_preproc=yes
7509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7523 ## ------------------------------------------ ##
7524 ## Report this to the AC_PACKAGE_NAME lists. ##
7525 ## ------------------------------------------ ##
7528 sed "s/^/$as_me: WARNING: /" >&2
7531 echo "$as_me:$LINENO: checking for $ac_header" >&5
7532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 eval "$as_ac_Header=\$ac_header_preproc"
7538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7543 cat >>confdefs.h <<_ACEOF
7544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7555 ac_sources="$sim_link_files"
7556 ac_dests="$sim_link_links"
7557 while test -n "$ac_sources"; do
7558 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7559 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7560 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
7562 ac_config_links="$ac_config_links $ac_config_links_1"
7565 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
7566 cgen_breaks="break cgen_rtx_error";
7569 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
7571 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
7573 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
7575 ac_config_commands="$ac_config_commands Makefile"
7577 ac_config_commands="$ac_config_commands stamp-h"
7579 cat >confcache <<\_ACEOF
7580 # This file is a shell script that caches the results of configure
7581 # tests run on this system so they can be shared between configure
7582 # scripts and configure runs, see configure's option --config-cache.
7583 # It is not useful on other systems. If it contains results you don't
7584 # want to keep, you may remove or edit it.
7586 # config.status only pays attention to the cache file if you give it
7587 # the --recheck option to rerun configure.
7589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7595 # The following way of writing the cache mishandles newlines in values,
7596 # but we know of no workaround that is simple, portable, and efficient.
7597 # So, don't put newlines in cache variables' values.
7598 # Ultrix sh set writes to stderr and can't be redirected directly,
7599 # and sets the high bit in the cache file unless we assign to the vars.
7602 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7604 # `set' does not quote correctly, so add quotes (double-quote
7605 # substitution turns \\\\ into \\, and sed turns \\ into \).
7608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7611 # `set' quotes correctly as required by POSIX, so do not add quotes.
7613 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7622 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7624 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7625 if test -w $cache_file; then
7626 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7627 cat confcache >$cache_file
7629 echo "not updating unwritable cache $cache_file"
7634 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7635 # Let make expand exec_prefix.
7636 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7638 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7639 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7640 # trailing colons and then remove the whole line if VPATH becomes empty
7641 # (actually we leave an empty line to preserve line numbers).
7642 if test "x$srcdir" = x.; then
7643 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7644 s/:*\$(srcdir):*/:/;
7645 s/:*\${srcdir}:*/:/;
7647 s/^\([^=]*=[ ]*\):*/\1/;
7653 DEFS=-DHAVE_CONFIG_H
7657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7658 # 1. Remove the extension, and $U if already installed.
7659 ac_i=`echo "$ac_i" |
7660 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7662 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7663 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7667 LTLIBOBJS=$ac_ltlibobjs
7671 : ${CONFIG_STATUS=./config.status}
7672 ac_clean_files_save=$ac_clean_files
7673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7674 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7675 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7676 cat >$CONFIG_STATUS <<_ACEOF
7678 # Generated by $as_me.
7679 # Run this file to recreate the current configuration.
7680 # Compiler output produced by configure, useful for debugging
7681 # configure, is in config.log if it exists.
7686 SHELL=\${CONFIG_SHELL-$SHELL}
7689 cat >>$CONFIG_STATUS <<\_ACEOF
7690 ## --------------------- ##
7691 ## M4sh Initialization. ##
7692 ## --------------------- ##
7694 # Be Bourne compatible
7695 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7698 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7699 # is contrary to our usage. Disable this feature.
7700 alias -g '${1+"$@"}'='"$@"'
7701 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7704 DUALCASE=1; export DUALCASE # for MKS sh
7706 # Support unset when possible.
7707 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7714 # Work around bugs in pre-3.0 UWIN ksh.
7715 $as_unset ENV MAIL MAILPATH
7722 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7723 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7724 LC_TELEPHONE LC_TIME
7726 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7727 eval $as_var=C; export $as_var
7733 # Required to use basename.
7734 if expr a : '\(a\)' >/dev/null 2>&1; then
7740 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7741 as_basename=basename
7747 # Name of the executable.
7748 as_me=`$as_basename "$0" ||
7749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7750 X"$0" : 'X\(//\)$' \| \
7751 X"$0" : 'X\(/\)$' \| \
7752 . : '\(.\)' 2>/dev/null ||
7754 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7755 /^X\/\(\/\/\)$/{ s//\1/; q; }
7756 /^X\/\(\/\).*/{ s//\1/; q; }
7760 # PATH needs CR, and LINENO needs CR and PATH.
7761 # Avoid depending upon Character Ranges.
7762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7765 as_cr_digits='0123456789'
7766 as_cr_alnum=$as_cr_Letters$as_cr_digits
7768 # The user is always right.
7769 if test "${PATH_SEPARATOR+set}" != set; then
7770 echo "#! /bin/sh" >conf$$.sh
7771 echo "exit 0" >>conf$$.sh
7773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7784 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7785 test "x$as_lineno_1" != "x$as_lineno_2" &&
7786 test "x$as_lineno_3" = "x$as_lineno_2" || {
7787 # Find who we are. Look in the path if we contain no path at all
7790 *[\\/]* ) as_myself=$0 ;;
7791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 test -z "$as_dir" && as_dir=.
7796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7801 # We did not find ourselves, most probably we were run as `sh COMMAND'
7802 # in which case we are not to be found in the path.
7803 if test "x$as_myself" = x; then
7806 if test ! -f "$as_myself"; then
7807 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7808 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7809 { (exit 1); exit 1; }; }
7811 case $CONFIG_SHELL in
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7817 test -z "$as_dir" && as_dir=.
7818 for as_base in sh bash ksh sh5; do
7821 if ("$as_dir/$as_base" -c '
7824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7825 test "x$as_lineno_1" != "x$as_lineno_2" &&
7826 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7827 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7828 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7829 CONFIG_SHELL=$as_dir/$as_base
7831 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7839 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7840 # uniformly replaced by the line number. The first 'sed' inserts a
7841 # line-number line before each line; the second 'sed' does the real
7842 # work. The second script uses 'N' to pair each line-number line
7843 # with the numbered line, and appends trailing '-' during
7844 # substitution so that $LINENO is not a special case at line end.
7845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7846 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7847 sed '=' <$as_myself |
7852 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7855 s,^['$as_cr_digits']*\n,,
7857 chmod +x $as_me.lineno ||
7858 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7859 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7860 { (exit 1); exit 1; }; }
7862 # Don't try to exec as it changes $[0], causing all sort of problems
7863 # (the dirname of $[0] is not the place where we might find the
7864 # original and so on. Autoconf is especially sensible to this).
7866 # Exit status is that of the last command.
7871 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7872 *c*,-n*) ECHO_N= ECHO_C='
7874 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7875 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7878 if expr a : '\(a\)' >/dev/null 2>&1; then
7884 rm -f conf$$ conf$$.exe conf$$.file
7886 if ln -s conf$$.file conf$$ 2>/dev/null; then
7887 # We could just check for DJGPP; but this test a) works b) is more generic
7888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7889 if test -f conf$$.exe; then
7890 # Don't use ln at all; we don't have any links
7895 elif ln conf$$.file conf$$ 2>/dev/null; then
7900 rm -f conf$$ conf$$.exe conf$$.file
7902 if mkdir -p . 2>/dev/null; then
7905 test -d ./-p && rmdir ./-p
7909 as_executable_p="test -f"
7911 # Sed expression to map a string onto a valid CPP name.
7912 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7914 # Sed expression to map a string onto a valid variable name.
7915 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7919 # We need space, tab and new line, in precisely that order.
7929 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7930 # report actual input values of CONFIG_FILES etc. instead of their
7931 # values after options handling. Logging --version etc. is OK.
7935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7936 ## Running $as_me. ##
7941 This file was extended by $as_me, which was
7942 generated by GNU Autoconf 2.59. Invocation command line was
7944 CONFIG_FILES = $CONFIG_FILES
7945 CONFIG_HEADERS = $CONFIG_HEADERS
7946 CONFIG_LINKS = $CONFIG_LINKS
7947 CONFIG_COMMANDS = $CONFIG_COMMANDS
7951 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7955 # Files that config.status was made for.
7956 if test -n "$ac_config_files"; then
7957 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7960 if test -n "$ac_config_headers"; then
7961 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7964 if test -n "$ac_config_links"; then
7965 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7968 if test -n "$ac_config_commands"; then
7969 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7972 cat >>$CONFIG_STATUS <<\_ACEOF
7975 \`$as_me' instantiates files from templates according to the
7976 current configuration.
7978 Usage: $0 [OPTIONS] [FILE]...
7980 -h, --help print this help, then exit
7981 -V, --version print version number, then exit
7982 -q, --quiet do not print progress messages
7983 -d, --debug don't remove temporary files
7984 --recheck update $as_me by reconfiguring in the same conditions
7985 --file=FILE[:TEMPLATE]
7986 instantiate the configuration file FILE
7987 --header=FILE[:TEMPLATE]
7988 instantiate the configuration header FILE
7990 Configuration files:
7993 Configuration headers:
7996 Configuration links:
7999 Configuration commands:
8002 Report bugs to <bug-autoconf@gnu.org>."
8005 cat >>$CONFIG_STATUS <<_ACEOF
8008 configured by $0, generated by GNU Autoconf 2.59,
8009 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8011 Copyright (C) 2003 Free Software Foundation, Inc.
8012 This config.status script is free software; the Free Software Foundation
8013 gives unlimited permission to copy, distribute and modify it."
8018 cat >>$CONFIG_STATUS <<\_ACEOF
8019 # If no file are specified by the user, then we need to provide default
8020 # value. By we need to know if files were specified by the user.
8026 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8027 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8035 *) # This is not an option, so the user has probably given explicit
8038 ac_need_defaults=false;;
8042 # Handling of the options.
8044 cat >>$CONFIG_STATUS <<\_ACEOF
8045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8047 --version | --vers* | -V )
8048 echo "$ac_cs_version"; exit 0 ;;
8050 # Conflict between --help and --header
8051 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8052 Try \`$0 --help' for more information." >&5
8053 echo "$as_me: error: ambiguous option: $1
8054 Try \`$0 --help' for more information." >&2;}
8055 { (exit 1); exit 1; }; };;
8056 --help | --hel | -h )
8057 echo "$ac_cs_usage"; exit 0 ;;
8058 --debug | --d* | -d )
8060 --file | --fil | --fi | --f )
8062 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8063 ac_need_defaults=false;;
8064 --header | --heade | --head | --hea )
8066 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8067 ac_need_defaults=false;;
8068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8069 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8073 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8074 Try \`$0 --help' for more information." >&5
8075 echo "$as_me: error: unrecognized option: $1
8076 Try \`$0 --help' for more information." >&2;}
8077 { (exit 1); exit 1; }; } ;;
8079 *) ac_config_targets="$ac_config_targets $1" ;;
8085 ac_configure_extra_args=
8087 if $ac_cs_silent; then
8089 ac_configure_extra_args="$ac_configure_extra_args --silent"
8093 cat >>$CONFIG_STATUS <<_ACEOF
8094 if \$ac_cs_recheck; then
8095 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8096 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8105 cat >>$CONFIG_STATUS <<\_ACEOF
8106 for ac_config_target in $ac_config_targets
8108 case "$ac_config_target" in
8109 # Handling of arguments.
8110 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8111 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8112 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8113 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
8114 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
8115 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
8116 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8117 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8118 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8119 { (exit 1); exit 1; }; };;
8123 # If the user did not use the arguments to specify the items to instantiate,
8124 # then the envvar interface is used. Set only those that are not.
8125 # We use the long form for the default assignment because of an extremely
8126 # bizarre bug on SunOS 4.1.3.
8127 if $ac_need_defaults; then
8128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8130 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8134 # Have a temporary directory for convenience. Make it in the build tree
8135 # simply because there is no reason to put it here, and in addition,
8136 # creating and moving files from /tmp can sometimes cause problems.
8137 # Create a temporary directory, and hook for its removal unless debugging.
8140 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8141 trap '{ (exit 1); exit 1; }' 1 2 13 15
8144 # Create a (secure) tmp directory for tmp files.
8147 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8148 test -n "$tmp" && test -d "$tmp"
8151 tmp=./confstat$$-$RANDOM
8152 (umask 077 && mkdir $tmp)
8155 echo "$me: cannot create a temporary directory in ." >&2
8156 { (exit 1); exit 1; }
8161 cat >>$CONFIG_STATUS <<_ACEOF
8164 # CONFIG_FILES section.
8167 # No need to generate the scripts if there are no CONFIG_FILES.
8168 # This happens for instance when ./config.status config.h
8169 if test -n "\$CONFIG_FILES"; then
8170 # Protect against being on the right side of a sed subst in config.status.
8171 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8172 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8173 s,@sim_environment@,$sim_environment,;t t
8174 s,@sim_alignment@,$sim_alignment,;t t
8175 s,@sim_assert@,$sim_assert,;t t
8176 s,@sim_bitsize@,$sim_bitsize,;t t
8177 s,@sim_endian@,$sim_endian,;t t
8178 s,@sim_hostendian@,$sim_hostendian,;t t
8179 s,@sim_float@,$sim_float,;t t
8180 s,@sim_scache@,$sim_scache,;t t
8181 s,@sim_default_model@,$sim_default_model,;t t
8182 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8183 s,@sim_hw_objs@,$sim_hw_objs,;t t
8184 s,@sim_hw@,$sim_hw,;t t
8185 s,@sim_inline@,$sim_inline,;t t
8186 s,@sim_packages@,$sim_packages,;t t
8187 s,@sim_regparm@,$sim_regparm,;t t
8188 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8189 s,@sim_smp@,$sim_smp,;t t
8190 s,@sim_stdcall@,$sim_stdcall,;t t
8191 s,@sim_xor_endian@,$sim_xor_endian,;t t
8192 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8193 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8194 s,@SHELL@,$SHELL,;t t
8195 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8196 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8197 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8198 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8199 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8200 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8201 s,@exec_prefix@,$exec_prefix,;t t
8202 s,@prefix@,$prefix,;t t
8203 s,@program_transform_name@,$program_transform_name,;t t
8204 s,@bindir@,$bindir,;t t
8205 s,@sbindir@,$sbindir,;t t
8206 s,@libexecdir@,$libexecdir,;t t
8207 s,@datadir@,$datadir,;t t
8208 s,@sysconfdir@,$sysconfdir,;t t
8209 s,@sharedstatedir@,$sharedstatedir,;t t
8210 s,@localstatedir@,$localstatedir,;t t
8211 s,@libdir@,$libdir,;t t
8212 s,@includedir@,$includedir,;t t
8213 s,@oldincludedir@,$oldincludedir,;t t
8214 s,@infodir@,$infodir,;t t
8215 s,@mandir@,$mandir,;t t
8216 s,@build_alias@,$build_alias,;t t
8217 s,@host_alias@,$host_alias,;t t
8218 s,@target_alias@,$target_alias,;t t
8220 s,@ECHO_C@,$ECHO_C,;t t
8221 s,@ECHO_N@,$ECHO_N,;t t
8222 s,@ECHO_T@,$ECHO_T,;t t
8224 s,@build@,$build,;t t
8225 s,@build_cpu@,$build_cpu,;t t
8226 s,@build_vendor@,$build_vendor,;t t
8227 s,@build_os@,$build_os,;t t
8229 s,@host_cpu@,$host_cpu,;t t
8230 s,@host_vendor@,$host_vendor,;t t
8231 s,@host_os@,$host_os,;t t
8232 s,@target@,$target,;t t
8233 s,@target_cpu@,$target_cpu,;t t
8234 s,@target_vendor@,$target_vendor,;t t
8235 s,@target_os@,$target_os,;t t
8237 s,@CFLAGS@,$CFLAGS,;t t
8238 s,@LDFLAGS@,$LDFLAGS,;t t
8239 s,@CPPFLAGS@,$CPPFLAGS,;t t
8240 s,@ac_ct_CC@,$ac_ct_CC,;t t
8241 s,@EXEEXT@,$EXEEXT,;t t
8242 s,@OBJEXT@,$OBJEXT,;t t
8243 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8244 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8245 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8246 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8247 s,@HDEFINES@,$HDEFINES,;t t
8249 s,@RANLIB@,$RANLIB,;t t
8250 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8251 s,@SET_MAKE@,$SET_MAKE,;t t
8253 s,@EGREP@,$EGREP,;t t
8254 s,@ALLOCA@,$ALLOCA,;t t
8255 s,@USE_NLS@,$USE_NLS,;t t
8256 s,@MSGFMT@,$MSGFMT,;t t
8257 s,@GMSGFMT@,$GMSGFMT,;t t
8258 s,@XGETTEXT@,$XGETTEXT,;t t
8259 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8260 s,@CATALOGS@,$CATALOGS,;t t
8261 s,@CATOBJEXT@,$CATOBJEXT,;t t
8262 s,@DATADIRNAME@,$DATADIRNAME,;t t
8263 s,@GMOFILES@,$GMOFILES,;t t
8264 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8265 s,@INTLDEPS@,$INTLDEPS,;t t
8266 s,@INTLLIBS@,$INTLLIBS,;t t
8267 s,@INTLOBJS@,$INTLOBJS,;t t
8268 s,@POFILES@,$POFILES,;t t
8269 s,@POSUB@,$POSUB,;t t
8270 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8271 s,@GT_NO@,$GT_NO,;t t
8272 s,@GT_YES@,$GT_YES,;t t
8273 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8275 s,@MAINT@,$MAINT,;t t
8276 s,@sim_bswap@,$sim_bswap,;t t
8277 s,@sim_cflags@,$sim_cflags,;t t
8278 s,@sim_debug@,$sim_debug,;t t
8279 s,@sim_stdio@,$sim_stdio,;t t
8280 s,@sim_trace@,$sim_trace,;t t
8281 s,@sim_profile@,$sim_profile,;t t
8282 s,@m68hc11_extra_objs@,$m68hc11_extra_objs,;t t
8283 s,@cgen_breaks@,$cgen_breaks,;t t
8284 s,@LIBOBJS@,$LIBOBJS,;t t
8285 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8290 cat >>$CONFIG_STATUS <<\_ACEOF
8291 # Split the substitutions into bite-sized pieces for seds with
8292 # small command number limits, like on Digital OSF/1 and HP-UX.
8294 ac_sed_frag=1 # Number of current file.
8295 ac_beg=1 # First line for current file.
8296 ac_end=$ac_max_sed_lines # Line after last line for current file.
8299 while $ac_more_lines; do
8300 if test $ac_beg -gt 1; then
8301 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8303 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8305 if test ! -s $tmp/subs.frag; then
8308 # The purpose of the label and of the branching condition is to
8309 # speed up the sed processing (if there are no `@' at all, there
8310 # is no need to browse any of the substitutions).
8311 # These are the two extra sed commands mentioned above.
8313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8314 if test -z "$ac_sed_cmds"; then
8315 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8317 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8319 ac_sed_frag=`expr $ac_sed_frag + 1`
8321 ac_end=`expr $ac_end + $ac_max_sed_lines`
8324 if test -z "$ac_sed_cmds"; then
8327 fi # test -n "$CONFIG_FILES"
8330 cat >>$CONFIG_STATUS <<\_ACEOF
8331 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8334 - | *:- | *:-:* ) # input from stdin
8336 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8340 * ) ac_file_in=$ac_file.in ;;
8343 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8344 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8346 X"$ac_file" : 'X\(//\)[^/]' \| \
8347 X"$ac_file" : 'X\(//\)$' \| \
8348 X"$ac_file" : 'X\(/\)' \| \
8349 . : '\(.\)' 2>/dev/null ||
8351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8353 /^X\(\/\/\)$/{ s//\1/; q; }
8354 /^X\(\/\).*/{ s//\1/; q; }
8356 { if $as_mkdir_p; then
8361 while test ! -d "$as_dir"; do
8362 as_dirs="$as_dir $as_dirs"
8363 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8365 X"$as_dir" : 'X\(//\)[^/]' \| \
8366 X"$as_dir" : 'X\(//\)$' \| \
8367 X"$as_dir" : 'X\(/\)' \| \
8368 . : '\(.\)' 2>/dev/null ||
8370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8372 /^X\(\/\/\)$/{ s//\1/; q; }
8373 /^X\(\/\).*/{ s//\1/; q; }
8376 test ! -n "$as_dirs" || mkdir $as_dirs
8377 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8378 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8379 { (exit 1); exit 1; }; }; }
8383 if test "$ac_dir" != .; then
8384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8385 # A "../" for each directory in $ac_dir_suffix.
8386 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8388 ac_dir_suffix= ac_top_builddir=
8392 .) # No --srcdir option. We are building in place.
8394 if test -z "$ac_top_builddir"; then
8397 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8399 [\\/]* | ?:[\\/]* ) # Absolute path.
8400 ac_srcdir=$srcdir$ac_dir_suffix;
8401 ac_top_srcdir=$srcdir ;;
8403 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8404 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8407 # Do not use `cd foo && pwd` to compute absolute paths, because
8408 # the directories may not exist.
8410 .) ac_abs_builddir="$ac_dir";;
8413 .) ac_abs_builddir=`pwd`;;
8414 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8415 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8418 case $ac_abs_builddir in
8419 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8421 case ${ac_top_builddir}. in
8422 .) ac_abs_top_builddir=$ac_abs_builddir;;
8423 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8424 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8427 case $ac_abs_builddir in
8428 .) ac_abs_srcdir=$ac_srcdir;;
8431 .) ac_abs_srcdir=$ac_abs_builddir;;
8432 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8433 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8436 case $ac_abs_builddir in
8437 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8439 case $ac_top_srcdir in
8440 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8441 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8442 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8449 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8452 if test x"$ac_file" != x-; then
8453 { echo "$as_me:$LINENO: creating $ac_file" >&5
8454 echo "$as_me: creating $ac_file" >&6;}
8457 # Let's still pretend it is `configure' which instantiates (i.e., don't
8458 # use $as_me), people would be surprised to read:
8459 # /* config.h. Generated by config.status. */
8460 if test x"$ac_file" = x-; then
8463 configure_input="$ac_file. "
8465 configure_input=$configure_input"Generated from `echo $ac_file_in |
8466 sed 's,.*/,,'` by configure."
8468 # First look for the input files in the build tree, otherwise in the
8470 ac_file_inputs=`IFS=:
8471 for f in $ac_file_in; do
8473 -) echo $tmp/stdin ;;
8475 # Absolute (can't be DOS-style, as IFS=:)
8476 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8477 echo "$as_me: error: cannot find input file: $f" >&2;}
8478 { (exit 1); exit 1; }; }
8481 if test -f "$f"; then
8484 elif test -f "$srcdir/$f"; then
8489 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8490 echo "$as_me: error: cannot find input file: $f" >&2;}
8491 { (exit 1); exit 1; }; }
8494 done` || { (exit 1); exit 1; }
8496 cat >>$CONFIG_STATUS <<_ACEOF
8500 cat >>$CONFIG_STATUS <<\_ACEOF
8502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8503 s,@configure_input@,$configure_input,;t t
8504 s,@srcdir@,$ac_srcdir,;t t
8505 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8506 s,@top_srcdir@,$ac_top_srcdir,;t t
8507 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8508 s,@builddir@,$ac_builddir,;t t
8509 s,@abs_builddir@,$ac_abs_builddir,;t t
8510 s,@top_builddir@,$ac_top_builddir,;t t
8511 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8512 s,@INSTALL@,$ac_INSTALL,;t t
8513 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8515 if test x"$ac_file" != x-; then
8516 mv $tmp/out $ac_file
8524 cat >>$CONFIG_STATUS <<\_ACEOF
8527 # CONFIG_HEADER section.
8530 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8531 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8533 # ac_d sets the value in "#define NAME VALUE" lines.
8534 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8535 ac_dB='[ ].*$,\1#\2'
8538 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8539 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8540 ac_uB='$,\1#\2define\3'
8544 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8547 - | *:- | *:-:* ) # input from stdin
8549 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8551 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8552 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8553 * ) ac_file_in=$ac_file.in ;;
8556 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8557 echo "$as_me: creating $ac_file" >&6;}
8559 # First look for the input files in the build tree, otherwise in the
8561 ac_file_inputs=`IFS=:
8562 for f in $ac_file_in; do
8564 -) echo $tmp/stdin ;;
8566 # Absolute (can't be DOS-style, as IFS=:)
8567 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8568 echo "$as_me: error: cannot find input file: $f" >&2;}
8569 { (exit 1); exit 1; }; }
8570 # Do quote $f, to prevent DOS paths from being IFS'd.
8573 if test -f "$f"; then
8576 elif test -f "$srcdir/$f"; then
8581 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8582 echo "$as_me: error: cannot find input file: $f" >&2;}
8583 { (exit 1); exit 1; }; }
8586 done` || { (exit 1); exit 1; }
8587 # Remove the trailing spaces.
8588 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8592 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8593 # `conftest.undefs', that substitutes the proper values into
8594 # config.h.in to produce config.h. The first handles `#define'
8595 # templates, and the second `#undef' templates.
8596 # And first: Protect against being on the right side of a sed subst in
8597 # config.status. Protect against being in an unquoted here document
8599 rm -f conftest.defines conftest.undefs
8600 # Using a here document instead of a string reduces the quoting nightmare.
8601 # Putting comments in sed scripts is not portable.
8603 # `end' is used to avoid that the second main sed command (meant for
8604 # 0-ary CPP macros) applies to n-ary macro definitions.
8605 # See the Autoconf documentation for `clear'.
8606 cat >confdef2sed.sed <<\_ACEOF
8611 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8613 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8616 # If some macros were called several times there might be several times
8617 # the same #defines, which is useless. Nevertheless, we may not want to
8618 # sort them, since we want the *last* AC-DEFINE to be honored.
8619 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8620 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8621 rm -f confdef2sed.sed
8623 # This sed command replaces #undef with comments. This is necessary, for
8624 # example, in the case of _POSIX_SOURCE, which is predefined and required
8625 # on some systems where configure will not decide to define it.
8626 cat >>conftest.undefs <<\_ACEOF
8627 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8630 # Break up conftest.defines because some shells have a limit on the size
8631 # of here documents, and old seds have small limits too (100 cmds).
8632 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8633 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8634 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8635 echo ' :' >>$CONFIG_STATUS
8637 while grep . conftest.defines >/dev/null
8639 # Write a limited-size here document to $tmp/defines.sed.
8640 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8641 # Speed up: don't consider the non `#define' lines.
8642 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8643 # Work around the forget-to-reset-the-flag bug.
8644 echo 't clr' >>$CONFIG_STATUS
8645 echo ': clr' >>$CONFIG_STATUS
8646 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8648 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8652 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8653 rm -f conftest.defines
8654 mv conftest.tail conftest.defines
8656 rm -f conftest.defines
8657 echo ' fi # grep' >>$CONFIG_STATUS
8658 echo >>$CONFIG_STATUS
8660 # Break up conftest.undefs because some shells have a limit on the size
8661 # of here documents, and old seds have small limits too (100 cmds).
8662 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8664 while grep . conftest.undefs >/dev/null
8666 # Write a limited-size here document to $tmp/undefs.sed.
8667 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8668 # Speed up: don't consider the non `#undef'
8669 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8670 # Work around the forget-to-reset-the-flag bug.
8671 echo 't clr' >>$CONFIG_STATUS
8672 echo ': clr' >>$CONFIG_STATUS
8673 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8675 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8679 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8680 rm -f conftest.undefs
8681 mv conftest.tail conftest.undefs
8683 rm -f conftest.undefs
8685 cat >>$CONFIG_STATUS <<\_ACEOF
8686 # Let's still pretend it is `configure' which instantiates (i.e., don't
8687 # use $as_me), people would be surprised to read:
8688 # /* config.h. Generated by config.status. */
8689 if test x"$ac_file" = x-; then
8690 echo "/* Generated by configure. */" >$tmp/config.h
8692 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8694 cat $tmp/in >>$tmp/config.h
8696 if test x"$ac_file" != x-; then
8697 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8698 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8699 echo "$as_me: $ac_file is unchanged" >&6;}
8701 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8702 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8703 X"$ac_file" : 'X\(//\)[^/]' \| \
8704 X"$ac_file" : 'X\(//\)$' \| \
8705 X"$ac_file" : 'X\(/\)' \| \
8706 . : '\(.\)' 2>/dev/null ||
8708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8710 /^X\(\/\/\)$/{ s//\1/; q; }
8711 /^X\(\/\).*/{ s//\1/; q; }
8713 { if $as_mkdir_p; then
8718 while test ! -d "$as_dir"; do
8719 as_dirs="$as_dir $as_dirs"
8720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8722 X"$as_dir" : 'X\(//\)[^/]' \| \
8723 X"$as_dir" : 'X\(//\)$' \| \
8724 X"$as_dir" : 'X\(/\)' \| \
8725 . : '\(.\)' 2>/dev/null ||
8727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8729 /^X\(\/\/\)$/{ s//\1/; q; }
8730 /^X\(\/\).*/{ s//\1/; q; }
8733 test ! -n "$as_dirs" || mkdir $as_dirs
8734 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8735 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8736 { (exit 1); exit 1; }; }; }
8739 mv $tmp/config.h $ac_file
8747 cat >>$CONFIG_STATUS <<\_ACEOF
8750 # CONFIG_LINKS section.
8753 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8754 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8755 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8757 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8758 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8760 if test ! -r $srcdir/$ac_source; then
8761 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8762 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8763 { (exit 1); exit 1; }; }
8767 # Make relative symlinks.
8768 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8769 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8770 X"$ac_dest" : 'X\(//\)[^/]' \| \
8771 X"$ac_dest" : 'X\(//\)$' \| \
8772 X"$ac_dest" : 'X\(/\)' \| \
8773 . : '\(.\)' 2>/dev/null ||
8775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8777 /^X\(\/\/\)$/{ s//\1/; q; }
8778 /^X\(\/\).*/{ s//\1/; q; }
8780 { if $as_mkdir_p; then
8781 mkdir -p "$ac_dest_dir"
8783 as_dir="$ac_dest_dir"
8785 while test ! -d "$as_dir"; do
8786 as_dirs="$as_dir $as_dirs"
8787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8789 X"$as_dir" : 'X\(//\)[^/]' \| \
8790 X"$as_dir" : 'X\(//\)$' \| \
8791 X"$as_dir" : 'X\(/\)' \| \
8792 . : '\(.\)' 2>/dev/null ||
8794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8796 /^X\(\/\/\)$/{ s//\1/; q; }
8797 /^X\(\/\).*/{ s//\1/; q; }
8800 test ! -n "$as_dirs" || mkdir $as_dirs
8801 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8802 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8803 { (exit 1); exit 1; }; }; }
8807 if test "$ac_dest_dir" != .; then
8808 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8809 # A "../" for each directory in $ac_dir_suffix.
8810 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8812 ac_dir_suffix= ac_top_builddir=
8816 .) # No --srcdir option. We are building in place.
8818 if test -z "$ac_top_builddir"; then
8821 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8823 [\\/]* | ?:[\\/]* ) # Absolute path.
8824 ac_srcdir=$srcdir$ac_dir_suffix;
8825 ac_top_srcdir=$srcdir ;;
8827 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8828 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8831 # Do not use `cd foo && pwd` to compute absolute paths, because
8832 # the directories may not exist.
8834 .) ac_abs_builddir="$ac_dest_dir";;
8836 case "$ac_dest_dir" in
8837 .) ac_abs_builddir=`pwd`;;
8838 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8839 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8842 case $ac_abs_builddir in
8843 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8845 case ${ac_top_builddir}. in
8846 .) ac_abs_top_builddir=$ac_abs_builddir;;
8847 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8848 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8851 case $ac_abs_builddir in
8852 .) ac_abs_srcdir=$ac_srcdir;;
8855 .) ac_abs_srcdir=$ac_abs_builddir;;
8856 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8857 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8860 case $ac_abs_builddir in
8861 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8863 case $ac_top_srcdir in
8864 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8865 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8866 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8872 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8873 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8876 # Try a symlink, then a hard link, then a copy.
8877 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8878 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8879 cp -p $srcdir/$ac_source $ac_dest ||
8880 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8881 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8882 { (exit 1); exit 1; }; }
8885 cat >>$CONFIG_STATUS <<\_ACEOF
8888 # CONFIG_COMMANDS section.
8890 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8891 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8892 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8893 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8894 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8895 X"$ac_dest" : 'X\(//\)[^/]' \| \
8896 X"$ac_dest" : 'X\(//\)$' \| \
8897 X"$ac_dest" : 'X\(/\)' \| \
8898 . : '\(.\)' 2>/dev/null ||
8900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8902 /^X\(\/\/\)$/{ s//\1/; q; }
8903 /^X\(\/\).*/{ s//\1/; q; }
8905 { if $as_mkdir_p; then
8910 while test ! -d "$as_dir"; do
8911 as_dirs="$as_dir $as_dirs"
8912 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8914 X"$as_dir" : 'X\(//\)[^/]' \| \
8915 X"$as_dir" : 'X\(//\)$' \| \
8916 X"$as_dir" : 'X\(/\)' \| \
8917 . : '\(.\)' 2>/dev/null ||
8919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8921 /^X\(\/\/\)$/{ s//\1/; q; }
8922 /^X\(\/\).*/{ s//\1/; q; }
8925 test ! -n "$as_dirs" || mkdir $as_dirs
8926 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8927 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8928 { (exit 1); exit 1; }; }; }
8932 if test "$ac_dir" != .; then
8933 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8934 # A "../" for each directory in $ac_dir_suffix.
8935 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8937 ac_dir_suffix= ac_top_builddir=
8941 .) # No --srcdir option. We are building in place.
8943 if test -z "$ac_top_builddir"; then
8946 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8948 [\\/]* | ?:[\\/]* ) # Absolute path.
8949 ac_srcdir=$srcdir$ac_dir_suffix;
8950 ac_top_srcdir=$srcdir ;;
8952 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8953 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8956 # Do not use `cd foo && pwd` to compute absolute paths, because
8957 # the directories may not exist.
8959 .) ac_abs_builddir="$ac_dir";;
8962 .) ac_abs_builddir=`pwd`;;
8963 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8964 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8967 case $ac_abs_builddir in
8968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8970 case ${ac_top_builddir}. in
8971 .) ac_abs_top_builddir=$ac_abs_builddir;;
8972 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8973 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8976 case $ac_abs_builddir in
8977 .) ac_abs_srcdir=$ac_srcdir;;
8980 .) ac_abs_srcdir=$ac_abs_builddir;;
8981 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8982 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8985 case $ac_abs_builddir in
8986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8988 case $ac_top_srcdir in
8989 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8990 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8991 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8996 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8997 echo "$as_me: executing $ac_dest commands" >&6;}
8999 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9000 rm -f Makesim1.tmp Makesim2.tmp Makefile
9001 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
9002 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
9003 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9004 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9005 <Makefile.sim >Makefile
9006 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9008 stamp-h ) echo > stamp-h ;;
9013 cat >>$CONFIG_STATUS <<\_ACEOF
9015 { (exit 0); exit 0; }
9017 chmod +x $CONFIG_STATUS
9018 ac_clean_files=$ac_clean_files_save
9021 # configure is writing to config.log, and then calls config.status.
9022 # config.status does its own redirection, appending to config.log.
9023 # Unfortunately, on DOS this fails, as config.log is still kept open
9024 # by configure, so config.status won't be able to write to it; its
9025 # output is simply discarded. So we exec the FD to /dev/null,
9026 # effectively closing config.log, so it can be properly (re)opened and
9027 # appended to by config.status. When coming back to configure, we
9028 # need to make the FD available again.
9029 if test "$no_create" != yes; then
9031 ac_config_status_args=
9032 test "$silent" = yes &&
9033 ac_config_status_args="$ac_config_status_args --quiet"
9035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9038 # would make configure fail if this is the last instruction.
9039 $ac_cs_success || { (exit 1); exit 1; }