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 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 CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile 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 cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --build=BUILD configure
for building on BUILD
[guessed
]
841 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
842 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
852 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
853 --enable-maintainer-mode Enable developer functionality.
854 --enable-sim-bswap Use Host specific BSWAP instruction.
855 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
856 --enable-sim-debug=opts Enable debugging flags
857 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
858 --enable-sim-trace=opts Enable tracing flags
859 --enable-sim-profile=opts Enable profiling flags
860 --enable-sim-endian=endian Specify target byte endian orientation.
861 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
862 --enable-sim-hostendian=end Specify
host byte endian orientation.
863 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
864 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
865 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
866 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
868 Some influential environment variables
:
869 CC C compiler
command
870 CFLAGS C compiler flags
871 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
872 nonstandard directory
<lib dir
>
873 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
874 headers
in a nonstandard directory
<include dir
>
877 Use these variables to override the choices made by
`configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
895 ac_dir_suffix= ac_top_builddir=
899 .) # No --srcdir option. We are building in place.
901 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 # Do not use `cd foo
&& pwd` to compute absolute paths, because
915 # the directories may not exist.
917 .) ac_abs_builddir="$ac_dir";;
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
976 Copyright (C) 2003 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
987 It was created by $as_me, which was
988 generated by GNU Autoconf 2.59. Invocation command line was
999 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1000 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1001 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1002 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1003 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1005 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1006 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1008 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1009 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1010 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1011 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1012 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1013 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1014 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022 test -z "$as_dir" && as_dir=.
1023 echo "PATH: $as_dir"
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1047 ac_must_keep_next=false
1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true; then
1065 ac_must_keep_next=false # Got value, back to normal.
1068 *=* | --config-cache | -C | -disable-* | --disable-* \
1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071 | -with-* | --with-* | -without-* | --without-* | --x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 -* ) ac_must_keep_next=true ;;
1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log. We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close
' the trap.
1094 trap 'exit_status
=$?
1095 # Save into config.log some information that might help in debugging.
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1105 # The following way of writing the cache mishandles newlines in values,
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1128 for ac_var
in $ac_subst_vars
1130 eval ac_val
=$
`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1135 if test -n "$ac_subst_files"; then
1142 for ac_var
in $ac_subst_files
1144 eval ac_val
=$
`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -s confdefs.h
; then
1157 sed "/^$/d" confdefs.h |
sort
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1164 rm -f core
*.core
&&
1165 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1168 for ac_signal in 1 2 13 15; do
1169 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 # Predefined preprocessor variables.
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE; then
1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 for ac_site_file in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's
/^
/|
/' "$ac_site_file" >&5
1223 if test -r "$cache_file"; then
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1230 [\\/]* | ?:[\\/]* ) . $cache_file;;
1231 *) . ./$cache_file;;
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1240 # Check that the precious variables saved in the cache have kept the same
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246 eval ac_new_set=\$ac_env_${ac_var}_set
1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1253 ac_cache_corrupted=: ;;
1255 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
1261 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1262 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1263 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1264 echo "$as_me: former value: $ac_old_val" >&2;}
1265 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1266 echo "$as_me: current value: $ac_new_val" >&2;}
1267 ac_cache_corrupted=:
1270 # Pass precious variables to config.status.
1271 if test "$ac_new_set" = set; then
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1275 *) ac_arg=$ac_var=$ac_new_val ;;
1277 case " $ac_configure_args " in
1278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1279 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283 if $ac_cache_corrupted; then
1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1287 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288 { (exit 1); exit 1; }; }
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1294 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316 # This file contains common code used by all simulators.
1318 # common.m4 invokes AC macros used by all simulators and by the common
1319 # directory. It is intended to be included before any target specific
1320 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1321 # the Makefile. It is intended to be invoked last.
1323 # The simulator's configure.
in should
look like
:
1325 # dnl Process this file with autoconf to produce a configure script.
1327 # AC_INIT(Makefile.in)
1329 # sinclude(../common/common.m4)
1331 # ... target specific stuff ...
1333 # autoconf.info says this should be called right after AC_INIT.
1334 ac_config_headers
="$ac_config_headers config.h:config.in"
1337 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1338 if test -f $ac_dir/install-sh
; then
1340 ac_install_sh
="$ac_aux_dir/install-sh -c"
1342 elif test -f $ac_dir/install.sh
; then
1344 ac_install_sh
="$ac_aux_dir/install.sh -c"
1346 elif test -f $ac_dir/shtool
; then
1348 ac_install_sh
="$ac_aux_dir/shtool install -c"
1352 if test -z "$ac_aux_dir"; then
1353 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1354 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1355 { (exit 1); exit 1; }; }
1357 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1358 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1359 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361 # Make sure we can run config.sub.
1362 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1363 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1364 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1365 { (exit 1); exit 1; }; }
1367 echo "$as_me:$LINENO: checking build system type" >&5
1368 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1369 if test "${ac_cv_build+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 ac_cv_build_alias
=$build_alias
1373 test -z "$ac_cv_build_alias" &&
1374 ac_cv_build_alias
=`$ac_config_guess`
1375 test -z "$ac_cv_build_alias" &&
1376 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1377 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1378 { (exit 1); exit 1; }; }
1379 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1380 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1381 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1382 { (exit 1); exit 1; }; }
1385 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1386 echo "${ECHO_T}$ac_cv_build" >&6
1388 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1389 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1390 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1393 echo "$as_me:$LINENO: checking host system type" >&5
1394 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1395 if test "${ac_cv_host+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 ac_cv_host_alias
=$host_alias
1399 test -z "$ac_cv_host_alias" &&
1400 ac_cv_host_alias
=$ac_cv_build_alias
1401 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1402 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1403 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1404 { (exit 1); exit 1; }; }
1407 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1408 echo "${ECHO_T}$ac_cv_host" >&6
1410 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1411 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1412 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1415 echo "$as_me:$LINENO: checking target system type" >&5
1416 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1417 if test "${ac_cv_target+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 ac_cv_target_alias
=$target_alias
1421 test "x$ac_cv_target_alias" = "x" &&
1422 ac_cv_target_alias
=$ac_cv_host_alias
1423 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1424 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1425 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1426 { (exit 1); exit 1; }; }
1429 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1430 echo "${ECHO_T}$ac_cv_target" >&6
1431 target
=$ac_cv_target
1432 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1433 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1434 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1437 # The aliases save the names the user supplied, while $host etc.
1438 # will get canonicalized.
1439 test -n "$target_alias" &&
1440 test "$program_prefix$program_suffix$program_transform_name" = \
1442 program_prefix
=${target_alias}-
1443 test "$program_prefix" != NONE
&&
1444 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1445 # Use a double $ so make ignores it.
1446 test "$program_suffix" != NONE
&&
1447 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1448 # Double any \ or $. echo might interpret backslashes.
1449 # By default was `s,x,x', remove it if useless.
1450 cat <<\_ACEOF
>conftest.
sed
1451 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1453 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1457 ac_cpp
='$CPP $CPPFLAGS'
1458 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1459 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1460 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1461 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1463 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC
="$CC" # Let the user override the test.
1472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1476 test -z "$as_dir" && as_dir
=.
1477 for ac_exec_ext
in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489 if test -n "$CC"; then
1490 echo "$as_me:$LINENO: result: $CC" >&5
1491 echo "${ECHO_T}$CC" >&6
1493 echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1498 if test -z "$ac_cv_prog_CC"; then
1500 # Extract the first word of "gcc", so it can be a program name with args.
1501 set dummy gcc
; ac_word
=$2
1502 echo "$as_me:$LINENO: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1514 test -z "$as_dir" && as_dir
=.
1515 for ac_exec_ext
in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_ac_ct_CC
="gcc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1527 if test -n "$ac_ct_CC"; then
1528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1529 echo "${ECHO_T}$ac_ct_CC" >&6
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1540 if test -z "$CC"; then
1541 if test -n "$ac_tool_prefix"; then
1542 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1543 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC
="$CC" # Let the user override the test.
1552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1556 test -z "$as_dir" && as_dir
=.
1557 for ac_exec_ext
in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569 if test -n "$CC"; then
1570 echo "$as_me:$LINENO: result: $CC" >&5
1571 echo "${ECHO_T}$CC" >&6
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1578 if test -z "$ac_cv_prog_CC"; then
1580 # Extract the first word of "cc", so it can be a program name with args.
1581 set dummy cc
; ac_word
=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 if test -n "$ac_ct_CC"; then
1588 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1594 test -z "$as_dir" && as_dir
=.
1595 for ac_exec_ext
in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_ac_ct_CC
="cc"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1607 if test -n "$ac_ct_CC"; then
1608 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1609 echo "${ECHO_T}$ac_ct_CC" >&6
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1621 if test -z "$CC"; then
1622 # Extract the first word of "cc", so it can be a program name with args.
1623 set dummy cc
; ac_word
=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC
="$CC" # Let the user override the test.
1633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1637 test -z "$as_dir" && as_dir
=.
1638 for ac_exec_ext
in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1641 ac_prog_rejected
=yes
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651 if test $ac_prog_rejected = yes; then
1652 # We found a bogon in the path, so make sure we never use it.
1653 set dummy
$ac_cv_prog_CC
1655 if test $# != 0; then
1656 # We chose a different compiler from the bogus one.
1657 # However, it has the same basename, so the bogon will be chosen
1658 # first if we set CC to just the basename; use the full file name.
1660 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1666 if test -n "$CC"; then
1667 echo "$as_me:$LINENO: result: $CC" >&5
1668 echo "${ECHO_T}$CC" >&6
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1675 if test -z "$CC"; then
1676 if test -n "$ac_tool_prefix"; then
1679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1680 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 if test -n "$CC"; then
1687 ac_cv_prog_CC
="$CC" # Let the user override the test.
1689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir
=.
1694 for ac_exec_ext
in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 if test -n "$CC"; then
1707 echo "$as_me:$LINENO: result: $CC" >&5
1708 echo "${ECHO_T}$CC" >&6
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1714 test -n "$CC" && break
1717 if test -z "$CC"; then
1721 # Extract the first word of "$ac_prog", so it can be a program name with args.
1722 set dummy
$ac_prog; ac_word
=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 if test -n "$ac_ct_CC"; then
1729 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir
=.
1736 for ac_exec_ext
in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_ac_ct_CC
="$ac_prog"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1748 if test -n "$ac_ct_CC"; then
1749 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1750 echo "${ECHO_T}$ac_ct_CC" >&6
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1756 test -n "$ac_ct_CC" && break
1765 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1766 See \`config.log' for more details." >&5
1767 echo "$as_me: error: no acceptable C compiler found in \$PATH
1768 See \`config.log' for more details." >&2;}
1769 { (exit 1); exit 1; }; }
1771 # Provide some information about the compiler.
1772 echo "$as_me:$LINENO:" \
1773 "checking for C compiler version" >&5
1774 ac_compiler
=`set X $ac_compile; echo $2`
1775 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1776 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }
1780 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1781 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784 (exit $ac_status); }
1785 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1786 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }
1791 cat >conftest.
$ac_ext <<_ACEOF
1794 cat confdefs.h
>>conftest.
$ac_ext
1795 cat >>conftest.
$ac_ext <<_ACEOF
1796 /* end confdefs.h. */
1806 ac_clean_files_save
=$ac_clean_files
1807 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1808 # Try to create an executable without -o first, disregard a.out.
1809 # It will help us diagnose broken compilers, and finding out an intuition
1811 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1812 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1813 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1814 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1815 (eval $ac_link_default) 2>&5
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }; then
1819 # Find the output, starting from the most likely. This scheme is
1820 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1823 # Be careful to initialize this variable, since it used to be cached.
1824 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1826 # b.out is created by i960 compilers.
1827 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1829 test -f "$ac_file" ||
continue
1831 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1834 # This is the source file.
1837 # We found the default executable, but exeext='' is most
1841 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1842 # FIXME: I believe we export ac_cv_exeext for Libtool,
1843 # but it would be cool to find out if it's true. Does anybody
1844 # maintain Libtool? --akim.
1852 echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.
$ac_ext >&5
1855 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&2;}
1859 { (exit 77); exit 77; }; }
1862 ac_exeext
=$ac_cv_exeext
1863 echo "$as_me:$LINENO: result: $ac_file" >&5
1864 echo "${ECHO_T}$ac_file" >&6
1866 # Check the compiler produces executables we can run. If not, either
1867 # the compiler is broken, or we cross compile.
1868 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1869 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1871 # If not cross compiling, check that we can run a simple program.
1872 if test "$cross_compiling" != yes; then
1873 if { ac_try
='./$ac_file'
1874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); }; }; then
1881 if test "$cross_compiling" = maybe
; then
1884 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1885 If you meant to cross compile, use \`--host'.
1886 See \`config.log' for more details." >&5
1887 echo "$as_me: error: cannot run C compiled programs.
1888 If you meant to cross compile, use \`--host'.
1889 See \`config.log' for more details." >&2;}
1890 { (exit 1); exit 1; }; }
1894 echo "$as_me:$LINENO: result: yes" >&5
1895 echo "${ECHO_T}yes" >&6
1897 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1898 ac_clean_files
=$ac_clean_files_save
1899 # Check the compiler produces executables we can run. If not, either
1900 # the compiler is broken, or we cross compile.
1901 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1902 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1903 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1904 echo "${ECHO_T}$cross_compiling" >&6
1906 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1907 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1909 (eval $ac_link) 2>&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }; then
1913 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1914 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1915 # work properly (i.e., refer to `conftest.exe'), while it won't with
1917 for ac_file
in conftest.exe conftest conftest.
*; do
1918 test -f "$ac_file" ||
continue
1920 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1921 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1928 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1929 See \`config.log' for more details." >&5
1930 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&2;}
1932 { (exit 1); exit 1; }; }
1935 rm -f conftest
$ac_cv_exeext
1936 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1937 echo "${ECHO_T}$ac_cv_exeext" >&6
1939 rm -f conftest.
$ac_ext
1940 EXEEXT
=$ac_cv_exeext
1942 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1943 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1944 if test "${ac_cv_objext+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 cat >conftest.
$ac_ext <<_ACEOF
1950 cat confdefs.h
>>conftest.
$ac_ext
1951 cat >>conftest.
$ac_ext <<_ACEOF
1952 /* end confdefs.h. */
1962 rm -f conftest.o conftest.obj
1963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }; then
1968 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1970 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1971 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1976 echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.
$ac_ext >&5
1979 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1980 See \`config.log' for more details." >&5
1981 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1982 See \`config.log' for more details." >&2;}
1983 { (exit 1); exit 1; }; }
1986 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1988 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1989 echo "${ECHO_T}$ac_cv_objext" >&6
1990 OBJEXT
=$ac_cv_objext
1992 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1993 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1994 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 cat >conftest.
$ac_ext <<_ACEOF
2000 cat confdefs.h
>>conftest.
$ac_ext
2001 cat >>conftest.
$ac_ext <<_ACEOF
2002 /* end confdefs.h. */
2015 rm -f conftest.
$ac_objext
2016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2017 (eval $ac_compile) 2>conftest.er1
2019 grep -v '^ *+' conftest.er1
>conftest.err
2021 cat conftest.err
>&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); } &&
2024 { ac_try
='test -z "$ac_c_werror_flag"
2025 || test ! -s conftest.err'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; } &&
2031 { ac_try
='test -s conftest.$ac_objext'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2039 echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.
$ac_ext >&5
2044 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2045 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2048 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2049 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2050 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2051 ac_test_CFLAGS
=${CFLAGS+set}
2052 ac_save_CFLAGS
=$CFLAGS
2054 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2055 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2056 if test "${ac_cv_prog_cc_g+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 cat >conftest.
$ac_ext <<_ACEOF
2062 cat confdefs.h
>>conftest.
$ac_ext
2063 cat >>conftest.
$ac_ext <<_ACEOF
2064 /* end confdefs.h. */
2074 rm -f conftest.
$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076 (eval $ac_compile) 2>conftest.er1
2078 grep -v '^ *+' conftest.er1
>conftest.err
2080 cat conftest.err
>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); } &&
2083 { ac_try
='test -z "$ac_c_werror_flag"
2084 || test ! -s conftest.err'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; } &&
2090 { ac_try
='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.
$ac_ext >&5
2103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107 if test "$ac_test_CFLAGS" = set; then
2108 CFLAGS
=$ac_save_CFLAGS
2109 elif test $ac_cv_prog_cc_g = yes; then
2110 if test "$GCC" = yes; then
2116 if test "$GCC" = yes; then
2122 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 ac_cv_prog_cc_stdc
=no
2129 cat >conftest.
$ac_ext <<_ACEOF
2132 cat confdefs.h
>>conftest.
$ac_ext
2133 cat >>conftest.
$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2137 #include <sys/types.h>
2138 #include <sys/stat.h>
2139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2140 struct buf { int x; };
2141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2142 static char *e (p, i)
2148 static char *f (char * (*g) (char **, int), char **p, ...)
2153 s = g (p, va_arg (v,int));
2158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2159 function prototypes and stuff, but not '\xHH' hex character constants.
2160 These don't provoke an error unfortunately, instead are silently treated
2161 as 'x'. The following induces an error, until -std1 is added to get
2162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2163 array size at least. It's necessary to write '\x00'==0 to get something
2164 that's true only with -std1. */
2165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2167 int test (int i, double x);
2168 struct s1 {int (*f) (int a);};
2169 struct s2 {int (*f) (double a);};
2170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2176 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2181 # Don't try gcc -ansi; that turns off useful extensions and
2182 # breaks some systems' header files.
2183 # AIX -qlanglvl=ansi
2184 # Ultrix and OSF/1 -std1
2185 # HP-UX 10.20 and later -Ae
2186 # HP-UX older versions -Aa -D_HPUX_SOURCE
2187 # SVR4 -Xc -D__EXTENSIONS__
2188 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2190 CC
="$ac_save_CC $ac_arg"
2191 rm -f conftest.
$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>conftest.er1
2195 grep -v '^ *+' conftest.er1
>conftest.err
2197 cat conftest.err
>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); } &&
2200 { ac_try
='test -z "$ac_c_werror_flag"
2201 || test ! -s conftest.err'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; } &&
2207 { ac_try
='test -s conftest.$ac_objext'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
2213 ac_cv_prog_cc_stdc
=$ac_arg
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.
$ac_ext >&5
2220 rm -f conftest.err conftest.
$ac_objext
2222 rm -f conftest.
$ac_ext conftest.
$ac_objext
2227 case "x$ac_cv_prog_cc_stdc" in
2229 echo "$as_me:$LINENO: result: none needed" >&5
2230 echo "${ECHO_T}none needed" >&6 ;;
2232 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2233 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2234 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2237 # Some people use a C++ compiler to compile C. Since we use `exit',
2238 # in C++ we need to declare it. In case someone uses the same compiler
2239 # for both compiling C and C++ we need to have the C++ compiler decide
2240 # the declaration of exit, since it's the most demanding environment.
2241 cat >conftest.
$ac_ext <<_ACEOF
2246 rm -f conftest.
$ac_objext
2247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248 (eval $ac_compile) 2>conftest.er1
2250 grep -v '^ *+' conftest.er1
>conftest.err
2252 cat conftest.err
>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); } &&
2255 { ac_try
='test -z "$ac_c_werror_flag"
2256 || test ! -s conftest.err'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; } &&
2262 { ac_try
='test -s conftest.$ac_objext'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; }; then
2268 for ac_declaration
in \
2270 'extern "C" void std::exit (int) throw (); using std::exit;' \
2271 'extern "C" void std::exit (int); using std::exit;' \
2272 'extern "C" void exit (int) throw ();' \
2273 'extern "C" void exit (int);' \
2276 cat >conftest.
$ac_ext <<_ACEOF
2279 cat confdefs.h
>>conftest.
$ac_ext
2280 cat >>conftest.
$ac_ext <<_ACEOF
2281 /* end confdefs.h. */
2292 rm -f conftest.
$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>conftest.er1
2296 grep -v '^ *+' conftest.er1
>conftest.err
2298 cat conftest.err
>&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); } &&
2301 { ac_try
='test -z "$ac_c_werror_flag"
2302 || test ! -s conftest.err'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; } &&
2308 { ac_try
='test -s conftest.$ac_objext'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; }; then
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.
$ac_ext >&5
2321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2322 cat >conftest.
$ac_ext <<_ACEOF
2325 cat confdefs.h
>>conftest.
$ac_ext
2326 cat >>conftest.
$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2337 rm -f conftest.
$ac_objext
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>conftest.er1
2341 grep -v '^ *+' conftest.er1
>conftest.err
2343 cat conftest.err
>&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); } &&
2346 { ac_try
='test -z "$ac_c_werror_flag"
2347 || test ! -s conftest.err'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; } &&
2353 { ac_try
='test -s conftest.$ac_objext'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.
$ac_ext >&5
2365 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2368 if test -n "$ac_declaration"; then
2369 echo '#ifdef __cplusplus' >>confdefs.h
2370 echo $ac_declaration >>confdefs.h
2371 echo '#endif' >>confdefs.h
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.
$ac_ext >&5
2379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2381 ac_cpp
='$CPP $CPPFLAGS'
2382 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2386 # Find a good install program. We prefer a C program (faster),
2387 # so one script is as good as another. But avoid the broken or
2388 # incompatible versions:
2389 # SysV /etc/install, /usr/sbin/install
2390 # SunOS /usr/etc/install
2391 # IRIX /sbin/install
2393 # AmigaOS /C/install, which installs bootblocks on floppy discs
2394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2397 # OS/2's system install, which has a completely different semantic
2398 # ./install, which can be erroneously created by make from ./install.sh.
2399 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2400 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2401 if test -z "$INSTALL"; then
2402 if test "${ac_cv_path_install+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir
=.
2410 # Account for people who put trailing slashes in PATH elements.
2412 .
/ | .
// |
/cC
/* | \
2413 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2414 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2417 # OSF1 and SCO ODT 3.0 have their own names for install.
2418 # Don't use installbsd from OSF since it installs stuff as root
2420 for ac_prog
in ginstall scoinst
install; do
2421 for ac_exec_ext
in '' $ac_executable_extensions; do
2422 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2423 if test $ac_prog = install &&
2424 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2425 # AIX install. It has an incompatible calling convention.
2427 elif test $ac_prog = install &&
2428 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2429 # program-specific install script used by HP pwplus--don't use.
2432 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2444 if test "${ac_cv_path_install+set}" = set; then
2445 INSTALL
=$ac_cv_path_install
2447 # As a last resort, use the slow shell script. We don't cache a
2448 # path for INSTALL within a source directory, because that will
2449 # break other packages using the cache if that directory is
2450 # removed, or if the path is relative.
2451 INSTALL
=$ac_install_sh
2454 echo "$as_me:$LINENO: result: $INSTALL" >&5
2455 echo "${ECHO_T}$INSTALL" >&6
2457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2458 # It thinks the first close brace ends the variable substitution.
2459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2463 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2466 # Put a plausible default for CC_FOR_BUILD in Makefile.
2467 if test "x$cross_compiling" = "xno"; then
2468 CC_FOR_BUILD
='$(CC)'
2478 if test -n "$ac_tool_prefix"; then
2479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2480 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2481 echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483 if test "${ac_cv_prog_RANLIB+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test -n "$RANLIB"; then
2487 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir
=.
2494 for ac_exec_ext
in '' $ac_executable_extensions; do
2495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 RANLIB
=$ac_cv_prog_RANLIB
2506 if test -n "$RANLIB"; then
2507 echo "$as_me:$LINENO: result: $RANLIB" >&5
2508 echo "${ECHO_T}$RANLIB" >&6
2510 echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2515 if test -z "$ac_cv_prog_RANLIB"; then
2516 ac_ct_RANLIB
=$RANLIB
2517 # Extract the first word of "ranlib", so it can be a program name with args.
2518 set dummy ranlib
; ac_word
=$2
2519 echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 if test -n "$ac_ct_RANLIB"; then
2525 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir
=.
2532 for ac_exec_ext
in '' $ac_executable_extensions; do
2533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2544 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2545 if test -n "$ac_ct_RANLIB"; then
2546 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2547 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2549 echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6
2553 RANLIB
=$ac_ct_RANLIB
2555 RANLIB
="$ac_cv_prog_RANLIB"
2562 # Check for common headers.
2563 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2564 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2567 ac_cpp
='$CPP $CPPFLAGS'
2568 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2571 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2572 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2573 # On Suns, sometimes $CPP names a directory.
2574 if test -n "$CPP" && test -d "$CPP"; then
2577 if test -z "$CPP"; then
2578 if test "${ac_cv_prog_CPP+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 # Double quotes because CPP needs to be expanded
2582 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2585 for ac_c_preproc_warn_flag
in '' yes
2587 # Use a header file that comes with gcc, so configuring glibc
2588 # with a fresh cross-compiler works.
2589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2590 # <limits.h> exists even on freestanding compilers.
2591 # On the NeXT, cc -E runs the code through the compiler's parser,
2592 # not just through cpp. "Syntax error" is here to catch this case.
2593 cat >conftest.
$ac_ext <<_ACEOF
2596 cat confdefs.h
>>conftest.
$ac_ext
2597 cat >>conftest.
$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2600 # include <limits.h>
2602 # include <assert.h>
2606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2607 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2609 grep -v '^ *+' conftest.er1
>conftest.err
2611 cat conftest.err
>&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } >/dev
/null
; then
2614 if test -s conftest.err
; then
2615 ac_cpp_err
=$ac_c_preproc_warn_flag
2616 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2623 if test -z "$ac_cpp_err"; then
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.
$ac_ext >&5
2629 # Broken: fails on valid input.
2632 rm -f conftest.err conftest.
$ac_ext
2634 # OK, works on sane cases. Now check whether non-existent headers
2635 # can be detected and how.
2636 cat >conftest.
$ac_ext <<_ACEOF
2639 cat confdefs.h
>>conftest.
$ac_ext
2640 cat >>conftest.
$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2642 #include <ac_nonexistent.h>
2644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2645 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1
>conftest.err
2649 cat conftest.err
>&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } >/dev
/null
; then
2652 if test -s conftest.err
; then
2653 ac_cpp_err
=$ac_c_preproc_warn_flag
2654 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2661 if test -z "$ac_cpp_err"; then
2662 # Broken: success on invalid input.
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.
$ac_ext >&5
2668 # Passes both tests.
2672 rm -f conftest.err conftest.
$ac_ext
2675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2676 rm -f conftest.err conftest.
$ac_ext
2677 if $ac_preproc_ok; then
2689 echo "$as_me:$LINENO: result: $CPP" >&5
2690 echo "${ECHO_T}$CPP" >&6
2692 for ac_c_preproc_warn_flag
in '' yes
2694 # Use a header file that comes with gcc, so configuring glibc
2695 # with a fresh cross-compiler works.
2696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2697 # <limits.h> exists even on freestanding compilers.
2698 # On the NeXT, cc -E runs the code through the compiler's parser,
2699 # not just through cpp. "Syntax error" is here to catch this case.
2700 cat >conftest.
$ac_ext <<_ACEOF
2703 cat confdefs.h
>>conftest.
$ac_ext
2704 cat >>conftest.
$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2707 # include <limits.h>
2709 # include <assert.h>
2713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2714 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2716 grep -v '^ *+' conftest.er1
>conftest.err
2718 cat conftest.err
>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } >/dev
/null
; then
2721 if test -s conftest.err
; then
2722 ac_cpp_err
=$ac_c_preproc_warn_flag
2723 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2730 if test -z "$ac_cpp_err"; then
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.
$ac_ext >&5
2736 # Broken: fails on valid input.
2739 rm -f conftest.err conftest.
$ac_ext
2741 # OK, works on sane cases. Now check whether non-existent headers
2742 # can be detected and how.
2743 cat >conftest.
$ac_ext <<_ACEOF
2746 cat confdefs.h
>>conftest.
$ac_ext
2747 cat >>conftest.
$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749 #include <ac_nonexistent.h>
2751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2752 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2754 grep -v '^ *+' conftest.er1
>conftest.err
2756 cat conftest.err
>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } >/dev
/null
; then
2759 if test -s conftest.err
; then
2760 ac_cpp_err
=$ac_c_preproc_warn_flag
2761 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2768 if test -z "$ac_cpp_err"; then
2769 # Broken: success on invalid input.
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.
$ac_ext >&5
2775 # Passes both tests.
2779 rm -f conftest.err conftest.
$ac_ext
2782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2783 rm -f conftest.err conftest.
$ac_ext
2784 if $ac_preproc_ok; then
2787 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2788 See \`config.log' for more details." >&5
2789 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2790 See \`config.log' for more details." >&2;}
2791 { (exit 1); exit 1; }; }
2795 ac_cpp
='$CPP $CPPFLAGS'
2796 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2801 echo "$as_me:$LINENO: checking for egrep" >&5
2802 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2803 if test "${ac_cv_prog_egrep+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2807 then ac_cv_prog_egrep
='grep -E'
2808 else ac_cv_prog_egrep
='egrep'
2811 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2812 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2813 EGREP
=$ac_cv_prog_egrep
2816 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2818 if test "${ac_cv_header_stdc+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 cat >conftest.
$ac_ext <<_ACEOF
2824 cat confdefs.h
>>conftest.
$ac_ext
2825 cat >>conftest.
$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2840 rm -f conftest.
$ac_objext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>conftest.er1
2844 grep -v '^ *+' conftest.er1
>conftest.err
2846 cat conftest.err
>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try
='test -z "$ac_c_werror_flag"
2850 || test ! -s conftest.err'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; } &&
2856 { ac_try
='test -s conftest.$ac_objext'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2862 ac_cv_header_stdc
=yes
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.
$ac_ext >&5
2867 ac_cv_header_stdc
=no
2869 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2871 if test $ac_cv_header_stdc = yes; then
2872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2873 cat >conftest.
$ac_ext <<_ACEOF
2876 cat confdefs.h
>>conftest.
$ac_ext
2877 cat >>conftest.
$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2883 $EGREP "memchr" >/dev
/null
2>&1; then
2886 ac_cv_header_stdc
=no
2892 if test $ac_cv_header_stdc = yes; then
2893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2894 cat >conftest.
$ac_ext <<_ACEOF
2897 cat confdefs.h
>>conftest.
$ac_ext
2898 cat >>conftest.
$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2904 $EGREP "free" >/dev
/null
2>&1; then
2907 ac_cv_header_stdc
=no
2913 if test $ac_cv_header_stdc = yes; then
2914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2915 if test "$cross_compiling" = yes; then
2918 cat >conftest.
$ac_ext <<_ACEOF
2921 cat confdefs.h
>>conftest.
$ac_ext
2922 cat >>conftest.
$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2925 #if ((' ' & 0x0FF) == 0x020)
2926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2929 # define ISLOWER(c) \
2930 (('a' <= (c) && (c) <= 'i') \
2931 || ('j' <= (c) && (c) <= 'r') \
2932 || ('s' <= (c) && (c) <= 'z'))
2933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2941 for (i = 0; i < 256; i++)
2942 if (XOR (islower (i), ISLOWER (i))
2943 || toupper (i) != TOUPPER (i))
2948 rm -f conftest
$ac_exeext
2949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2950 (eval $ac_link) 2>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2961 echo "$as_me: program exited with status $ac_status" >&5
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.
$ac_ext >&5
2966 ac_cv_header_stdc
=no
2968 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2972 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2973 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2974 if test $ac_cv_header_stdc = yes; then
2976 cat >>confdefs.h
<<\_ACEOF
2977 #define STDC_HEADERS 1
2982 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2992 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2993 inttypes.h stdint.h unistd.h
2995 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2996 echo "$as_me:$LINENO: checking for $ac_header" >&5
2997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 cat >conftest.
$ac_ext <<_ACEOF
3004 cat confdefs.h
>>conftest.
$ac_ext
3005 cat >>conftest.
$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3007 $ac_includes_default
3009 #include <$ac_header>
3011 rm -f conftest.
$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3015 grep -v '^ *+' conftest.er1
>conftest.err
3017 cat conftest.err
>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try
='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try
='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 eval "$as_ac_Header=yes"
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.
$ac_ext >&5
3038 eval "$as_ac_Header=no"
3040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3045 cat >>confdefs.h
<<_ACEOF
3046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3059 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
3061 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3063 echo "$as_me:$LINENO: checking for $ac_header" >&5
3064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3071 # Is the header compilable?
3072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3074 cat >conftest.
$ac_ext <<_ACEOF
3077 cat confdefs.h
>>conftest.
$ac_ext
3078 cat >>conftest.
$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3080 $ac_includes_default
3081 #include <$ac_header>
3083 rm -f conftest.
$ac_objext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3085 (eval $ac_compile) 2>conftest.er1
3087 grep -v '^ *+' conftest.er1
>conftest.err
3089 cat conftest.err
>&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try
='test -z "$ac_c_werror_flag"
3093 || test ! -s conftest.err'
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try
='test -s conftest.$ac_objext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 ac_header_compiler
=yes
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.
$ac_ext >&5
3110 ac_header_compiler
=no
3112 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3114 echo "${ECHO_T}$ac_header_compiler" >&6
3116 # Is the header present?
3117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3119 cat >conftest.
$ac_ext <<_ACEOF
3122 cat confdefs.h
>>conftest.
$ac_ext
3123 cat >>conftest.
$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3125 #include <$ac_header>
3127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3128 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3130 grep -v '^ *+' conftest.er1
>conftest.err
3132 cat conftest.err
>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } >/dev
/null
; then
3135 if test -s conftest.err
; then
3136 ac_cpp_err
=$ac_c_preproc_warn_flag
3137 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3144 if test -z "$ac_cpp_err"; then
3145 ac_header_preproc
=yes
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.
$ac_ext >&5
3150 ac_header_preproc
=no
3152 rm -f conftest.err conftest.
$ac_ext
3153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3154 echo "${ECHO_T}$ac_header_preproc" >&6
3156 # So? What about this header?
3157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3163 ac_header_preproc
=yes
3166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3180 ## ------------------------------------------ ##
3181 ## Report this to the AC_PACKAGE_NAME lists. ##
3182 ## ------------------------------------------ ##
3185 sed "s/^/$as_me: WARNING: /" >&2
3188 echo "$as_me:$LINENO: checking for $ac_header" >&5
3189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 eval "$as_ac_Header=\$ac_header_preproc"
3195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3200 cat >>confdefs.h
<<_ACEOF
3201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3210 for ac_header
in sys
/time.h sys
/resource.h
3212 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3214 echo "$as_me:$LINENO: checking for $ac_header" >&5
3215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3222 # Is the header compilable?
3223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3225 cat >conftest.
$ac_ext <<_ACEOF
3228 cat confdefs.h
>>conftest.
$ac_ext
3229 cat >>conftest.
$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3231 $ac_includes_default
3232 #include <$ac_header>
3234 rm -f conftest.
$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>conftest.er1
3238 grep -v '^ *+' conftest.er1
>conftest.err
3240 cat conftest.err
>&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try
='test -z "$ac_c_werror_flag"
3244 || test ! -s conftest.err'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try
='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_header_compiler
=yes
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.
$ac_ext >&5
3261 ac_header_compiler
=no
3263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3265 echo "${ECHO_T}$ac_header_compiler" >&6
3267 # Is the header present?
3268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3270 cat >conftest.
$ac_ext <<_ACEOF
3273 cat confdefs.h
>>conftest.
$ac_ext
3274 cat >>conftest.
$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276 #include <$ac_header>
3278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3279 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3281 grep -v '^ *+' conftest.er1
>conftest.err
3283 cat conftest.err
>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } >/dev
/null
; then
3286 if test -s conftest.err
; then
3287 ac_cpp_err
=$ac_c_preproc_warn_flag
3288 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3295 if test -z "$ac_cpp_err"; then
3296 ac_header_preproc
=yes
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.
$ac_ext >&5
3301 ac_header_preproc
=no
3303 rm -f conftest.err conftest.
$ac_ext
3304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3305 echo "${ECHO_T}$ac_header_preproc" >&6
3307 # So? What about this header?
3308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3314 ac_header_preproc
=yes
3317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3331 ## ------------------------------------------ ##
3332 ## Report this to the AC_PACKAGE_NAME lists. ##
3333 ## ------------------------------------------ ##
3336 sed "s/^/$as_me: WARNING: /" >&2
3339 echo "$as_me:$LINENO: checking for $ac_header" >&5
3340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 eval "$as_ac_Header=\$ac_header_preproc"
3346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3351 cat >>confdefs.h
<<_ACEOF
3352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3361 for ac_header
in fcntl.h fpu_control.h
3363 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3365 echo "$as_me:$LINENO: checking for $ac_header" >&5
3366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3373 # Is the header compilable?
3374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3376 cat >conftest.
$ac_ext <<_ACEOF
3379 cat confdefs.h
>>conftest.
$ac_ext
3380 cat >>conftest.
$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 $ac_includes_default
3383 #include <$ac_header>
3385 rm -f conftest.
$ac_objext
3386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387 (eval $ac_compile) 2>conftest.er1
3389 grep -v '^ *+' conftest.er1
>conftest.err
3391 cat conftest.err
>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
3394 { ac_try
='test -z "$ac_c_werror_flag"
3395 || test ! -s conftest.err'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; } &&
3401 { ac_try
='test -s conftest.$ac_objext'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 ac_header_compiler
=yes
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.
$ac_ext >&5
3412 ac_header_compiler
=no
3414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3416 echo "${ECHO_T}$ac_header_compiler" >&6
3418 # Is the header present?
3419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3421 cat >conftest.
$ac_ext <<_ACEOF
3424 cat confdefs.h
>>conftest.
$ac_ext
3425 cat >>conftest.
$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427 #include <$ac_header>
3429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3430 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3432 grep -v '^ *+' conftest.er1
>conftest.err
3434 cat conftest.err
>&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } >/dev
/null
; then
3437 if test -s conftest.err
; then
3438 ac_cpp_err
=$ac_c_preproc_warn_flag
3439 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3446 if test -z "$ac_cpp_err"; then
3447 ac_header_preproc
=yes
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.
$ac_ext >&5
3452 ac_header_preproc
=no
3454 rm -f conftest.err conftest.
$ac_ext
3455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3456 echo "${ECHO_T}$ac_header_preproc" >&6
3458 # So? What about this header?
3459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3465 ac_header_preproc
=yes
3468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3482 ## ------------------------------------------ ##
3483 ## Report this to the AC_PACKAGE_NAME lists. ##
3484 ## ------------------------------------------ ##
3487 sed "s/^/$as_me: WARNING: /" >&2
3490 echo "$as_me:$LINENO: checking for $ac_header" >&5
3491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 eval "$as_ac_Header=\$ac_header_preproc"
3497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3502 cat >>confdefs.h
<<_ACEOF
3503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3513 for ac_header
in dlfcn.h errno.h sys
/stat.h
3515 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3517 echo "$as_me:$LINENO: checking for $ac_header" >&5
3518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3525 # Is the header compilable?
3526 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3528 cat >conftest.
$ac_ext <<_ACEOF
3531 cat confdefs.h
>>conftest.
$ac_ext
3532 cat >>conftest.
$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 $ac_includes_default
3535 #include <$ac_header>
3537 rm -f conftest.
$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>conftest.er1
3541 grep -v '^ *+' conftest.er1
>conftest.err
3543 cat conftest.err
>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try
='test -z "$ac_c_werror_flag"
3547 || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try
='test -s conftest.$ac_objext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 ac_header_compiler
=yes
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.
$ac_ext >&5
3564 ac_header_compiler
=no
3566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3568 echo "${ECHO_T}$ac_header_compiler" >&6
3570 # Is the header present?
3571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3573 cat >conftest.
$ac_ext <<_ACEOF
3576 cat confdefs.h
>>conftest.
$ac_ext
3577 cat >>conftest.
$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3579 #include <$ac_header>
3581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3582 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3584 grep -v '^ *+' conftest.er1
>conftest.err
3586 cat conftest.err
>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } >/dev
/null
; then
3589 if test -s conftest.err
; then
3590 ac_cpp_err
=$ac_c_preproc_warn_flag
3591 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3598 if test -z "$ac_cpp_err"; then
3599 ac_header_preproc
=yes
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.
$ac_ext >&5
3604 ac_header_preproc
=no
3606 rm -f conftest.err conftest.
$ac_ext
3607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3608 echo "${ECHO_T}$ac_header_preproc" >&6
3610 # So? What about this header?
3611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3617 ac_header_preproc
=yes
3620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3634 ## ------------------------------------------ ##
3635 ## Report this to the AC_PACKAGE_NAME lists. ##
3636 ## ------------------------------------------ ##
3639 sed "s/^/$as_me: WARNING: /" >&2
3642 echo "$as_me:$LINENO: checking for $ac_header" >&5
3643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 eval "$as_ac_Header=\$ac_header_preproc"
3649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3654 cat >>confdefs.h
<<_ACEOF
3655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3666 for ac_func
in getrusage
time sigaction __setfpucw
3668 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3669 echo "$as_me:$LINENO: checking for $ac_func" >&5
3670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3671 if eval "test \"\${$as_ac_var+set}\" = set"; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 cat >conftest.
$ac_ext <<_ACEOF
3677 cat confdefs.h
>>conftest.
$ac_ext
3678 cat >>conftest.
$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3682 #define $ac_func innocuous_$ac_func
3684 /* System header to define __stub macros and hopefully few prototypes,
3685 which can conflict with char $ac_func (); below.
3686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3687 <limits.h> exists even on freestanding compilers. */
3690 # include <limits.h>
3692 # include <assert.h>
3697 /* Override any gcc2 internal prototype to avoid an error. */
3702 /* We use char because int might match the return type of a gcc2
3703 builtin and then its argument prototype would still apply. */
3705 /* The GNU C library defines this for functions which it implements
3706 to always fail with ENOSYS. Some functions are actually named
3707 something starting with __ and the normal name is an alias. */
3708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3711 char (*f) () = $ac_func;
3720 return f != $ac_func;
3725 rm -f conftest.
$ac_objext conftest
$ac_exeext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3727 (eval $ac_link) 2>conftest.er1
3729 grep -v '^ *+' conftest.er1
>conftest.err
3731 cat conftest.err
>&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 { ac_try
='test -z "$ac_c_werror_flag"
3735 || test ! -s conftest.err'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; } &&
3741 { ac_try
='test -s conftest$ac_exeext'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; }; then
3747 eval "$as_ac_var=yes"
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.
$ac_ext >&5
3752 eval "$as_ac_var=no"
3754 rm -f conftest.err conftest.
$ac_objext \
3755 conftest
$ac_exeext conftest.
$ac_ext
3757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3759 if test `eval echo '${'$as_ac_var'}'` = yes; then
3760 cat >>confdefs.h
<<_ACEOF
3761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3768 # Check for socket libraries
3770 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
3771 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
3772 if test "${ac_cv_lib_socket_bind+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 ac_check_lib_save_LIBS
=$LIBS
3776 LIBS
="-lsocket $LIBS"
3777 cat >conftest.
$ac_ext <<_ACEOF
3780 cat confdefs.h
>>conftest.
$ac_ext
3781 cat >>conftest.
$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3784 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3799 rm -f conftest.
$ac_objext conftest
$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>conftest.er1
3803 grep -v '^ *+' conftest.er1
>conftest.err
3805 cat conftest.err
>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try
='test -z "$ac_c_werror_flag"
3809 || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try
='test -s conftest$ac_exeext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 ac_cv_lib_socket_bind
=yes
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.
$ac_ext >&5
3826 ac_cv_lib_socket_bind
=no
3828 rm -f conftest.err conftest.
$ac_objext \
3829 conftest
$ac_exeext conftest.
$ac_ext
3830 LIBS
=$ac_check_lib_save_LIBS
3832 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
3833 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
3834 if test $ac_cv_lib_socket_bind = yes; then
3835 cat >>confdefs.h
<<_ACEOF
3836 #define HAVE_LIBSOCKET 1
3839 LIBS
="-lsocket $LIBS"
3844 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3845 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3846 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 ac_check_lib_save_LIBS
=$LIBS
3851 cat >conftest.
$ac_ext <<_ACEOF
3854 cat confdefs.h
>>conftest.
$ac_ext
3855 cat >>conftest.
$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3858 /* Override any gcc2 internal prototype to avoid an error. */
3862 /* We use char because int might match the return type of a gcc2
3863 builtin and then its argument prototype would still apply. */
3864 char gethostbyname ();
3873 rm -f conftest.
$ac_objext conftest
$ac_exeext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3875 (eval $ac_link) 2>conftest.er1
3877 grep -v '^ *+' conftest.er1
>conftest.err
3879 cat conftest.err
>&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } &&
3882 { ac_try
='test -z "$ac_c_werror_flag"
3883 || test ! -s conftest.err'
3884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; } &&
3889 { ac_try
='test -s conftest$ac_exeext'
3890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; }; then
3895 ac_cv_lib_nsl_gethostbyname
=yes
3897 echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.
$ac_ext >&5
3900 ac_cv_lib_nsl_gethostbyname
=no
3902 rm -f conftest.err conftest.
$ac_objext \
3903 conftest
$ac_exeext conftest.
$ac_ext
3904 LIBS
=$ac_check_lib_save_LIBS
3906 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3907 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3908 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3909 cat >>confdefs.h
<<_ACEOF
3910 #define HAVE_LIBNSL 1
3918 .
${srcdir}/..
/..
/bfd
/configure.
host
3922 USE_MAINTAINER_MODE
=no
3923 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3924 if test "${enable_maintainer_mode+set}" = set; then
3925 enableval
="$enable_maintainer_mode"
3926 case "${enableval}" in
3927 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3929 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
3930 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
3931 { (exit 1); exit 1; }; }; MAINT
="#" ;;
3933 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3934 echo "Setting maintainer mode" 6>&1
3941 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3942 if test "${enable_sim_bswap+set}" = set; then
3943 enableval
="$enable_sim_bswap"
3944 case "${enableval}" in
3945 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3946 no
) sim_bswap
="-DWITH_BSWAP=0";;
3947 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
3948 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
3949 { (exit 1); exit 1; }; }; sim_bswap
="";;
3951 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3952 echo "Setting bswap flags = $sim_bswap" 6>&1
3959 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3960 if test "${enable_sim_cflags+set}" = set; then
3961 enableval
="$enable_sim_cflags"
3962 case "${enableval}" in
3963 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3964 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
3965 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
3966 { (exit 1); exit 1; }; }; sim_cflags
="";;
3968 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3970 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3971 echo "Setting sim cflags = $sim_cflags" 6>&1
3978 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3979 if test "${enable_sim_debug+set}" = set; then
3980 enableval
="$enable_sim_debug"
3981 case "${enableval}" in
3982 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3983 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3984 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3986 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3987 echo "Setting sim debug = $sim_debug" 6>&1
3994 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3995 if test "${enable_sim_stdio+set}" = set; then
3996 enableval
="$enable_sim_stdio"
3997 case "${enableval}" in
3998 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3999 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4000 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4001 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4002 { (exit 1); exit 1; }; }; sim_stdio
="";;
4004 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4005 echo "Setting stdio flags = $sim_stdio" 6>&1
4012 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4013 if test "${enable_sim_trace+set}" = set; then
4014 enableval
="$enable_sim_trace"
4015 case "${enableval}" in
4016 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4017 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4019 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4022 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4023 if test x
"$sim_trace" = x
; then
4024 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4026 sim_trace
="${sim_trace}|TRACE_$x"
4029 sim_trace
="$sim_trace)'" ;;
4031 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4032 echo "Setting sim trace = $sim_trace" 6>&1
4039 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4040 if test "${enable_sim_profile+set}" = set; then
4041 enableval
="$enable_sim_profile"
4042 case "${enableval}" in
4043 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4044 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4046 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4049 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4050 if test x
"$sim_profile" = x
; then
4051 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4053 sim_profile
="${sim_profile}|PROFILE_$x"
4056 sim_profile
="$sim_profile)'" ;;
4058 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4059 echo "Setting sim profile = $sim_profile" 6>&1
4062 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4066 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4067 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4068 if test "${ac_cv_type_signal+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 cat >conftest.
$ac_ext <<_ACEOF
4074 cat confdefs.h
>>conftest.
$ac_ext
4075 cat >>conftest.
$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 #include <sys/types.h>
4083 extern "C" void (*signal (int, void (*)(int)))(int);
4085 void (*signal ()) ();
4096 rm -f conftest.
$ac_objext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>conftest.er1
4100 grep -v '^ *+' conftest.er1
>conftest.err
4102 cat conftest.err
>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try
='test -z "$ac_c_werror_flag"
4106 || test ! -s conftest.err'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; } &&
4112 { ac_try
='test -s conftest.$ac_objext'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; }; then
4118 ac_cv_type_signal
=void
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.
$ac_ext >&5
4123 ac_cv_type_signal
=int
4125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4127 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4128 echo "${ECHO_T}$ac_cv_type_signal" >&6
4130 cat >>confdefs.h
<<_ACEOF
4131 #define RETSIGTYPE $ac_cv_type_signal
4141 sim_link_links
=tconfig.h
4142 if test -f ${srcdir}/tconfig.
in
4144 sim_link_files
=tconfig.
in
4146 sim_link_files
=..
/common
/tconfig.
in
4149 # targ-vals.def points to the libc macro description file.
4151 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4153 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4154 sim_link_links
="${sim_link_links} targ-vals.def"
4156 # This file contains common code used by all simulators.
4158 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
4159 # directory. It is intended to be invoked before any target specific stuff.
4160 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
4161 # It is intended to be invoked last.
4163 # The simulator's configure.in should look like:
4165 # dnl Process this file with autoconf to produce a configure script.
4166 # sinclude(../common/aclocal.m4)
4168 # AC_INIT(Makefile.in)
4172 # ... target specific stuff ...
4223 sim_inline
="-DDEFAULT_INLINE=0"
4260 # This file is derived from `gettext.m4'. The difference is that the
4261 # included macros assume Cygnus-style source and build trees.
4263 # Macro to add for using GNU gettext.
4264 # Ulrich Drepper <drepper@cygnus.com>, 1995.
4266 # This file file be copied and used freely without restrictions. It can
4267 # be used in projects which are not available under the GNU Public License
4268 # but which still want to provide support for the GNU gettext functionality.
4269 # Please note that the actual code is *not* freely available.
4277 # Search path for a program which passes the given test.
4278 # Ulrich Drepper <drepper@cygnus.com>, 1996.
4280 # This file file be copied and used freely without restrictions. It can
4281 # be used in projects which are not available under the GNU Public License
4282 # but which still want to provide support for the GNU gettext functionality.
4283 # Please note that the actual code is *not* freely available.
4289 # Check whether LC_MESSAGES is available in <locale.h>.
4290 # Ulrich Drepper <drepper@cygnus.com>, 1995.
4292 # This file file be copied and used freely without restrictions. It can
4293 # be used in projects which are not available under the GNU Public License
4294 # but which still want to provide support for the GNU gettext functionality.
4295 # Please note that the actual code is *not* freely available.
4306 wire_endian
="LITTLE_ENDIAN"
4308 # Check whether --enable-sim-endian or --disable-sim-endian was given.
4309 if test "${enable_sim_endian+set}" = set; then
4310 enableval
="$enable_sim_endian"
4311 case "${enableval}" in
4312 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
4313 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
4314 yes) if test x
"$wire_endian" != x
; then
4315 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4317 if test x
"$default_endian" != x
; then
4318 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
4320 echo "No hard-wired endian for target $target" 1>&6
4321 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
4324 no
) if test x
"$default_endian" != x
; then
4325 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4327 if test x
"$wire_endian" != x
; then
4328 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
4330 echo "No default endian for target $target" 1>&6
4331 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
4334 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
4335 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
4336 { (exit 1); exit 1; }; }; sim_endian
="";;
4338 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
4339 echo "Setting endian flags = $sim_endian" 6>&1
4342 if test x
"$default_endian" != x
; then
4343 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
4345 if test x
"$wire_endian" != x
; then
4346 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
4353 default_alignment
="NONSTRICT_ALIGNMENT"
4355 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4356 if test "${enable_sim_alignment+set}" = set; then
4357 enableval
="$enable_sim_alignment"
4358 case "${enableval}" in
4359 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4360 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4361 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4362 yes) if test x
"$wire_alignment" != x
; then
4363 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4365 if test x
"$default_alignment" != x
; then
4366 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
4368 echo "No hard-wired alignment for target $target" 1>&6
4369 sim_alignment
="-DWITH_ALIGNMENT=0"
4372 no
) if test x
"$default_alignment" != x
; then
4373 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4375 if test x
"$wire_alignment" != x
; then
4376 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4378 echo "No default alignment for target $target" 1>&6
4379 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
4382 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4383 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4384 { (exit 1); exit 1; }; }; sim_alignment
="";;
4386 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
4387 echo "Setting alignment flags = $sim_alignment" 6>&1
4390 if test x
"$default_alignment" != x
; then
4391 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4393 if test x
"$wire_alignment" != x
; then
4394 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
4401 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4402 if test "${enable_sim_hostendian+set}" = set; then
4403 enableval
="$enable_sim_hostendian"
4404 case "${enableval}" in
4405 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4406 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4407 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4408 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4409 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4410 { (exit 1); exit 1; }; }; sim_hostendian
="";;
4412 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4413 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4417 if test "x$cross_compiling" = "xno"; then
4418 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4419 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4420 if test "${ac_cv_c_bigendian+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 # See if sys/param.h defines the BYTE_ORDER macro.
4424 cat >conftest.
$ac_ext <<_ACEOF
4427 cat confdefs.h
>>conftest.
$ac_ext
4428 cat >>conftest.
$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 #include <sys/types.h>
4431 #include <sys/param.h>
4436 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4444 rm -f conftest.
$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>conftest.er1
4448 grep -v '^ *+' conftest.er1
>conftest.err
4450 cat conftest.err
>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try
='test -z "$ac_c_werror_flag"
4454 || test ! -s conftest.err'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try
='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 # It does; now see whether it defined to BIG_ENDIAN or not.
4467 cat >conftest.
$ac_ext <<_ACEOF
4470 cat confdefs.h
>>conftest.
$ac_ext
4471 cat >>conftest.
$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 #include <sys/types.h>
4474 #include <sys/param.h>
4479 #if BYTE_ORDER != BIG_ENDIAN
4487 rm -f conftest.
$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>conftest.er1
4491 grep -v '^ *+' conftest.er1
>conftest.err
4493 cat conftest.err
>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try
='test -z "$ac_c_werror_flag"
4497 || test ! -s conftest.err'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try
='test -s conftest.$ac_objext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 ac_cv_c_bigendian
=yes
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.
$ac_ext >&5
4514 ac_cv_c_bigendian
=no
4516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.
$ac_ext >&5
4521 # It does not; compile a test program.
4522 if test "$cross_compiling" = yes; then
4523 # try to guess the endianness by grepping values into an object file
4524 ac_cv_c_bigendian
=unknown
4525 cat >conftest.
$ac_ext <<_ACEOF
4528 cat confdefs.h
>>conftest.
$ac_ext
4529 cat >>conftest.
$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4532 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4533 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4534 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4535 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4536 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4540 _ascii (); _ebcdic ();
4545 rm -f conftest.
$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>conftest.er1
4549 grep -v '^ *+' conftest.er1
>conftest.err
4551 cat conftest.err
>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try
='test -z "$ac_c_werror_flag"
4555 || test ! -s conftest.err'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try
='test -s conftest.$ac_objext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4568 ac_cv_c_bigendian
=yes
4570 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4571 if test "$ac_cv_c_bigendian" = unknown
; then
4572 ac_cv_c_bigendian
=no
4574 # finding both strings is unlikely to happen, but who knows?
4575 ac_cv_c_bigendian
=unknown
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.
$ac_ext >&5
4583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4585 cat >conftest.
$ac_ext <<_ACEOF
4588 cat confdefs.h
>>conftest.
$ac_ext
4589 cat >>conftest.
$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4594 /* Are we little or big endian? From Harbison&Steele. */
4598 char c[sizeof (long)];
4601 exit (u.c[sizeof (long) - 1] == 1);
4604 rm -f conftest
$ac_exeext
4605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4606 (eval $ac_link) 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_cv_c_bigendian
=no
4617 echo "$as_me: program exited with status $ac_status" >&5
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.
$ac_ext >&5
4622 ac_cv_c_bigendian
=yes
4624 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4629 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4630 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4631 case $ac_cv_c_bigendian in
4634 cat >>confdefs.h
<<\_ACEOF
4635 #define WORDS_BIGENDIAN 1
4641 { { echo "$as_me:$LINENO: error: unknown endianness
4642 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4643 echo "$as_me: error: unknown endianness
4644 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4645 { (exit 1); exit 1; }; } ;;
4648 if test $ac_cv_c_bigendian = yes; then
4649 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4651 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4654 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4658 # NOTE: Don't add -Wall or -Wunused, they both include
4659 # -Wunused-parameter which reports bogus warnings.
4660 # NOTE: If you add to this list, remember to update
4661 # gdb/doc/gdbint.texinfo.
4662 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4663 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
4664 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4665 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4666 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4667 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4668 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4669 # -Woverloaded-virtual -Winline -Werror"
4670 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4671 if test "${enable_build_warnings+set}" = set; then
4672 enableval
="$enable_build_warnings"
4673 case "${enableval}" in
4675 no
) build_warnings
="-w";;
4676 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4677 build_warnings
="${build_warnings} ${t}";;
4678 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4679 build_warnings
="${t} ${build_warnings}";;
4680 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4682 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4683 echo "Setting compiler warning flags = $build_warnings" 6>&1
4685 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
4686 if test "${enable_sim_build_warnings+set}" = set; then
4687 enableval
="$enable_sim_build_warnings"
4688 case "${enableval}" in
4690 no
) build_warnings
="-w";;
4691 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4692 build_warnings
="${build_warnings} ${t}";;
4693 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4694 build_warnings
="${t} ${build_warnings}";;
4695 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4697 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4698 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4702 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
4704 echo "$as_me:$LINENO: checking compiler warning flags" >&5
4705 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
4706 # Separate out the -Werror flag as some files just cannot be
4707 # compiled with it enabled.
4708 for w
in ${build_warnings}; do
4710 -Werr*) WERROR_CFLAGS
=-Werror ;;
4711 *) # Check that GCC accepts it
4712 saved_CFLAGS
="$CFLAGS"
4714 cat >conftest.
$ac_ext <<_ACEOF
4717 cat confdefs.h
>>conftest.
$ac_ext
4718 cat >>conftest.
$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4729 rm -f conftest.
$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>conftest.er1
4733 grep -v '^ *+' conftest.er1
>conftest.err
4735 cat conftest.err
>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try
='test -z "$ac_c_werror_flag"
4739 || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try
='test -s conftest.$ac_objext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 WARN_CFLAGS
="${WARN_CFLAGS} $w"
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.
$ac_ext >&5
4757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4758 CFLAGS
="$saved_CFLAGS"
4761 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4762 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
4766 default_sim_reserved_bits
="1"
4767 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
4768 if test "${enable_sim_reserved_bits+set}" = set; then
4769 enableval
="$enable_sim_reserved_bits"
4770 case "${enableval}" in
4771 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
4772 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
4773 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
4774 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
4775 { (exit 1); exit 1; }; }; sim_reserved_bits
="";;
4777 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
4778 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
4781 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
4783 wire_word_bitsize
="32"
4785 wire_address_bitsize
=""
4786 wire_cell_bitsize
=""
4787 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
4788 if test "${enable_sim_bitsize+set}" = set; then
4789 enableval
="$enable_sim_bitsize"
4791 case "${enableval}" in
4792 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
4793 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
4794 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
4795 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
4796 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
4797 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
4799 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
4801 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
4802 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
4804 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
4806 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
4807 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
4808 { (exit 1); exit 1; }; } ;;
4811 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
4814 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
4815 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
4816 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
4817 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
4818 { (exit 1); exit 1; }; } ;;
4821 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
4824 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
4825 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
4826 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
4827 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
4828 { (exit 1); exit 1; }; } ;;
4830 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
4831 echo "Setting bitsize flags = $sim_bitsize" 6>&1
4835 if test x
"$wire_word_bitsize" != x
; then
4836 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
4838 if test x
"$wire_word_msb" != x
; then
4839 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
4841 if test x
"$wire_address_bitsize" != x
; then
4842 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
4844 if test x
"$wire_cell_bitsize" != x
; then
4845 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
4856 for ac_func
in time chmod utime fork execve execv chown
4858 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4859 echo "$as_me:$LINENO: checking for $ac_func" >&5
4860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4861 if eval "test \"\${$as_ac_var+set}\" = set"; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 cat >conftest.
$ac_ext <<_ACEOF
4867 cat confdefs.h
>>conftest.
$ac_ext
4868 cat >>conftest.
$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4872 #define $ac_func innocuous_$ac_func
4874 /* System header to define __stub macros and hopefully few prototypes,
4875 which can conflict with char $ac_func (); below.
4876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4877 <limits.h> exists even on freestanding compilers. */
4880 # include <limits.h>
4882 # include <assert.h>
4887 /* Override any gcc2 internal prototype to avoid an error. */
4892 /* We use char because int might match the return type of a gcc2
4893 builtin and then its argument prototype would still apply. */
4895 /* The GNU C library defines this for functions which it implements
4896 to always fail with ENOSYS. Some functions are actually named
4897 something starting with __ and the normal name is an alias. */
4898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4901 char (*f) () = $ac_func;
4910 return f != $ac_func;
4915 rm -f conftest.
$ac_objext conftest
$ac_exeext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4917 (eval $ac_link) 2>conftest.er1
4919 grep -v '^ *+' conftest.er1
>conftest.err
4921 cat conftest.err
>&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try
='test -z "$ac_c_werror_flag"
4925 || test ! -s conftest.err'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; } &&
4931 { ac_try
='test -s conftest$ac_exeext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 eval "$as_ac_var=yes"
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.
$ac_ext >&5
4942 eval "$as_ac_var=no"
4944 rm -f conftest.err conftest.
$ac_objext \
4945 conftest
$ac_exeext conftest.
$ac_ext
4947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4949 if test `eval echo '${'$as_ac_var'}'` = yes; then
4950 cat >>confdefs.h
<<_ACEOF
4951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4963 for ac_header
in unistd.h stdlib.h string.h
strings.h utime.h
time.h
4965 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4967 echo "$as_me:$LINENO: checking for $ac_header" >&5
4968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4975 # Is the header compilable?
4976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4978 cat >conftest.
$ac_ext <<_ACEOF
4981 cat confdefs.h
>>conftest.
$ac_ext
4982 cat >>conftest.
$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 $ac_includes_default
4985 #include <$ac_header>
4987 rm -f conftest.
$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4991 grep -v '^ *+' conftest.er1
>conftest.err
4993 cat conftest.err
>&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try
='test -z "$ac_c_werror_flag"
4997 || test ! -s conftest.err'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; } &&
5003 { ac_try
='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 ac_header_compiler
=yes
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.
$ac_ext >&5
5014 ac_header_compiler
=no
5016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5018 echo "${ECHO_T}$ac_header_compiler" >&6
5020 # Is the header present?
5021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5023 cat >conftest.
$ac_ext <<_ACEOF
5026 cat confdefs.h
>>conftest.
$ac_ext
5027 cat >>conftest.
$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 #include <$ac_header>
5031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5032 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5034 grep -v '^ *+' conftest.er1
>conftest.err
5036 cat conftest.err
>&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } >/dev
/null
; then
5039 if test -s conftest.err
; then
5040 ac_cpp_err
=$ac_c_preproc_warn_flag
5041 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5048 if test -z "$ac_cpp_err"; then
5049 ac_header_preproc
=yes
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.
$ac_ext >&5
5054 ac_header_preproc
=no
5056 rm -f conftest.err conftest.
$ac_ext
5057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5058 echo "${ECHO_T}$ac_header_preproc" >&6
5060 # So? What about this header?
5061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5067 ac_header_preproc
=yes
5070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5084 ## ------------------------------------------ ##
5085 ## Report this to the AC_PACKAGE_NAME lists. ##
5086 ## ------------------------------------------ ##
5089 sed "s/^/$as_me: WARNING: /" >&2
5092 echo "$as_me:$LINENO: checking for $ac_header" >&5
5093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 eval "$as_ac_Header=\$ac_header_preproc"
5099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5104 cat >>confdefs.h
<<_ACEOF
5105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5114 ac_sources
="$sim_link_files"
5115 ac_dests
="$sim_link_links"
5116 while test -n "$ac_sources"; do
5117 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
5118 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
5119 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
5121 ac_config_links
="$ac_config_links $ac_config_links_1"
5124 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
5125 cgen_breaks
="break cgen_rtx_error";
5128 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
5130 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
5132 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
5134 ac_config_commands
="$ac_config_commands Makefile"
5136 ac_config_commands
="$ac_config_commands stamp-h"
5138 cat >confcache
<<\_ACEOF
5139 # This file is a shell script that caches the results of configure
5140 # tests run on this system so they can be shared between configure
5141 # scripts and configure runs, see configure's option --config-cache.
5142 # It is not useful on other systems. If it contains results you don't
5143 # want to keep, you may remove or edit it.
5145 # config.status only pays attention to the cache file if you give it
5146 # the --recheck option to rerun configure.
5148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5154 # The following way of writing the cache mishandles newlines in values,
5155 # but we know of no workaround that is simple, portable, and efficient.
5156 # So, don't put newlines in cache variables' values.
5157 # Ultrix sh set writes to stderr and can't be redirected directly,
5158 # and sets the high bit in the cache file unless we assign to the vars.
5161 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5163 # `set' does not quote correctly, so add quotes (double-quote
5164 # substitution turns \\\\ into \\, and sed turns \\ into \).
5167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5170 # `set' quotes correctly as required by POSIX, so do not add quotes.
5172 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5179 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5181 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5183 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
5184 if test -w $cache_file; then
5185 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5186 cat confcache
>$cache_file
5188 echo "not updating unwritable cache $cache_file"
5193 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5194 # Let make expand exec_prefix.
5195 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5199 # trailing colons and then remove the whole line if VPATH becomes empty
5200 # (actually we leave an empty line to preserve line numbers).
5201 if test "x$srcdir" = x.
; then
5202 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
5203 s/:*\$(srcdir):*/:/;
5204 s/:*\${srcdir}:*/:/;
5206 s/^\([^=]*=[ ]*\):*/\1/;
5212 DEFS
=-DHAVE_CONFIG_H
5216 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5217 # 1. Remove the extension, and $U if already installed.
5218 ac_i
=`echo "$ac_i" |
5219 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5221 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
5222 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
5226 LTLIBOBJS
=$ac_ltlibobjs
5230 : ${CONFIG_STATUS=./config.status}
5231 ac_clean_files_save
=$ac_clean_files
5232 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5233 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5234 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5235 cat >$CONFIG_STATUS <<_ACEOF
5237 # Generated by $as_me.
5238 # Run this file to recreate the current configuration.
5239 # Compiler output produced by configure, useful for debugging
5240 # configure, is in config.log if it exists.
5245 SHELL=\${CONFIG_SHELL-$SHELL}
5248 cat >>$CONFIG_STATUS <<\_ACEOF
5249 ## --------------------- ##
5250 ## M4sh Initialization. ##
5251 ## --------------------- ##
5253 # Be Bourne compatible
5254 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
5257 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5258 # is contrary to our usage. Disable this feature.
5259 alias -g '${1+"$@"}'='"$@"'
5260 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
5263 DUALCASE
=1; export DUALCASE
# for MKS sh
5265 # Support unset when possible.
5266 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5273 # Work around bugs in pre-3.0 UWIN ksh.
5274 $as_unset ENV MAIL MAILPATH
5281 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5282 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5283 LC_TELEPHONE LC_TIME
5285 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5286 eval $as_var=C
; export $as_var
5292 # Required to use basename.
5293 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5299 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
5300 as_basename
=basename
5306 # Name of the executable.
5307 as_me
=`$as_basename "$0" ||
5308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5309 X"$0" : 'X\(//\)$' \| \
5310 X"$0" : 'X\(/\)$' \| \
5311 . : '\(.\)' 2>/dev/null ||
5313 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5314 /^X\/\(\/\/\)$/{ s//\1/; q; }
5315 /^X\/\(\/\).*/{ s//\1/; q; }
5319 # PATH needs CR, and LINENO needs CR and PATH.
5320 # Avoid depending upon Character Ranges.
5321 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5322 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5323 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5324 as_cr_digits
='0123456789'
5325 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5327 # The user is always right.
5328 if test "${PATH_SEPARATOR+set}" != set; then
5329 echo "#! /bin/sh" >conf$$.sh
5330 echo "exit 0" >>conf$$.sh
5332 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5343 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
5344 test "x$as_lineno_1" != "x$as_lineno_2" &&
5345 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
5346 # Find who we are. Look in the path if we contain no path at all
5349 *[\\/]* ) as_myself
=$0 ;;
5350 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir
=.
5355 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
5360 # We did not find ourselves, most probably we were run as `sh COMMAND'
5361 # in which case we are not to be found in the path.
5362 if test "x$as_myself" = x
; then
5365 if test ! -f "$as_myself"; then
5366 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5367 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5368 { (exit 1); exit 1; }; }
5370 case $CONFIG_SHELL in
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5373 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
5376 test -z "$as_dir" && as_dir
=.
5377 for as_base
in sh bash ksh sh5
; do
5380 if ("$as_dir/$as_base" -c '
5383 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5384 test "x$as_lineno_1" != "x$as_lineno_2" &&
5385 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
5386 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
5387 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
5388 CONFIG_SHELL
=$as_dir/$as_base
5390 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5398 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5399 # uniformly replaced by the line number. The first 'sed' inserts a
5400 # line-number line before each line; the second 'sed' does the real
5401 # work. The second script uses 'N' to pair each line-number line
5402 # with the numbered line, and appends trailing '-' during
5403 # substitution so that $LINENO is not a special case at line end.
5404 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5405 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5406 sed '=' <$as_myself |
5411 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5414 s,^['$as_cr_digits']*\n,,
5416 chmod +x
$as_me.lineno ||
5417 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5418 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5419 { (exit 1); exit 1; }; }
5421 # Don't try to exec as it changes $[0], causing all sort of problems
5422 # (the dirname of $[0] is not the place where we might find the
5423 # original and so on. Autoconf is especially sensible to this).
5425 # Exit status is that of the last command.
5430 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5431 *c
*,-n*) ECHO_N
= ECHO_C
='
5433 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
5434 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
5437 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5443 rm -f conf$$ conf$$.exe conf$$.
file
5445 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5446 # We could just check for DJGPP; but this test a) works b) is more generic
5447 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5448 if test -f conf$$.exe
; then
5449 # Don't use ln at all; we don't have any links
5454 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5459 rm -f conf$$ conf$$.exe conf$$.
file
5461 if mkdir
-p .
2>/dev
/null
; then
5464 test -d .
/-p && rmdir .
/-p
5468 as_executable_p
="test -f"
5470 # Sed expression to map a string onto a valid CPP name.
5471 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5473 # Sed expression to map a string onto a valid variable name.
5474 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5478 # We need space, tab and new line, in precisely that order.
5488 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5489 # report actual input values of CONFIG_FILES etc. instead of their
5490 # values after options handling. Logging --version etc. is OK.
5494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5495 ## Running $as_me. ##
5500 This file was extended by $as_me, which was
5501 generated by GNU Autoconf 2.59. Invocation command line was
5503 CONFIG_FILES = $CONFIG_FILES
5504 CONFIG_HEADERS = $CONFIG_HEADERS
5505 CONFIG_LINKS = $CONFIG_LINKS
5506 CONFIG_COMMANDS = $CONFIG_COMMANDS
5510 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5514 # Files that config.status was made for.
5515 if test -n "$ac_config_files"; then
5516 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5519 if test -n "$ac_config_headers"; then
5520 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5523 if test -n "$ac_config_links"; then
5524 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5527 if test -n "$ac_config_commands"; then
5528 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5531 cat >>$CONFIG_STATUS <<\_ACEOF
5534 \`$as_me' instantiates files from templates according to the
5535 current configuration.
5537 Usage: $0 [OPTIONS] [FILE]...
5539 -h, --help print this help, then exit
5540 -V, --version print version number, then exit
5541 -q, --quiet do not print progress messages
5542 -d, --debug don't remove temporary files
5543 --recheck update $as_me by reconfiguring in the same conditions
5544 --file=FILE[:TEMPLATE]
5545 instantiate the configuration file FILE
5546 --header=FILE[:TEMPLATE]
5547 instantiate the configuration header FILE
5549 Configuration files:
5552 Configuration headers:
5555 Configuration links:
5558 Configuration commands:
5561 Report bugs to <bug-autoconf@gnu.org>."
5564 cat >>$CONFIG_STATUS <<_ACEOF
5567 configured by $0, generated by GNU Autoconf 2.59,
5568 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5570 Copyright (C) 2003 Free Software Foundation, Inc.
5571 This config.status script is free software; the Free Software Foundation
5572 gives unlimited permission to copy, distribute and modify it."
5577 cat >>$CONFIG_STATUS <<\_ACEOF
5578 # If no file are specified by the user, then we need to provide default
5579 # value. By we need to know if files were specified by the user.
5585 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
5586 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
5594 *) # This is not an option, so the user has probably given explicit
5597 ac_need_defaults
=false
;;
5601 # Handling of the options.
5603 cat >>$CONFIG_STATUS <<\_ACEOF
5604 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5606 --version |
--vers* |
-V )
5607 echo "$ac_cs_version"; exit 0 ;;
5609 # Conflict between --help and --header
5610 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5611 Try \`$0 --help' for more information." >&5
5612 echo "$as_me: error: ambiguous option: $1
5613 Try \`$0 --help' for more information." >&2;}
5614 { (exit 1); exit 1; }; };;
5615 --help |
--hel |
-h )
5616 echo "$ac_cs_usage"; exit 0 ;;
5617 --debug |
--d* |
-d )
5619 --file |
--fil |
--fi |
--f )
5621 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
5622 ac_need_defaults
=false
;;
5623 --header |
--heade |
--head |
--hea )
5625 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
5626 ac_need_defaults
=false
;;
5627 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5628 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5632 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5633 Try \`$0 --help' for more information." >&5
5634 echo "$as_me: error: unrecognized option: $1
5635 Try \`$0 --help' for more information." >&2;}
5636 { (exit 1); exit 1; }; } ;;
5638 *) ac_config_targets
="$ac_config_targets $1" ;;
5644 ac_configure_extra_args
=
5646 if $ac_cs_silent; then
5648 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5652 cat >>$CONFIG_STATUS <<_ACEOF
5653 if \$ac_cs_recheck; then
5654 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5655 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5664 cat >>$CONFIG_STATUS <<\_ACEOF
5665 for ac_config_target
in $ac_config_targets
5667 case "$ac_config_target" in
5668 # Handling of arguments.
5669 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5670 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5671 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5672 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
5673 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
5674 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
5675 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
5676 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5677 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5678 { (exit 1); exit 1; }; };;
5682 # If the user did not use the arguments to specify the items to instantiate,
5683 # then the envvar interface is used. Set only those that are not.
5684 # We use the long form for the default assignment because of an extremely
5685 # bizarre bug on SunOS 4.1.3.
5686 if $ac_need_defaults; then
5687 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5688 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5689 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
5690 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
5693 # Have a temporary directory for convenience. Make it in the build tree
5694 # simply because there is no reason to put it here, and in addition,
5695 # creating and moving files from /tmp can sometimes cause problems.
5696 # Create a temporary directory, and hook for its removal unless debugging.
5699 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5700 trap '{ (exit 1); exit 1; }' 1 2 13 15
5703 # Create a (secure) tmp directory for tmp files.
5706 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5707 test -n "$tmp" && test -d "$tmp"
5710 tmp
=.
/confstat$$
-$RANDOM
5711 (umask 077 && mkdir
$tmp)
5714 echo "$me: cannot create a temporary directory in ." >&2
5715 { (exit 1); exit 1; }
5720 cat >>$CONFIG_STATUS <<_ACEOF
5723 # CONFIG_FILES section.
5726 # No need to generate the scripts if there are no CONFIG_FILES.
5727 # This happens for instance when ./config.status config.h
5728 if test -n "\$CONFIG_FILES"; then
5729 # Protect against being on the right side of a sed subst in config.status.
5730 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5731 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5732 s,@SHELL@,$SHELL,;t t
5733 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5734 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5735 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5736 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5737 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5738 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5739 s,@exec_prefix@,$exec_prefix,;t t
5740 s,@prefix@,$prefix,;t t
5741 s,@program_transform_name@,$program_transform_name,;t t
5742 s,@bindir@,$bindir,;t t
5743 s,@sbindir@,$sbindir,;t t
5744 s,@libexecdir@,$libexecdir,;t t
5745 s,@datadir@,$datadir,;t t
5746 s,@sysconfdir@,$sysconfdir,;t t
5747 s,@sharedstatedir@,$sharedstatedir,;t t
5748 s,@localstatedir@,$localstatedir,;t t
5749 s,@libdir@,$libdir,;t t
5750 s,@includedir@,$includedir,;t t
5751 s,@oldincludedir@,$oldincludedir,;t t
5752 s,@infodir@,$infodir,;t t
5753 s,@mandir@,$mandir,;t t
5754 s,@build_alias@,$build_alias,;t t
5755 s,@host_alias@,$host_alias,;t t
5756 s,@target_alias@,$target_alias,;t t
5758 s,@ECHO_C@,$ECHO_C,;t t
5759 s,@ECHO_N@,$ECHO_N,;t t
5760 s,@ECHO_T@,$ECHO_T,;t t
5762 s,@build@,$build,;t t
5763 s,@build_cpu@,$build_cpu,;t t
5764 s,@build_vendor@,$build_vendor,;t t
5765 s,@build_os@,$build_os,;t t
5767 s,@host_cpu@,$host_cpu,;t t
5768 s,@host_vendor@,$host_vendor,;t t
5769 s,@host_os@,$host_os,;t t
5770 s,@target@,$target,;t t
5771 s,@target_cpu@,$target_cpu,;t t
5772 s,@target_vendor@,$target_vendor,;t t
5773 s,@target_os@,$target_os,;t t
5775 s,@CFLAGS@,$CFLAGS,;t t
5776 s,@LDFLAGS@,$LDFLAGS,;t t
5777 s,@CPPFLAGS@,$CPPFLAGS,;t t
5778 s,@ac_ct_CC@,$ac_ct_CC,;t t
5779 s,@EXEEXT@,$EXEEXT,;t t
5780 s,@OBJEXT@,$OBJEXT,;t t
5781 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5782 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5783 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5784 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
5785 s,@HDEFINES@,$HDEFINES,;t t
5787 s,@RANLIB@,$RANLIB,;t t
5788 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5790 s,@EGREP@,$EGREP,;t t
5791 s,@MAINT@,$MAINT,;t t
5792 s,@sim_bswap@,$sim_bswap,;t t
5793 s,@sim_cflags@,$sim_cflags,;t t
5794 s,@sim_debug@,$sim_debug,;t t
5795 s,@sim_stdio@,$sim_stdio,;t t
5796 s,@sim_trace@,$sim_trace,;t t
5797 s,@sim_profile@,$sim_profile,;t t
5798 s,@sim_environment@,$sim_environment,;t t
5799 s,@sim_alignment@,$sim_alignment,;t t
5800 s,@sim_assert@,$sim_assert,;t t
5801 s,@sim_bitsize@,$sim_bitsize,;t t
5802 s,@sim_endian@,$sim_endian,;t t
5803 s,@sim_hostendian@,$sim_hostendian,;t t
5804 s,@sim_float@,$sim_float,;t t
5805 s,@sim_scache@,$sim_scache,;t t
5806 s,@sim_default_model@,$sim_default_model,;t t
5807 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5808 s,@sim_hw_objs@,$sim_hw_objs,;t t
5809 s,@sim_hw@,$sim_hw,;t t
5810 s,@sim_inline@,$sim_inline,;t t
5811 s,@sim_packages@,$sim_packages,;t t
5812 s,@sim_regparm@,$sim_regparm,;t t
5813 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5814 s,@sim_smp@,$sim_smp,;t t
5815 s,@sim_stdcall@,$sim_stdcall,;t t
5816 s,@sim_xor_endian@,$sim_xor_endian,;t t
5817 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5818 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
5819 s,@cgen_breaks@,$cgen_breaks,;t t
5820 s,@LIBOBJS@,$LIBOBJS,;t t
5821 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5826 cat >>$CONFIG_STATUS <<\_ACEOF
5827 # Split the substitutions into bite-sized pieces for seds with
5828 # small command number limits, like on Digital OSF/1 and HP-UX.
5830 ac_sed_frag
=1 # Number of current file.
5831 ac_beg
=1 # First line for current file.
5832 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5835 while $ac_more_lines; do
5836 if test $ac_beg -gt 1; then
5837 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5839 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5841 if test ! -s $tmp/subs.frag
; then
5844 # The purpose of the label and of the branching condition is to
5845 # speed up the sed processing (if there are no `@' at all, there
5846 # is no need to browse any of the substitutions).
5847 # These are the two extra sed commands mentioned above.
5849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5850 if test -z "$ac_sed_cmds"; then
5851 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5853 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5855 ac_sed_frag
=`expr $ac_sed_frag + 1`
5857 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5860 if test -z "$ac_sed_cmds"; then
5863 fi # test -n "$CONFIG_FILES"
5866 cat >>$CONFIG_STATUS <<\_ACEOF
5867 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5870 - |
*:- |
*:-:* ) # input from stdin
5872 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5873 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5874 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5875 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5876 * ) ac_file_in
=$ac_file.
in ;;
5879 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5880 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5882 X"$ac_file" : 'X\(//\)[^/]' \| \
5883 X"$ac_file" : 'X\(//\)$' \| \
5884 X"$ac_file" : 'X\(/\)' \| \
5885 . : '\(.\)' 2>/dev/null ||
5887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5889 /^X\(\/\/\)$/{ s//\1/; q; }
5890 /^X\(\/\).*/{ s//\1/; q; }
5892 { if $as_mkdir_p; then
5897 while test ! -d "$as_dir"; do
5898 as_dirs
="$as_dir $as_dirs"
5899 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5901 X"$as_dir" : 'X\(//\)[^/]' \| \
5902 X"$as_dir" : 'X\(//\)$' \| \
5903 X"$as_dir" : 'X\(/\)' \| \
5904 . : '\(.\)' 2>/dev/null ||
5906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5908 /^X\(\/\/\)$/{ s//\1/; q; }
5909 /^X\(\/\).*/{ s//\1/; q; }
5912 test ! -n "$as_dirs" || mkdir
$as_dirs
5913 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5914 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5915 { (exit 1); exit 1; }; }; }
5919 if test "$ac_dir" != .
; then
5920 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5921 # A "../" for each directory in $ac_dir_suffix.
5922 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5924 ac_dir_suffix
= ac_top_builddir
=
5928 .
) # No --srcdir option. We are building in place.
5930 if test -z "$ac_top_builddir"; then
5933 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5935 [\\/]* | ?
:[\\/]* ) # Absolute path.
5936 ac_srcdir
=$srcdir$ac_dir_suffix;
5937 ac_top_srcdir
=$srcdir ;;
5939 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5940 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5943 # Do not use `cd foo && pwd` to compute absolute paths, because
5944 # the directories may not exist.
5946 .
) ac_abs_builddir
="$ac_dir";;
5949 .
) ac_abs_builddir
=`pwd`;;
5950 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5951 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5954 case $ac_abs_builddir in
5955 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5957 case ${ac_top_builddir}.
in
5958 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5959 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5960 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5963 case $ac_abs_builddir in
5964 .
) ac_abs_srcdir
=$ac_srcdir;;
5967 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5968 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5969 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5972 case $ac_abs_builddir in
5973 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5975 case $ac_top_srcdir in
5976 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5977 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5978 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5984 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5985 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
5988 if test x
"$ac_file" != x-
; then
5989 { echo "$as_me:$LINENO: creating $ac_file" >&5
5990 echo "$as_me: creating $ac_file" >&6;}
5993 # Let's still pretend it is `configure' which instantiates (i.e., don't
5994 # use $as_me), people would be surprised to read:
5995 # /* config.h. Generated by config.status. */
5996 if test x
"$ac_file" = x-
; then
5999 configure_input
="$ac_file. "
6001 configure_input
=$configure_input"Generated from `echo $ac_file_in |
6002 sed 's,.*/,,'` by configure."
6004 # First look for the input files in the build tree, otherwise in the
6006 ac_file_inputs
=`IFS=:
6007 for f in $ac_file_in; do
6009 -) echo $tmp/stdin ;;
6011 # Absolute (can't be DOS-style, as IFS=:)
6012 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6013 echo "$as_me: error: cannot find input file: $f" >&2;}
6014 { (exit 1); exit 1; }; }
6017 if test -f "$f"; then
6020 elif test -f "$srcdir/$f"; then
6025 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6026 echo "$as_me: error: cannot find input file: $f" >&2;}
6027 { (exit 1); exit 1; }; }
6030 done` ||
{ (exit 1); exit 1; }
6032 cat >>$CONFIG_STATUS <<_ACEOF
6036 cat >>$CONFIG_STATUS <<\_ACEOF
6038 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6039 s
,@configure_input@
,$configure_input,;t t
6040 s
,@srcdir@
,$ac_srcdir,;t t
6041 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
6042 s
,@top_srcdir@
,$ac_top_srcdir,;t t
6043 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
6044 s
,@builddir@
,$ac_builddir,;t t
6045 s
,@abs_builddir@
,$ac_abs_builddir,;t t
6046 s
,@top_builddir@
,$ac_top_builddir,;t t
6047 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
6048 s
,@INSTALL@
,$ac_INSTALL,;t t
6049 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6051 if test x"$ac_file" != x-; then
6052 mv $tmp/out $ac_file
6060 cat >>$CONFIG_STATUS <<\_ACEOF
6063 # CONFIG_HEADER section.
6066 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
6067 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6069 # ac_d sets the value in "#define NAME VALUE" lines.
6070 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6071 ac_dB
='[ ].*$,\1#\2'
6074 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6075 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6076 ac_uB
='$,\1#\2define\3'
6080 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6081 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6083 - |
*:- |
*:-:* ) # input from stdin
6085 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6086 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6087 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6088 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6089 * ) ac_file_in
=$ac_file.
in ;;
6092 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
6093 echo "$as_me: creating $ac_file" >&6;}
6095 # First look for the input files in the build tree, otherwise in the
6097 ac_file_inputs
=`IFS=:
6098 for f in $ac_file_in; do
6100 -) echo $tmp/stdin ;;
6102 # Absolute (can't be DOS-style, as IFS=:)
6103 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6104 echo "$as_me: error: cannot find input file: $f" >&2;}
6105 { (exit 1); exit 1; }; }
6106 # Do quote $f, to prevent DOS paths from being IFS'd.
6109 if test -f "$f"; then
6112 elif test -f "$srcdir/$f"; then
6117 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6118 echo "$as_me: error: cannot find input file: $f" >&2;}
6119 { (exit 1); exit 1; }; }
6122 done` ||
{ (exit 1); exit 1; }
6123 # Remove the trailing spaces.
6124 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6128 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6129 # `conftest.undefs', that substitutes the proper values into
6130 # config.h.in to produce config.h. The first handles `#define'
6131 # templates, and the second `#undef' templates.
6132 # And first: Protect against being on the right side of a sed subst in
6133 # config.status. Protect against being in an unquoted here document
6135 rm -f conftest.defines conftest.undefs
6136 # Using a here document instead of a string reduces the quoting nightmare.
6137 # Putting comments in sed scripts is not portable.
6139 # `end' is used to avoid that the second main sed command (meant for
6140 # 0-ary CPP macros) applies to n-ary macro definitions.
6141 # See the Autoconf documentation for `clear'.
6142 cat >confdef2sed.
sed <<\_ACEOF
6147 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6149 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6152 # If some macros were called several times there might be several times
6153 # the same #defines, which is useless. Nevertheless, we may not want to
6154 # sort them, since we want the *last* AC-DEFINE to be honored.
6155 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6156 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6157 rm -f confdef2sed.sed
6159 # This sed command replaces #undef with comments. This is necessary, for
6160 # example, in the case of _POSIX_SOURCE, which is predefined and required
6161 # on some systems where configure will not decide to define it.
6162 cat >>conftest.undefs <<\_ACEOF
6163 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6166 # Break up conftest.defines because some shells have a limit on the size
6167 # of here documents, and old seds have small limits too (100 cmds).
6168 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6169 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6170 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6171 echo ' :' >>$CONFIG_STATUS
6173 while grep . conftest.defines >/dev/null
6175 # Write a limited-size here document to $tmp/defines.sed.
6176 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6177 # Speed up: don't consider the non `#define' lines.
6178 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6179 # Work around the forget-to-reset-the-flag bug.
6180 echo 't clr' >>$CONFIG_STATUS
6181 echo ': clr' >>$CONFIG_STATUS
6182 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
6184 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6188 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
6189 rm -f conftest.defines
6190 mv conftest.
tail conftest.defines
6192 rm -f conftest.defines
6193 echo ' fi # grep' >>$CONFIG_STATUS
6194 echo >>$CONFIG_STATUS
6196 # Break up conftest.undefs because some shells have a limit on the size
6197 # of here documents, and old seds have small limits too (100 cmds).
6198 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6200 while grep . conftest.undefs
>/dev
/null
6202 # Write a limited-size here document to $tmp/undefs.sed.
6203 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6204 # Speed up: don't consider the non
`#undef'
6205 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6206 # Work around the forget-to-reset-the-flag bug.
6207 echo 't clr' >>$CONFIG_STATUS
6208 echo ': clr' >>$CONFIG_STATUS
6209 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6211 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6215 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6216 rm -f conftest.undefs
6217 mv conftest.tail conftest.undefs
6219 rm -f conftest.undefs
6221 cat >>$CONFIG_STATUS <<\_ACEOF
6222 # Let's still pretend it is `configure
' which instantiates (i.e., don't
6223 # use $as_me), people would be surprised to read:
6224 # /* config.h. Generated by config.status. */
6225 if test x
"$ac_file" = x-
; then
6226 echo "/* Generated by configure. */" >$tmp/config.h
6228 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6230 cat $tmp/in >>$tmp/config.h
6232 if test x
"$ac_file" != x-
; then
6233 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
6234 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6235 echo "$as_me: $ac_file is unchanged" >&6;}
6237 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6239 X"$ac_file" : 'X\(//\)[^/]' \| \
6240 X"$ac_file" : 'X\(//\)$' \| \
6241 X"$ac_file" : 'X\(/\)' \| \
6242 . : '\(.\)' 2>/dev/null ||
6244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6246 /^X\(\/\/\)$/{ s//\1/; q; }
6247 /^X\(\/\).*/{ s//\1/; q; }
6249 { if $as_mkdir_p; then
6254 while test ! -d "$as_dir"; do
6255 as_dirs
="$as_dir $as_dirs"
6256 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6257 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6258 X"$as_dir" : 'X\(//\)[^/]' \| \
6259 X"$as_dir" : 'X\(//\)$' \| \
6260 X"$as_dir" : 'X\(/\)' \| \
6261 . : '\(.\)' 2>/dev/null ||
6263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6265 /^X\(\/\/\)$/{ s//\1/; q; }
6266 /^X\(\/\).*/{ s//\1/; q; }
6269 test ! -n "$as_dirs" || mkdir
$as_dirs
6270 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6271 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6272 { (exit 1); exit 1; }; }; }
6275 mv $tmp/config.h
$ac_file
6283 cat >>$CONFIG_STATUS <<\_ACEOF
6286 # CONFIG_LINKS section.
6289 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
6290 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
6291 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6293 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
6294 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
6296 if test ! -r $srcdir/$ac_source; then
6297 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
6298 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
6299 { (exit 1); exit 1; }; }
6303 # Make relative symlinks.
6304 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
6305 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6306 X"$ac_dest" : 'X\(//\)[^/]' \| \
6307 X"$ac_dest" : 'X\(//\)$' \| \
6308 X"$ac_dest" : 'X\(/\)' \| \
6309 . : '\(.\)' 2>/dev/null ||
6311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6313 /^X\(\/\/\)$/{ s//\1/; q; }
6314 /^X\(\/\).*/{ s//\1/; q; }
6316 { if $as_mkdir_p; then
6317 mkdir
-p "$ac_dest_dir"
6319 as_dir
="$ac_dest_dir"
6321 while test ! -d "$as_dir"; do
6322 as_dirs
="$as_dir $as_dirs"
6323 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6325 X"$as_dir" : 'X\(//\)[^/]' \| \
6326 X"$as_dir" : 'X\(//\)$' \| \
6327 X"$as_dir" : 'X\(/\)' \| \
6328 . : '\(.\)' 2>/dev/null ||
6330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6332 /^X\(\/\/\)$/{ s//\1/; q; }
6333 /^X\(\/\).*/{ s//\1/; q; }
6336 test ! -n "$as_dirs" || mkdir
$as_dirs
6337 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
6338 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
6339 { (exit 1); exit 1; }; }; }
6343 if test "$ac_dest_dir" != .
; then
6344 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
6345 # A "../" for each directory in $ac_dir_suffix.
6346 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6348 ac_dir_suffix
= ac_top_builddir
=
6352 .
) # No --srcdir option. We are building in place.
6354 if test -z "$ac_top_builddir"; then
6357 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6359 [\\/]* | ?
:[\\/]* ) # Absolute path.
6360 ac_srcdir
=$srcdir$ac_dir_suffix;
6361 ac_top_srcdir
=$srcdir ;;
6363 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6364 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6367 # Do not use `cd foo && pwd` to compute absolute paths, because
6368 # the directories may not exist.
6370 .
) ac_abs_builddir
="$ac_dest_dir";;
6372 case "$ac_dest_dir" in
6373 .
) ac_abs_builddir
=`pwd`;;
6374 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
6375 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
6378 case $ac_abs_builddir in
6379 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6381 case ${ac_top_builddir}.
in
6382 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
6383 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6384 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
6387 case $ac_abs_builddir in
6388 .
) ac_abs_srcdir
=$ac_srcdir;;
6391 .
) ac_abs_srcdir
=$ac_abs_builddir;;
6392 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
6393 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
6396 case $ac_abs_builddir in
6397 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
6399 case $ac_top_srcdir in
6400 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
6401 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
6402 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
6408 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
6409 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
6412 # Try a symlink, then a hard link, then a copy.
6413 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
6414 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
6415 cp -p $srcdir/$ac_source $ac_dest ||
6416 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
6417 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
6418 { (exit 1); exit 1; }; }
6421 cat >>$CONFIG_STATUS <<\_ACEOF
6424 # CONFIG_COMMANDS section.
6426 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
6427 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
6428 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6429 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
6430 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6431 X"$ac_dest" : 'X\(//\)[^/]' \| \
6432 X"$ac_dest" : 'X\(//\)$' \| \
6433 X"$ac_dest" : 'X\(/\)' \| \
6434 . : '\(.\)' 2>/dev/null ||
6436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6438 /^X\(\/\/\)$/{ s//\1/; q; }
6439 /^X\(\/\).*/{ s//\1/; q; }
6441 { if $as_mkdir_p; then
6446 while test ! -d "$as_dir"; do
6447 as_dirs
="$as_dir $as_dirs"
6448 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6450 X"$as_dir" : 'X\(//\)[^/]' \| \
6451 X"$as_dir" : 'X\(//\)$' \| \
6452 X"$as_dir" : 'X\(/\)' \| \
6453 . : '\(.\)' 2>/dev/null ||
6455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6457 /^X\(\/\/\)$/{ s//\1/; q; }
6458 /^X\(\/\).*/{ s//\1/; q; }
6461 test ! -n "$as_dirs" || mkdir
$as_dirs
6462 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6463 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6464 { (exit 1); exit 1; }; }; }
6468 if test "$ac_dir" != .
; then
6469 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6470 # A "../" for each directory in $ac_dir_suffix.
6471 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6473 ac_dir_suffix
= ac_top_builddir
=
6477 .
) # No --srcdir option. We are building in place.
6479 if test -z "$ac_top_builddir"; then
6482 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6484 [\\/]* | ?
:[\\/]* ) # Absolute path.
6485 ac_srcdir
=$srcdir$ac_dir_suffix;
6486 ac_top_srcdir
=$srcdir ;;
6488 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6489 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6492 # Do not use `cd foo && pwd` to compute absolute paths, because
6493 # the directories may not exist.
6495 .
) ac_abs_builddir
="$ac_dir";;
6498 .
) ac_abs_builddir
=`pwd`;;
6499 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
6500 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
6503 case $ac_abs_builddir in
6504 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6506 case ${ac_top_builddir}.
in
6507 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
6508 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6509 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
6512 case $ac_abs_builddir in
6513 .
) ac_abs_srcdir
=$ac_srcdir;;
6516 .
) ac_abs_srcdir
=$ac_abs_builddir;;
6517 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
6518 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
6521 case $ac_abs_builddir in
6522 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
6524 case $ac_top_srcdir in
6525 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
6526 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
6527 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
6532 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6533 echo "$as_me: executing $ac_dest commands" >&6;}
6535 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6536 rm -f Makesim1.tmp Makesim2.tmp Makefile
6537 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
6538 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
6539 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6540 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6541 <Makefile.sim
>Makefile
6542 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6544 stamp-h
) echo > stamp-h
;;
6549 cat >>$CONFIG_STATUS <<\_ACEOF
6551 { (exit 0); exit 0; }
6553 chmod +x
$CONFIG_STATUS
6554 ac_clean_files
=$ac_clean_files_save
6557 # configure is writing to config.log, and then calls config.status.
6558 # config.status does its own redirection, appending to config.log.
6559 # Unfortunately, on DOS this fails, as config.log is still kept open
6560 # by configure, so config.status won't be able to write to it; its
6561 # output is simply discarded. So we exec the FD to /dev/null,
6562 # effectively closing config.log, so it can be properly (re)opened and
6563 # appended to by config.status. When coming back to configure, we
6564 # need to make the FD available again.
6565 if test "$no_create" != yes; then
6567 ac_config_status_args
=
6568 test "$silent" = yes &&
6569 ac_config_status_args
="$ac_config_status_args --quiet"
6571 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6573 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6574 # would make configure fail if this is the last instruction.
6575 $ac_cs_success ||
{ (exit 1); exit 1; }