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='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 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 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 USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI 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 --enable-maintainer-mode Enable developer functionality.
854 --enable-sim-bswap Use Host specific BSWAP instruction.
855 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
856 --enable-sim-debug=opts Enable debugging flags
857 --enable-sim-stdio Specify whether to use stdio for console input/output.
858 --enable-sim-trace=opts Enable tracing flags
859 --enable-sim-profile=opts Enable profiling flags
860 --enable-build-warnings Enable build-time compiler warnings if gcc is used
861 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
867 --with-bugurl=URL Direct users to URL to report a bug
869 Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
878 Use these variables to override the choices made by `configure' or to help
879 it to find libraries and programs with nonstandard names/locations.
884 if test "$ac_init_help" = "recursive"; then
885 # If there are subdirs, report their specific --help.
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888 test -d $ac_dir || continue
891 if test "$ac_dir" != .; then
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893 # A "../" for each directory in $ac_dir_suffix.
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 ac_dir_suffix= ac_top_builddir=
900 .) # No --srcdir option. We are building in place.
902 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_srcdir=$srcdir$ac_dir_suffix;
909 ac_top_srcdir=$srcdir ;;
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 # Do not use `cd foo && pwd` to compute absolute paths, because
916 # the directories may not exist.
918 .) ac_abs_builddir="$ac_dir";;
921 .) ac_abs_builddir=`pwd`;;
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 case $ac_abs_builddir in
927 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 case ${ac_top_builddir}. in
930 .) ac_abs_top_builddir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 case $ac_abs_builddir in
936 .) ac_abs_srcdir=$ac_srcdir;;
939 .) ac_abs_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 case $ac_abs_builddir in
945 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 case $ac_top_srcdir in
948 .) ac_abs_top_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 # Check for guested configure; otherwise get Cygnus style configure.
956 if test -f $ac_srcdir/configure.gnu; then
958 $SHELL $ac_srcdir/configure.gnu --help=recursive
959 elif test -f $ac_srcdir/configure; then
961 $SHELL $ac_srcdir/configure --help=recursive
962 elif test -f $ac_srcdir/configure.ac ||
963 test -f $ac_srcdir/configure.in; then
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 test -n "$ac_init_help" && exit 0
974 if $ac_init_version; then
977 Copyright (C) 2003 Free Software Foundation, Inc.
978 This configure script is free software; the Free Software Foundation
979 gives unlimited permission to copy, distribute and modify it.
985 This file contains any messages produced by compilers while
986 running configure, to aid debugging if configure makes a mistake.
988 It was created by $as_me, which was
989 generated by GNU Autoconf 2.59. Invocation command line was
1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023 test -z "$as_dir" && as_dir=.
1024 echo "PATH: $as_dir"
1039 # Keep a trace of the command line.
1040 # Strip out --no-create and --no-recursion so they do not pile up.
1041 # Strip out --silent because we don't want to record it for future runs.
1042 # Also quote any args containing shell meta-characters.
1043 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_must_keep_next=false
1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1065 if test $ac_must_keep_next = true; then
1066 ac_must_keep_next=false # Got value, back to normal.
1069 *=* | --config-cache | -C | -disable-* | --disable-* \
1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1072 | -with-* | --with-* | -without-* | --without-* | --x)
1073 case "$ac_configure_args0 " in
1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 -* ) ac_must_keep_next=true ;;
1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 # Get rid of the leading space.
1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090 # When interrupted or exit'd, cleanup temporary files, and complete
1091 # config.log. We remove comments because anyway the quotes in there
1092 # would cause problems or look ugly.
1093 # WARNING: Be sure not to use single quotes in there, as some shells,
1094 # such as our DU 5.0 friend, will then `close' the trap.
1095 trap 'exit_status=$?
1096 # Save into config.log some information that might help in debugging.
1101 ## ---------------- ##
1102 ## Cache variables. ##
1103 ## ---------------- ##
1106 # The following way of writing the cache mishandles newlines in values,
1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ## ----------------- ##
1125 ## Output variables. ##
1126 ## ----------------- ##
1129 for ac_var in $ac_subst_vars
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -n "$ac_subst_files"; then
1143 for ac_var in $ac_subst_files
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -s confdefs.h; then
1158 sed "/^$/d" confdefs.h | sort
1161 test "$ac_signal" != 0 &&
1162 echo "$as_me: caught signal $ac_signal"
1163 echo "$as_me: exit $exit_status"
1165 rm -f core *.core &&
1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 for ac_signal in 1 2 13 15; do
1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1175 rm -rf conftest* confdefs.h
1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 # Predefined preprocessor variables.
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_NAME "$PACKAGE_NAME"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_STRING "$PACKAGE_STRING"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206 # Let the site file select an alternate cache file if it wants to.
1207 # Prefer explicitly selected file to automatically selected ones.
1208 if test -z "$CONFIG_SITE"; then
1209 if test "x$prefix" != xNONE; then
1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 for ac_site_file in $CONFIG_SITE; do
1216 if test -r "$ac_site_file"; then
1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1218 echo "$as_me: loading site script $ac_site_file" >&6;}
1219 sed 's/^/| /' "$ac_site_file" >&5
1224 if test -r "$cache_file"; then
1225 # Some versions of bash will fail to source /dev/null (special
1226 # files actually), so we avoid doing that.
1227 if test -f "$cache_file"; then
1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1229 echo "$as_me: loading cache $cache_file" >&6;}
1231 [\\/]* | ?:[\\/]* ) . $cache_file;;
1232 *) . ./$cache_file;;
1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1237 echo "$as_me: creating cache $cache_file" >&6;}
1241 # Check that the precious variables saved in the cache have kept the same
1243 ac_cache_corrupted=false
1244 for ac_var in `(set) 2>&1 |
1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1247 eval ac_new_set=\$ac_env_${ac_var}_set
1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1249 eval ac_new_val="\$ac_env_${ac_var}_value"
1250 case $ac_old_set,$ac_new_set in
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1261 if test "x$ac_old_val" != "x$ac_new_val"; then
1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265 echo "$as_me: former value: $ac_old_val" >&2;}
1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267 echo "$as_me: current value: $ac_new_val" >&2;}
1268 ac_cache_corrupted=:
1271 # Pass precious variables to config.status.
1272 if test "$ac_new_set" = set; then
1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1276 *) ac_arg=$ac_var=$ac_new_val ;;
1278 case " $ac_configure_args " in
1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284 if $ac_cache_corrupted; then
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316 ac_config_headers="$ac_config_headers config.h:config.in"
1319 # This file contains common code used by all simulators.
1321 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1322 # directory. It is intended to be invoked before any target specific stuff.
1323 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1324 # It is intended to be invoked last.
1326 # The simulator's configure.in should look like:
1328 # dnl Process this file with autoconf to produce a configure script.
1329 # sinclude(../common/aclocal.m4)
1331 # AC_INIT(Makefile.in)
1335 # ... target specific stuff ...
1386 sim_inline="-DDEFAULT_INLINE=0"
1423 # intl sister-directory configuration rules.
1426 # The idea behind this macro is that there's no need to repeat all the
1427 # autoconf probes done by the intl directory - it's already done them
1428 # for us. In fact, there's no need even to look at the cache for the
1429 # answers. All we need to do is nab a few pieces of information.
1430 # The intl directory is set up to make this easy, by generating a
1431 # small file which can be sourced as a shell script; then we produce
1432 # the necessary substitutions and definitions for this directory.
1436 # Autoconf M4 include file defining utility macros for complex Canadian
1448 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1450 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1453 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1454 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
1458 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1459 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
1463 # Backported from Autoconf 2.5x; can go away when and if
1464 # we switch. Put the OS path separator in $PATH_SEPARATOR.
1469 # ACX_HAVE_GCC_FOR_TARGET
1470 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
1473 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
1474 # Searching for installed target binutils. We need to take extra care,
1475 # else we may find the wrong assembler, linker, etc., and lose.
1477 # First try --with-build-time-tools, if specified.
1479 # For build != host, we ask the installed GCC for the name of the tool it
1480 # uses, and accept it if it is an absolute path. This is because the
1481 # only good choice for a compiler is the same GCC version that is being
1482 # installed (or we couldn't make target libraries), and we assume that
1483 # on the host system we'll have not only the same GCC version, but also
1484 # the same binutils version.
1486 # For build == host, search the same directories that the installed
1487 # compiler will search. We used to do this for the assembler, linker,
1488 # and nm only; for simplicity of configuration, however, we extend this
1489 # criterion to tools (such as ar and ranlib) that are never invoked by
1490 # the compiler, to avoid mismatches.
1492 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
1493 # if build == target. This makes the most sense only when bootstrapping,
1494 # but we also do so when build != host. In this case, we hope that the
1495 # build and host systems will have similar contents of MD_EXEC_PREFIX.
1497 # If we do not find a suitable binary, then try the user's path.
1501 # AC_PROG_CPP_WERROR
1502 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1503 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
1504 # For now, using this also overrides header checks to use only the
1505 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1506 # bit harder from here).
1507 # Eventually autoconf will default to checking headers with the compiler
1508 # instead, and we'll have to do this differently.
1510 # AC_PROG_CPP_WERROR
1513 # We require the gnatbind program, and a compiler driver that
1514 # understands Ada. We use the user's CC setting, already found,
1515 # and possibly add $1 to the command-line parameters.
1517 # Sets the shell variable have_gnat to yes or no as appropriate, and
1518 # substitutes GNATBIND and GNATMAKE.
1544 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1545 # it by inlining the macro's contents.
1546 # This file contains common code used by all simulators.
1548 # common.m4 invokes AC macros used by all simulators and by the common
1549 # directory. It is intended to be included before any target specific
1550 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1551 # the Makefile. It is intended to be invoked last.
1553 # The simulator's configure.in should look like:
1555 # dnl Process this file with autoconf to produce a configure script.
1557 # AC_INIT(Makefile.in)
1558 # AC_CONFIG_HEADER(config.h:config.in)
1560 # sinclude(../common/aclocal.m4)
1561 # sinclude(../common/common.m4)
1563 # ... target specific stuff ...
1566 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1567 if test -f $ac_dir/install-sh; then
1569 ac_install_sh="$ac_aux_dir/install-sh -c"
1571 elif test -f $ac_dir/install.sh; then
1573 ac_install_sh="$ac_aux_dir/install.sh -c"
1575 elif test -f $ac_dir/shtool; then
1577 ac_install_sh="$ac_aux_dir/shtool install -c"
1581 if test -z "$ac_aux_dir"; then
1582 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1583 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1584 { (exit 1); exit 1; }; }
1586 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1587 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1588 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1590 # Make sure we can run config.sub.
1591 $ac_config_sub sun4 >/dev/null 2>&1 ||
1592 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1593 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1594 { (exit 1); exit 1; }; }
1596 echo "$as_me:$LINENO: checking build system type" >&5
1597 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1598 if test "${ac_cv_build+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 ac_cv_build_alias=$build_alias
1602 test -z "$ac_cv_build_alias" &&
1603 ac_cv_build_alias=`$ac_config_guess`
1604 test -z "$ac_cv_build_alias" &&
1605 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1606 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1607 { (exit 1); exit 1; }; }
1608 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1615 echo "${ECHO_T}$ac_cv_build" >&6
1617 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622 echo "$as_me:$LINENO: checking host system type" >&5
1623 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1624 if test "${ac_cv_host+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 ac_cv_host_alias=$host_alias
1628 test -z "$ac_cv_host_alias" &&
1629 ac_cv_host_alias=$ac_cv_build_alias
1630 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1632 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1633 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1637 echo "${ECHO_T}$ac_cv_host" >&6
1639 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644 echo "$as_me:$LINENO: checking target system type" >&5
1645 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1646 if test "${ac_cv_target+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 ac_cv_target_alias=$target_alias
1650 test "x$ac_cv_target_alias" = "x" &&
1651 ac_cv_target_alias=$ac_cv_host_alias
1652 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1653 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1654 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1655 { (exit 1); exit 1; }; }
1658 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1659 echo "${ECHO_T}$ac_cv_target" >&6
1660 target=$ac_cv_target
1661 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1666 # The aliases save the names the user supplied, while $host etc.
1667 # will get canonicalized.
1668 test -n "$target_alias" &&
1669 test "$program_prefix$program_suffix$program_transform_name" = \
1671 program_prefix=${target_alias}-
1672 test "$program_prefix" != NONE &&
1673 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1674 # Use a double $ so make ignores it.
1675 test "$program_suffix" != NONE &&
1676 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1677 # Double any \ or $. echo might interpret backslashes.
1678 # By default was `s,x,x', remove it if useless.
1679 cat <<\_ACEOF >conftest.sed
1680 s/[\\$]/&&/g;s/;s,x,x,$//
1682 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1686 ac_cpp='$CPP $CPPFLAGS'
1687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1690 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1727 if test -z "$ac_cv_prog_CC"; then
1729 # Extract the first word of "gcc", so it can be a program name with args.
1730 set dummy gcc; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 if test -n "$ac_ct_CC"; then
1737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_CC="gcc"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756 if test -n "$ac_ct_CC"; then
1757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758 echo "${ECHO_T}$ac_ct_CC" >&6
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1769 if test -z "$CC"; then
1770 if test -n "$ac_tool_prefix"; then
1771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1772 set dummy ${ac_tool_prefix}cc; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_CC+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 if test -n "$CC"; then
1779 ac_cv_prog_CC="$CC" # Let the user override the test.
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 test -z "$as_dir" && as_dir=.
1786 for ac_exec_ext in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 ac_cv_prog_CC="${ac_tool_prefix}cc"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 if test -n "$CC"; then
1799 echo "$as_me:$LINENO: result: $CC" >&5
1800 echo "${ECHO_T}$CC" >&6
1802 echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1807 if test -z "$ac_cv_prog_CC"; then
1809 # Extract the first word of "cc", so it can be a program name with args.
1810 set dummy cc; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 if test -n "$ac_ct_CC"; then
1817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_ac_ct_CC="cc"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1836 if test -n "$ac_ct_CC"; then
1837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1838 echo "${ECHO_T}$ac_ct_CC" >&6
1840 echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1850 if test -z "$CC"; then
1851 # Extract the first word of "cc", so it can be a program name with args.
1852 set dummy cc; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 if test -n "$CC"; then
1859 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1870 ac_prog_rejected=yes
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 if test $ac_prog_rejected = yes; then
1881 # We found a bogon in the path, so make sure we never use it.
1882 set dummy $ac_cv_prog_CC
1884 if test $# != 0; then
1885 # We chose a different compiler from the bogus one.
1886 # However, it has the same basename, so the bogon will be chosen
1887 # first if we set CC to just the basename; use the full file name.
1889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1895 if test -n "$CC"; then
1896 echo "$as_me:$LINENO: result: $CC" >&5
1897 echo "${ECHO_T}$CC" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1904 if test -z "$CC"; then
1905 if test -n "$ac_tool_prefix"; then
1908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 if test -n "$CC"; then
1936 echo "$as_me:$LINENO: result: $CC" >&5
1937 echo "${ECHO_T}$CC" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1943 test -n "$CC" && break
1946 if test -z "$CC"; then
1950 # Extract the first word of "$ac_prog", so it can be a program name with args.
1951 set dummy $ac_prog; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test -n "$ac_ct_CC"; then
1958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 ac_cv_prog_ac_ct_CC="$ac_prog"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1977 if test -n "$ac_ct_CC"; then
1978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1979 echo "${ECHO_T}$ac_ct_CC" >&6
1981 echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1985 test -n "$ac_ct_CC" && break
1994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1995 See \`config.log' for more details." >&5
1996 echo "$as_me: error: no acceptable C compiler found in \$PATH
1997 See \`config.log' for more details." >&2;}
1998 { (exit 1); exit 1; }; }
2000 # Provide some information about the compiler.
2001 echo "$as_me:$LINENO:" \
2002 "checking for C compiler version" >&5
2003 ac_compiler=`set X $ac_compile; echo $2`
2004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2005 (eval $ac_compiler --version </dev/null >&5) 2>&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }
2009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2010 (eval $ac_compiler -v </dev/null >&5) 2>&5
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }
2014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2015 (eval $ac_compiler -V </dev/null >&5) 2>&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }
2020 cat >conftest.$ac_ext <<_ACEOF
2023 cat confdefs.h >>conftest.$ac_ext
2024 cat >>conftest.$ac_ext <<_ACEOF
2025 /* end confdefs.h. */
2035 ac_clean_files_save=$ac_clean_files
2036 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2037 # Try to create an executable without -o first, disregard a.out.
2038 # It will help us diagnose broken compilers, and finding out an intuition
2040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2042 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2044 (eval $ac_link_default) 2>&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; then
2048 # Find the output, starting from the most likely. This scheme is
2049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2052 # Be careful to initialize this variable, since it used to be cached.
2053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2055 # b.out is created by i960 compilers.
2056 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2058 test -f "$ac_file" || continue
2060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2063 # This is the source file.
2066 # We found the default executable, but exeext='' is most
2070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2071 # FIXME: I believe we export ac_cv_exeext for Libtool,
2072 # but it would be cool to find out if it's true. Does anybody
2073 # maintain Libtool? --akim.
2081 echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: C compiler cannot create executables
2087 See \`config.log' for more details." >&2;}
2088 { (exit 77); exit 77; }; }
2091 ac_exeext=$ac_cv_exeext
2092 echo "$as_me:$LINENO: result: $ac_file" >&5
2093 echo "${ECHO_T}$ac_file" >&6
2095 # Check the compiler produces executables we can run. If not, either
2096 # the compiler is broken, or we cross compile.
2097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2100 # If not cross compiling, check that we can run a simple program.
2101 if test "$cross_compiling" != yes; then
2102 if { ac_try='./$ac_file'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; }; then
2110 if test "$cross_compiling" = maybe; then
2113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2114 If you meant to cross compile, use \`--host'.
2115 See \`config.log' for more details." >&5
2116 echo "$as_me: error: cannot run C compiled programs.
2117 If you meant to cross compile, use \`--host'.
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2123 echo "$as_me:$LINENO: result: yes" >&5
2124 echo "${ECHO_T}yes" >&6
2126 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2127 ac_clean_files=$ac_clean_files_save
2128 # Check the compiler produces executables we can run. If not, either
2129 # the compiler is broken, or we cross compile.
2130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2133 echo "${ECHO_T}$cross_compiling" >&6
2135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2138 (eval $ac_link) 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; then
2142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2144 # work properly (i.e., refer to `conftest.exe'), while it won't with
2146 for ac_file in conftest.exe conftest conftest.*; do
2147 test -f "$ac_file" || continue
2149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2160 See \`config.log' for more details." >&2;}
2161 { (exit 1); exit 1; }; }
2164 rm -f conftest$ac_cv_exeext
2165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2166 echo "${ECHO_T}$ac_cv_exeext" >&6
2168 rm -f conftest.$ac_ext
2169 EXEEXT=$ac_cv_exeext
2171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2173 if test "${ac_cv_objext+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 cat >conftest.$ac_ext <<_ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2191 rm -f conftest.o conftest.obj
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; then
2197 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2211 See \`config.log' for more details." >&2;}
2212 { (exit 1); exit 1; }; }
2215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2218 echo "${ECHO_T}$ac_cv_objext" >&6
2219 OBJEXT=$ac_cv_objext
2221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 cat >conftest.$ac_ext <<_ACEOF
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2244 rm -f conftest.$ac_objext
2245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246 (eval $ac_compile) 2>conftest.er1
2248 grep -v '^ *+' conftest.er1 >conftest.err
2250 cat conftest.err >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); } &&
2253 { ac_try='test -z "$ac_c_werror_flag"
2254 || test ! -s conftest.err'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; } &&
2260 { ac_try='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2279 GCC=`test $ac_compiler_gnu = yes && echo yes`
2280 ac_test_CFLAGS=${CFLAGS+set}
2281 ac_save_CFLAGS=$CFLAGS
2283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2285 if test "${ac_cv_prog_cc_g+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 cat >conftest.$ac_ext <<_ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2303 rm -f conftest.$ac_objext
2304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305 (eval $ac_compile) 2>conftest.er1
2307 grep -v '^ *+' conftest.er1 >conftest.err
2309 cat conftest.err >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); } &&
2312 { ac_try='test -z "$ac_c_werror_flag"
2313 || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2336 if test "$ac_test_CFLAGS" = set; then
2337 CFLAGS=$ac_save_CFLAGS
2338 elif test $ac_cv_prog_cc_g = yes; then
2339 if test "$GCC" = yes; then
2345 if test "$GCC" = yes; then
2351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 ac_cv_prog_cc_stdc=no
2358 cat >conftest.$ac_ext <<_ACEOF
2361 cat confdefs.h >>conftest.$ac_ext
2362 cat >>conftest.$ac_ext <<_ACEOF
2363 /* end confdefs.h. */
2366 #include <sys/types.h>
2367 #include <sys/stat.h>
2368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2369 struct buf { int x; };
2370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2371 static char *e (p, i)
2377 static char *f (char * (*g) (char **, int), char **p, ...)
2382 s = g (p, va_arg (v,int));
2387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2388 function prototypes and stuff, but not '\xHH' hex character constants.
2389 These don't provoke an error unfortunately, instead are silently treated
2390 as 'x'. The following induces an error, until -std1 is added to get
2391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2392 array size at least. It's necessary to write '\x00'==0 to get something
2393 that's true only with -std1. */
2394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2396 int test (int i, double x);
2397 struct s1 {int (*f) (int a);};
2398 struct s2 {int (*f) (double a);};
2399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2410 # Don't try gcc -ansi; that turns off useful extensions and
2411 # breaks some systems' header files.
2412 # AIX -qlanglvl=ansi
2413 # Ultrix and OSF/1 -std1
2414 # HP-UX 10.20 and later -Ae
2415 # HP-UX older versions -Aa -D_HPUX_SOURCE
2416 # SVR4 -Xc -D__EXTENSIONS__
2417 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2419 CC="$ac_save_CC $ac_arg"
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422 (eval $ac_compile) 2>conftest.er1
2424 grep -v '^ *+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag"
2430 || test ! -s conftest.err'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; } &&
2436 { ac_try='test -s conftest.$ac_objext'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
2442 ac_cv_prog_cc_stdc=$ac_arg
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2449 rm -f conftest.err conftest.$ac_objext
2451 rm -f conftest.$ac_ext conftest.$ac_objext
2456 case "x$ac_cv_prog_cc_stdc" in
2458 echo "$as_me:$LINENO: result: none needed" >&5
2459 echo "${ECHO_T}none needed" >&6 ;;
2461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2462 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2463 CC="$CC $ac_cv_prog_cc_stdc" ;;
2466 # Some people use a C++ compiler to compile C. Since we use `exit',
2467 # in C++ we need to declare it. In case someone uses the same compiler
2468 # for both compiling C and C++ we need to have the C++ compiler decide
2469 # the declaration of exit, since it's the most demanding environment.
2470 cat >conftest.$ac_ext <<_ACEOF
2475 rm -f conftest.$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2479 grep -v '^ *+' conftest.er1 >conftest.err
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2497 for ac_declaration in \
2499 'extern "C" void std::exit (int) throw (); using std::exit;' \
2500 'extern "C" void std::exit (int); using std::exit;' \
2501 'extern "C" void exit (int) throw ();' \
2502 'extern "C" void exit (int);' \
2505 cat >conftest.$ac_ext <<_ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>conftest.er1
2525 grep -v '^ *+' conftest.er1 >conftest.err
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag"
2531 || test ! -s conftest.err'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2551 cat >conftest.$ac_ext <<_ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>conftest.er1
2570 grep -v '^ *+' conftest.er1 >conftest.err
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag"
2576 || test ! -s conftest.err'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2597 if test -n "$ac_declaration"; then
2598 echo '#ifdef __cplusplus' >>confdefs.h
2599 echo $ac_declaration >>confdefs.h
2600 echo '#endif' >>confdefs.h
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615 # Find a good install program. We prefer a C program (faster),
2616 # so one script is as good as another. But avoid the broken or
2617 # incompatible versions:
2618 # SysV /etc/install, /usr/sbin/install
2619 # SunOS /usr/etc/install
2620 # IRIX /sbin/install
2622 # AmigaOS /C/install, which installs bootblocks on floppy discs
2623 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2624 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2625 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2626 # OS/2's system install, which has a completely different semantic
2627 # ./install, which can be erroneously created by make from ./install.sh.
2628 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2629 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2630 if test -z "$INSTALL"; then
2631 if test "${ac_cv_path_install+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 # Account for people who put trailing slashes in PATH elements.
2641 ./ | .// | /cC/* | \
2642 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2643 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2646 # OSF1 and SCO ODT 3.0 have their own names for install.
2647 # Don't use installbsd from OSF since it installs stuff as root
2649 for ac_prog in ginstall scoinst install; do
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2652 if test $ac_prog = install &&
2653 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2654 # AIX install. It has an incompatible calling convention.
2656 elif test $ac_prog = install &&
2657 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2658 # program-specific install script used by HP pwplus--don't use.
2661 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2673 if test "${ac_cv_path_install+set}" = set; then
2674 INSTALL=$ac_cv_path_install
2676 # As a last resort, use the slow shell script. We don't cache a
2677 # path for INSTALL within a source directory, because that will
2678 # break other packages using the cache if that directory is
2679 # removed, or if the path is relative.
2680 INSTALL=$ac_install_sh
2683 echo "$as_me:$LINENO: result: $INSTALL" >&5
2684 echo "${ECHO_T}$INSTALL" >&6
2686 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2687 # It thinks the first close brace ends the variable substitution.
2688 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2695 # Put a plausible default for CC_FOR_BUILD in Makefile.
2696 if test "x$cross_compiling" = "xno"; then
2697 CC_FOR_BUILD='$(CC)'
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2710 echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712 if test "${ac_cv_prog_RANLIB+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 if test -n "$RANLIB"; then
2716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 RANLIB=$ac_cv_prog_RANLIB
2735 if test -n "$RANLIB"; then
2736 echo "$as_me:$LINENO: result: $RANLIB" >&5
2737 echo "${ECHO_T}$RANLIB" >&6
2739 echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2744 if test -z "$ac_cv_prog_RANLIB"; then
2745 ac_ct_RANLIB=$RANLIB
2746 # Extract the first word of "ranlib", so it can be a program name with args.
2747 set dummy ranlib; ac_word=$2
2748 echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2750 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 if test -n "$ac_ct_RANLIB"; then
2754 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_ac_ct_RANLIB="ranlib"
2764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2773 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2774 if test -n "$ac_ct_RANLIB"; then
2775 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2776 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2782 RANLIB=$ac_ct_RANLIB
2784 RANLIB="$ac_cv_prog_RANLIB"
2789 # If we haven't got the data from the intl directory,
2790 # assume NLS is disabled.
2799 if test -f ../../intl/config.intl; then
2800 . ../../intl/config.intl
2802 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2803 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2804 if test x"$USE_NLS" != xyes; then
2805 echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2808 echo "$as_me:$LINENO: result: yes" >&5
2809 echo "${ECHO_T}yes" >&6
2811 cat >>confdefs.h <<\_ACEOF
2812 #define ENABLE_NLS 1
2816 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2817 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2818 # Look for .po and .gmo files in the source directory.
2821 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2822 # If there aren't any .gmo files the shell will give us the
2823 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2825 case "$cat" in *\**)
2828 # The quadruple backslash is collapsed to a double backslash
2829 # by the backticks, then collapsed again by the double quotes,
2830 # leaving us with one backslash in the sed expression (right
2831 # before the dot that mustn't act as a wildcard).
2832 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2833 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2834 # The user is allowed to set LINGUAS to a list of languages to
2835 # install catalogs for. If it's empty that means "all of them."
2836 if test "x$LINGUAS" = x; then
2837 CATALOGS="$CATALOGS $cat"
2838 XLINGUAS="$XLINGUAS $lang"
2840 case "$LINGUAS" in *$lang*)
2841 CATALOGS="$CATALOGS $cat"
2842 XLINGUAS="$XLINGUAS $lang"
2848 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2849 echo "${ECHO_T}$LINGUAS" >&6
2862 # Check for common headers.
2863 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2864 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2872 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2873 # On Suns, sometimes $CPP names a directory.
2874 if test -n "$CPP" && test -d "$CPP"; then
2877 if test -z "$CPP"; then
2878 if test "${ac_cv_prog_CPP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 # Double quotes because CPP needs to be expanded
2882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2885 for ac_c_preproc_warn_flag in '' yes
2887 # Use a header file that comes with gcc, so configuring glibc
2888 # with a fresh cross-compiler works.
2889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2890 # <limits.h> exists even on freestanding compilers.
2891 # On the NeXT, cc -E runs the code through the compiler's parser,
2892 # not just through cpp. "Syntax error" is here to catch this case.
2893 cat >conftest.$ac_ext <<_ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2900 # include <limits.h>
2902 # include <assert.h>
2906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2909 grep -v '^ *+' conftest.er1 >conftest.err
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } >/dev/null; then
2914 if test -s conftest.err; then
2915 ac_cpp_err=$ac_c_preproc_warn_flag
2916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2923 if test -z "$ac_cpp_err"; then
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 # Broken: fails on valid input.
2932 rm -f conftest.err conftest.$ac_ext
2934 # OK, works on sane cases. Now check whether non-existent headers
2935 # can be detected and how.
2936 cat >conftest.$ac_ext <<_ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2942 #include <ac_nonexistent.h>
2944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } >/dev/null; then
2952 if test -s conftest.err; then
2953 ac_cpp_err=$ac_c_preproc_warn_flag
2954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2961 if test -z "$ac_cpp_err"; then
2962 # Broken: success on invalid input.
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 # Passes both tests.
2972 rm -f conftest.err conftest.$ac_ext
2975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2976 rm -f conftest.err conftest.$ac_ext
2977 if $ac_preproc_ok; then
2989 echo "$as_me:$LINENO: result: $CPP" >&5
2990 echo "${ECHO_T}$CPP" >&6
2992 for ac_c_preproc_warn_flag in '' yes
2994 # Use a header file that comes with gcc, so configuring glibc
2995 # with a fresh cross-compiler works.
2996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2997 # <limits.h> exists even on freestanding compilers.
2998 # On the NeXT, cc -E runs the code through the compiler's parser,
2999 # not just through cpp. "Syntax error" is here to catch this case.
3000 cat >conftest.$ac_ext <<_ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3007 # include <limits.h>
3009 # include <assert.h>
3013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016 grep -v '^ *+' conftest.er1 >conftest.err
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } >/dev/null; then
3021 if test -s conftest.err; then
3022 ac_cpp_err=$ac_c_preproc_warn_flag
3023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030 if test -z "$ac_cpp_err"; then
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 # Broken: fails on valid input.
3039 rm -f conftest.err conftest.$ac_ext
3041 # OK, works on sane cases. Now check whether non-existent headers
3042 # can be detected and how.
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3049 #include <ac_nonexistent.h>
3051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } >/dev/null; then
3059 if test -s conftest.err; then
3060 ac_cpp_err=$ac_c_preproc_warn_flag
3061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068 if test -z "$ac_cpp_err"; then
3069 # Broken: success on invalid input.
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 # Passes both tests.
3079 rm -f conftest.err conftest.$ac_ext
3082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083 rm -f conftest.err conftest.$ac_ext
3084 if $ac_preproc_ok; then
3087 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 echo "$as_me:$LINENO: checking for egrep" >&5
3102 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3103 if test "${ac_cv_prog_egrep+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3107 then ac_cv_prog_egrep='grep -E'
3108 else ac_cv_prog_egrep='egrep'
3111 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3112 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3113 EGREP=$ac_cv_prog_egrep
3116 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3117 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3118 if test "${ac_cv_header_stdc+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3140 rm -f conftest.$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag"
3150 || test ! -s conftest.err'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_header_stdc=yes
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3167 ac_cv_header_stdc=no
3169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3171 if test $ac_cv_header_stdc = yes; then
3172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3183 $EGREP "memchr" >/dev/null 2>&1; then
3186 ac_cv_header_stdc=no
3192 if test $ac_cv_header_stdc = yes; then
3193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3194 cat >conftest.$ac_ext <<_ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3204 $EGREP "free" >/dev/null 2>&1; then
3207 ac_cv_header_stdc=no
3213 if test $ac_cv_header_stdc = yes; then
3214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3215 if test "$cross_compiling" = yes; then
3218 cat >conftest.$ac_ext <<_ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3225 #if ((' ' & 0x0FF) == 0x020)
3226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3229 # define ISLOWER(c) \
3230 (('a' <= (c) && (c) <= 'i') \
3231 || ('j' <= (c) && (c) <= 'r') \
3232 || ('s' <= (c) && (c) <= 'z'))
3233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3241 for (i = 0; i < 256; i++)
3242 if (XOR (islower (i), ISLOWER (i))
3243 || toupper (i) != TOUPPER (i))
3248 rm -f conftest$ac_exeext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3250 (eval $ac_link) 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3261 echo "$as_me: program exited with status $ac_status" >&5
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3266 ac_cv_header_stdc=no
3268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3272 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3273 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3274 if test $ac_cv_header_stdc = yes; then
3276 cat >>confdefs.h <<\_ACEOF
3277 #define STDC_HEADERS 1
3282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3292 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3293 inttypes.h stdint.h unistd.h
3295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3296 echo "$as_me:$LINENO: checking for $ac_header" >&5
3297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3307 $ac_includes_default
3309 #include <$ac_header>
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313 (eval $ac_compile) 2>conftest.er1
3315 grep -v '^ *+' conftest.er1 >conftest.err
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_c_werror_flag"
3321 || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest.$ac_objext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3333 eval "$as_ac_Header=yes"
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3338 eval "$as_ac_Header=no"
3340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3345 cat >>confdefs.h <<_ACEOF
3346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3359 for ac_header in stdlib.h string.h strings.h unistd.h time.h
3361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3363 echo "$as_me:$LINENO: checking for $ac_header" >&5
3364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3371 # Is the header compilable?
3372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 $ac_includes_default
3381 #include <$ac_header>
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest.$ac_objext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 ac_header_compiler=yes
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3410 ac_header_compiler=no
3412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3414 echo "${ECHO_T}$ac_header_compiler" >&6
3416 # Is the header present?
3417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <$ac_header>
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3430 grep -v '^ *+' conftest.er1 >conftest.err
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 if test -z "$ac_cpp_err"; then
3445 ac_header_preproc=yes
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 ac_header_preproc=no
3452 rm -f conftest.err conftest.$ac_ext
3453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3454 echo "${ECHO_T}$ac_header_preproc" >&6
3456 # So? What about this header?
3457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3463 ac_header_preproc=yes
3466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3480 ## ------------------------------------------ ##
3481 ## Report this to the AC_PACKAGE_NAME lists. ##
3482 ## ------------------------------------------ ##
3485 sed "s/^/$as_me: WARNING: /" >&2
3488 echo "$as_me:$LINENO: checking for $ac_header" >&5
3489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 eval "$as_ac_Header=\$ac_header_preproc"
3495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3500 cat >>confdefs.h <<_ACEOF
3501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3510 for ac_header in sys/time.h sys/resource.h
3512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo "$as_me:$LINENO: checking for $ac_header" >&5
3515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3522 # Is the header compilable?
3523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3525 cat >conftest.$ac_ext <<_ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 $ac_includes_default
3532 #include <$ac_header>
3534 rm -f conftest.$ac_objext
3535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3536 (eval $ac_compile) 2>conftest.er1
3538 grep -v '^ *+' conftest.er1 >conftest.err
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try='test -z "$ac_c_werror_flag"
3544 || test ! -s conftest.err'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; } &&
3550 { ac_try='test -s conftest.$ac_objext'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 ac_header_compiler=yes
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 ac_header_compiler=no
3563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3565 echo "${ECHO_T}$ac_header_compiler" >&6
3567 # Is the header present?
3568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include <$ac_header>
3578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null; then
3586 if test -s conftest.err; then
3587 ac_cpp_err=$ac_c_preproc_warn_flag
3588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3595 if test -z "$ac_cpp_err"; then
3596 ac_header_preproc=yes
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 ac_header_preproc=no
3603 rm -f conftest.err conftest.$ac_ext
3604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3605 echo "${ECHO_T}$ac_header_preproc" >&6
3607 # So? What about this header?
3608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3614 ac_header_preproc=yes
3617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3631 ## ------------------------------------------ ##
3632 ## Report this to the AC_PACKAGE_NAME lists. ##
3633 ## ------------------------------------------ ##
3636 sed "s/^/$as_me: WARNING: /" >&2
3639 echo "$as_me:$LINENO: checking for $ac_header" >&5
3640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 eval "$as_ac_Header=\$ac_header_preproc"
3646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3651 cat >>confdefs.h <<_ACEOF
3652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3661 for ac_header in fcntl.h fpu_control.h
3663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3665 echo "$as_me:$LINENO: checking for $ac_header" >&5
3666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3673 # Is the header compilable?
3674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3676 cat >conftest.$ac_ext <<_ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3682 $ac_includes_default
3683 #include <$ac_header>
3685 rm -f conftest.$ac_objext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>conftest.er1
3689 grep -v '^ *+' conftest.er1 >conftest.err
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_c_werror_flag"
3695 || test ! -s conftest.err'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 ac_header_compiler=yes
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 ac_header_compiler=no
3714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3716 echo "${ECHO_T}$ac_header_compiler" >&6
3718 # Is the header present?
3719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3721 cat >conftest.$ac_ext <<_ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3727 #include <$ac_header>
3729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3732 grep -v '^ *+' conftest.er1 >conftest.err
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } >/dev/null; then
3737 if test -s conftest.err; then
3738 ac_cpp_err=$ac_c_preproc_warn_flag
3739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3746 if test -z "$ac_cpp_err"; then
3747 ac_header_preproc=yes
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 ac_header_preproc=no
3754 rm -f conftest.err conftest.$ac_ext
3755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3756 echo "${ECHO_T}$ac_header_preproc" >&6
3758 # So? What about this header?
3759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3765 ac_header_preproc=yes
3768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3782 ## ------------------------------------------ ##
3783 ## Report this to the AC_PACKAGE_NAME lists. ##
3784 ## ------------------------------------------ ##
3787 sed "s/^/$as_me: WARNING: /" >&2
3790 echo "$as_me:$LINENO: checking for $ac_header" >&5
3791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 eval "$as_ac_Header=\$ac_header_preproc"
3797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3802 cat >>confdefs.h <<_ACEOF
3803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3813 for ac_header in dlfcn.h errno.h sys/stat.h
3815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3817 echo "$as_me:$LINENO: checking for $ac_header" >&5
3818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3825 # Is the header compilable?
3826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 $ac_includes_default
3835 #include <$ac_header>
3837 rm -f conftest.$ac_objext
3838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3839 (eval $ac_compile) 2>conftest.er1
3841 grep -v '^ *+' conftest.er1 >conftest.err
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag"
3847 || test ! -s conftest.err'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; } &&
3853 { ac_try='test -s conftest.$ac_objext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_header_compiler=yes
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 ac_header_compiler=no
3866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3868 echo "${ECHO_T}$ac_header_compiler" >&6
3870 # Is the header present?
3871 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3879 #include <$ac_header>
3881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3884 grep -v '^ *+' conftest.er1 >conftest.err
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } >/dev/null; then
3889 if test -s conftest.err; then
3890 ac_cpp_err=$ac_c_preproc_warn_flag
3891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3898 if test -z "$ac_cpp_err"; then
3899 ac_header_preproc=yes
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3904 ac_header_preproc=no
3906 rm -f conftest.err conftest.$ac_ext
3907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3908 echo "${ECHO_T}$ac_header_preproc" >&6
3910 # So? What about this header?
3911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3917 ac_header_preproc=yes
3920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3934 ## ------------------------------------------ ##
3935 ## Report this to the AC_PACKAGE_NAME lists. ##
3936 ## ------------------------------------------ ##
3939 sed "s/^/$as_me: WARNING: /" >&2
3942 echo "$as_me:$LINENO: checking for $ac_header" >&5
3943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 eval "$as_ac_Header=\$ac_header_preproc"
3949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3954 cat >>confdefs.h <<_ACEOF
3955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3966 for ac_func in getrusage time sigaction __setfpucw
3968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3969 echo "$as_me:$LINENO: checking for $ac_func" >&5
3970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3971 if eval "test \"\${$as_ac_var+set}\" = set"; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 cat >conftest.$ac_ext <<_ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3982 #define $ac_func innocuous_$ac_func
3984 /* System header to define __stub macros and hopefully few prototypes,
3985 which can conflict with char $ac_func (); below.
3986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3987 <limits.h> exists even on freestanding compilers. */
3990 # include <limits.h>
3992 # include <assert.h>
3997 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4005 /* The GNU C library defines this for functions which it implements
4006 to always fail with ENOSYS. Some functions are actually named
4007 something starting with __ and the normal name is an alias. */
4008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4011 char (*f) () = $ac_func;
4020 return f != $ac_func;
4025 rm -f conftest.$ac_objext conftest$ac_exeext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4027 (eval $ac_link) 2>conftest.er1
4029 grep -v '^ *+' conftest.er1 >conftest.err
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_c_werror_flag"
4035 || test ! -s conftest.err'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try='test -s conftest$ac_exeext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 eval "$as_ac_var=yes"
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 eval "$as_ac_var=no"
4054 rm -f conftest.err conftest.$ac_objext \
4055 conftest$ac_exeext conftest.$ac_ext
4057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4059 if test `eval echo '${'$as_ac_var'}'` = yes; then
4060 cat >>confdefs.h <<_ACEOF
4061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4068 # Check for socket libraries
4070 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4071 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
4072 if test "${ac_cv_lib_socket_bind+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 ac_check_lib_save_LIBS=$LIBS
4076 LIBS="-lsocket $LIBS"
4077 cat >conftest.$ac_ext <<_ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4084 /* Override any gcc2 internal prototype to avoid an error. */
4088 /* We use char because int might match the return type of a gcc2
4089 builtin and then its argument prototype would still apply. */
4099 rm -f conftest.$ac_objext conftest$ac_exeext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4101 (eval $ac_link) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest$ac_exeext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_cv_lib_socket_bind=yes
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4126 ac_cv_lib_socket_bind=no
4128 rm -f conftest.err conftest.$ac_objext \
4129 conftest$ac_exeext conftest.$ac_ext
4130 LIBS=$ac_check_lib_save_LIBS
4132 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4133 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4134 if test $ac_cv_lib_socket_bind = yes; then
4135 cat >>confdefs.h <<_ACEOF
4136 #define HAVE_LIBSOCKET 1
4139 LIBS="-lsocket $LIBS"
4144 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4145 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4146 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 ac_check_lib_save_LIBS=$LIBS
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4158 /* Override any gcc2 internal prototype to avoid an error. */
4162 /* We use char because int might match the return type of a gcc2
4163 builtin and then its argument prototype would still apply. */
4164 char gethostbyname ();
4173 rm -f conftest.$ac_objext conftest$ac_exeext
4174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4175 (eval $ac_link) 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try='test -z "$ac_c_werror_flag"
4183 || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest$ac_exeext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_lib_nsl_gethostbyname=yes
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4200 ac_cv_lib_nsl_gethostbyname=no
4202 rm -f conftest.err conftest.$ac_objext \
4203 conftest$ac_exeext conftest.$ac_ext
4204 LIBS=$ac_check_lib_save_LIBS
4206 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4207 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4208 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4209 cat >>confdefs.h <<_ACEOF
4210 #define HAVE_LIBNSL 1
4218 . ${srcdir}/../../bfd/configure.host
4222 USE_MAINTAINER_MODE=no
4223 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4224 if test "${enable_maintainer_mode+set}" = set; then
4225 enableval="$enable_maintainer_mode"
4226 case "${enableval}" in
4227 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4229 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4230 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4231 { (exit 1); exit 1; }; }; MAINT="#" ;;
4233 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4234 echo "Setting maintainer mode" 6>&1
4241 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4242 if test "${enable_sim_bswap+set}" = set; then
4243 enableval="$enable_sim_bswap"
4244 case "${enableval}" in
4245 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4246 no) sim_bswap="-DWITH_BSWAP=0";;
4247 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4248 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4249 { (exit 1); exit 1; }; }; sim_bswap="";;
4251 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4252 echo "Setting bswap flags = $sim_bswap" 6>&1
4259 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4260 if test "${enable_sim_cflags+set}" = set; then
4261 enableval="$enable_sim_cflags"
4262 case "${enableval}" in
4263 yes) sim_cflags="-O2 -fomit-frame-pointer";;
4264 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4265 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4266 { (exit 1); exit 1; }; }; sim_cflags="";;
4268 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4270 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4271 echo "Setting sim cflags = $sim_cflags" 6>&1
4278 # Check whether --enable-sim-debug or --disable-sim-debug was given.
4279 if test "${enable_sim_debug+set}" = set; then
4280 enableval="$enable_sim_debug"
4281 case "${enableval}" in
4282 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4283 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4284 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4286 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4287 echo "Setting sim debug = $sim_debug" 6>&1
4294 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4295 if test "${enable_sim_stdio+set}" = set; then
4296 enableval="$enable_sim_stdio"
4297 case "${enableval}" in
4298 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4299 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4300 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4301 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4302 { (exit 1); exit 1; }; }; sim_stdio="";;
4304 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4305 echo "Setting stdio flags = $sim_stdio" 6>&1
4312 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4313 if test "${enable_sim_trace+set}" = set; then
4314 enableval="$enable_sim_trace"
4315 case "${enableval}" in
4316 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4317 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4319 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4322 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4323 if test x"$sim_trace" = x; then
4324 sim_trace="-DWITH_TRACE='(TRACE_$x"
4326 sim_trace="${sim_trace}|TRACE_$x"
4329 sim_trace="$sim_trace)'" ;;
4331 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4332 echo "Setting sim trace = $sim_trace" 6>&1
4339 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4340 if test "${enable_sim_profile+set}" = set; then
4341 enableval="$enable_sim_profile"
4342 case "${enableval}" in
4343 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4344 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4346 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4349 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4350 if test x"$sim_profile" = x; then
4351 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4353 sim_profile="${sim_profile}|PROFILE_$x"
4356 sim_profile="$sim_profile)'" ;;
4358 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4359 echo "Setting sim profile = $sim_profile" 6>&1
4362 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4367 # Check whether --with-pkgversion or --without-pkgversion was given.
4368 if test "${with_pkgversion+set}" = set; then
4369 withval="$with_pkgversion"
4371 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4372 echo "$as_me: error: package version not specified" >&2;}
4373 { (exit 1); exit 1; }; } ;;
4375 *) PKGVERSION="($withval) " ;;
4385 # Check whether --with-bugurl or --without-bugurl was given.
4386 if test "${with_bugurl+set}" = set; then
4387 withval="$with_bugurl"
4389 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4390 echo "$as_me: error: bug URL not specified" >&2;}
4391 { (exit 1); exit 1; }; } ;;
4394 *) BUGURL="$withval"
4398 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4407 REPORT_BUGS_TO="<$BUGURL>"
4408 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4415 cat >>confdefs.h <<_ACEOF
4416 #define PKGVERSION "$PKGVERSION"
4420 cat >>confdefs.h <<_ACEOF
4421 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4425 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4426 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4427 if test "${ac_cv_type_signal+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 cat >conftest.$ac_ext <<_ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 #include <sys/types.h>
4442 extern "C" void (*signal (int, void (*)(int)))(int);
4444 void (*signal ()) ();
4455 rm -f conftest.$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>conftest.er1
4459 grep -v '^ *+' conftest.er1 >conftest.err
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try='test -z "$ac_c_werror_flag"
4465 || test ! -s conftest.err'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; } &&
4471 { ac_try='test -s conftest.$ac_objext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_type_signal=void
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 ac_cv_type_signal=int
4484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4486 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4487 echo "${ECHO_T}$ac_cv_type_signal" >&6
4489 cat >>confdefs.h <<_ACEOF
4490 #define RETSIGTYPE $ac_cv_type_signal
4500 sim_link_links=tconfig.h
4501 if test -f ${srcdir}/tconfig.in
4503 sim_link_files=tconfig.in
4505 sim_link_files=../common/tconfig.in
4508 # targ-vals.def points to the libc macro description file.
4510 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4512 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4513 sim_link_links="${sim_link_links} targ-vals.def"
4517 # NOTE: Don't add -Wall or -Wunused, they both include
4518 # -Wunused-parameter which reports bogus warnings.
4519 # NOTE: If you add to this list, remember to update
4520 # gdb/doc/gdbint.texinfo.
4521 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4522 -Wformat -Wparentheses -Wpointer-arith"
4523 # GCC supports -Wuninitialized only with -O or -On, n != 0.
4524 if test x${CFLAGS+set} = xset; then
4528 build_warnings="${build_warnings} -Wuninitialized"
4532 build_warnings="${build_warnings} -Wuninitialized"
4534 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4535 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4536 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4537 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4538 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4539 # -Woverloaded-virtual -Winline -Werror"
4540 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4541 if test "${enable_build_warnings+set}" = set; then
4542 enableval="$enable_build_warnings"
4543 case "${enableval}" in
4545 no) build_warnings="-w";;
4546 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4547 build_warnings="${build_warnings} ${t}";;
4548 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4549 build_warnings="${t} ${build_warnings}";;
4550 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4552 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4553 echo "Setting compiler warning flags = $build_warnings" 6>&1
4555 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
4556 if test "${enable_sim_build_warnings+set}" = set; then
4557 enableval="$enable_sim_build_warnings"
4558 case "${enableval}" in
4560 no) build_warnings="-w";;
4561 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4562 build_warnings="${build_warnings} ${t}";;
4563 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4564 build_warnings="${t} ${build_warnings}";;
4565 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4567 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4568 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4572 if test "x${build_warnings}" != x -a "x$GCC" = xyes
4574 echo "$as_me:$LINENO: checking compiler warning flags" >&5
4575 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
4576 # Separate out the -Werror flag as some files just cannot be
4577 # compiled with it enabled.
4578 for w in ${build_warnings}; do
4580 -Werr*) WERROR_CFLAGS=-Werror ;;
4581 *) # Check that GCC accepts it
4582 saved_CFLAGS="$CFLAGS"
4584 cat >conftest.$ac_ext <<_ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>conftest.er1
4603 grep -v '^ *+' conftest.er1 >conftest.err
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try='test -z "$ac_c_werror_flag"
4609 || test ! -s conftest.err'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 WARN_CFLAGS="${WARN_CFLAGS} $w"
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628 CFLAGS="$saved_CFLAGS"
4631 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4632 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
4637 for ac_header in unistd.h
4639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4641 echo "$as_me:$LINENO: checking for $ac_header" >&5
4642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4649 # Is the header compilable?
4650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 $ac_includes_default
4659 #include <$ac_header>
4661 rm -f conftest.$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_c_werror_flag"
4671 || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try='test -s conftest.$ac_objext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_header_compiler=yes
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4688 ac_header_compiler=no
4690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4692 echo "${ECHO_T}$ac_header_compiler" >&6
4694 # Is the header present?
4695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4697 cat >conftest.$ac_ext <<_ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 #include <$ac_header>
4705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4708 grep -v '^ *+' conftest.er1 >conftest.err
4710 cat conftest.err >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } >/dev/null; then
4713 if test -s conftest.err; then
4714 ac_cpp_err=$ac_c_preproc_warn_flag
4715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4722 if test -z "$ac_cpp_err"; then
4723 ac_header_preproc=yes
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_header_preproc=no
4730 rm -f conftest.err conftest.$ac_ext
4731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4732 echo "${ECHO_T}$ac_header_preproc" >&6
4734 # So? What about this header?
4735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4741 ac_header_preproc=yes
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4758 ## ------------------------------------------ ##
4759 ## Report this to the AC_PACKAGE_NAME lists. ##
4760 ## ------------------------------------------ ##
4763 sed "s/^/$as_me: WARNING: /" >&2
4766 echo "$as_me:$LINENO: checking for $ac_header" >&5
4767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 eval "$as_ac_Header=\$ac_header_preproc"
4773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4778 cat >>confdefs.h <<_ACEOF
4779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4789 ac_sources="$sim_link_files"
4790 ac_dests="$sim_link_links"
4791 while test -n "$ac_sources"; do
4792 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4793 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4794 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
4796 ac_config_links="$ac_config_links $ac_config_links_1"
4799 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
4800 cgen_breaks="break cgen_rtx_error";
4803 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
4805 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
4807 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
4809 ac_config_commands="$ac_config_commands Makefile"
4811 ac_config_commands="$ac_config_commands stamp-h"
4813 cat >confcache <<\_ACEOF
4814 # This file is a shell script that caches the results of configure
4815 # tests run on this system so they can be shared between configure
4816 # scripts and configure runs, see configure's option --config-cache.
4817 # It is not useful on other systems. If it contains results you don't
4818 # want to keep, you may remove or edit it.
4820 # config.status only pays attention to the cache file if you give it
4821 # the --recheck option to rerun configure.
4823 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4824 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4829 # The following way of writing the cache mishandles newlines in values,
4830 # but we know of no workaround that is simple, portable, and efficient.
4831 # So, don't put newlines in cache variables' values.
4832 # Ultrix sh set writes to stderr and can't be redirected directly,
4833 # and sets the high bit in the cache file unless we assign to the vars.
4836 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4838 # `set' does not quote correctly, so add quotes (double-quote
4839 # substitution turns \\\\ into \\, and sed turns \\ into \).
4842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4845 # `set' quotes correctly as required by POSIX, so do not add quotes.
4847 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4854 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4856 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4858 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4859 if test -w $cache_file; then
4860 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4861 cat confcache >$cache_file
4863 echo "not updating unwritable cache $cache_file"
4868 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4869 # Let make expand exec_prefix.
4870 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4872 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4873 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4874 # trailing colons and then remove the whole line if VPATH becomes empty
4875 # (actually we leave an empty line to preserve line numbers).
4876 if test "x$srcdir" = x.; then
4877 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4878 s/:*\$(srcdir):*/:/;
4879 s/:*\${srcdir}:*/:/;
4881 s/^\([^=]*=[ ]*\):*/\1/;
4887 DEFS=-DHAVE_CONFIG_H
4891 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4892 # 1. Remove the extension, and $U if already installed.
4893 ac_i=`echo "$ac_i" |
4894 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4896 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4897 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4901 LTLIBOBJS=$ac_ltlibobjs
4905 : ${CONFIG_STATUS=./config.status}
4906 ac_clean_files_save=$ac_clean_files
4907 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4908 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4909 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4910 cat >$CONFIG_STATUS <<_ACEOF
4912 # Generated by $as_me.
4913 # Run this file to recreate the current configuration.
4914 # Compiler output produced by configure, useful for debugging
4915 # configure, is in config.log if it exists.
4920 SHELL=\${CONFIG_SHELL-$SHELL}
4923 cat >>$CONFIG_STATUS <<\_ACEOF
4924 ## --------------------- ##
4925 ## M4sh Initialization. ##
4926 ## --------------------- ##
4928 # Be Bourne compatible
4929 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4932 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4933 # is contrary to our usage. Disable this feature.
4934 alias -g '${1+"$@"}'='"$@"'
4935 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4938 DUALCASE=1; export DUALCASE # for MKS sh
4940 # Support unset when possible.
4941 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4948 # Work around bugs in pre-3.0 UWIN ksh.
4949 $as_unset ENV MAIL MAILPATH
4956 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4957 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4958 LC_TELEPHONE LC_TIME
4960 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4961 eval $as_var=C; export $as_var
4967 # Required to use basename.
4968 if expr a : '\(a\)' >/dev/null 2>&1; then
4974 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4975 as_basename=basename
4981 # Name of the executable.
4982 as_me=`$as_basename "$0" ||
4983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4984 X"$0" : 'X\(//\)$' \| \
4985 X"$0" : 'X\(/\)$' \| \
4986 . : '\(.\)' 2>/dev/null ||
4988 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4989 /^X\/\(\/\/\)$/{ s//\1/; q; }
4990 /^X\/\(\/\).*/{ s//\1/; q; }
4994 # PATH needs CR, and LINENO needs CR and PATH.
4995 # Avoid depending upon Character Ranges.
4996 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4997 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4998 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4999 as_cr_digits='0123456789'
5000 as_cr_alnum=$as_cr_Letters$as_cr_digits
5002 # The user is always right.
5003 if test "${PATH_SEPARATOR+set}" != set; then
5004 echo "#! /bin/sh" >conf$$.sh
5005 echo "exit 0" >>conf$$.sh
5007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5018 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5019 test "x$as_lineno_1" != "x$as_lineno_2" &&
5020 test "x$as_lineno_3" = "x$as_lineno_2" || {
5021 # Find who we are. Look in the path if we contain no path at all
5024 *[\\/]* ) as_myself=$0 ;;
5025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir=.
5030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5035 # We did not find ourselves, most probably we were run as `sh COMMAND'
5036 # in which case we are not to be found in the path.
5037 if test "x$as_myself" = x; then
5040 if test ! -f "$as_myself"; then
5041 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5042 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5043 { (exit 1); exit 1; }; }
5045 case $CONFIG_SHELL in
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5051 test -z "$as_dir" && as_dir=.
5052 for as_base in sh bash ksh sh5; do
5055 if ("$as_dir/$as_base" -c '
5058 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5059 test "x$as_lineno_1" != "x$as_lineno_2" &&
5060 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5061 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5062 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5063 CONFIG_SHELL=$as_dir/$as_base
5065 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5073 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5074 # uniformly replaced by the line number. The first 'sed' inserts a
5075 # line-number line before each line; the second 'sed' does the real
5076 # work. The second script uses 'N' to pair each line-number line
5077 # with the numbered line, and appends trailing '-' during
5078 # substitution so that $LINENO is not a special case at line end.
5079 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5080 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5081 sed '=' <$as_myself |
5086 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5089 s,^['$as_cr_digits']*\n,,
5091 chmod +x $as_me.lineno ||
5092 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5093 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5094 { (exit 1); exit 1; }; }
5096 # Don't try to exec as it changes $[0], causing all sort of problems
5097 # (the dirname of $[0] is not the place where we might find the
5098 # original and so on. Autoconf is especially sensible to this).
5100 # Exit status is that of the last command.
5105 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5106 *c*,-n*) ECHO_N= ECHO_C='
5108 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5109 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5112 if expr a : '\(a\)' >/dev/null 2>&1; then
5118 rm -f conf$$ conf$$.exe conf$$.file
5120 if ln -s conf$$.file conf$$ 2>/dev/null; then
5121 # We could just check for DJGPP; but this test a) works b) is more generic
5122 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5123 if test -f conf$$.exe; then
5124 # Don't use ln at all; we don't have any links
5129 elif ln conf$$.file conf$$ 2>/dev/null; then
5134 rm -f conf$$ conf$$.exe conf$$.file
5136 if mkdir -p . 2>/dev/null; then
5139 test -d ./-p && rmdir ./-p
5143 as_executable_p="test -f"
5145 # Sed expression to map a string onto a valid CPP name.
5146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5148 # Sed expression to map a string onto a valid variable name.
5149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5153 # We need space, tab and new line, in precisely that order.
5163 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5164 # report actual input values of CONFIG_FILES etc. instead of their
5165 # values after options handling. Logging --version etc. is OK.
5169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5170 ## Running $as_me. ##
5175 This file was extended by $as_me, which was
5176 generated by GNU Autoconf 2.59. Invocation command line was
5178 CONFIG_FILES = $CONFIG_FILES
5179 CONFIG_HEADERS = $CONFIG_HEADERS
5180 CONFIG_LINKS = $CONFIG_LINKS
5181 CONFIG_COMMANDS = $CONFIG_COMMANDS
5185 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5189 # Files that config.status was made for.
5190 if test -n "$ac_config_files"; then
5191 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5194 if test -n "$ac_config_headers"; then
5195 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5198 if test -n "$ac_config_links"; then
5199 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5202 if test -n "$ac_config_commands"; then
5203 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5206 cat >>$CONFIG_STATUS <<\_ACEOF
5209 \`$as_me' instantiates files from templates according to the
5210 current configuration.
5212 Usage: $0 [OPTIONS] [FILE]...
5214 -h, --help print this help, then exit
5215 -V, --version print version number, then exit
5216 -q, --quiet do not print progress messages
5217 -d, --debug don't remove temporary files
5218 --recheck update $as_me by reconfiguring in the same conditions
5219 --file=FILE[:TEMPLATE]
5220 instantiate the configuration file FILE
5221 --header=FILE[:TEMPLATE]
5222 instantiate the configuration header FILE
5224 Configuration files:
5227 Configuration headers:
5230 Configuration links:
5233 Configuration commands:
5239 cat >>$CONFIG_STATUS <<_ACEOF
5242 configured by $0, generated by GNU Autoconf 2.59,
5243 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5245 Copyright (C) 2003 Free Software Foundation, Inc.
5246 This config.status script is free software; the Free Software Foundation
5247 gives unlimited permission to copy, distribute and modify it."
5252 cat >>$CONFIG_STATUS <<\_ACEOF
5253 # If no file are specified by the user, then we need to provide default
5254 # value. By we need to know if files were specified by the user.
5260 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5261 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5269 *) # This is not an option, so the user has probably given explicit
5272 ac_need_defaults=false;;
5276 # Handling of the options.
5278 cat >>$CONFIG_STATUS <<\_ACEOF
5279 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5281 --version | --vers* | -V )
5282 echo "$ac_cs_version"; exit 0 ;;
5284 # Conflict between --help and --header
5285 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5286 Try \`$0 --help' for more information." >&5
5287 echo "$as_me: error: ambiguous option: $1
5288 Try \`$0 --help' for more information." >&2;}
5289 { (exit 1); exit 1; }; };;
5290 --help | --hel | -h )
5291 echo "$ac_cs_usage"; exit 0 ;;
5292 --debug | --d* | -d )
5294 --file | --fil | --fi | --f )
5296 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5297 ac_need_defaults=false;;
5298 --header | --heade | --head | --hea )
5300 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5301 ac_need_defaults=false;;
5302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5307 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5308 Try \`$0 --help' for more information." >&5
5309 echo "$as_me: error: unrecognized option: $1
5310 Try \`$0 --help' for more information." >&2;}
5311 { (exit 1); exit 1; }; } ;;
5313 *) ac_config_targets="$ac_config_targets $1" ;;
5319 ac_configure_extra_args=
5321 if $ac_cs_silent; then
5323 ac_configure_extra_args="$ac_configure_extra_args --silent"
5327 cat >>$CONFIG_STATUS <<_ACEOF
5328 if \$ac_cs_recheck; then
5329 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5330 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5339 cat >>$CONFIG_STATUS <<\_ACEOF
5340 for ac_config_target in $ac_config_targets
5342 case "$ac_config_target" in
5343 # Handling of arguments.
5344 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5345 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5346 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5347 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
5348 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5349 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
5350 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5351 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5352 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5353 { (exit 1); exit 1; }; };;
5357 # If the user did not use the arguments to specify the items to instantiate,
5358 # then the envvar interface is used. Set only those that are not.
5359 # We use the long form for the default assignment because of an extremely
5360 # bizarre bug on SunOS 4.1.3.
5361 if $ac_need_defaults; then
5362 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5363 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5364 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5365 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5368 # Have a temporary directory for convenience. Make it in the build tree
5369 # simply because there is no reason to put it here, and in addition,
5370 # creating and moving files from /tmp can sometimes cause problems.
5371 # Create a temporary directory, and hook for its removal unless debugging.
5374 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5375 trap '{ (exit 1); exit 1; }' 1 2 13 15
5378 # Create a (secure) tmp directory for tmp files.
5381 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5382 test -n "$tmp" && test -d "$tmp"
5385 tmp=./confstat$$-$RANDOM
5386 (umask 077 && mkdir $tmp)
5389 echo "$me: cannot create a temporary directory in ." >&2
5390 { (exit 1); exit 1; }
5395 cat >>$CONFIG_STATUS <<_ACEOF
5398 # CONFIG_FILES section.
5401 # No need to generate the scripts if there are no CONFIG_FILES.
5402 # This happens for instance when ./config.status config.h
5403 if test -n "\$CONFIG_FILES"; then
5404 # Protect against being on the right side of a sed subst in config.status.
5405 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5406 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5407 s,@SHELL@,$SHELL,;t t
5408 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5409 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5410 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5411 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5412 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5413 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5414 s,@exec_prefix@,$exec_prefix,;t t
5415 s,@prefix@,$prefix,;t t
5416 s,@program_transform_name@,$program_transform_name,;t t
5417 s,@bindir@,$bindir,;t t
5418 s,@sbindir@,$sbindir,;t t
5419 s,@libexecdir@,$libexecdir,;t t
5420 s,@datadir@,$datadir,;t t
5421 s,@sysconfdir@,$sysconfdir,;t t
5422 s,@sharedstatedir@,$sharedstatedir,;t t
5423 s,@localstatedir@,$localstatedir,;t t
5424 s,@libdir@,$libdir,;t t
5425 s,@includedir@,$includedir,;t t
5426 s,@oldincludedir@,$oldincludedir,;t t
5427 s,@infodir@,$infodir,;t t
5428 s,@mandir@,$mandir,;t t
5429 s,@build_alias@,$build_alias,;t t
5430 s,@host_alias@,$host_alias,;t t
5431 s,@target_alias@,$target_alias,;t t
5433 s,@ECHO_C@,$ECHO_C,;t t
5434 s,@ECHO_N@,$ECHO_N,;t t
5435 s,@ECHO_T@,$ECHO_T,;t t
5437 s,@sim_environment@,$sim_environment,;t t
5438 s,@sim_alignment@,$sim_alignment,;t t
5439 s,@sim_assert@,$sim_assert,;t t
5440 s,@sim_bitsize@,$sim_bitsize,;t t
5441 s,@sim_endian@,$sim_endian,;t t
5442 s,@sim_hostendian@,$sim_hostendian,;t t
5443 s,@sim_float@,$sim_float,;t t
5444 s,@sim_scache@,$sim_scache,;t t
5445 s,@sim_default_model@,$sim_default_model,;t t
5446 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5447 s,@sim_hw_objs@,$sim_hw_objs,;t t
5448 s,@sim_hw@,$sim_hw,;t t
5449 s,@sim_inline@,$sim_inline,;t t
5450 s,@sim_packages@,$sim_packages,;t t
5451 s,@sim_regparm@,$sim_regparm,;t t
5452 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5453 s,@sim_smp@,$sim_smp,;t t
5454 s,@sim_stdcall@,$sim_stdcall,;t t
5455 s,@sim_xor_endian@,$sim_xor_endian,;t t
5456 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5457 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
5458 s,@build@,$build,;t t
5459 s,@build_cpu@,$build_cpu,;t t
5460 s,@build_vendor@,$build_vendor,;t t
5461 s,@build_os@,$build_os,;t t
5463 s,@host_cpu@,$host_cpu,;t t
5464 s,@host_vendor@,$host_vendor,;t t
5465 s,@host_os@,$host_os,;t t
5466 s,@target@,$target,;t t
5467 s,@target_cpu@,$target_cpu,;t t
5468 s,@target_vendor@,$target_vendor,;t t
5469 s,@target_os@,$target_os,;t t
5471 s,@CFLAGS@,$CFLAGS,;t t
5472 s,@LDFLAGS@,$LDFLAGS,;t t
5473 s,@CPPFLAGS@,$CPPFLAGS,;t t
5474 s,@ac_ct_CC@,$ac_ct_CC,;t t
5475 s,@EXEEXT@,$EXEEXT,;t t
5476 s,@OBJEXT@,$OBJEXT,;t t
5477 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5478 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5479 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5480 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
5481 s,@HDEFINES@,$HDEFINES,;t t
5483 s,@RANLIB@,$RANLIB,;t t
5484 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5485 s,@USE_NLS@,$USE_NLS,;t t
5486 s,@LIBINTL@,$LIBINTL,;t t
5487 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
5488 s,@INCINTL@,$INCINTL,;t t
5489 s,@XGETTEXT@,$XGETTEXT,;t t
5490 s,@GMSGFMT@,$GMSGFMT,;t t
5491 s,@POSUB@,$POSUB,;t t
5492 s,@CATALOGS@,$CATALOGS,;t t
5493 s,@DATADIRNAME@,$DATADIRNAME,;t t
5494 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
5495 s,@GENCAT@,$GENCAT,;t t
5496 s,@CATOBJEXT@,$CATOBJEXT,;t t
5498 s,@EGREP@,$EGREP,;t t
5499 s,@MAINT@,$MAINT,;t t
5500 s,@sim_bswap@,$sim_bswap,;t t
5501 s,@sim_cflags@,$sim_cflags,;t t
5502 s,@sim_debug@,$sim_debug,;t t
5503 s,@sim_stdio@,$sim_stdio,;t t
5504 s,@sim_trace@,$sim_trace,;t t
5505 s,@sim_profile@,$sim_profile,;t t
5506 s,@PKGVERSION@,$PKGVERSION,;t t
5507 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
5508 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5509 s,@cgen_breaks@,$cgen_breaks,;t t
5510 s,@LIBOBJS@,$LIBOBJS,;t t
5511 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5516 cat >>$CONFIG_STATUS <<\_ACEOF
5517 # Split the substitutions into bite-sized pieces for seds with
5518 # small command number limits, like on Digital OSF/1 and HP-UX.
5520 ac_sed_frag=1 # Number of current file.
5521 ac_beg=1 # First line for current file.
5522 ac_end=$ac_max_sed_lines # Line after last line for current file.
5525 while $ac_more_lines; do
5526 if test $ac_beg -gt 1; then
5527 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5529 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5531 if test ! -s $tmp/subs.frag; then
5534 # The purpose of the label and of the branching condition is to
5535 # speed up the sed processing (if there are no `@' at all, there
5536 # is no need to browse any of the substitutions).
5537 # These are the two extra sed commands mentioned above.
5539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5540 if test -z "$ac_sed_cmds"; then
5541 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5543 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5545 ac_sed_frag=`expr $ac_sed_frag + 1`
5547 ac_end=`expr $ac_end + $ac_max_sed_lines`
5550 if test -z "$ac_sed_cmds"; then
5553 fi # test -n "$CONFIG_FILES"
5556 cat >>$CONFIG_STATUS <<\_ACEOF
5557 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5558 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5560 - | *:- | *:-:* ) # input from stdin
5562 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5563 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5564 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5566 * ) ac_file_in=$ac_file.in ;;
5569 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5570 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5571 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5572 X"$ac_file" : 'X\(//\)[^/]' \| \
5573 X"$ac_file" : 'X\(//\)$' \| \
5574 X"$ac_file" : 'X\(/\)' \| \
5575 . : '\(.\)' 2>/dev/null ||
5577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5579 /^X\(\/\/\)$/{ s//\1/; q; }
5580 /^X\(\/\).*/{ s//\1/; q; }
5582 { if $as_mkdir_p; then
5587 while test ! -d "$as_dir"; do
5588 as_dirs="$as_dir $as_dirs"
5589 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5591 X"$as_dir" : 'X\(//\)[^/]' \| \
5592 X"$as_dir" : 'X\(//\)$' \| \
5593 X"$as_dir" : 'X\(/\)' \| \
5594 . : '\(.\)' 2>/dev/null ||
5596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5598 /^X\(\/\/\)$/{ s//\1/; q; }
5599 /^X\(\/\).*/{ s//\1/; q; }
5602 test ! -n "$as_dirs" || mkdir $as_dirs
5603 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5604 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5605 { (exit 1); exit 1; }; }; }
5609 if test "$ac_dir" != .; then
5610 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5611 # A "../" for each directory in $ac_dir_suffix.
5612 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5614 ac_dir_suffix= ac_top_builddir=
5618 .) # No --srcdir option. We are building in place.
5620 if test -z "$ac_top_builddir"; then
5623 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5625 [\\/]* | ?:[\\/]* ) # Absolute path.
5626 ac_srcdir=$srcdir$ac_dir_suffix;
5627 ac_top_srcdir=$srcdir ;;
5629 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5630 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5633 # Do not use `cd foo && pwd` to compute absolute paths, because
5634 # the directories may not exist.
5636 .) ac_abs_builddir="$ac_dir";;
5639 .) ac_abs_builddir=`pwd`;;
5640 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5641 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5644 case $ac_abs_builddir in
5645 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5647 case ${ac_top_builddir}. in
5648 .) ac_abs_top_builddir=$ac_abs_builddir;;
5649 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5650 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5653 case $ac_abs_builddir in
5654 .) ac_abs_srcdir=$ac_srcdir;;
5657 .) ac_abs_srcdir=$ac_abs_builddir;;
5658 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5659 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5662 case $ac_abs_builddir in
5663 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5665 case $ac_top_srcdir in
5666 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5667 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5668 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5674 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5675 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5678 if test x"$ac_file" != x-; then
5679 { echo "$as_me:$LINENO: creating $ac_file" >&5
5680 echo "$as_me: creating $ac_file" >&6;}
5683 # Let's still pretend it is `configure' which instantiates (i.e., don't
5684 # use $as_me), people would be surprised to read:
5685 # /* config.h. Generated by config.status. */
5686 if test x"$ac_file" = x-; then
5689 configure_input="$ac_file. "
5691 configure_input=$configure_input"Generated from `echo $ac_file_in |
5692 sed 's,.*/,,'` by configure."
5694 # First look for the input files in the build tree, otherwise in the
5696 ac_file_inputs=`IFS=:
5697 for f in $ac_file_in; do
5699 -) echo $tmp/stdin ;;
5701 # Absolute (can't be DOS-style, as IFS=:)
5702 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5703 echo "$as_me: error: cannot find input file: $f" >&2;}
5704 { (exit 1); exit 1; }; }
5707 if test -f "$f"; then
5710 elif test -f "$srcdir/$f"; then
5715 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5716 echo "$as_me: error: cannot find input file: $f" >&2;}
5717 { (exit 1); exit 1; }; }
5720 done` || { (exit 1); exit 1; }
5722 cat >>$CONFIG_STATUS <<_ACEOF
5726 cat >>$CONFIG_STATUS <<\_ACEOF
5728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5729 s,@configure_input@,$configure_input,;t t
5730 s,@srcdir@,$ac_srcdir,;t t
5731 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5732 s,@top_srcdir@,$ac_top_srcdir,;t t
5733 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5734 s,@builddir@,$ac_builddir,;t t
5735 s,@abs_builddir@,$ac_abs_builddir,;t t
5736 s,@top_builddir@,$ac_top_builddir,;t t
5737 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5738 s,@INSTALL@,$ac_INSTALL,;t t
5739 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5741 if test x"$ac_file" != x-; then
5742 mv $tmp/out $ac_file
5750 cat >>$CONFIG_STATUS <<\_ACEOF
5753 # CONFIG_HEADER section.
5756 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5757 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5759 # ac_d sets the value in "#define NAME VALUE" lines.
5760 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5761 ac_dB='[ ].*$,\1#\2'
5764 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5765 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5766 ac_uB='$,\1#\2define\3'
5770 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5771 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5773 - | *:- | *:-:* ) # input from stdin
5775 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5777 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5778 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5779 * ) ac_file_in=$ac_file.in ;;
5782 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5783 echo "$as_me: creating $ac_file" >&6;}
5785 # First look for the input files in the build tree, otherwise in the
5787 ac_file_inputs=`IFS=:
5788 for f in $ac_file_in; do
5790 -) echo $tmp/stdin ;;
5792 # Absolute (can't be DOS-style, as IFS=:)
5793 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5794 echo "$as_me: error: cannot find input file: $f" >&2;}
5795 { (exit 1); exit 1; }; }
5796 # Do quote $f, to prevent DOS paths from being IFS'd.
5799 if test -f "$f"; then
5802 elif test -f "$srcdir/$f"; then
5807 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5808 echo "$as_me: error: cannot find input file: $f" >&2;}
5809 { (exit 1); exit 1; }; }
5812 done` || { (exit 1); exit 1; }
5813 # Remove the trailing spaces.
5814 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5818 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5819 # `conftest.undefs', that substitutes the proper values into
5820 # config.h.in to produce config.h. The first handles `#define'
5821 # templates, and the second `#undef' templates.
5822 # And first: Protect against being on the right side of a sed subst in
5823 # config.status. Protect against being in an unquoted here document
5825 rm -f conftest.defines conftest.undefs
5826 # Using a here document instead of a string reduces the quoting nightmare.
5827 # Putting comments in sed scripts is not portable.
5829 # `end' is used to avoid that the second main sed command (meant for
5830 # 0-ary CPP macros) applies to n-ary macro definitions.
5831 # See the Autoconf documentation for `clear'.
5832 cat >confdef2sed.sed <<\_ACEOF
5837 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5839 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5842 # If some macros were called several times there might be several times
5843 # the same #defines, which is useless. Nevertheless, we may not want to
5844 # sort them, since we want the *last* AC-DEFINE to be honored.
5845 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5846 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5847 rm -f confdef2sed.sed
5849 # This sed command replaces #undef with comments. This is necessary, for
5850 # example, in the case of _POSIX_SOURCE, which is predefined and required
5851 # on some systems where configure will not decide to define it.
5852 cat >>conftest.undefs <<\_ACEOF
5853 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5856 # Break up conftest.defines because some shells have a limit on the size
5857 # of here documents, and old seds have small limits too (100 cmds).
5858 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5859 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5860 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5861 echo ' :' >>$CONFIG_STATUS
5863 while grep . conftest.defines >/dev/null
5865 # Write a limited-size here document to $tmp/defines.sed.
5866 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5867 # Speed up: don't consider the non `#define' lines.
5868 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5869 # Work around the forget-to-reset-the-flag bug.
5870 echo 't clr' >>$CONFIG_STATUS
5871 echo ': clr' >>$CONFIG_STATUS
5872 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5874 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5878 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5879 rm -f conftest.defines
5880 mv conftest.tail conftest.defines
5882 rm -f conftest.defines
5883 echo ' fi # grep' >>$CONFIG_STATUS
5884 echo >>$CONFIG_STATUS
5886 # Break up conftest.undefs because some shells have a limit on the size
5887 # of here documents, and old seds have small limits too (100 cmds).
5888 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5890 while grep . conftest.undefs >/dev/null
5892 # Write a limited-size here document to $tmp/undefs.sed.
5893 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5894 # Speed up: don't consider the non `#undef'
5895 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5896 # Work around the forget-to-reset-the-flag bug.
5897 echo 't clr' >>$CONFIG_STATUS
5898 echo ': clr' >>$CONFIG_STATUS
5899 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5901 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5905 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5906 rm -f conftest.undefs
5907 mv conftest.tail conftest.undefs
5909 rm -f conftest.undefs
5911 cat >>$CONFIG_STATUS <<\_ACEOF
5912 # Let's still pretend it is `configure' which instantiates (i.e., don't
5913 # use $as_me), people would be surprised to read:
5914 # /* config.h. Generated by config.status. */
5915 if test x"$ac_file" = x-; then
5916 echo "/* Generated by configure. */" >$tmp/config.h
5918 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5920 cat $tmp/in >>$tmp/config.h
5922 if test x"$ac_file" != x-; then
5923 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5924 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5925 echo "$as_me: $ac_file is unchanged" >&6;}
5927 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5928 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5929 X"$ac_file" : 'X\(//\)[^/]' \| \
5930 X"$ac_file" : 'X\(//\)$' \| \
5931 X"$ac_file" : 'X\(/\)' \| \
5932 . : '\(.\)' 2>/dev/null ||
5934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5936 /^X\(\/\/\)$/{ s//\1/; q; }
5937 /^X\(\/\).*/{ s//\1/; q; }
5939 { if $as_mkdir_p; then
5944 while test ! -d "$as_dir"; do
5945 as_dirs="$as_dir $as_dirs"
5946 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5948 X"$as_dir" : 'X\(//\)[^/]' \| \
5949 X"$as_dir" : 'X\(//\)$' \| \
5950 X"$as_dir" : 'X\(/\)' \| \
5951 . : '\(.\)' 2>/dev/null ||
5953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5955 /^X\(\/\/\)$/{ s//\1/; q; }
5956 /^X\(\/\).*/{ s//\1/; q; }
5959 test ! -n "$as_dirs" || mkdir $as_dirs
5960 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5961 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5962 { (exit 1); exit 1; }; }; }
5965 mv $tmp/config.h $ac_file
5973 cat >>$CONFIG_STATUS <<\_ACEOF
5976 # CONFIG_LINKS section.
5979 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
5980 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5981 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5983 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
5984 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
5986 if test ! -r $srcdir/$ac_source; then
5987 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
5988 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
5989 { (exit 1); exit 1; }; }
5993 # Make relative symlinks.
5994 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
5995 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5996 X"$ac_dest" : 'X\(//\)[^/]' \| \
5997 X"$ac_dest" : 'X\(//\)$' \| \
5998 X"$ac_dest" : 'X\(/\)' \| \
5999 . : '\(.\)' 2>/dev/null ||
6001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6003 /^X\(\/\/\)$/{ s//\1/; q; }
6004 /^X\(\/\).*/{ s//\1/; q; }
6006 { if $as_mkdir_p; then
6007 mkdir -p "$ac_dest_dir"
6009 as_dir="$ac_dest_dir"
6011 while test ! -d "$as_dir"; do
6012 as_dirs="$as_dir $as_dirs"
6013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6015 X"$as_dir" : 'X\(//\)[^/]' \| \
6016 X"$as_dir" : 'X\(//\)$' \| \
6017 X"$as_dir" : 'X\(/\)' \| \
6018 . : '\(.\)' 2>/dev/null ||
6020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6022 /^X\(\/\/\)$/{ s//\1/; q; }
6023 /^X\(\/\).*/{ s//\1/; q; }
6026 test ! -n "$as_dirs" || mkdir $as_dirs
6027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
6028 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
6029 { (exit 1); exit 1; }; }; }
6033 if test "$ac_dest_dir" != .; then
6034 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
6035 # A "../" for each directory in $ac_dir_suffix.
6036 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6038 ac_dir_suffix= ac_top_builddir=
6042 .) # No --srcdir option. We are building in place.
6044 if test -z "$ac_top_builddir"; then
6047 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6049 [\\/]* | ?:[\\/]* ) # Absolute path.
6050 ac_srcdir=$srcdir$ac_dir_suffix;
6051 ac_top_srcdir=$srcdir ;;
6053 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6054 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6057 # Do not use `cd foo && pwd` to compute absolute paths, because
6058 # the directories may not exist.
6060 .) ac_abs_builddir="$ac_dest_dir";;
6062 case "$ac_dest_dir" in
6063 .) ac_abs_builddir=`pwd`;;
6064 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
6065 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
6068 case $ac_abs_builddir in
6069 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6071 case ${ac_top_builddir}. in
6072 .) ac_abs_top_builddir=$ac_abs_builddir;;
6073 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6074 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6077 case $ac_abs_builddir in
6078 .) ac_abs_srcdir=$ac_srcdir;;
6081 .) ac_abs_srcdir=$ac_abs_builddir;;
6082 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6083 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6086 case $ac_abs_builddir in
6087 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6089 case $ac_top_srcdir in
6090 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6091 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6092 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6098 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
6099 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
6102 # Try a symlink, then a hard link, then a copy.
6103 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6104 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
6105 cp -p $srcdir/$ac_source $ac_dest ||
6106 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
6107 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
6108 { (exit 1); exit 1; }; }
6111 cat >>$CONFIG_STATUS <<\_ACEOF
6114 # CONFIG_COMMANDS section.
6116 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6117 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6118 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6119 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6120 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6121 X"$ac_dest" : 'X\(//\)[^/]' \| \
6122 X"$ac_dest" : 'X\(//\)$' \| \
6123 X"$ac_dest" : 'X\(/\)' \| \
6124 . : '\(.\)' 2>/dev/null ||
6126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6128 /^X\(\/\/\)$/{ s//\1/; q; }
6129 /^X\(\/\).*/{ s//\1/; q; }
6131 { if $as_mkdir_p; then
6136 while test ! -d "$as_dir"; do
6137 as_dirs="$as_dir $as_dirs"
6138 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6140 X"$as_dir" : 'X\(//\)[^/]' \| \
6141 X"$as_dir" : 'X\(//\)$' \| \
6142 X"$as_dir" : 'X\(/\)' \| \
6143 . : '\(.\)' 2>/dev/null ||
6145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6147 /^X\(\/\/\)$/{ s//\1/; q; }
6148 /^X\(\/\).*/{ s//\1/; q; }
6151 test ! -n "$as_dirs" || mkdir $as_dirs
6152 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6153 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6154 { (exit 1); exit 1; }; }; }
6158 if test "$ac_dir" != .; then
6159 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6160 # A "../" for each directory in $ac_dir_suffix.
6161 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6163 ac_dir_suffix= ac_top_builddir=
6167 .) # No --srcdir option. We are building in place.
6169 if test -z "$ac_top_builddir"; then
6172 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6174 [\\/]* | ?:[\\/]* ) # Absolute path.
6175 ac_srcdir=$srcdir$ac_dir_suffix;
6176 ac_top_srcdir=$srcdir ;;
6178 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6179 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6182 # Do not use `cd foo && pwd` to compute absolute paths, because
6183 # the directories may not exist.
6185 .) ac_abs_builddir="$ac_dir";;
6188 .) ac_abs_builddir=`pwd`;;
6189 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6190 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6193 case $ac_abs_builddir in
6194 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6196 case ${ac_top_builddir}. in
6197 .) ac_abs_top_builddir=$ac_abs_builddir;;
6198 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6199 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6202 case $ac_abs_builddir in
6203 .) ac_abs_srcdir=$ac_srcdir;;
6206 .) ac_abs_srcdir=$ac_abs_builddir;;
6207 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6208 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6211 case $ac_abs_builddir in
6212 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6214 case $ac_top_srcdir in
6215 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6216 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6217 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6222 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6223 echo "$as_me: executing $ac_dest commands" >&6;}
6225 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6226 rm -f Makesim1.tmp Makesim2.tmp Makefile
6227 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6228 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
6229 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6230 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6231 <Makefile.sim >Makefile
6232 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6234 stamp-h ) echo > stamp-h ;;
6239 cat >>$CONFIG_STATUS <<\_ACEOF
6241 { (exit 0); exit 0; }
6243 chmod +x $CONFIG_STATUS
6244 ac_clean_files=$ac_clean_files_save
6247 # configure is writing to config.log, and then calls config.status.
6248 # config.status does its own redirection, appending to config.log.
6249 # Unfortunately, on DOS this fails, as config.log is still kept open
6250 # by configure, so config.status won't be able to write to it; its
6251 # output is simply discarded. So we exec the FD to /dev/null,
6252 # effectively closing config.log, so it can be properly (re)opened and
6253 # appended to by config.status. When coming back to configure, we
6254 # need to make the FD available again.
6255 if test "$no_create" != yes; then
6257 ac_config_status_args=
6258 test "$silent" = yes &&
6259 ac_config_status_args="$ac_config_status_args --quiet"
6261 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6263 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6264 # would make configure fail if this is the last instruction.
6265 $ac_cs_success || { (exit 1); exit 1; }