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
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 --target=TARGET configure for building compilers for TARGET [HOST]
847 if test -n "$ac_init_help"; then
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-endian=endian Specify target byte endian orientation.
862 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
863 --enable-sim-hostendian=end Specify host byte endian orientation.
864 --enable-build-warnings Enable build-time compiler warnings if gcc is used
865 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
866 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
867 --enable-sim-bitsize=N Specify target bitsize (32 or 64).
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
873 --with-bugurl=URL Direct users to URL to report a bug
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 ac_dir_suffix= ac_top_builddir=
906 .) # No --srcdir option. We are building in place.
908 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
924 .) ac_abs_builddir="$ac_dir";;
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_must_keep_next=false
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 -* ) ac_must_keep_next=true ;;
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1112 # The following way of writing the cache mishandles newlines in values,
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -n "$ac_subst_files"; then
1149 for ac_var in $ac_subst_files
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1157 if test -s confdefs.h; then
1164 sed "/^$/d" confdefs.h | sort
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1247 # Check that the precious variables saved in the cache have kept the same
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 ac_config_headers="$ac_config_headers config.h:config.in"
1325 # This file contains common code used by all simulators.
1327 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1328 # directory. It is intended to be invoked before any target specific stuff.
1329 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1330 # It is intended to be invoked last.
1332 # The simulator's configure.in should look like:
1334 # dnl Process this file with autoconf to produce a configure script.
1335 # sinclude(../common/aclocal.m4)
1337 # AC_INIT(Makefile.in)
1341 # ... target specific stuff ...
1345 # Include global overrides and fixes for Autoconf.
1376 # _AC_OUTPUT_SUBDIRS
1377 # ------------------
1378 # This is a subroutine of AC_OUTPUT, but it does not go into
1379 # config.status, rather, it is called after running config.status.
1380 # _AC_OUTPUT_SUBDIRS
1385 # _AC_ARG_VAR_VALIDATE
1386 # --------------------
1387 # The code is the same as autoconf 2.59, but with a more lenient check
1388 # on precious variables and an output of pwd that have been added in
1390 # _AC_ARG_VAR_VALIDATE
1395 # AC_MSG_FAILURE(ERROR, [EXIT-STATUS = 1])
1396 # ----------------------------------------
1397 # This is the same code as in 2.59 and 2.61, except it also outputs pwd.
1454 sim_inline="-DDEFAULT_INLINE=0"
1491 # intl sister-directory configuration rules.
1494 # The idea behind this macro is that there's no need to repeat all the
1495 # autoconf probes done by the intl directory - it's already done them
1496 # for us. In fact, there's no need even to look at the cache for the
1497 # answers. All we need to do is nab a few pieces of information.
1498 # The intl directory is set up to make this easy, by generating a
1499 # small file which can be sourced as a shell script; then we produce
1500 # the necessary substitutions and definitions for this directory.
1504 # Autoconf M4 include file defining utility macros for complex Canadian
1516 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1518 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1521 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1522 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
1526 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1527 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
1531 # Backported from Autoconf 2.5x; can go away when and if
1532 # we switch. Put the OS path separator in $PATH_SEPARATOR.
1537 # ACX_HAVE_GCC_FOR_TARGET
1538 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
1541 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
1542 # Searching for installed target binutils. We need to take extra care,
1543 # else we may find the wrong assembler, linker, etc., and lose.
1545 # First try --with-build-time-tools, if specified.
1547 # For build != host, we ask the installed GCC for the name of the tool it
1548 # uses, and accept it if it is an absolute path. This is because the
1549 # only good choice for a compiler is the same GCC version that is being
1550 # installed (or we couldn't make target libraries), and we assume that
1551 # on the host system we'll have not only the same GCC version, but also
1552 # the same binutils version.
1554 # For build == host, search the same directories that the installed
1555 # compiler will search. We used to do this for the assembler, linker,
1556 # and nm only; for simplicity of configuration, however, we extend this
1557 # criterion to tools (such as ar and ranlib) that are never invoked by
1558 # the compiler, to avoid mismatches.
1560 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
1561 # if build == target. This makes the most sense only when bootstrapping,
1562 # but we also do so when build != host. In this case, we hope that the
1563 # build and host systems will have similar contents of MD_EXEC_PREFIX.
1565 # If we do not find a suitable binary, then try the user's path.
1569 # AC_PROG_CPP_WERROR
1570 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1571 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
1572 # For now, using this also overrides header checks to use only the
1573 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1574 # bit harder from here).
1575 # Eventually autoconf will default to checking headers with the compiler
1576 # instead, and we'll have to do this differently.
1578 # AC_PROG_CPP_WERROR
1581 # We require the gnatbind program, and a compiler driver that
1582 # understands Ada. We use the user's CC setting, already found,
1583 # and possibly add $1 to the command-line parameters.
1585 # Sets the shell variable have_gnat to yes or no as appropriate, and
1586 # substitutes GNATBIND and GNATMAKE.
1612 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1613 # it by inlining the macro's contents.
1614 # This file contains common code used by all simulators.
1616 # common.m4 invokes AC macros used by all simulators and by the common
1617 # directory. It is intended to be included before any target specific
1618 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1619 # the Makefile. It is intended to be invoked last.
1621 # The simulator's configure.in should look like:
1623 # dnl Process this file with autoconf to produce a configure script.
1625 # AC_INIT(Makefile.in)
1626 # AC_CONFIG_HEADER(config.h:config.in)
1628 # sinclude(../common/aclocal.m4)
1629 # sinclude(../common/common.m4)
1631 # ... target specific stuff ...
1634 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1635 if test -f $ac_dir/install-sh; then
1637 ac_install_sh="$ac_aux_dir/install-sh -c"
1639 elif test -f $ac_dir/install.sh; then
1641 ac_install_sh="$ac_aux_dir/install.sh -c"
1643 elif test -f $ac_dir/shtool; then
1645 ac_install_sh="$ac_aux_dir/shtool install -c"
1649 if test -z "$ac_aux_dir"; then
1650 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1651 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1652 { (exit 1); exit 1; }; }
1654 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1655 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1656 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1658 # Make sure we can run config.sub.
1659 $ac_config_sub sun4 >/dev/null 2>&1 ||
1660 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1661 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1662 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: checking build system type" >&5
1665 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1666 if test "${ac_cv_build+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 ac_cv_build_alias=$build_alias
1670 test -z "$ac_cv_build_alias" &&
1671 ac_cv_build_alias=`$ac_config_guess`
1672 test -z "$ac_cv_build_alias" &&
1673 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1674 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1675 { (exit 1); exit 1; }; }
1676 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1677 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1678 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1679 { (exit 1); exit 1; }; }
1682 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1683 echo "${ECHO_T}$ac_cv_build" >&6
1685 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1686 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1687 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690 echo "$as_me:$LINENO: checking host system type" >&5
1691 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1692 if test "${ac_cv_host+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 ac_cv_host_alias=$host_alias
1696 test -z "$ac_cv_host_alias" &&
1697 ac_cv_host_alias=$ac_cv_build_alias
1698 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1699 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1700 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1701 { (exit 1); exit 1; }; }
1704 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1705 echo "${ECHO_T}$ac_cv_host" >&6
1707 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1708 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1709 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1712 echo "$as_me:$LINENO: checking target system type" >&5
1713 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1714 if test "${ac_cv_target+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 ac_cv_target_alias=$target_alias
1718 test "x$ac_cv_target_alias" = "x" &&
1719 ac_cv_target_alias=$ac_cv_host_alias
1720 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1721 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1722 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1723 { (exit 1); exit 1; }; }
1726 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1727 echo "${ECHO_T}$ac_cv_target" >&6
1728 target=$ac_cv_target
1729 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1730 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1731 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1734 # The aliases save the names the user supplied, while $host etc.
1735 # will get canonicalized.
1736 test -n "$target_alias" &&
1737 test "$program_prefix$program_suffix$program_transform_name" = \
1739 program_prefix=${target_alias}-
1740 test "$program_prefix" != NONE &&
1741 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742 # Use a double $ so make ignores it.
1743 test "$program_suffix" != NONE &&
1744 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745 # Double any \ or $. echo might interpret backslashes.
1746 # By default was `s,x,x', remove it if useless.
1747 cat <<\_ACEOF >conftest.sed
1748 s/[\\$]/&&/g;s/;s,x,x,$//
1750 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1754 ac_cpp='$CPP $CPPFLAGS'
1755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1758 if test -n "$ac_tool_prefix"; then
1759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1761 echo "$as_me:$LINENO: checking for $ac_word" >&5
1762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763 if test "${ac_cv_prog_CC+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 if test -n "$CC"; then
1767 ac_cv_prog_CC="$CC" # Let the user override the test.
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 test -z "$as_dir" && as_dir=.
1774 for ac_exec_ext in '' $ac_executable_extensions; do
1775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786 if test -n "$CC"; then
1787 echo "$as_me:$LINENO: result: $CC" >&5
1788 echo "${ECHO_T}$CC" >&6
1790 echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1795 if test -z "$ac_cv_prog_CC"; then
1797 # Extract the first word of "gcc", so it can be a program name with args.
1798 set dummy gcc; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 if test -n "$ac_ct_CC"; then
1805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_ac_ct_CC="gcc"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1824 if test -n "$ac_ct_CC"; then
1825 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1826 echo "${ECHO_T}$ac_ct_CC" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1837 if test -z "$CC"; then
1838 if test -n "$ac_tool_prefix"; then
1839 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1840 set dummy ${ac_tool_prefix}cc; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 if test -n "$CC"; then
1847 ac_cv_prog_CC="$CC" # Let the user override the test.
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 test -z "$as_dir" && as_dir=.
1854 for ac_exec_ext in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_CC="${ac_tool_prefix}cc"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 if test -n "$CC"; then
1867 echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1875 if test -z "$ac_cv_prog_CC"; then
1877 # Extract the first word of "cc", so it can be a program name with args.
1878 set dummy cc; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$ac_ct_CC"; then
1885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_ac_ct_CC="cc"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1904 if test -n "$ac_ct_CC"; then
1905 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1906 echo "${ECHO_T}$ac_ct_CC" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1918 if test -z "$CC"; then
1919 # Extract the first word of "cc", so it can be a program name with args.
1920 set dummy cc; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 if test -n "$CC"; then
1927 ac_cv_prog_CC="$CC" # Let the user override the test.
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1938 ac_prog_rejected=yes
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 if test $ac_prog_rejected = yes; then
1949 # We found a bogon in the path, so make sure we never use it.
1950 set dummy $ac_cv_prog_CC
1952 if test $# != 0; then
1953 # We chose a different compiler from the bogus one.
1954 # However, it has the same basename, so the bogon will be chosen
1955 # first if we set CC to just the basename; use the full file name.
1957 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1963 if test -n "$CC"; then
1964 echo "$as_me:$LINENO: result: $CC" >&5
1965 echo "${ECHO_T}$CC" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1972 if test -z "$CC"; then
1973 if test -n "$ac_tool_prefix"; then
1976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 if test -n "$CC"; then
2004 echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6
2007 echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2011 test -n "$CC" && break
2014 if test -z "$CC"; then
2018 # Extract the first word of "$ac_prog", so it can be a program name with args.
2019 set dummy $ac_prog; ac_word=$2
2020 echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 if test -n "$ac_ct_CC"; then
2026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035 ac_cv_prog_ac_ct_CC="$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2045 if test -n "$ac_ct_CC"; then
2046 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2047 echo "${ECHO_T}$ac_ct_CC" >&6
2049 echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2053 test -n "$ac_ct_CC" && break
2062 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2063 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2064 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }; }
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO:" \
2072 "checking for C compiler version" >&5
2073 ac_compiler=`set X $ac_compile; echo $2`
2074 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2075 (eval $ac_compiler --version </dev/null >&5) 2>&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2080 (eval $ac_compiler -v </dev/null >&5) 2>&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2085 (eval $ac_compiler -V </dev/null >&5) 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2090 cat >conftest.$ac_ext <<_ACEOF
2093 cat confdefs.h >>conftest.$ac_ext
2094 cat >>conftest.$ac_ext <<_ACEOF
2095 /* end confdefs.h. */
2105 ac_clean_files_save=$ac_clean_files
2106 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2107 # Try to create an executable without -o first, disregard a.out.
2108 # It will help us diagnose broken compilers, and finding out an intuition
2110 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2111 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2112 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2113 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2114 (eval $ac_link_default) 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; then
2118 # Find the output, starting from the most likely. This scheme is
2119 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2122 # Be careful to initialize this variable, since it used to be cached.
2123 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2125 # b.out is created by i960 compilers.
2126 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2128 test -f "$ac_file" || continue
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2133 # This is the source file.
2136 # We found the default executable, but exeext='' is most
2140 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2141 # FIXME: I believe we export ac_cv_exeext for Libtool,
2142 # but it would be cool to find out if it's true. Does anybody
2143 # maintain Libtool? --akim.
2151 echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2154 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2155 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2156 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2157 See \`config.log' for more details." >&5
2158 echo "$as_me: error: C compiler cannot create executables
2159 See \`config.log' for more details." >&2;}
2160 { (exit 77); exit 77; }; }; }
2163 ac_exeext=$ac_cv_exeext
2164 echo "$as_me:$LINENO: result: $ac_file" >&5
2165 echo "${ECHO_T}$ac_file" >&6
2167 # Check the compiler produces executables we can run. If not, either
2168 # the compiler is broken, or we cross compile.
2169 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2170 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2171 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2172 # If not cross compiling, check that we can run a simple program.
2173 if test "$cross_compiling" != yes; then
2174 if { ac_try='./$ac_file'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2182 if test "$cross_compiling" = maybe; then
2185 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2186 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2188 If you meant to cross compile, use \`--host'.
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: cannot run C compiled programs.
2191 If you meant to cross compile, use \`--host'.
2192 See \`config.log' for more details." >&2;}
2193 { (exit 1); exit 1; }; }; }
2197 echo "$as_me:$LINENO: result: yes" >&5
2198 echo "${ECHO_T}yes" >&6
2200 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2201 ac_clean_files=$ac_clean_files_save
2202 # Check the compiler produces executables we can run. If not, either
2203 # the compiler is broken, or we cross compile.
2204 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2205 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2206 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2207 echo "${ECHO_T}$cross_compiling" >&6
2209 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2210 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2212 (eval $ac_link) 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; then
2216 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2217 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2218 # work properly (i.e., refer to `conftest.exe'), while it won't with
2220 for ac_file in conftest.exe conftest conftest.*; do
2221 test -f "$ac_file" || continue
2223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2224 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2232 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }; }
2240 rm -f conftest$ac_cv_exeext
2241 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2242 echo "${ECHO_T}$ac_cv_exeext" >&6
2244 rm -f conftest.$ac_ext
2245 EXEEXT=$ac_cv_exeext
2247 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2248 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2249 if test "${ac_cv_objext+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 cat >conftest.$ac_ext <<_ACEOF
2255 cat confdefs.h >>conftest.$ac_ext
2256 cat >>conftest.$ac_ext <<_ACEOF
2257 /* end confdefs.h. */
2267 rm -f conftest.o conftest.obj
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; then
2273 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2276 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2284 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2285 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }; }
2293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2295 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296 echo "${ECHO_T}$ac_cv_objext" >&6
2297 OBJEXT=$ac_cv_objext
2299 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 cat >conftest.$ac_ext <<_ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1 >conftest.err
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2355 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357 GCC=`test $ac_compiler_gnu = yes && echo yes`
2358 ac_test_CFLAGS=${CFLAGS+set}
2359 ac_save_CFLAGS=$CFLAGS
2361 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363 if test "${ac_cv_prog_cc_g+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2381 rm -f conftest.$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2385 grep -v '^ *+' conftest.er1 >conftest.err
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414 if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416 elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2423 if test "$GCC" = yes; then
2429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 ac_cv_prog_cc_stdc=no
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2444 #include <sys/types.h>
2445 #include <sys/stat.h>
2446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447 struct buf { int x; };
2448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2460 s = g (p, va_arg (v,int));
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2474 int test (int i, double x);
2475 struct s1 {int (*f) (int a);};
2476 struct s2 {int (*f) (double a);};
2477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2488 # Don't try gcc -ansi; that turns off useful extensions and
2489 # breaks some systems' header files.
2490 # AIX -qlanglvl=ansi
2491 # Ultrix and OSF/1 -std1
2492 # HP-UX 10.20 and later -Ae
2493 # HP-UX older versions -Aa -D_HPUX_SOURCE
2494 # SVR4 -Xc -D__EXTENSIONS__
2495 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 ac_cv_prog_cc_stdc=$ac_arg
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 rm -f conftest.err conftest.$ac_objext
2529 rm -f conftest.$ac_ext conftest.$ac_objext
2534 case "x$ac_cv_prog_cc_stdc" in
2536 echo "$as_me:$LINENO: result: none needed" >&5
2537 echo "${ECHO_T}none needed" >&6 ;;
2539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541 CC="$CC $ac_cv_prog_cc_stdc" ;;
2544 # Some people use a C++ compiler to compile C. Since we use `exit',
2545 # in C++ we need to declare it. In case someone uses the same compiler
2546 # for both compiling C and C++ we need to have the C++ compiler decide
2547 # the declaration of exit, since it's the most demanding environment.
2548 cat >conftest.$ac_ext <<_ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2557 grep -v '^ *+' conftest.er1 >conftest.err
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 for ac_declaration in \
2577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2583 cat >conftest.$ac_ext <<_ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_c_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 if test -n "$ac_declaration"; then
2676 echo '#ifdef __cplusplus' >>confdefs.h
2677 echo $ac_declaration >>confdefs.h
2678 echo '#endif' >>confdefs.h
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 # Find a good install program. We prefer a C program (faster),
2694 # so one script is as good as another. But avoid the broken or
2695 # incompatible versions:
2696 # SysV /etc/install, /usr/sbin/install
2697 # SunOS /usr/etc/install
2698 # IRIX /sbin/install
2700 # AmigaOS /C/install, which installs bootblocks on floppy discs
2701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2704 # OS/2's system install, which has a completely different semantic
2705 # ./install, which can be erroneously created by make from ./install.sh.
2706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2708 if test -z "$INSTALL"; then
2709 if test "${ac_cv_path_install+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 test -z "$as_dir" && as_dir=.
2717 # Account for people who put trailing slashes in PATH elements.
2719 ./ | .// | /cC/* | \
2720 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2721 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2724 # OSF1 and SCO ODT 3.0 have their own names for install.
2725 # Don't use installbsd from OSF since it installs stuff as root
2727 for ac_prog in ginstall scoinst install; do
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2730 if test $ac_prog = install &&
2731 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2732 # AIX install. It has an incompatible calling convention.
2734 elif test $ac_prog = install &&
2735 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2736 # program-specific install script used by HP pwplus--don't use.
2739 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2751 if test "${ac_cv_path_install+set}" = set; then
2752 INSTALL=$ac_cv_path_install
2754 # As a last resort, use the slow shell script. We don't cache a
2755 # path for INSTALL within a source directory, because that will
2756 # break other packages using the cache if that directory is
2757 # removed, or if the path is relative.
2758 INSTALL=$ac_install_sh
2761 echo "$as_me:$LINENO: result: $INSTALL" >&5
2762 echo "${ECHO_T}$INSTALL" >&6
2764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2765 # It thinks the first close brace ends the variable substitution.
2766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2773 # Put a plausible default for CC_FOR_BUILD in Makefile.
2774 if test "x$cross_compiling" = "xno"; then
2775 CC_FOR_BUILD='$(CC)'
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_RANLIB+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 if test -n "$RANLIB"; then
2794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 RANLIB=$ac_cv_prog_RANLIB
2813 if test -n "$RANLIB"; then
2814 echo "$as_me:$LINENO: result: $RANLIB" >&5
2815 echo "${ECHO_T}$RANLIB" >&6
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 if test -z "$ac_cv_prog_RANLIB"; then
2823 ac_ct_RANLIB=$RANLIB
2824 # Extract the first word of "ranlib", so it can be a program name with args.
2825 set dummy ranlib; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 if test -n "$ac_ct_RANLIB"; then
2832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_RANLIB="ranlib"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2852 if test -n "$ac_ct_RANLIB"; then
2853 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2854 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2856 echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2860 RANLIB=$ac_ct_RANLIB
2862 RANLIB="$ac_cv_prog_RANLIB"
2867 # If we haven't got the data from the intl directory,
2868 # assume NLS is disabled.
2877 if test -f ../../intl/config.intl; then
2878 . ../../intl/config.intl
2880 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2881 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2882 if test x"$USE_NLS" != xyes; then
2883 echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2886 echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2889 cat >>confdefs.h <<\_ACEOF
2890 #define ENABLE_NLS 1
2894 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2895 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2896 # Look for .po and .gmo files in the source directory.
2899 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2900 # If there aren't any .gmo files the shell will give us the
2901 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2903 case "$cat" in *\**)
2906 # The quadruple backslash is collapsed to a double backslash
2907 # by the backticks, then collapsed again by the double quotes,
2908 # leaving us with one backslash in the sed expression (right
2909 # before the dot that mustn't act as a wildcard).
2910 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2911 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2912 # The user is allowed to set LINGUAS to a list of languages to
2913 # install catalogs for. If it's empty that means "all of them."
2914 if test "x$LINGUAS" = x; then
2915 CATALOGS="$CATALOGS $cat"
2916 XLINGUAS="$XLINGUAS $lang"
2918 case "$LINGUAS" in *$lang*)
2919 CATALOGS="$CATALOGS $cat"
2920 XLINGUAS="$XLINGUAS $lang"
2926 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2927 echo "${ECHO_T}$LINGUAS" >&6
2940 # Check for common headers.
2941 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2942 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2945 ac_cpp='$CPP $CPPFLAGS'
2946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2950 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2951 # On Suns, sometimes $CPP names a directory.
2952 if test -n "$CPP" && test -d "$CPP"; then
2955 if test -z "$CPP"; then
2956 if test "${ac_cv_prog_CPP+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 # Double quotes because CPP needs to be expanded
2960 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2963 for ac_c_preproc_warn_flag in '' yes
2965 # Use a header file that comes with gcc, so configuring glibc
2966 # with a fresh cross-compiler works.
2967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2968 # <limits.h> exists even on freestanding compilers.
2969 # On the NeXT, cc -E runs the code through the compiler's parser,
2970 # not just through cpp. "Syntax error" is here to catch this case.
2971 cat >conftest.$ac_ext <<_ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2978 # include <limits.h>
2980 # include <assert.h>
2984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987 grep -v '^ *+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } >/dev/null; then
2992 if test -s conftest.err; then
2993 ac_cpp_err=$ac_c_preproc_warn_flag
2994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3001 if test -z "$ac_cpp_err"; then
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 # Broken: fails on valid input.
3010 rm -f conftest.err conftest.$ac_ext
3012 # OK, works on sane cases. Now check whether non-existent headers
3013 # can be detected and how.
3014 cat >conftest.$ac_ext <<_ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #include <ac_nonexistent.h>
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null; then
3030 if test -s conftest.err; then
3031 ac_cpp_err=$ac_c_preproc_warn_flag
3032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3039 if test -z "$ac_cpp_err"; then
3040 # Broken: success on invalid input.
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 # Passes both tests.
3050 rm -f conftest.err conftest.$ac_ext
3053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3054 rm -f conftest.err conftest.$ac_ext
3055 if $ac_preproc_ok; then
3067 echo "$as_me:$LINENO: result: $CPP" >&5
3068 echo "${ECHO_T}$CPP" >&6
3070 for ac_c_preproc_warn_flag in '' yes
3072 # Use a header file that comes with gcc, so configuring glibc
3073 # with a fresh cross-compiler works.
3074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075 # <limits.h> exists even on freestanding compilers.
3076 # On the NeXT, cc -E runs the code through the compiler's parser,
3077 # not just through cpp. "Syntax error" is here to catch this case.
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3085 # include <limits.h>
3087 # include <assert.h>
3091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094 grep -v '^ *+' conftest.er1 >conftest.err
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } >/dev/null; then
3099 if test -s conftest.err; then
3100 ac_cpp_err=$ac_c_preproc_warn_flag
3101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3108 if test -z "$ac_cpp_err"; then
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 # Broken: fails on valid input.
3117 rm -f conftest.err conftest.$ac_ext
3119 # OK, works on sane cases. Now check whether non-existent headers
3120 # can be detected and how.
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <ac_nonexistent.h>
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
3139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146 if test -z "$ac_cpp_err"; then
3147 # Broken: success on invalid input.
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 # Passes both tests.
3157 rm -f conftest.err conftest.$ac_ext
3160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161 rm -f conftest.err conftest.$ac_ext
3162 if $ac_preproc_ok; then
3165 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3166 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3168 See \`config.log' for more details." >&5
3169 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3170 See \`config.log' for more details." >&2;}
3171 { (exit 1); exit 1; }; }; }
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181 echo "$as_me:$LINENO: checking for egrep" >&5
3182 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3183 if test "${ac_cv_prog_egrep+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3187 then ac_cv_prog_egrep='grep -E'
3188 else ac_cv_prog_egrep='egrep'
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3192 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3193 EGREP=$ac_cv_prog_egrep
3196 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3198 if test "${ac_cv_header_stdc+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3220 rm -f conftest.$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -z "$ac_c_werror_flag"
3230 || test ! -s conftest.err'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; } &&
3236 { ac_try='test -s conftest.$ac_objext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_header_stdc=yes
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 ac_cv_header_stdc=no
3249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3251 if test $ac_cv_header_stdc = yes; then
3252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3253 cat >conftest.$ac_ext <<_ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263 $EGREP "memchr" >/dev/null 2>&1; then
3266 ac_cv_header_stdc=no
3272 if test $ac_cv_header_stdc = yes; then
3273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3284 $EGREP "free" >/dev/null 2>&1; then
3287 ac_cv_header_stdc=no
3293 if test $ac_cv_header_stdc = yes; then
3294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3295 if test "$cross_compiling" = yes; then
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3305 #if ((' ' & 0x0FF) == 0x020)
3306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3309 # define ISLOWER(c) \
3310 (('a' <= (c) && (c) <= 'i') \
3311 || ('j' <= (c) && (c) <= 'r') \
3312 || ('s' <= (c) && (c) <= 'z'))
3313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3321 for (i = 0; i < 256; i++)
3322 if (XOR (islower (i), ISLOWER (i))
3323 || toupper (i) != TOUPPER (i))
3328 rm -f conftest$ac_exeext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3330 (eval $ac_link) 2>&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3341 echo "$as_me: program exited with status $ac_status" >&5
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3346 ac_cv_header_stdc=no
3348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3352 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3353 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3354 if test $ac_cv_header_stdc = yes; then
3356 cat >>confdefs.h <<\_ACEOF
3357 #define STDC_HEADERS 1
3362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3372 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3373 inttypes.h stdint.h unistd.h
3375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3376 echo "$as_me:$LINENO: checking for $ac_header" >&5
3377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3387 $ac_includes_default
3389 #include <$ac_header>
3391 rm -f conftest.$ac_objext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>conftest.er1
3395 grep -v '^ *+' conftest.er1 >conftest.err
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -z "$ac_c_werror_flag"
3401 || test ! -s conftest.err'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 eval "$as_ac_Header=yes"
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 eval "$as_ac_Header=no"
3420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3425 cat >>confdefs.h <<_ACEOF
3426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3439 for ac_header in stdlib.h string.h strings.h unistd.h time.h
3441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3443 echo "$as_me:$LINENO: checking for $ac_header" >&5
3444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3451 # Is the header compilable?
3452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 $ac_includes_default
3461 #include <$ac_header>
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465 (eval $ac_compile) 2>conftest.er1
3467 grep -v '^ *+' conftest.er1 >conftest.err
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } &&
3472 { ac_try='test -z "$ac_c_werror_flag"
3473 || test ! -s conftest.err'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; } &&
3479 { ac_try='test -s conftest.$ac_objext'
3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 ac_header_compiler=yes
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 ac_header_compiler=no
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3494 echo "${ECHO_T}$ac_header_compiler" >&6
3496 # Is the header present?
3497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 #include <$ac_header>
3507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null; then
3515 if test -s conftest.err; then
3516 ac_cpp_err=$ac_c_preproc_warn_flag
3517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3524 if test -z "$ac_cpp_err"; then
3525 ac_header_preproc=yes
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 ac_header_preproc=no
3532 rm -f conftest.err conftest.$ac_ext
3533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3534 echo "${ECHO_T}$ac_header_preproc" >&6
3536 # So? What about this header?
3537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3543 ac_header_preproc=yes
3546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3560 ## ------------------------------------------ ##
3561 ## Report this to the AC_PACKAGE_NAME lists. ##
3562 ## ------------------------------------------ ##
3565 sed "s/^/$as_me: WARNING: /" >&2
3568 echo "$as_me:$LINENO: checking for $ac_header" >&5
3569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 eval "$as_ac_Header=\$ac_header_preproc"
3575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3580 cat >>confdefs.h <<_ACEOF
3581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3590 for ac_header in sys/time.h sys/resource.h
3592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3594 echo "$as_me:$LINENO: checking for $ac_header" >&5
3595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3602 # Is the header compilable?
3603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3605 cat >conftest.$ac_ext <<_ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 $ac_includes_default
3612 #include <$ac_header>
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3618 grep -v '^ *+' conftest.er1 >conftest.err
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 ac_header_compiler=yes
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3641 ac_header_compiler=no
3643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3645 echo "${ECHO_T}$ac_header_compiler" >&6
3647 # Is the header present?
3648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656 #include <$ac_header>
3658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661 grep -v '^ *+' conftest.er1 >conftest.err
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } >/dev/null; then
3666 if test -s conftest.err; then
3667 ac_cpp_err=$ac_c_preproc_warn_flag
3668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3675 if test -z "$ac_cpp_err"; then
3676 ac_header_preproc=yes
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 ac_header_preproc=no
3683 rm -f conftest.err conftest.$ac_ext
3684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3685 echo "${ECHO_T}$ac_header_preproc" >&6
3687 # So? What about this header?
3688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3694 ac_header_preproc=yes
3697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3711 ## ------------------------------------------ ##
3712 ## Report this to the AC_PACKAGE_NAME lists. ##
3713 ## ------------------------------------------ ##
3716 sed "s/^/$as_me: WARNING: /" >&2
3719 echo "$as_me:$LINENO: checking for $ac_header" >&5
3720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 eval "$as_ac_Header=\$ac_header_preproc"
3726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3731 cat >>confdefs.h <<_ACEOF
3732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3741 for ac_header in fcntl.h fpu_control.h
3743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3745 echo "$as_me:$LINENO: checking for $ac_header" >&5
3746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3753 # Is the header compilable?
3754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3756 cat >conftest.$ac_ext <<_ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762 $ac_includes_default
3763 #include <$ac_header>
3765 rm -f conftest.$ac_objext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>conftest.er1
3769 grep -v '^ *+' conftest.er1 >conftest.err
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try='test -z "$ac_c_werror_flag"
3775 || test ! -s conftest.err'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; } &&
3781 { ac_try='test -s conftest.$ac_objext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_header_compiler=yes
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 ac_header_compiler=no
3794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3796 echo "${ECHO_T}$ac_header_compiler" >&6
3798 # Is the header present?
3799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <$ac_header>
3809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3812 grep -v '^ *+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null; then
3817 if test -s conftest.err; then
3818 ac_cpp_err=$ac_c_preproc_warn_flag
3819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3826 if test -z "$ac_cpp_err"; then
3827 ac_header_preproc=yes
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 ac_header_preproc=no
3834 rm -f conftest.err conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3836 echo "${ECHO_T}$ac_header_preproc" >&6
3838 # So? What about this header?
3839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3845 ac_header_preproc=yes
3848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3862 ## ------------------------------------------ ##
3863 ## Report this to the AC_PACKAGE_NAME lists. ##
3864 ## ------------------------------------------ ##
3867 sed "s/^/$as_me: WARNING: /" >&2
3870 echo "$as_me:$LINENO: checking for $ac_header" >&5
3871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 eval "$as_ac_Header=\$ac_header_preproc"
3877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3882 cat >>confdefs.h <<_ACEOF
3883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3893 for ac_header in dlfcn.h errno.h sys/stat.h
3895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3897 echo "$as_me:$LINENO: checking for $ac_header" >&5
3898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905 # Is the header compilable?
3906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3908 cat >conftest.$ac_ext <<_ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3914 $ac_includes_default
3915 #include <$ac_header>
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919 (eval $ac_compile) 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_c_werror_flag"
3927 || test ! -s conftest.err'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 ac_header_compiler=yes
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 ac_header_compiler=no
3946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3948 echo "${ECHO_T}$ac_header_compiler" >&6
3950 # Is the header present?
3951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3953 cat >conftest.$ac_ext <<_ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #include <$ac_header>
3961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3964 grep -v '^ *+' conftest.er1 >conftest.err
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } >/dev/null; then
3969 if test -s conftest.err; then
3970 ac_cpp_err=$ac_c_preproc_warn_flag
3971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3978 if test -z "$ac_cpp_err"; then
3979 ac_header_preproc=yes
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 ac_header_preproc=no
3986 rm -f conftest.err conftest.$ac_ext
3987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3988 echo "${ECHO_T}$ac_header_preproc" >&6
3990 # So? What about this header?
3991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3997 ac_header_preproc=yes
4000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4014 ## ------------------------------------------ ##
4015 ## Report this to the AC_PACKAGE_NAME lists. ##
4016 ## ------------------------------------------ ##
4019 sed "s/^/$as_me: WARNING: /" >&2
4022 echo "$as_me:$LINENO: checking for $ac_header" >&5
4023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 eval "$as_ac_Header=\$ac_header_preproc"
4029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4034 cat >>confdefs.h <<_ACEOF
4035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4046 for ac_func in getrusage time sigaction __setfpucw
4048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4049 echo "$as_me:$LINENO: checking for $ac_func" >&5
4050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4051 if eval "test \"\${$as_ac_var+set}\" = set"; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 cat >conftest.$ac_ext <<_ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4062 #define $ac_func innocuous_$ac_func
4064 /* System header to define __stub macros and hopefully few prototypes,
4065 which can conflict with char $ac_func (); below.
4066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4067 <limits.h> exists even on freestanding compilers. */
4070 # include <limits.h>
4072 # include <assert.h>
4077 /* Override any gcc2 internal prototype to avoid an error. */
4082 /* We use char because int might match the return type of a gcc2
4083 builtin and then its argument prototype would still apply. */
4085 /* The GNU C library defines this for functions which it implements
4086 to always fail with ENOSYS. Some functions are actually named
4087 something starting with __ and the normal name is an alias. */
4088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4091 char (*f) () = $ac_func;
4100 return f != $ac_func;
4105 rm -f conftest.$ac_objext conftest$ac_exeext
4106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4107 (eval $ac_link) 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try='test -z "$ac_c_werror_flag"
4115 || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest$ac_exeext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 eval "$as_ac_var=yes"
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4132 eval "$as_ac_var=no"
4134 rm -f conftest.err conftest.$ac_objext \
4135 conftest$ac_exeext conftest.$ac_ext
4137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4139 if test `eval echo '${'$as_ac_var'}'` = yes; then
4140 cat >>confdefs.h <<_ACEOF
4141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4148 # Check for socket libraries
4150 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4151 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
4152 if test "${ac_cv_lib_socket_bind+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 ac_check_lib_save_LIBS=$LIBS
4156 LIBS="-lsocket $LIBS"
4157 cat >conftest.$ac_ext <<_ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4164 /* Override any gcc2 internal prototype to avoid an error. */
4168 /* We use char because int might match the return type of a gcc2
4169 builtin and then its argument prototype would still apply. */
4179 rm -f conftest.$ac_objext conftest$ac_exeext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4181 (eval $ac_link) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest$ac_exeext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_lib_socket_bind=yes
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_lib_socket_bind=no
4208 rm -f conftest.err conftest.$ac_objext \
4209 conftest$ac_exeext conftest.$ac_ext
4210 LIBS=$ac_check_lib_save_LIBS
4212 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4213 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4214 if test $ac_cv_lib_socket_bind = yes; then
4215 cat >>confdefs.h <<_ACEOF
4216 #define HAVE_LIBSOCKET 1
4219 LIBS="-lsocket $LIBS"
4224 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4225 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4226 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 ac_check_lib_save_LIBS=$LIBS
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4238 /* Override any gcc2 internal prototype to avoid an error. */
4242 /* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4244 char gethostbyname ();
4253 rm -f conftest.$ac_objext conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255 (eval $ac_link) 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_lib_nsl_gethostbyname=yes
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 ac_cv_lib_nsl_gethostbyname=no
4282 rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
4284 LIBS=$ac_check_lib_save_LIBS
4286 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4287 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4288 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4289 cat >>confdefs.h <<_ACEOF
4290 #define HAVE_LIBNSL 1
4298 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4299 # using the same condition.
4300 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4301 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4302 if test "${ac_cv_search_zlibVersion+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 ac_func_search_save_LIBS=$LIBS
4306 ac_cv_search_zlibVersion=no
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4314 /* Override any gcc2 internal prototype to avoid an error. */
4318 /* We use char because int might match the return type of a gcc2
4319 builtin and then its argument prototype would still apply. */
4320 char zlibVersion ();
4329 rm -f conftest.$ac_objext conftest$ac_exeext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4331 (eval $ac_link) 2>conftest.er1
4333 grep -v '^ *+' conftest.er1 >conftest.err
4335 cat conftest.err >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -z "$ac_c_werror_flag"
4339 || test ! -s conftest.err'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; } &&
4345 { ac_try='test -s conftest$ac_exeext'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 ac_cv_search_zlibVersion="none required"
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4357 rm -f conftest.err conftest.$ac_objext \
4358 conftest$ac_exeext conftest.$ac_ext
4359 if test "$ac_cv_search_zlibVersion" = no; then
4361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4362 cat >conftest.$ac_ext <<_ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4369 /* Override any gcc2 internal prototype to avoid an error. */
4373 /* We use char because int might match the return type of a gcc2
4374 builtin and then its argument prototype would still apply. */
4375 char zlibVersion ();
4384 rm -f conftest.$ac_objext conftest$ac_exeext
4385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4386 (eval $ac_link) 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } &&
4393 { ac_try='test -z "$ac_c_werror_flag"
4394 || test ! -s conftest.err'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; } &&
4400 { ac_try='test -s conftest$ac_exeext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_cv_search_zlibVersion="-l$ac_lib"
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4413 rm -f conftest.err conftest.$ac_objext \
4414 conftest$ac_exeext conftest.$ac_ext
4417 LIBS=$ac_func_search_save_LIBS
4419 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4420 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4421 if test "$ac_cv_search_zlibVersion" != no; then
4422 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
4424 for ac_header in zlib.h
4426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4428 echo "$as_me:$LINENO: checking for $ac_header" >&5
4429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4436 # Is the header compilable?
4437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4439 cat >conftest.$ac_ext <<_ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 $ac_includes_default
4446 #include <$ac_header>
4448 rm -f conftest.$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag"
4458 || test ! -s conftest.err'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; } &&
4464 { ac_try='test -s conftest.$ac_objext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 ac_header_compiler=yes
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 ac_header_compiler=no
4477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4479 echo "${ECHO_T}$ac_header_compiler" >&6
4481 # Is the header present?
4482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4484 cat >conftest.$ac_ext <<_ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 #include <$ac_header>
4492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev/null; then
4500 if test -s conftest.err; then
4501 ac_cpp_err=$ac_c_preproc_warn_flag
4502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4509 if test -z "$ac_cpp_err"; then
4510 ac_header_preproc=yes
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 ac_header_preproc=no
4517 rm -f conftest.err conftest.$ac_ext
4518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4519 echo "${ECHO_T}$ac_header_preproc" >&6
4521 # So? What about this header?
4522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4528 ac_header_preproc=yes
4531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4545 ## ------------------------------------------ ##
4546 ## Report this to the AC_PACKAGE_NAME lists. ##
4547 ## ------------------------------------------ ##
4550 sed "s/^/$as_me: WARNING: /" >&2
4553 echo "$as_me:$LINENO: checking for $ac_header" >&5
4554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 eval "$as_ac_Header=\$ac_header_preproc"
4560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4576 . ${srcdir}/../../bfd/configure.host
4580 USE_MAINTAINER_MODE=no
4581 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4582 if test "${enable_maintainer_mode+set}" = set; then
4583 enableval="$enable_maintainer_mode"
4584 case "${enableval}" in
4585 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4587 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4588 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4589 { (exit 1); exit 1; }; }; MAINT="#" ;;
4591 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4592 echo "Setting maintainer mode" 6>&1
4599 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4600 if test "${enable_sim_bswap+set}" = set; then
4601 enableval="$enable_sim_bswap"
4602 case "${enableval}" in
4603 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4604 no) sim_bswap="-DWITH_BSWAP=0";;
4605 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4606 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4607 { (exit 1); exit 1; }; }; sim_bswap="";;
4609 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4610 echo "Setting bswap flags = $sim_bswap" 6>&1
4617 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4618 if test "${enable_sim_cflags+set}" = set; then
4619 enableval="$enable_sim_cflags"
4620 case "${enableval}" in
4621 yes) sim_cflags="-O2 -fomit-frame-pointer";;
4622 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4623 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4624 { (exit 1); exit 1; }; }; sim_cflags="";;
4626 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4628 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4629 echo "Setting sim cflags = $sim_cflags" 6>&1
4636 # Check whether --enable-sim-debug or --disable-sim-debug was given.
4637 if test "${enable_sim_debug+set}" = set; then
4638 enableval="$enable_sim_debug"
4639 case "${enableval}" in
4640 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4641 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4642 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4644 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4645 echo "Setting sim debug = $sim_debug" 6>&1
4652 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4653 if test "${enable_sim_stdio+set}" = set; then
4654 enableval="$enable_sim_stdio"
4655 case "${enableval}" in
4656 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4657 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4658 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4659 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4660 { (exit 1); exit 1; }; }; sim_stdio="";;
4662 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4663 echo "Setting stdio flags = $sim_stdio" 6>&1
4670 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4671 if test "${enable_sim_trace+set}" = set; then
4672 enableval="$enable_sim_trace"
4673 case "${enableval}" in
4674 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4675 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4677 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4680 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4681 if test x"$sim_trace" = x; then
4682 sim_trace="-DWITH_TRACE='(TRACE_$x"
4684 sim_trace="${sim_trace}|TRACE_$x"
4687 sim_trace="$sim_trace)'" ;;
4689 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4690 echo "Setting sim trace = $sim_trace" 6>&1
4697 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4698 if test "${enable_sim_profile+set}" = set; then
4699 enableval="$enable_sim_profile"
4700 case "${enableval}" in
4701 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4702 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4704 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4707 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4708 if test x"$sim_profile" = x; then
4709 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4711 sim_profile="${sim_profile}|PROFILE_$x"
4714 sim_profile="$sim_profile)'" ;;
4716 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4717 echo "Setting sim profile = $sim_profile" 6>&1
4720 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4725 # Check whether --with-pkgversion or --without-pkgversion was given.
4726 if test "${with_pkgversion+set}" = set; then
4727 withval="$with_pkgversion"
4729 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4730 echo "$as_me: error: package version not specified" >&2;}
4731 { (exit 1); exit 1; }; } ;;
4733 *) PKGVERSION="($withval) " ;;
4743 # Check whether --with-bugurl or --without-bugurl was given.
4744 if test "${with_bugurl+set}" = set; then
4745 withval="$with_bugurl"
4747 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4748 echo "$as_me: error: bug URL not specified" >&2;}
4749 { (exit 1); exit 1; }; } ;;
4752 *) BUGURL="$withval"
4756 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4765 REPORT_BUGS_TO="<$BUGURL>"
4766 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4773 cat >>confdefs.h <<_ACEOF
4774 #define PKGVERSION "$PKGVERSION"
4778 cat >>confdefs.h <<_ACEOF
4779 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4783 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4784 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4785 if test "${ac_cv_type_signal+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 cat >conftest.$ac_ext <<_ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4794 #include <sys/types.h>
4800 extern "C" void (*signal (int, void (*)(int)))(int);
4802 void (*signal ()) ();
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>conftest.er1
4817 grep -v '^ *+' conftest.er1 >conftest.err
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -z "$ac_c_werror_flag"
4823 || test ! -s conftest.err'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; } &&
4829 { ac_try='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4835 ac_cv_type_signal=void
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 ac_cv_type_signal=int
4842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4845 echo "${ECHO_T}$ac_cv_type_signal" >&6
4847 cat >>confdefs.h <<_ACEOF
4848 #define RETSIGTYPE $ac_cv_type_signal
4858 sim_link_links=tconfig.h
4859 if test -f ${srcdir}/tconfig.in
4861 sim_link_files=tconfig.in
4863 sim_link_files=../common/tconfig.in
4866 # targ-vals.def points to the libc macro description file.
4868 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4870 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4871 sim_link_links="${sim_link_links} targ-vals.def"
4875 wire_endian="LITTLE_ENDIAN"
4877 # Check whether --enable-sim-endian or --disable-sim-endian was given.
4878 if test "${enable_sim_endian+set}" = set; then
4879 enableval="$enable_sim_endian"
4880 case "${enableval}" in
4881 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4882 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4883 yes) if test x"$wire_endian" != x; then
4884 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4886 if test x"$default_endian" != x; then
4887 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4889 echo "No hard-wired endian for target $target" 1>&6
4890 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
4893 no) if test x"$default_endian" != x; then
4894 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4896 if test x"$wire_endian" != x; then
4897 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4899 echo "No default endian for target $target" 1>&6
4900 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4903 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
4904 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
4905 { (exit 1); exit 1; }; }; sim_endian="";;
4907 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
4908 echo "Setting endian flags = $sim_endian" 6>&1
4911 if test x"$default_endian" != x; then
4912 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4914 if test x"$wire_endian" != x; then
4915 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4922 default_alignment="NONSTRICT_ALIGNMENT"
4924 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4925 if test "${enable_sim_alignment+set}" = set; then
4926 enableval="$enable_sim_alignment"
4927 case "${enableval}" in
4928 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4929 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4930 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4931 yes) if test x"$wire_alignment" != x; then
4932 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4934 if test x"$default_alignment" != x; then
4935 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4937 echo "No hard-wired alignment for target $target" 1>&6
4938 sim_alignment="-DWITH_ALIGNMENT=0"
4941 no) if test x"$default_alignment" != x; then
4942 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4944 if test x"$wire_alignment" != x; then
4945 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4947 echo "No default alignment for target $target" 1>&6
4948 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4951 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4952 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4953 { (exit 1); exit 1; }; }; sim_alignment="";;
4955 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4956 echo "Setting alignment flags = $sim_alignment" 6>&1
4959 if test x"$default_alignment" != x; then
4960 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4962 if test x"$wire_alignment" != x; then
4963 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4970 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4971 if test "${enable_sim_hostendian+set}" = set; then
4972 enableval="$enable_sim_hostendian"
4973 case "${enableval}" in
4974 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4975 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4976 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4977 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4978 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4979 { (exit 1); exit 1; }; }; sim_hostendian="";;
4981 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4982 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4986 if test "x$cross_compiling" = "xno"; then
4987 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4988 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4989 if test "${ac_cv_c_bigendian+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 # See if sys/param.h defines the BYTE_ORDER macro.
4993 cat >conftest.$ac_ext <<_ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 #include <sys/types.h>
5000 #include <sys/param.h>
5005 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015 (eval $ac_compile) 2>conftest.er1
5017 grep -v '^ *+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -z "$ac_c_werror_flag"
5023 || test ! -s conftest.err'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5035 # It does; now see whether it defined to BIG_ENDIAN or not.
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #include <sys/types.h>
5043 #include <sys/param.h>
5048 #if BYTE_ORDER != BIG_ENDIAN
5056 rm -f conftest.$ac_objext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>conftest.er1
5060 grep -v '^ *+' conftest.er1 >conftest.err
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -z "$ac_c_werror_flag"
5066 || test ! -s conftest.err'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; } &&
5072 { ac_try='test -s conftest.$ac_objext'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 ac_cv_c_bigendian=yes
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5083 ac_cv_c_bigendian=no
5085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090 # It does not; compile a test program.
5091 if test "$cross_compiling" = yes; then
5092 # try to guess the endianness by grepping values into an object file
5093 ac_cv_c_bigendian=unknown
5094 cat >conftest.$ac_ext <<_ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5101 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5102 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5103 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5104 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5105 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5109 _ascii (); _ebcdic ();
5114 rm -f conftest.$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116 (eval $ac_compile) 2>conftest.er1
5118 grep -v '^ *+' conftest.er1 >conftest.err
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -z "$ac_c_werror_flag"
5124 || test ! -s conftest.err'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; } &&
5130 { ac_try='test -s conftest.$ac_objext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5137 ac_cv_c_bigendian=yes
5139 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5140 if test "$ac_cv_c_bigendian" = unknown; then
5141 ac_cv_c_bigendian=no
5143 # finding both strings is unlikely to happen, but who knows?
5144 ac_cv_c_bigendian=unknown
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5154 cat >conftest.$ac_ext <<_ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5163 /* Are we little or big endian? From Harbison&Steele. */
5167 char c[sizeof (long)];
5170 exit (u.c[sizeof (long) - 1] == 1);
5173 rm -f conftest$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175 (eval $ac_link) 2>&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 ac_cv_c_bigendian=no
5186 echo "$as_me: program exited with status $ac_status" >&5
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5191 ac_cv_c_bigendian=yes
5193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5198 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5199 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5200 case $ac_cv_c_bigendian in
5203 cat >>confdefs.h <<\_ACEOF
5204 #define WORDS_BIGENDIAN 1
5210 { { echo "$as_me:$LINENO: error: unknown endianness
5211 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5212 echo "$as_me: error: unknown endianness
5213 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5214 { (exit 1); exit 1; }; } ;;
5217 if test $ac_cv_c_bigendian = yes; then
5218 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
5220 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
5223 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
5227 # NOTE: Don't add -Wall or -Wunused, they both include
5228 # -Wunused-parameter which reports bogus warnings.
5229 # NOTE: If you add to this list, remember to update
5230 # gdb/doc/gdbint.texinfo.
5231 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5232 -Wformat -Wparentheses -Wpointer-arith"
5233 # GCC supports -Wuninitialized only with -O or -On, n != 0.
5234 if test x${CFLAGS+set} = xset; then
5238 build_warnings="${build_warnings} -Wuninitialized"
5242 build_warnings="${build_warnings} -Wuninitialized"
5244 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
5245 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
5246 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
5247 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
5248 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
5249 # -Woverloaded-virtual -Winline -Werror"
5250 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5251 if test "${enable_build_warnings+set}" = set; then
5252 enableval="$enable_build_warnings"
5253 case "${enableval}" in
5255 no) build_warnings="-w";;
5256 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5257 build_warnings="${build_warnings} ${t}";;
5258 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5259 build_warnings="${t} ${build_warnings}";;
5260 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5262 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5263 echo "Setting compiler warning flags = $build_warnings" 6>&1
5265 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
5266 if test "${enable_sim_build_warnings+set}" = set; then
5267 enableval="$enable_sim_build_warnings"
5268 case "${enableval}" in
5270 no) build_warnings="-w";;
5271 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5272 build_warnings="${build_warnings} ${t}";;
5273 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5274 build_warnings="${t} ${build_warnings}";;
5275 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5277 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5278 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5282 if test "x${build_warnings}" != x -a "x$GCC" = xyes
5284 echo "$as_me:$LINENO: checking compiler warning flags" >&5
5285 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
5286 # Separate out the -Werror flag as some files just cannot be
5287 # compiled with it enabled.
5288 for w in ${build_warnings}; do
5290 -Werr*) WERROR_CFLAGS=-Werror ;;
5291 *) # Check that GCC accepts it
5292 saved_CFLAGS="$CFLAGS"
5294 cat >conftest.$ac_ext <<_ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5309 rm -f conftest.$ac_objext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5311 (eval $ac_compile) 2>conftest.er1
5313 grep -v '^ *+' conftest.er1 >conftest.err
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -z "$ac_c_werror_flag"
5319 || test ! -s conftest.err'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; } &&
5325 { ac_try='test -s conftest.$ac_objext'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5331 WARN_CFLAGS="${WARN_CFLAGS} $w"
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5338 CFLAGS="$saved_CFLAGS"
5341 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
5342 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
5346 default_sim_reserved_bits="1"
5347 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
5348 if test "${enable_sim_reserved_bits+set}" = set; then
5349 enableval="$enable_sim_reserved_bits"
5350 case "${enableval}" in
5351 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
5352 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
5353 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
5354 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
5355 { (exit 1); exit 1; }; }; sim_reserved_bits="";;
5357 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
5358 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
5361 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
5363 wire_word_bitsize="32"
5365 wire_address_bitsize=""
5366 wire_cell_bitsize=""
5367 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
5368 if test "${enable_sim_bitsize+set}" = set; then
5369 enableval="$enable_sim_bitsize"
5371 case "${enableval}" in
5372 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5373 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5374 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5375 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5376 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5377 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5379 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5381 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5382 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5384 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5386 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
5387 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
5388 { (exit 1); exit 1; }; } ;;
5391 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
5394 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5395 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
5396 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
5397 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
5398 { (exit 1); exit 1; }; } ;;
5401 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5404 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5405 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
5406 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
5407 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
5408 { (exit 1); exit 1; }; } ;;
5410 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5411 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5415 if test x"$wire_word_bitsize" != x; then
5416 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5418 if test x"$wire_word_msb" != x; then
5419 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5421 if test x"$wire_address_bitsize" != x; then
5422 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5424 if test x"$wire_cell_bitsize" != x; then
5425 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5436 for ac_func in time chmod utime fork execve execv chown
5438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5439 echo "$as_me:$LINENO: checking for $ac_func" >&5
5440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5441 if eval "test \"\${$as_ac_var+set}\" = set"; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 cat >conftest.$ac_ext <<_ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5452 #define $ac_func innocuous_$ac_func
5454 /* System header to define __stub macros and hopefully few prototypes,
5455 which can conflict with char $ac_func (); below.
5456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5457 <limits.h> exists even on freestanding compilers. */
5460 # include <limits.h>
5462 # include <assert.h>
5467 /* Override any gcc2 internal prototype to avoid an error. */
5472 /* We use char because int might match the return type of a gcc2
5473 builtin and then its argument prototype would still apply. */
5475 /* The GNU C library defines this for functions which it implements
5476 to always fail with ENOSYS. Some functions are actually named
5477 something starting with __ and the normal name is an alias. */
5478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5481 char (*f) () = $ac_func;
5490 return f != $ac_func;
5495 rm -f conftest.$ac_objext conftest$ac_exeext
5496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5497 (eval $ac_link) 2>conftest.er1
5499 grep -v '^ *+' conftest.er1 >conftest.err
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -z "$ac_c_werror_flag"
5505 || test ! -s conftest.err'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; } &&
5511 { ac_try='test -s conftest$ac_exeext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5517 eval "$as_ac_var=yes"
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 eval "$as_ac_var=no"
5524 rm -f conftest.err conftest.$ac_objext \
5525 conftest$ac_exeext conftest.$ac_ext
5527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5529 if test `eval echo '${'$as_ac_var'}'` = yes; then
5530 cat >>confdefs.h <<_ACEOF
5531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5543 for ac_header in unistd.h stdlib.h string.h strings.h utime.h time.h
5545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547 echo "$as_me:$LINENO: checking for $ac_header" >&5
5548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5555 # Is the header compilable?
5556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5558 cat >conftest.$ac_ext <<_ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 $ac_includes_default
5565 #include <$ac_header>
5567 rm -f conftest.$ac_objext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569 (eval $ac_compile) 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try='test -z "$ac_c_werror_flag"
5577 || test ! -s conftest.err'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; } &&
5583 { ac_try='test -s conftest.$ac_objext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 ac_header_compiler=yes
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 ac_header_compiler=no
5596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5598 echo "${ECHO_T}$ac_header_compiler" >&6
5600 # Is the header present?
5601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5603 cat >conftest.$ac_ext <<_ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 #include <$ac_header>
5611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5614 grep -v '^ *+' conftest.er1 >conftest.err
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } >/dev/null; then
5619 if test -s conftest.err; then
5620 ac_cpp_err=$ac_c_preproc_warn_flag
5621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5628 if test -z "$ac_cpp_err"; then
5629 ac_header_preproc=yes
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5634 ac_header_preproc=no
5636 rm -f conftest.err conftest.$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5638 echo "${ECHO_T}$ac_header_preproc" >&6
5640 # So? What about this header?
5641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5647 ac_header_preproc=yes
5650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5664 ## ------------------------------------------ ##
5665 ## Report this to the AC_PACKAGE_NAME lists. ##
5666 ## ------------------------------------------ ##
5669 sed "s/^/$as_me: WARNING: /" >&2
5672 echo "$as_me:$LINENO: checking for $ac_header" >&5
5673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 eval "$as_ac_Header=\$ac_header_preproc"
5679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5684 cat >>confdefs.h <<_ACEOF
5685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5694 ac_sources="$sim_link_files"
5695 ac_dests="$sim_link_links"
5696 while test -n "$ac_sources"; do
5697 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5698 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5699 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5701 ac_config_links="$ac_config_links $ac_config_links_1"
5704 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5705 cgen_breaks="break cgen_rtx_error";
5708 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
5710 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
5712 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
5714 ac_config_commands="$ac_config_commands Makefile"
5716 ac_config_commands="$ac_config_commands stamp-h"
5718 cat >confcache <<\_ACEOF
5719 # This file is a shell script that caches the results of configure
5720 # tests run on this system so they can be shared between configure
5721 # scripts and configure runs, see configure's option --config-cache.
5722 # It is not useful on other systems. If it contains results you don't
5723 # want to keep, you may remove or edit it.
5725 # config.status only pays attention to the cache file if you give it
5726 # the --recheck option to rerun configure.
5728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5734 # The following way of writing the cache mishandles newlines in values,
5735 # but we know of no workaround that is simple, portable, and efficient.
5736 # So, don't put newlines in cache variables' values.
5737 # Ultrix sh set writes to stderr and can't be redirected directly,
5738 # and sets the high bit in the cache file unless we assign to the vars.
5741 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5743 # `set' does not quote correctly, so add quotes (double-quote
5744 # substitution turns \\\\ into \\, and sed turns \\ into \).
5747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5750 # `set' quotes correctly as required by POSIX, so do not add quotes.
5752 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5761 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5763 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5764 if test -w $cache_file; then
5765 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5766 cat confcache >$cache_file
5768 echo "not updating unwritable cache $cache_file"
5773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5774 # Let make expand exec_prefix.
5775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5777 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5778 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5779 # trailing colons and then remove the whole line if VPATH becomes empty
5780 # (actually we leave an empty line to preserve line numbers).
5781 if test "x$srcdir" = x.; then
5782 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5783 s/:*\$(srcdir):*/:/;
5784 s/:*\${srcdir}:*/:/;
5786 s/^\([^=]*=[ ]*\):*/\1/;
5792 DEFS=-DHAVE_CONFIG_H
5796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5797 # 1. Remove the extension, and $U if already installed.
5798 ac_i=`echo "$ac_i" |
5799 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5801 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5802 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5806 LTLIBOBJS=$ac_ltlibobjs
5810 : ${CONFIG_STATUS=./config.status}
5811 ac_clean_files_save=$ac_clean_files
5812 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5813 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5814 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5815 cat >$CONFIG_STATUS <<_ACEOF
5817 # Generated by $as_me.
5818 # Run this file to recreate the current configuration.
5819 # Compiler output produced by configure, useful for debugging
5820 # configure, is in config.log if it exists.
5825 SHELL=\${CONFIG_SHELL-$SHELL}
5828 cat >>$CONFIG_STATUS <<\_ACEOF
5829 ## --------------------- ##
5830 ## M4sh Initialization. ##
5831 ## --------------------- ##
5833 # Be Bourne compatible
5834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5837 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5838 # is contrary to our usage. Disable this feature.
5839 alias -g '${1+"$@"}'='"$@"'
5840 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5843 DUALCASE=1; export DUALCASE # for MKS sh
5845 # Support unset when possible.
5846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5853 # Work around bugs in pre-3.0 UWIN ksh.
5854 $as_unset ENV MAIL MAILPATH
5861 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5862 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5863 LC_TELEPHONE LC_TIME
5865 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5866 eval $as_var=C; export $as_var
5872 # Required to use basename.
5873 if expr a : '\(a\)' >/dev/null 2>&1; then
5879 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5880 as_basename=basename
5886 # Name of the executable.
5887 as_me=`$as_basename "$0" ||
5888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5889 X"$0" : 'X\(//\)$' \| \
5890 X"$0" : 'X\(/\)$' \| \
5891 . : '\(.\)' 2>/dev/null ||
5893 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5894 /^X\/\(\/\/\)$/{ s//\1/; q; }
5895 /^X\/\(\/\).*/{ s//\1/; q; }
5899 # PATH needs CR, and LINENO needs CR and PATH.
5900 # Avoid depending upon Character Ranges.
5901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5904 as_cr_digits='0123456789'
5905 as_cr_alnum=$as_cr_Letters$as_cr_digits
5907 # The user is always right.
5908 if test "${PATH_SEPARATOR+set}" != set; then
5909 echo "#! /bin/sh" >conf$$.sh
5910 echo "exit 0" >>conf$$.sh
5912 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5923 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5924 test "x$as_lineno_1" != "x$as_lineno_2" &&
5925 test "x$as_lineno_3" = "x$as_lineno_2" || {
5926 # Find who we are. Look in the path if we contain no path at all
5929 *[\\/]* ) as_myself=$0 ;;
5930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 test -z "$as_dir" && as_dir=.
5935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5940 # We did not find ourselves, most probably we were run as `sh COMMAND'
5941 # in which case we are not to be found in the path.
5942 if test "x$as_myself" = x; then
5945 if test ! -f "$as_myself"; then
5946 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5947 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5948 { (exit 1); exit 1; }; }
5950 case $CONFIG_SHELL in
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5956 test -z "$as_dir" && as_dir=.
5957 for as_base in sh bash ksh sh5; do
5960 if ("$as_dir/$as_base" -c '
5963 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5964 test "x$as_lineno_1" != "x$as_lineno_2" &&
5965 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5966 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5967 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5968 CONFIG_SHELL=$as_dir/$as_base
5970 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5979 # uniformly replaced by the line number. The first 'sed' inserts a
5980 # line-number line before each line; the second 'sed' does the real
5981 # work. The second script uses 'N' to pair each line-number line
5982 # with the numbered line, and appends trailing '-' during
5983 # substitution so that $LINENO is not a special case at line end.
5984 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5985 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5986 sed '=' <$as_myself |
5991 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5994 s,^['$as_cr_digits']*\n,,
5996 chmod +x $as_me.lineno ||
5997 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5998 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5999 { (exit 1); exit 1; }; }
6001 # Don't try to exec as it changes $[0], causing all sort of problems
6002 # (the dirname of $[0] is not the place where we might find the
6003 # original and so on. Autoconf is especially sensible to this).
6005 # Exit status is that of the last command.
6010 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6011 *c*,-n*) ECHO_N= ECHO_C='
6013 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6014 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6017 if expr a : '\(a\)' >/dev/null 2>&1; then
6023 rm -f conf$$ conf$$.exe conf$$.file
6025 if ln -s conf$$.file conf$$ 2>/dev/null; then
6026 # We could just check for DJGPP; but this test a) works b) is more generic
6027 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6028 if test -f conf$$.exe; then
6029 # Don't use ln at all; we don't have any links
6034 elif ln conf$$.file conf$$ 2>/dev/null; then
6039 rm -f conf$$ conf$$.exe conf$$.file
6041 if mkdir -p . 2>/dev/null; then
6044 test -d ./-p && rmdir ./-p
6048 as_executable_p="test -f"
6050 # Sed expression to map a string onto a valid CPP name.
6051 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6053 # Sed expression to map a string onto a valid variable name.
6054 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6058 # We need space, tab and new line, in precisely that order.
6068 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6069 # report actual input values of CONFIG_FILES etc. instead of their
6070 # values after options handling. Logging --version etc. is OK.
6074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6075 ## Running $as_me. ##
6080 This file was extended by $as_me, which was
6081 generated by GNU Autoconf 2.59. Invocation command line was
6083 CONFIG_FILES = $CONFIG_FILES
6084 CONFIG_HEADERS = $CONFIG_HEADERS
6085 CONFIG_LINKS = $CONFIG_LINKS
6086 CONFIG_COMMANDS = $CONFIG_COMMANDS
6090 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6094 # Files that config.status was made for.
6095 if test -n "$ac_config_files"; then
6096 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6099 if test -n "$ac_config_headers"; then
6100 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6103 if test -n "$ac_config_links"; then
6104 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6107 if test -n "$ac_config_commands"; then
6108 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6111 cat >>$CONFIG_STATUS <<\_ACEOF
6114 \`$as_me' instantiates files from templates according to the
6115 current configuration.
6117 Usage: $0 [OPTIONS] [FILE]...
6119 -h, --help print this help, then exit
6120 -V, --version print version number, then exit
6121 -q, --quiet do not print progress messages
6122 -d, --debug don't remove temporary files
6123 --recheck update $as_me by reconfiguring in the same conditions
6124 --file=FILE[:TEMPLATE]
6125 instantiate the configuration file FILE
6126 --header=FILE[:TEMPLATE]
6127 instantiate the configuration header FILE
6129 Configuration files:
6132 Configuration headers:
6135 Configuration links:
6138 Configuration commands:
6141 Report bugs to <bug-autoconf@gnu.org>."
6144 cat >>$CONFIG_STATUS <<_ACEOF
6147 configured by $0, generated by GNU Autoconf 2.59,
6148 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6150 Copyright (C) 2003 Free Software Foundation, Inc.
6151 This config.status script is free software; the Free Software Foundation
6152 gives unlimited permission to copy, distribute and modify it."
6157 cat >>$CONFIG_STATUS <<\_ACEOF
6158 # If no file are specified by the user, then we need to provide default
6159 # value. By we need to know if files were specified by the user.
6165 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6166 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6174 *) # This is not an option, so the user has probably given explicit
6177 ac_need_defaults=false;;
6181 # Handling of the options.
6183 cat >>$CONFIG_STATUS <<\_ACEOF
6184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6186 --version | --vers* | -V )
6187 echo "$ac_cs_version"; exit 0 ;;
6189 # Conflict between --help and --header
6190 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6191 Try \`$0 --help' for more information." >&5
6192 echo "$as_me: error: ambiguous option: $1
6193 Try \`$0 --help' for more information." >&2;}
6194 { (exit 1); exit 1; }; };;
6195 --help | --hel | -h )
6196 echo "$ac_cs_usage"; exit 0 ;;
6197 --debug | --d* | -d )
6199 --file | --fil | --fi | --f )
6201 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6202 ac_need_defaults=false;;
6203 --header | --heade | --head | --hea )
6205 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6206 ac_need_defaults=false;;
6207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6212 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6213 Try \`$0 --help' for more information." >&5
6214 echo "$as_me: error: unrecognized option: $1
6215 Try \`$0 --help' for more information." >&2;}
6216 { (exit 1); exit 1; }; } ;;
6218 *) ac_config_targets="$ac_config_targets $1" ;;
6224 ac_configure_extra_args=
6226 if $ac_cs_silent; then
6228 ac_configure_extra_args="$ac_configure_extra_args --silent"
6232 cat >>$CONFIG_STATUS <<_ACEOF
6233 if \$ac_cs_recheck; then
6234 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6235 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6244 cat >>$CONFIG_STATUS <<\_ACEOF
6245 for ac_config_target in $ac_config_targets
6247 case "$ac_config_target" in
6248 # Handling of arguments.
6249 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6250 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6251 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6252 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
6253 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
6254 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
6255 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6256 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6257 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6258 { (exit 1); exit 1; }; };;
6262 # If the user did not use the arguments to specify the items to instantiate,
6263 # then the envvar interface is used. Set only those that are not.
6264 # We use the long form for the default assignment because of an extremely
6265 # bizarre bug on SunOS 4.1.3.
6266 if $ac_need_defaults; then
6267 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6268 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6269 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6270 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6273 # Have a temporary directory for convenience. Make it in the build tree
6274 # simply because there is no reason to put it here, and in addition,
6275 # creating and moving files from /tmp can sometimes cause problems.
6276 # Create a temporary directory, and hook for its removal unless debugging.
6279 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6280 trap '{ (exit 1); exit 1; }' 1 2 13 15
6283 # Create a (secure) tmp directory for tmp files.
6286 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6287 test -n "$tmp" && test -d "$tmp"
6290 tmp=./confstat$$-$RANDOM
6291 (umask 077 && mkdir $tmp)
6294 echo "$me: cannot create a temporary directory in ." >&2
6295 { (exit 1); exit 1; }
6300 cat >>$CONFIG_STATUS <<_ACEOF
6303 # CONFIG_FILES section.
6306 # No need to generate the scripts if there are no CONFIG_FILES.
6307 # This happens for instance when ./config.status config.h
6308 if test -n "\$CONFIG_FILES"; then
6309 # Protect against being on the right side of a sed subst in config.status.
6310 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6311 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6312 s,@SHELL@,$SHELL,;t t
6313 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6314 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6315 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6316 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6317 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6318 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6319 s,@exec_prefix@,$exec_prefix,;t t
6320 s,@prefix@,$prefix,;t t
6321 s,@program_transform_name@,$program_transform_name,;t t
6322 s,@bindir@,$bindir,;t t
6323 s,@sbindir@,$sbindir,;t t
6324 s,@libexecdir@,$libexecdir,;t t
6325 s,@datadir@,$datadir,;t t
6326 s,@sysconfdir@,$sysconfdir,;t t
6327 s,@sharedstatedir@,$sharedstatedir,;t t
6328 s,@localstatedir@,$localstatedir,;t t
6329 s,@libdir@,$libdir,;t t
6330 s,@includedir@,$includedir,;t t
6331 s,@oldincludedir@,$oldincludedir,;t t
6332 s,@infodir@,$infodir,;t t
6333 s,@mandir@,$mandir,;t t
6334 s,@build_alias@,$build_alias,;t t
6335 s,@host_alias@,$host_alias,;t t
6336 s,@target_alias@,$target_alias,;t t
6338 s,@ECHO_C@,$ECHO_C,;t t
6339 s,@ECHO_N@,$ECHO_N,;t t
6340 s,@ECHO_T@,$ECHO_T,;t t
6342 s,@sim_environment@,$sim_environment,;t t
6343 s,@sim_alignment@,$sim_alignment,;t t
6344 s,@sim_assert@,$sim_assert,;t t
6345 s,@sim_bitsize@,$sim_bitsize,;t t
6346 s,@sim_endian@,$sim_endian,;t t
6347 s,@sim_hostendian@,$sim_hostendian,;t t
6348 s,@sim_float@,$sim_float,;t t
6349 s,@sim_scache@,$sim_scache,;t t
6350 s,@sim_default_model@,$sim_default_model,;t t
6351 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
6352 s,@sim_hw_objs@,$sim_hw_objs,;t t
6353 s,@sim_hw@,$sim_hw,;t t
6354 s,@sim_inline@,$sim_inline,;t t
6355 s,@sim_packages@,$sim_packages,;t t
6356 s,@sim_regparm@,$sim_regparm,;t t
6357 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
6358 s,@sim_smp@,$sim_smp,;t t
6359 s,@sim_stdcall@,$sim_stdcall,;t t
6360 s,@sim_xor_endian@,$sim_xor_endian,;t t
6361 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6362 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
6363 s,@build@,$build,;t t
6364 s,@build_cpu@,$build_cpu,;t t
6365 s,@build_vendor@,$build_vendor,;t t
6366 s,@build_os@,$build_os,;t t
6368 s,@host_cpu@,$host_cpu,;t t
6369 s,@host_vendor@,$host_vendor,;t t
6370 s,@host_os@,$host_os,;t t
6371 s,@target@,$target,;t t
6372 s,@target_cpu@,$target_cpu,;t t
6373 s,@target_vendor@,$target_vendor,;t t
6374 s,@target_os@,$target_os,;t t
6376 s,@CFLAGS@,$CFLAGS,;t t
6377 s,@LDFLAGS@,$LDFLAGS,;t t
6378 s,@CPPFLAGS@,$CPPFLAGS,;t t
6379 s,@ac_ct_CC@,$ac_ct_CC,;t t
6380 s,@EXEEXT@,$EXEEXT,;t t
6381 s,@OBJEXT@,$OBJEXT,;t t
6382 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6383 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6384 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6385 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
6386 s,@HDEFINES@,$HDEFINES,;t t
6388 s,@RANLIB@,$RANLIB,;t t
6389 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6390 s,@USE_NLS@,$USE_NLS,;t t
6391 s,@LIBINTL@,$LIBINTL,;t t
6392 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6393 s,@INCINTL@,$INCINTL,;t t
6394 s,@XGETTEXT@,$XGETTEXT,;t t
6395 s,@GMSGFMT@,$GMSGFMT,;t t
6396 s,@POSUB@,$POSUB,;t t
6397 s,@CATALOGS@,$CATALOGS,;t t
6398 s,@DATADIRNAME@,$DATADIRNAME,;t t
6399 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6400 s,@GENCAT@,$GENCAT,;t t
6401 s,@CATOBJEXT@,$CATOBJEXT,;t t
6403 s,@EGREP@,$EGREP,;t t
6404 s,@MAINT@,$MAINT,;t t
6405 s,@sim_bswap@,$sim_bswap,;t t
6406 s,@sim_cflags@,$sim_cflags,;t t
6407 s,@sim_debug@,$sim_debug,;t t
6408 s,@sim_stdio@,$sim_stdio,;t t
6409 s,@sim_trace@,$sim_trace,;t t
6410 s,@sim_profile@,$sim_profile,;t t
6411 s,@PKGVERSION@,$PKGVERSION,;t t
6412 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
6413 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
6414 s,@cgen_breaks@,$cgen_breaks,;t t
6415 s,@LIBOBJS@,$LIBOBJS,;t t
6416 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6421 cat >>$CONFIG_STATUS <<\_ACEOF
6422 # Split the substitutions into bite-sized pieces for seds with
6423 # small command number limits, like on Digital OSF/1 and HP-UX.
6425 ac_sed_frag=1 # Number of current file.
6426 ac_beg=1 # First line for current file.
6427 ac_end=$ac_max_sed_lines # Line after last line for current file.
6430 while $ac_more_lines; do
6431 if test $ac_beg -gt 1; then
6432 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6434 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6436 if test ! -s $tmp/subs.frag; then
6439 # The purpose of the label and of the branching condition is to
6440 # speed up the sed processing (if there are no `@' at all, there
6441 # is no need to browse any of the substitutions).
6442 # These are the two extra sed commands mentioned above.
6444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6445 if test -z "$ac_sed_cmds"; then
6446 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6448 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6450 ac_sed_frag=`expr $ac_sed_frag + 1`
6452 ac_end=`expr $ac_end + $ac_max_sed_lines`
6455 if test -z "$ac_sed_cmds"; then
6458 fi # test -n "$CONFIG_FILES"
6461 cat >>$CONFIG_STATUS <<\_ACEOF
6462 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6465 - | *:- | *:-:* ) # input from stdin
6467 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6469 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6471 * ) ac_file_in=$ac_file.in ;;
6474 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6475 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6477 X"$ac_file" : 'X\(//\)[^/]' \| \
6478 X"$ac_file" : 'X\(//\)$' \| \
6479 X"$ac_file" : 'X\(/\)' \| \
6480 . : '\(.\)' 2>/dev/null ||
6482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6484 /^X\(\/\/\)$/{ s//\1/; q; }
6485 /^X\(\/\).*/{ s//\1/; q; }
6487 { if $as_mkdir_p; then
6492 while test ! -d "$as_dir"; do
6493 as_dirs="$as_dir $as_dirs"
6494 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6496 X"$as_dir" : 'X\(//\)[^/]' \| \
6497 X"$as_dir" : 'X\(//\)$' \| \
6498 X"$as_dir" : 'X\(/\)' \| \
6499 . : '\(.\)' 2>/dev/null ||
6501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6503 /^X\(\/\/\)$/{ s//\1/; q; }
6504 /^X\(\/\).*/{ s//\1/; q; }
6507 test ! -n "$as_dirs" || mkdir $as_dirs
6508 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6509 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6510 { (exit 1); exit 1; }; }; }
6514 if test "$ac_dir" != .; then
6515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6516 # A "../" for each directory in $ac_dir_suffix.
6517 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6519 ac_dir_suffix= ac_top_builddir=
6523 .) # No --srcdir option. We are building in place.
6525 if test -z "$ac_top_builddir"; then
6528 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6530 [\\/]* | ?:[\\/]* ) # Absolute path.
6531 ac_srcdir=$srcdir$ac_dir_suffix;
6532 ac_top_srcdir=$srcdir ;;
6534 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6535 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6538 # Do not use `cd foo && pwd` to compute absolute paths, because
6539 # the directories may not exist.
6541 .) ac_abs_builddir="$ac_dir";;
6544 .) ac_abs_builddir=`pwd`;;
6545 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6546 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6549 case $ac_abs_builddir in
6550 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6552 case ${ac_top_builddir}. in
6553 .) ac_abs_top_builddir=$ac_abs_builddir;;
6554 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6555 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6558 case $ac_abs_builddir in
6559 .) ac_abs_srcdir=$ac_srcdir;;
6562 .) ac_abs_srcdir=$ac_abs_builddir;;
6563 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6564 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6567 case $ac_abs_builddir in
6568 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6570 case $ac_top_srcdir in
6571 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6572 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6573 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6579 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6580 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6583 if test x"$ac_file" != x-; then
6584 { echo "$as_me:$LINENO: creating $ac_file" >&5
6585 echo "$as_me: creating $ac_file" >&6;}
6588 # Let's still pretend it is `configure' which instantiates (i.e., don't
6589 # use $as_me), people would be surprised to read:
6590 # /* config.h. Generated by config.status. */
6591 if test x"$ac_file" = x-; then
6594 configure_input="$ac_file. "
6596 configure_input=$configure_input"Generated from `echo $ac_file_in |
6597 sed 's,.*/,,'` by configure."
6599 # First look for the input files in the build tree, otherwise in the
6601 ac_file_inputs=`IFS=:
6602 for f in $ac_file_in; do
6604 -) echo $tmp/stdin ;;
6606 # Absolute (can't be DOS-style, as IFS=:)
6607 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6608 echo "$as_me: error: cannot find input file: $f" >&2;}
6609 { (exit 1); exit 1; }; }
6612 if test -f "$f"; then
6615 elif test -f "$srcdir/$f"; then
6620 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6621 echo "$as_me: error: cannot find input file: $f" >&2;}
6622 { (exit 1); exit 1; }; }
6625 done` || { (exit 1); exit 1; }
6627 cat >>$CONFIG_STATUS <<_ACEOF
6631 cat >>$CONFIG_STATUS <<\_ACEOF
6633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6634 s,@configure_input@,$configure_input,;t t
6635 s,@srcdir@,$ac_srcdir,;t t
6636 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6637 s,@top_srcdir@,$ac_top_srcdir,;t t
6638 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6639 s,@builddir@,$ac_builddir,;t t
6640 s,@abs_builddir@,$ac_abs_builddir,;t t
6641 s,@top_builddir@,$ac_top_builddir,;t t
6642 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6643 s,@INSTALL@,$ac_INSTALL,;t t
6644 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6646 if test x"$ac_file" != x-; then
6647 mv $tmp/out $ac_file
6655 cat >>$CONFIG_STATUS <<\_ACEOF
6658 # CONFIG_HEADER section.
6661 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6662 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6664 # ac_d sets the value in "#define NAME VALUE" lines.
6665 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6666 ac_dB='[ ].*$,\1#\2'
6669 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6670 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6671 ac_uB='$,\1#\2define\3'
6675 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6676 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6678 - | *:- | *:-:* ) # input from stdin
6680 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6681 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6682 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6684 * ) ac_file_in=$ac_file.in ;;
6687 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6688 echo "$as_me: creating $ac_file" >&6;}
6690 # First look for the input files in the build tree, otherwise in the
6692 ac_file_inputs=`IFS=:
6693 for f in $ac_file_in; do
6695 -) echo $tmp/stdin ;;
6697 # Absolute (can't be DOS-style, as IFS=:)
6698 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6699 echo "$as_me: error: cannot find input file: $f" >&2;}
6700 { (exit 1); exit 1; }; }
6701 # Do quote $f, to prevent DOS paths from being IFS'd.
6704 if test -f "$f"; then
6707 elif test -f "$srcdir/$f"; then
6712 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6713 echo "$as_me: error: cannot find input file: $f" >&2;}
6714 { (exit 1); exit 1; }; }
6717 done` || { (exit 1); exit 1; }
6718 # Remove the trailing spaces.
6719 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6723 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6724 # `conftest.undefs', that substitutes the proper values into
6725 # config.h.in to produce config.h. The first handles `#define'
6726 # templates, and the second `#undef' templates.
6727 # And first: Protect against being on the right side of a sed subst in
6728 # config.status. Protect against being in an unquoted here document
6730 rm -f conftest.defines conftest.undefs
6731 # Using a here document instead of a string reduces the quoting nightmare.
6732 # Putting comments in sed scripts is not portable.
6734 # `end' is used to avoid that the second main sed command (meant for
6735 # 0-ary CPP macros) applies to n-ary macro definitions.
6736 # See the Autoconf documentation for `clear'.
6737 cat >confdef2sed.sed <<\_ACEOF
6742 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6744 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6747 # If some macros were called several times there might be several times
6748 # the same #defines, which is useless. Nevertheless, we may not want to
6749 # sort them, since we want the *last* AC-DEFINE to be honored.
6750 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6751 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6752 rm -f confdef2sed.sed
6754 # This sed command replaces #undef with comments. This is necessary, for
6755 # example, in the case of _POSIX_SOURCE, which is predefined and required
6756 # on some systems where configure will not decide to define it.
6757 cat >>conftest.undefs <<\_ACEOF
6758 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6761 # Break up conftest.defines because some shells have a limit on the size
6762 # of here documents, and old seds have small limits too (100 cmds).
6763 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6764 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6765 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6766 echo ' :' >>$CONFIG_STATUS
6768 while grep . conftest.defines >/dev/null
6770 # Write a limited-size here document to $tmp/defines.sed.
6771 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6772 # Speed up: don't consider the non `#define' lines.
6773 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6774 # Work around the forget-to-reset-the-flag bug.
6775 echo 't clr' >>$CONFIG_STATUS
6776 echo ': clr' >>$CONFIG_STATUS
6777 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6779 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6783 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6784 rm -f conftest.defines
6785 mv conftest.tail conftest.defines
6787 rm -f conftest.defines
6788 echo ' fi # grep' >>$CONFIG_STATUS
6789 echo >>$CONFIG_STATUS
6791 # Break up conftest.undefs because some shells have a limit on the size
6792 # of here documents, and old seds have small limits too (100 cmds).
6793 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6795 while grep . conftest.undefs >/dev/null
6797 # Write a limited-size here document to $tmp/undefs.sed.
6798 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6799 # Speed up: don't consider the non `#undef'
6800 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6801 # Work around the forget-to-reset-the-flag bug.
6802 echo 't clr' >>$CONFIG_STATUS
6803 echo ': clr' >>$CONFIG_STATUS
6804 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6806 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6810 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6811 rm -f conftest.undefs
6812 mv conftest.tail conftest.undefs
6814 rm -f conftest.undefs
6816 cat >>$CONFIG_STATUS <<\_ACEOF
6817 # Let's still pretend it is `configure' which instantiates (i.e., don't
6818 # use $as_me), people would be surprised to read:
6819 # /* config.h. Generated by config.status. */
6820 if test x"$ac_file" = x-; then
6821 echo "/* Generated by configure. */" >$tmp/config.h
6823 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6825 cat $tmp/in >>$tmp/config.h
6827 if test x"$ac_file" != x-; then
6828 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6829 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6830 echo "$as_me: $ac_file is unchanged" >&6;}
6832 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6834 X"$ac_file" : 'X\(//\)[^/]' \| \
6835 X"$ac_file" : 'X\(//\)$' \| \
6836 X"$ac_file" : 'X\(/\)' \| \
6837 . : '\(.\)' 2>/dev/null ||
6839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6841 /^X\(\/\/\)$/{ s//\1/; q; }
6842 /^X\(\/\).*/{ s//\1/; q; }
6844 { if $as_mkdir_p; then
6849 while test ! -d "$as_dir"; do
6850 as_dirs="$as_dir $as_dirs"
6851 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6853 X"$as_dir" : 'X\(//\)[^/]' \| \
6854 X"$as_dir" : 'X\(//\)$' \| \
6855 X"$as_dir" : 'X\(/\)' \| \
6856 . : '\(.\)' 2>/dev/null ||
6858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6860 /^X\(\/\/\)$/{ s//\1/; q; }
6861 /^X\(\/\).*/{ s//\1/; q; }
6864 test ! -n "$as_dirs" || mkdir $as_dirs
6865 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6866 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6867 { (exit 1); exit 1; }; }; }
6870 mv $tmp/config.h $ac_file
6878 cat >>$CONFIG_STATUS <<\_ACEOF
6881 # CONFIG_LINKS section.
6884 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
6885 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6886 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6888 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
6889 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
6891 if test ! -r $srcdir/$ac_source; then
6892 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
6893 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
6894 { (exit 1); exit 1; }; }
6898 # Make relative symlinks.
6899 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
6900 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6901 X"$ac_dest" : 'X\(//\)[^/]' \| \
6902 X"$ac_dest" : 'X\(//\)$' \| \
6903 X"$ac_dest" : 'X\(/\)' \| \
6904 . : '\(.\)' 2>/dev/null ||
6906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6908 /^X\(\/\/\)$/{ s//\1/; q; }
6909 /^X\(\/\).*/{ s//\1/; q; }
6911 { if $as_mkdir_p; then
6912 mkdir -p "$ac_dest_dir"
6914 as_dir="$ac_dest_dir"
6916 while test ! -d "$as_dir"; do
6917 as_dirs="$as_dir $as_dirs"
6918 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6920 X"$as_dir" : 'X\(//\)[^/]' \| \
6921 X"$as_dir" : 'X\(//\)$' \| \
6922 X"$as_dir" : 'X\(/\)' \| \
6923 . : '\(.\)' 2>/dev/null ||
6925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6927 /^X\(\/\/\)$/{ s//\1/; q; }
6928 /^X\(\/\).*/{ s//\1/; q; }
6931 test ! -n "$as_dirs" || mkdir $as_dirs
6932 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
6933 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
6934 { (exit 1); exit 1; }; }; }
6938 if test "$ac_dest_dir" != .; then
6939 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
6940 # A "../" for each directory in $ac_dir_suffix.
6941 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6943 ac_dir_suffix= ac_top_builddir=
6947 .) # No --srcdir option. We are building in place.
6949 if test -z "$ac_top_builddir"; then
6952 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6954 [\\/]* | ?:[\\/]* ) # Absolute path.
6955 ac_srcdir=$srcdir$ac_dir_suffix;
6956 ac_top_srcdir=$srcdir ;;
6958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6959 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6962 # Do not use `cd foo && pwd` to compute absolute paths, because
6963 # the directories may not exist.
6965 .) ac_abs_builddir="$ac_dest_dir";;
6967 case "$ac_dest_dir" in
6968 .) ac_abs_builddir=`pwd`;;
6969 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
6970 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
6973 case $ac_abs_builddir in
6974 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6976 case ${ac_top_builddir}. in
6977 .) ac_abs_top_builddir=$ac_abs_builddir;;
6978 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6979 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6982 case $ac_abs_builddir in
6983 .) ac_abs_srcdir=$ac_srcdir;;
6986 .) ac_abs_srcdir=$ac_abs_builddir;;
6987 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6988 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6991 case $ac_abs_builddir in
6992 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6994 case $ac_top_srcdir in
6995 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6996 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6997 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7003 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
7004 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
7007 # Try a symlink, then a hard link, then a copy.
7008 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7009 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
7010 cp -p $srcdir/$ac_source $ac_dest ||
7011 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
7012 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
7013 { (exit 1); exit 1; }; }
7016 cat >>$CONFIG_STATUS <<\_ACEOF
7019 # CONFIG_COMMANDS section.
7021 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7022 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7023 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7024 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7025 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7026 X"$ac_dest" : 'X\(//\)[^/]' \| \
7027 X"$ac_dest" : 'X\(//\)$' \| \
7028 X"$ac_dest" : 'X\(/\)' \| \
7029 . : '\(.\)' 2>/dev/null ||
7031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7033 /^X\(\/\/\)$/{ s//\1/; q; }
7034 /^X\(\/\).*/{ s//\1/; q; }
7036 { if $as_mkdir_p; then
7041 while test ! -d "$as_dir"; do
7042 as_dirs="$as_dir $as_dirs"
7043 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7045 X"$as_dir" : 'X\(//\)[^/]' \| \
7046 X"$as_dir" : 'X\(//\)$' \| \
7047 X"$as_dir" : 'X\(/\)' \| \
7048 . : '\(.\)' 2>/dev/null ||
7050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7052 /^X\(\/\/\)$/{ s//\1/; q; }
7053 /^X\(\/\).*/{ s//\1/; q; }
7056 test ! -n "$as_dirs" || mkdir $as_dirs
7057 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7059 { (exit 1); exit 1; }; }; }
7063 if test "$ac_dir" != .; then
7064 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7065 # A "../" for each directory in $ac_dir_suffix.
7066 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7068 ac_dir_suffix= ac_top_builddir=
7072 .) # No --srcdir option. We are building in place.
7074 if test -z "$ac_top_builddir"; then
7077 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7079 [\\/]* | ?:[\\/]* ) # Absolute path.
7080 ac_srcdir=$srcdir$ac_dir_suffix;
7081 ac_top_srcdir=$srcdir ;;
7083 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7084 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7087 # Do not use `cd foo && pwd` to compute absolute paths, because
7088 # the directories may not exist.
7090 .) ac_abs_builddir="$ac_dir";;
7093 .) ac_abs_builddir=`pwd`;;
7094 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7095 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7098 case $ac_abs_builddir in
7099 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7101 case ${ac_top_builddir}. in
7102 .) ac_abs_top_builddir=$ac_abs_builddir;;
7103 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7104 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7107 case $ac_abs_builddir in
7108 .) ac_abs_srcdir=$ac_srcdir;;
7111 .) ac_abs_srcdir=$ac_abs_builddir;;
7112 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7113 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7116 case $ac_abs_builddir in
7117 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7119 case $ac_top_srcdir in
7120 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7121 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7122 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7127 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7128 echo "$as_me: executing $ac_dest commands" >&6;}
7130 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7131 rm -f Makesim1.tmp Makesim2.tmp Makefile
7132 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7133 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
7134 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7135 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7136 <Makefile.sim >Makefile
7137 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7139 stamp-h ) echo > stamp-h ;;
7144 cat >>$CONFIG_STATUS <<\_ACEOF
7146 { (exit 0); exit 0; }
7148 chmod +x $CONFIG_STATUS
7149 ac_clean_files=$ac_clean_files_save
7152 # configure is writing to config.log, and then calls config.status.
7153 # config.status does its own redirection, appending to config.log.
7154 # Unfortunately, on DOS this fails, as config.log is still kept open
7155 # by configure, so config.status won't be able to write to it; its
7156 # output is simply discarded. So we exec the FD to /dev/null,
7157 # effectively closing config.log, so it can be properly (re)opened and
7158 # appended to by config.status. When coming back to configure, we
7159 # need to make the FD available again.
7160 if test "$no_create" != yes; then
7162 ac_config_status_args=
7163 test "$silent" = yes &&
7164 ac_config_status_args="$ac_config_status_args --quiet"
7166 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7168 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7169 # would make configure fail if this is the last instruction.
7170 $ac_cs_success || { (exit 1); exit 1; }