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-build-warnings Enable build-time compiler warnings
if gcc is used
861 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
863 Some influential environment variables
:
864 CC C compiler
command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
867 nonstandard directory
<lib dir
>
868 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
869 headers
in a nonstandard directory
<include dir
>
872 Use these variables to override the choices made by
`configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
890 ac_dir_suffix= ac_top_builddir=
894 .) # No --srcdir option. We are building in place.
896 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 # Do not use `cd foo
&& pwd` to compute absolute paths, because
910 # the directories may not exist.
912 .) ac_abs_builddir="$ac_dir";;
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
994 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
995 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
996 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
997 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
998 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1000 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1001 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1003 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1004 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1005 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1006 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1007 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1008 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1009 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_must_keep_next=false
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 -* ) ac_must_keep_next=true ;;
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close
' the trap.
1089 trap 'exit_status
=$?
1090 # Save into config.log some information that might help in debugging.
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1100 # The following way of writing the cache mishandles newlines in values,
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1123 for ac_var
in $ac_subst_vars
1125 eval ac_val
=$
`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1130 if test -n "$ac_subst_files"; then
1137 for ac_var
in $ac_subst_files
1139 eval ac_val
=$
`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -s confdefs.h
; then
1152 sed "/^$/d" confdefs.h |
sort
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1159 rm -f core
*.core
&&
1160 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's
/^
/|
/' "$ac_site_file" >&5
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1235 # Check that the precious variables saved in the cache have kept the same
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1248 ac_cache_corrupted=: ;;
1250 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1257 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1282 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1289 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311 # This file contains common code used by all simulators.
1313 # common.m4 invokes AC macros used by all simulators and by the common
1314 # directory. It is intended to be included before any target specific
1315 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1316 # the Makefile. It is intended to be invoked last.
1318 # The simulator's configure.
in should
look like
:
1320 # dnl Process this file with autoconf to produce a configure script.
1322 # AC_INIT(Makefile.in)
1324 # sinclude(../common/common.m4)
1326 # ... target specific stuff ...
1328 # autoconf.info says this should be called right after AC_INIT.
1329 ac_config_headers
="$ac_config_headers config.h:config.in"
1332 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1333 if test -f $ac_dir/install-sh
; then
1335 ac_install_sh
="$ac_aux_dir/install-sh -c"
1337 elif test -f $ac_dir/install.sh
; then
1339 ac_install_sh
="$ac_aux_dir/install.sh -c"
1341 elif test -f $ac_dir/shtool
; then
1343 ac_install_sh
="$ac_aux_dir/shtool install -c"
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356 # Make sure we can run config.sub.
1357 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1358 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1359 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1360 { (exit 1); exit 1; }; }
1362 echo "$as_me:$LINENO: checking build system type" >&5
1363 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1364 if test "${ac_cv_build+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 ac_cv_build_alias
=$build_alias
1368 test -z "$ac_cv_build_alias" &&
1369 ac_cv_build_alias
=`$ac_config_guess`
1370 test -z "$ac_cv_build_alias" &&
1371 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1372 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1373 { (exit 1); exit 1; }; }
1374 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1375 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1376 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1377 { (exit 1); exit 1; }; }
1380 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1381 echo "${ECHO_T}$ac_cv_build" >&6
1383 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388 echo "$as_me:$LINENO: checking host system type" >&5
1389 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1390 if test "${ac_cv_host+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 ac_cv_host_alias
=$host_alias
1394 test -z "$ac_cv_host_alias" &&
1395 ac_cv_host_alias
=$ac_cv_build_alias
1396 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1397 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1398 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1399 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1403 echo "${ECHO_T}$ac_cv_host" >&6
1405 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1406 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1407 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410 echo "$as_me:$LINENO: checking target system type" >&5
1411 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1412 if test "${ac_cv_target+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 ac_cv_target_alias
=$target_alias
1416 test "x$ac_cv_target_alias" = "x" &&
1417 ac_cv_target_alias
=$ac_cv_host_alias
1418 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1425 echo "${ECHO_T}$ac_cv_target" >&6
1426 target
=$ac_cv_target
1427 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 # The aliases save the names the user supplied, while $host etc.
1433 # will get canonicalized.
1434 test -n "$target_alias" &&
1435 test "$program_prefix$program_suffix$program_transform_name" = \
1437 program_prefix
=${target_alias}-
1438 test "$program_prefix" != NONE
&&
1439 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1440 # Use a double $ so make ignores it.
1441 test "$program_suffix" != NONE
&&
1442 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1443 # Double any \ or $. echo might interpret backslashes.
1444 # By default was `s,x,x', remove it if useless.
1445 cat <<\_ACEOF
>conftest.
sed
1446 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1448 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1452 ac_cpp
='$CPP $CPPFLAGS'
1453 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1456 if test -n "$ac_tool_prefix"; then
1457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1458 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1459 echo "$as_me:$LINENO: checking for $ac_word" >&5
1460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461 if test "${ac_cv_prog_CC+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 if test -n "$CC"; then
1465 ac_cv_prog_CC
="$CC" # Let the user override the test.
1467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1471 test -z "$as_dir" && as_dir
=.
1472 for ac_exec_ext
in '' $ac_executable_extensions; do
1473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1474 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1484 if test -n "$CC"; then
1485 echo "$as_me:$LINENO: result: $CC" >&5
1486 echo "${ECHO_T}$CC" >&6
1488 echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1493 if test -z "$ac_cv_prog_CC"; then
1495 # Extract the first word of "gcc", so it can be a program name with args.
1496 set dummy gcc
; ac_word
=$2
1497 echo "$as_me:$LINENO: checking for $ac_word" >&5
1498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1500 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 if test -n "$ac_ct_CC"; then
1503 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1509 test -z "$as_dir" && as_dir
=.
1510 for ac_exec_ext
in '' $ac_executable_extensions; do
1511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1512 ac_cv_prog_ac_ct_CC
="gcc"
1513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1522 if test -n "$ac_ct_CC"; then
1523 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1524 echo "${ECHO_T}$ac_ct_CC" >&6
1526 echo "$as_me:$LINENO: result: no" >&5
1527 echo "${ECHO_T}no" >&6
1535 if test -z "$CC"; then
1536 if test -n "$ac_tool_prefix"; then
1537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1538 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_CC+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 if test -n "$CC"; then
1545 ac_cv_prog_CC
="$CC" # Let the user override the test.
1547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1551 test -z "$as_dir" && as_dir
=.
1552 for ac_exec_ext
in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 if test -n "$CC"; then
1565 echo "$as_me:$LINENO: result: $CC" >&5
1566 echo "${ECHO_T}$CC" >&6
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1573 if test -z "$ac_cv_prog_CC"; then
1575 # Extract the first word of "cc", so it can be a program name with args.
1576 set dummy cc
; ac_word
=$2
1577 echo "$as_me:$LINENO: checking for $ac_word" >&5
1578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 if test -n "$ac_ct_CC"; then
1583 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1589 test -z "$as_dir" && as_dir
=.
1590 for ac_exec_ext
in '' $ac_executable_extensions; do
1591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592 ac_cv_prog_ac_ct_CC
="cc"
1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1602 if test -n "$ac_ct_CC"; then
1603 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1604 echo "${ECHO_T}$ac_ct_CC" >&6
1606 echo "$as_me:$LINENO: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1616 if test -z "$CC"; then
1617 # Extract the first word of "cc", so it can be a program name with args.
1618 set dummy cc
; ac_word
=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC
="$CC" # Let the user override the test.
1628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir
=.
1633 for ac_exec_ext
in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1636 ac_prog_rejected
=yes
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 if test $ac_prog_rejected = yes; then
1647 # We found a bogon in the path, so make sure we never use it.
1648 set dummy
$ac_cv_prog_CC
1650 if test $# != 0; then
1651 # We chose a different compiler from the bogus one.
1652 # However, it has the same basename, so the bogon will be chosen
1653 # first if we set CC to just the basename; use the full file name.
1655 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1661 if test -n "$CC"; then
1662 echo "$as_me:$LINENO: result: $CC" >&5
1663 echo "${ECHO_T}$CC" >&6
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1670 if test -z "$CC"; then
1671 if test -n "$ac_tool_prefix"; then
1674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1675 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_CC+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 if test -n "$CC"; then
1682 ac_cv_prog_CC
="$CC" # Let the user override the test.
1684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir
=.
1689 for ac_exec_ext
in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701 if test -n "$CC"; then
1702 echo "$as_me:$LINENO: result: $CC" >&5
1703 echo "${ECHO_T}$CC" >&6
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1709 test -n "$CC" && break
1712 if test -z "$CC"; then
1716 # Extract the first word of "$ac_prog", so it can be a program name with args.
1717 set dummy
$ac_prog; ac_word
=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 if test -n "$ac_ct_CC"; then
1724 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1730 test -z "$as_dir" && as_dir
=.
1731 for ac_exec_ext
in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_ac_ct_CC
="$ac_prog"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1743 if test -n "$ac_ct_CC"; then
1744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745 echo "${ECHO_T}$ac_ct_CC" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1751 test -n "$ac_ct_CC" && break
1760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1761 See \`config.log' for more details." >&5
1762 echo "$as_me: error: no acceptable C compiler found in \$PATH
1763 See \`config.log' for more details." >&2;}
1764 { (exit 1); exit 1; }; }
1766 # Provide some information about the compiler.
1767 echo "$as_me:$LINENO:" \
1768 "checking for C compiler version" >&5
1769 ac_compiler
=`set X $ac_compile; echo $2`
1770 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1771 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774 (exit $ac_status); }
1775 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1776 (eval $ac_compiler -v </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); }
1786 cat >conftest.
$ac_ext <<_ACEOF
1789 cat confdefs.h
>>conftest.
$ac_ext
1790 cat >>conftest.
$ac_ext <<_ACEOF
1791 /* end confdefs.h. */
1801 ac_clean_files_save
=$ac_clean_files
1802 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1803 # Try to create an executable without -o first, disregard a.out.
1804 # It will help us diagnose broken compilers, and finding out an intuition
1806 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1807 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1808 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1809 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1810 (eval $ac_link_default) 2>&5
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }; then
1814 # Find the output, starting from the most likely. This scheme is
1815 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1818 # Be careful to initialize this variable, since it used to be cached.
1819 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1821 # b.out is created by i960 compilers.
1822 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1824 test -f "$ac_file" ||
continue
1826 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1829 # This is the source file.
1832 # We found the default executable, but exeext='' is most
1836 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1837 # FIXME: I believe we export ac_cv_exeext for Libtool,
1838 # but it would be cool to find out if it's true. Does anybody
1839 # maintain Libtool? --akim.
1847 echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.
$ac_ext >&5
1850 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: C compiler cannot create executables
1853 See \`config.log' for more details." >&2;}
1854 { (exit 77); exit 77; }; }
1857 ac_exeext
=$ac_cv_exeext
1858 echo "$as_me:$LINENO: result: $ac_file" >&5
1859 echo "${ECHO_T}$ac_file" >&6
1861 # Check the compiler produces executables we can run. If not, either
1862 # the compiler is broken, or we cross compile.
1863 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1864 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1865 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1866 # If not cross compiling, check that we can run a simple program.
1867 if test "$cross_compiling" != yes; then
1868 if { ac_try
='./$ac_file'
1869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }; }; then
1876 if test "$cross_compiling" = maybe
; then
1879 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1880 If you meant to cross compile, use \`--host'.
1881 See \`config.log' for more details." >&5
1882 echo "$as_me: error: cannot run C compiled programs.
1883 If you meant to cross compile, use \`--host'.
1884 See \`config.log' for more details." >&2;}
1885 { (exit 1); exit 1; }; }
1889 echo "$as_me:$LINENO: result: yes" >&5
1890 echo "${ECHO_T}yes" >&6
1892 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1893 ac_clean_files
=$ac_clean_files_save
1894 # Check the compiler produces executables we can run. If not, either
1895 # the compiler is broken, or we cross compile.
1896 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1897 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1898 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1899 echo "${ECHO_T}$cross_compiling" >&6
1901 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1902 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1904 (eval $ac_link) 2>&5
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }; then
1908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1909 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1910 # work properly (i.e., refer to `conftest.exe'), while it won't with
1912 for ac_file
in conftest.exe conftest conftest.
*; do
1913 test -f "$ac_file" ||
continue
1915 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1916 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1923 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1924 See \`config.log' for more details." >&5
1925 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1926 See \`config.log' for more details." >&2;}
1927 { (exit 1); exit 1; }; }
1930 rm -f conftest
$ac_cv_exeext
1931 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1932 echo "${ECHO_T}$ac_cv_exeext" >&6
1934 rm -f conftest.
$ac_ext
1935 EXEEXT
=$ac_cv_exeext
1937 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1938 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1939 if test "${ac_cv_objext+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 cat >conftest.
$ac_ext <<_ACEOF
1945 cat confdefs.h
>>conftest.
$ac_ext
1946 cat >>conftest.
$ac_ext <<_ACEOF
1947 /* end confdefs.h. */
1957 rm -f conftest.o conftest.obj
1958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1959 (eval $ac_compile) 2>&5
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }; then
1963 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1965 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1966 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1971 echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.
$ac_ext >&5
1974 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1975 See \`config.log' for more details." >&5
1976 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1977 See \`config.log' for more details." >&2;}
1978 { (exit 1); exit 1; }; }
1981 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1983 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1984 echo "${ECHO_T}$ac_cv_objext" >&6
1985 OBJEXT
=$ac_cv_objext
1987 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1988 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1989 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 cat >conftest.
$ac_ext <<_ACEOF
1995 cat confdefs.h
>>conftest.
$ac_ext
1996 cat >>conftest.
$ac_ext <<_ACEOF
1997 /* end confdefs.h. */
2010 rm -f conftest.
$ac_objext
2011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2012 (eval $ac_compile) 2>conftest.er1
2014 grep -v '^ *+' conftest.er1
>conftest.err
2016 cat conftest.err
>&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); } &&
2019 { ac_try
='test -z "$ac_c_werror_flag"
2020 || test ! -s conftest.err'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; } &&
2026 { ac_try
='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2034 echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.
$ac_ext >&5
2039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2040 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2043 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2045 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2046 ac_test_CFLAGS
=${CFLAGS+set}
2047 ac_save_CFLAGS
=$CFLAGS
2049 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2050 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2051 if test "${ac_cv_prog_cc_g+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 cat >conftest.
$ac_ext <<_ACEOF
2057 cat confdefs.h
>>conftest.
$ac_ext
2058 cat >>conftest.
$ac_ext <<_ACEOF
2059 /* end confdefs.h. */
2069 rm -f conftest.
$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>conftest.er1
2073 grep -v '^ *+' conftest.er1
>conftest.err
2075 cat conftest.err
>&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try
='test -z "$ac_c_werror_flag"
2079 || test ! -s conftest.err'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; } &&
2085 { ac_try
='test -s conftest.$ac_objext'
2086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; }; then
2093 echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.
$ac_ext >&5
2098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2101 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2102 if test "$ac_test_CFLAGS" = set; then
2103 CFLAGS
=$ac_save_CFLAGS
2104 elif test $ac_cv_prog_cc_g = yes; then
2105 if test "$GCC" = yes; then
2111 if test "$GCC" = yes; then
2117 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2118 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 ac_cv_prog_cc_stdc
=no
2124 cat >conftest.
$ac_ext <<_ACEOF
2127 cat confdefs.h
>>conftest.
$ac_ext
2128 cat >>conftest.
$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2132 #include <sys/types.h>
2133 #include <sys/stat.h>
2134 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2135 struct buf { int x; };
2136 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2137 static char *e (p, i)
2143 static char *f (char * (*g) (char **, int), char **p, ...)
2148 s = g (p, va_arg (v,int));
2153 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2154 function prototypes and stuff, but not '\xHH' hex character constants.
2155 These don't provoke an error unfortunately, instead are silently treated
2156 as 'x'. The following induces an error, until -std1 is added to get
2157 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2158 array size at least. It's necessary to write '\x00'==0 to get something
2159 that's true only with -std1. */
2160 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2162 int test (int i, double x);
2163 struct s1 {int (*f) (int a);};
2164 struct s2 {int (*f) (double a);};
2165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2176 # Don't try gcc -ansi; that turns off useful extensions and
2177 # breaks some systems' header files.
2178 # AIX -qlanglvl=ansi
2179 # Ultrix and OSF/1 -std1
2180 # HP-UX 10.20 and later -Ae
2181 # HP-UX older versions -Aa -D_HPUX_SOURCE
2182 # SVR4 -Xc -D__EXTENSIONS__
2183 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2185 CC
="$ac_save_CC $ac_arg"
2186 rm -f conftest.
$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>conftest.er1
2190 grep -v '^ *+' conftest.er1
>conftest.err
2192 cat conftest.err
>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try
='test -z "$ac_c_werror_flag"
2196 || test ! -s conftest.err'
2197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; } &&
2202 { ac_try
='test -s conftest.$ac_objext'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; }; then
2208 ac_cv_prog_cc_stdc
=$ac_arg
2211 echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.
$ac_ext >&5
2215 rm -f conftest.err conftest.
$ac_objext
2217 rm -f conftest.
$ac_ext conftest.
$ac_objext
2222 case "x$ac_cv_prog_cc_stdc" in
2224 echo "$as_me:$LINENO: result: none needed" >&5
2225 echo "${ECHO_T}none needed" >&6 ;;
2227 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2228 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2229 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2232 # Some people use a C++ compiler to compile C. Since we use `exit',
2233 # in C++ we need to declare it. In case someone uses the same compiler
2234 # for both compiling C and C++ we need to have the C++ compiler decide
2235 # the declaration of exit, since it's the most demanding environment.
2236 cat >conftest.
$ac_ext <<_ACEOF
2241 rm -f conftest.
$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>conftest.er1
2245 grep -v '^ *+' conftest.er1
>conftest.err
2247 cat conftest.err
>&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try
='test -z "$ac_c_werror_flag"
2251 || test ! -s conftest.err'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; } &&
2257 { ac_try
='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2263 for ac_declaration
in \
2265 'extern "C" void std::exit (int) throw (); using std::exit;' \
2266 'extern "C" void std::exit (int); using std::exit;' \
2267 'extern "C" void exit (int) throw ();' \
2268 'extern "C" void exit (int);' \
2271 cat >conftest.
$ac_ext <<_ACEOF
2274 cat confdefs.h
>>conftest.
$ac_ext
2275 cat >>conftest.
$ac_ext <<_ACEOF
2276 /* end confdefs.h. */
2287 rm -f conftest.
$ac_objext
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>conftest.er1
2291 grep -v '^ *+' conftest.er1
>conftest.err
2293 cat conftest.err
>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try
='test -z "$ac_c_werror_flag"
2297 || test ! -s conftest.err'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; } &&
2303 { ac_try
='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.
$ac_ext >&5
2316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2317 cat >conftest.
$ac_ext <<_ACEOF
2320 cat confdefs.h
>>conftest.
$ac_ext
2321 cat >>conftest.
$ac_ext <<_ACEOF
2322 /* end confdefs.h. */
2332 rm -f conftest.
$ac_objext
2333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2334 (eval $ac_compile) 2>conftest.er1
2336 grep -v '^ *+' conftest.er1
>conftest.err
2338 cat conftest.err
>&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } &&
2341 { ac_try
='test -z "$ac_c_werror_flag"
2342 || test ! -s conftest.err'
2343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; } &&
2348 { ac_try
='test -s conftest.$ac_objext'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; }; then
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.
$ac_ext >&5
2360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2363 if test -n "$ac_declaration"; then
2364 echo '#ifdef __cplusplus' >>confdefs.h
2365 echo $ac_declaration >>confdefs.h
2366 echo '#endif' >>confdefs.h
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.
$ac_ext >&5
2374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2376 ac_cpp
='$CPP $CPPFLAGS'
2377 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2381 # Find a good install program. We prefer a C program (faster),
2382 # so one script is as good as another. But avoid the broken or
2383 # incompatible versions:
2384 # SysV /etc/install, /usr/sbin/install
2385 # SunOS /usr/etc/install
2386 # IRIX /sbin/install
2388 # AmigaOS /C/install, which installs bootblocks on floppy discs
2389 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2390 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2391 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2392 # OS/2's system install, which has a completely different semantic
2393 # ./install, which can be erroneously created by make from ./install.sh.
2394 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2395 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2396 if test -z "$INSTALL"; then
2397 if test "${ac_cv_path_install+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir
=.
2405 # Account for people who put trailing slashes in PATH elements.
2407 .
/ | .
// |
/cC
/* | \
2408 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2409 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2412 # OSF1 and SCO ODT 3.0 have their own names for install.
2413 # Don't use installbsd from OSF since it installs stuff as root
2415 for ac_prog
in ginstall scoinst
install; do
2416 for ac_exec_ext
in '' $ac_executable_extensions; do
2417 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2418 if test $ac_prog = install &&
2419 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2420 # AIX install. It has an incompatible calling convention.
2422 elif test $ac_prog = install &&
2423 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2424 # program-specific install script used by HP pwplus--don't use.
2427 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2439 if test "${ac_cv_path_install+set}" = set; then
2440 INSTALL
=$ac_cv_path_install
2442 # As a last resort, use the slow shell script. We don't cache a
2443 # path for INSTALL within a source directory, because that will
2444 # break other packages using the cache if that directory is
2445 # removed, or if the path is relative.
2446 INSTALL
=$ac_install_sh
2449 echo "$as_me:$LINENO: result: $INSTALL" >&5
2450 echo "${ECHO_T}$INSTALL" >&6
2452 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2453 # It thinks the first close brace ends the variable substitution.
2454 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2456 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2458 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2461 # Put a plausible default for CC_FOR_BUILD in Makefile.
2462 if test "x$cross_compiling" = "xno"; then
2463 CC_FOR_BUILD
='$(CC)'
2473 if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2475 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2476 echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2478 if test "${ac_cv_prog_RANLIB+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$RANLIB"; then
2482 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir
=.
2489 for ac_exec_ext
in '' $ac_executable_extensions; do
2490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 RANLIB
=$ac_cv_prog_RANLIB
2501 if test -n "$RANLIB"; then
2502 echo "$as_me:$LINENO: result: $RANLIB" >&5
2503 echo "${ECHO_T}$RANLIB" >&6
2505 echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6
2510 if test -z "$ac_cv_prog_RANLIB"; then
2511 ac_ct_RANLIB
=$RANLIB
2512 # Extract the first word of "ranlib", so it can be a program name with args.
2513 set dummy ranlib
; ac_word
=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$ac_ct_RANLIB"; then
2520 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir
=.
2527 for ac_exec_ext
in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2539 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2540 if test -n "$ac_ct_RANLIB"; then
2541 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2542 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2544 echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2548 RANLIB
=$ac_ct_RANLIB
2550 RANLIB
="$ac_cv_prog_RANLIB"
2557 # Check for common headers.
2558 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2559 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2562 ac_cpp
='$CPP $CPPFLAGS'
2563 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2566 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2567 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2568 # On Suns, sometimes $CPP names a directory.
2569 if test -n "$CPP" && test -d "$CPP"; then
2572 if test -z "$CPP"; then
2573 if test "${ac_cv_prog_CPP+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 # Double quotes because CPP needs to be expanded
2577 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2580 for ac_c_preproc_warn_flag
in '' yes
2582 # Use a header file that comes with gcc, so configuring glibc
2583 # with a fresh cross-compiler works.
2584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2585 # <limits.h> exists even on freestanding compilers.
2586 # On the NeXT, cc -E runs the code through the compiler's parser,
2587 # not just through cpp. "Syntax error" is here to catch this case.
2588 cat >conftest.
$ac_ext <<_ACEOF
2591 cat confdefs.h
>>conftest.
$ac_ext
2592 cat >>conftest.
$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2595 # include <limits.h>
2597 # include <assert.h>
2601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2602 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2604 grep -v '^ *+' conftest.er1
>conftest.err
2606 cat conftest.err
>&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } >/dev
/null
; then
2609 if test -s conftest.err
; then
2610 ac_cpp_err
=$ac_c_preproc_warn_flag
2611 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2618 if test -z "$ac_cpp_err"; then
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.
$ac_ext >&5
2624 # Broken: fails on valid input.
2627 rm -f conftest.err conftest.
$ac_ext
2629 # OK, works on sane cases. Now check whether non-existent headers
2630 # can be detected and how.
2631 cat >conftest.
$ac_ext <<_ACEOF
2634 cat confdefs.h
>>conftest.
$ac_ext
2635 cat >>conftest.
$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2637 #include <ac_nonexistent.h>
2639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2640 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2642 grep -v '^ *+' conftest.er1
>conftest.err
2644 cat conftest.err
>&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } >/dev
/null
; then
2647 if test -s conftest.err
; then
2648 ac_cpp_err
=$ac_c_preproc_warn_flag
2649 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2656 if test -z "$ac_cpp_err"; then
2657 # Broken: success on invalid input.
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.
$ac_ext >&5
2663 # Passes both tests.
2667 rm -f conftest.err conftest.
$ac_ext
2670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2671 rm -f conftest.err conftest.
$ac_ext
2672 if $ac_preproc_ok; then
2684 echo "$as_me:$LINENO: result: $CPP" >&5
2685 echo "${ECHO_T}$CPP" >&6
2687 for ac_c_preproc_warn_flag
in '' yes
2689 # Use a header file that comes with gcc, so configuring glibc
2690 # with a fresh cross-compiler works.
2691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2692 # <limits.h> exists even on freestanding compilers.
2693 # On the NeXT, cc -E runs the code through the compiler's parser,
2694 # not just through cpp. "Syntax error" is here to catch this case.
2695 cat >conftest.
$ac_ext <<_ACEOF
2698 cat confdefs.h
>>conftest.
$ac_ext
2699 cat >>conftest.
$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2702 # include <limits.h>
2704 # include <assert.h>
2708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2709 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2711 grep -v '^ *+' conftest.er1
>conftest.err
2713 cat conftest.err
>&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } >/dev
/null
; then
2716 if test -s conftest.err
; then
2717 ac_cpp_err
=$ac_c_preproc_warn_flag
2718 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2725 if test -z "$ac_cpp_err"; then
2728 echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.
$ac_ext >&5
2731 # Broken: fails on valid input.
2734 rm -f conftest.err conftest.
$ac_ext
2736 # OK, works on sane cases. Now check whether non-existent headers
2737 # can be detected and how.
2738 cat >conftest.
$ac_ext <<_ACEOF
2741 cat confdefs.h
>>conftest.
$ac_ext
2742 cat >>conftest.
$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2744 #include <ac_nonexistent.h>
2746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2747 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2749 grep -v '^ *+' conftest.er1
>conftest.err
2751 cat conftest.err
>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } >/dev
/null
; then
2754 if test -s conftest.err
; then
2755 ac_cpp_err
=$ac_c_preproc_warn_flag
2756 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2763 if test -z "$ac_cpp_err"; then
2764 # Broken: success on invalid input.
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.
$ac_ext >&5
2770 # Passes both tests.
2774 rm -f conftest.err conftest.
$ac_ext
2777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2778 rm -f conftest.err conftest.
$ac_ext
2779 if $ac_preproc_ok; then
2782 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2785 See \`config.log' for more details." >&2;}
2786 { (exit 1); exit 1; }; }
2790 ac_cpp
='$CPP $CPPFLAGS'
2791 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2796 echo "$as_me:$LINENO: checking for egrep" >&5
2797 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2798 if test "${ac_cv_prog_egrep+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2802 then ac_cv_prog_egrep
='grep -E'
2803 else ac_cv_prog_egrep
='egrep'
2806 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2807 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2808 EGREP
=$ac_cv_prog_egrep
2811 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2813 if test "${ac_cv_header_stdc+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 cat >conftest.
$ac_ext <<_ACEOF
2819 cat confdefs.h
>>conftest.
$ac_ext
2820 cat >>conftest.
$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2835 rm -f conftest.
$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1
>conftest.err
2841 cat conftest.err
>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try
='test -z "$ac_c_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try
='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_cv_header_stdc
=yes
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.
$ac_ext >&5
2862 ac_cv_header_stdc
=no
2864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2866 if test $ac_cv_header_stdc = yes; then
2867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2868 cat >conftest.
$ac_ext <<_ACEOF
2871 cat confdefs.h
>>conftest.
$ac_ext
2872 cat >>conftest.
$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2878 $EGREP "memchr" >/dev
/null
2>&1; then
2881 ac_cv_header_stdc
=no
2887 if test $ac_cv_header_stdc = yes; then
2888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2889 cat >conftest.
$ac_ext <<_ACEOF
2892 cat confdefs.h
>>conftest.
$ac_ext
2893 cat >>conftest.
$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2899 $EGREP "free" >/dev
/null
2>&1; then
2902 ac_cv_header_stdc
=no
2908 if test $ac_cv_header_stdc = yes; then
2909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2910 if test "$cross_compiling" = yes; then
2913 cat >conftest.
$ac_ext <<_ACEOF
2916 cat confdefs.h
>>conftest.
$ac_ext
2917 cat >>conftest.
$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2920 #if ((' ' & 0x0FF) == 0x020)
2921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2924 # define ISLOWER(c) \
2925 (('a' <= (c) && (c) <= 'i') \
2926 || ('j' <= (c) && (c) <= 'r') \
2927 || ('s' <= (c) && (c) <= 'z'))
2928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2936 for (i = 0; i < 256; i++)
2937 if (XOR (islower (i), ISLOWER (i))
2938 || toupper (i) != TOUPPER (i))
2943 rm -f conftest
$ac_exeext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945 (eval $ac_link) 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2956 echo "$as_me: program exited with status $ac_status" >&5
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.
$ac_ext >&5
2961 ac_cv_header_stdc
=no
2963 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2967 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2968 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2969 if test $ac_cv_header_stdc = yes; then
2971 cat >>confdefs.h
<<\_ACEOF
2972 #define STDC_HEADERS 1
2977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2987 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2988 inttypes.h stdint.h unistd.h
2990 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2991 echo "$as_me:$LINENO: checking for $ac_header" >&5
2992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 cat >conftest.
$ac_ext <<_ACEOF
2999 cat confdefs.h
>>conftest.
$ac_ext
3000 cat >>conftest.
$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3002 $ac_includes_default
3004 #include <$ac_header>
3006 rm -f conftest.
$ac_objext
3007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008 (eval $ac_compile) 2>conftest.er1
3010 grep -v '^ *+' conftest.er1
>conftest.err
3012 cat conftest.err
>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try
='test -z "$ac_c_werror_flag"
3016 || test ! -s conftest.err'
3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; } &&
3022 { ac_try
='test -s conftest.$ac_objext'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 eval "$as_ac_Header=yes"
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.
$ac_ext >&5
3033 eval "$as_ac_Header=no"
3035 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3040 cat >>confdefs.h
<<_ACEOF
3041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3054 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
3056 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3058 echo "$as_me:$LINENO: checking for $ac_header" >&5
3059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3066 # Is the header compilable?
3067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3069 cat >conftest.
$ac_ext <<_ACEOF
3072 cat confdefs.h
>>conftest.
$ac_ext
3073 cat >>conftest.
$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3075 $ac_includes_default
3076 #include <$ac_header>
3078 rm -f conftest.
$ac_objext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080 (eval $ac_compile) 2>conftest.er1
3082 grep -v '^ *+' conftest.er1
>conftest.err
3084 cat conftest.err
>&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 { ac_try
='test -z "$ac_c_werror_flag"
3088 || test ! -s conftest.err'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try
='test -s conftest.$ac_objext'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 ac_header_compiler
=yes
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.
$ac_ext >&5
3105 ac_header_compiler
=no
3107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3109 echo "${ECHO_T}$ac_header_compiler" >&6
3111 # Is the header present?
3112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3114 cat >conftest.
$ac_ext <<_ACEOF
3117 cat confdefs.h
>>conftest.
$ac_ext
3118 cat >>conftest.
$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 #include <$ac_header>
3122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3123 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3125 grep -v '^ *+' conftest.er1
>conftest.err
3127 cat conftest.err
>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } >/dev
/null
; then
3130 if test -s conftest.err
; then
3131 ac_cpp_err
=$ac_c_preproc_warn_flag
3132 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3139 if test -z "$ac_cpp_err"; then
3140 ac_header_preproc
=yes
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.
$ac_ext >&5
3145 ac_header_preproc
=no
3147 rm -f conftest.err conftest.
$ac_ext
3148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3149 echo "${ECHO_T}$ac_header_preproc" >&6
3151 # So? What about this header?
3152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3158 ac_header_preproc
=yes
3161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3175 ## ------------------------------------------ ##
3176 ## Report this to the AC_PACKAGE_NAME lists. ##
3177 ## ------------------------------------------ ##
3180 sed "s/^/$as_me: WARNING: /" >&2
3183 echo "$as_me:$LINENO: checking for $ac_header" >&5
3184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 eval "$as_ac_Header=\$ac_header_preproc"
3190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3195 cat >>confdefs.h
<<_ACEOF
3196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3205 for ac_header
in sys
/time.h sys
/resource.h
3207 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3209 echo "$as_me:$LINENO: checking for $ac_header" >&5
3210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3217 # Is the header compilable?
3218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3220 cat >conftest.
$ac_ext <<_ACEOF
3223 cat confdefs.h
>>conftest.
$ac_ext
3224 cat >>conftest.
$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226 $ac_includes_default
3227 #include <$ac_header>
3229 rm -f conftest.
$ac_objext
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>conftest.er1
3233 grep -v '^ *+' conftest.er1
>conftest.err
3235 cat conftest.err
>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try
='test -z "$ac_c_werror_flag"
3239 || test ! -s conftest.err'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try
='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 ac_header_compiler
=yes
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.
$ac_ext >&5
3256 ac_header_compiler
=no
3258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3260 echo "${ECHO_T}$ac_header_compiler" >&6
3262 # Is the header present?
3263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3265 cat >conftest.
$ac_ext <<_ACEOF
3268 cat confdefs.h
>>conftest.
$ac_ext
3269 cat >>conftest.
$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3271 #include <$ac_header>
3273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3274 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3276 grep -v '^ *+' conftest.er1
>conftest.err
3278 cat conftest.err
>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } >/dev
/null
; then
3281 if test -s conftest.err
; then
3282 ac_cpp_err
=$ac_c_preproc_warn_flag
3283 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3290 if test -z "$ac_cpp_err"; then
3291 ac_header_preproc
=yes
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.
$ac_ext >&5
3296 ac_header_preproc
=no
3298 rm -f conftest.err conftest.
$ac_ext
3299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3300 echo "${ECHO_T}$ac_header_preproc" >&6
3302 # So? What about this header?
3303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3309 ac_header_preproc
=yes
3312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3326 ## ------------------------------------------ ##
3327 ## Report this to the AC_PACKAGE_NAME lists. ##
3328 ## ------------------------------------------ ##
3331 sed "s/^/$as_me: WARNING: /" >&2
3334 echo "$as_me:$LINENO: checking for $ac_header" >&5
3335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 eval "$as_ac_Header=\$ac_header_preproc"
3341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3346 cat >>confdefs.h
<<_ACEOF
3347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3356 for ac_header
in fcntl.h fpu_control.h
3358 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3360 echo "$as_me:$LINENO: checking for $ac_header" >&5
3361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3368 # Is the header compilable?
3369 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3371 cat >conftest.
$ac_ext <<_ACEOF
3374 cat confdefs.h
>>conftest.
$ac_ext
3375 cat >>conftest.
$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 $ac_includes_default
3378 #include <$ac_header>
3380 rm -f conftest.
$ac_objext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3382 (eval $ac_compile) 2>conftest.er1
3384 grep -v '^ *+' conftest.er1
>conftest.err
3386 cat conftest.err
>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } &&
3389 { ac_try
='test -z "$ac_c_werror_flag"
3390 || test ! -s conftest.err'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; } &&
3396 { ac_try
='test -s conftest.$ac_objext'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 ac_header_compiler
=yes
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.
$ac_ext >&5
3407 ac_header_compiler
=no
3409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3410 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3411 echo "${ECHO_T}$ac_header_compiler" >&6
3413 # Is the header present?
3414 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3416 cat >conftest.
$ac_ext <<_ACEOF
3419 cat confdefs.h
>>conftest.
$ac_ext
3420 cat >>conftest.
$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 #include <$ac_header>
3424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3427 grep -v '^ *+' conftest.er1
>conftest.err
3429 cat conftest.err
>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev
/null
; then
3432 if test -s conftest.err
; then
3433 ac_cpp_err
=$ac_c_preproc_warn_flag
3434 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3441 if test -z "$ac_cpp_err"; then
3442 ac_header_preproc
=yes
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.
$ac_ext >&5
3447 ac_header_preproc
=no
3449 rm -f conftest.err conftest.
$ac_ext
3450 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3451 echo "${ECHO_T}$ac_header_preproc" >&6
3453 # So? What about this header?
3454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3460 ac_header_preproc
=yes
3463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3477 ## ------------------------------------------ ##
3478 ## Report this to the AC_PACKAGE_NAME lists. ##
3479 ## ------------------------------------------ ##
3482 sed "s/^/$as_me: WARNING: /" >&2
3485 echo "$as_me:$LINENO: checking for $ac_header" >&5
3486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 eval "$as_ac_Header=\$ac_header_preproc"
3492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3497 cat >>confdefs.h
<<_ACEOF
3498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3508 for ac_header
in dlfcn.h errno.h sys
/stat.h
3510 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3512 echo "$as_me:$LINENO: checking for $ac_header" >&5
3513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3520 # Is the header compilable?
3521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3523 cat >conftest.
$ac_ext <<_ACEOF
3526 cat confdefs.h
>>conftest.
$ac_ext
3527 cat >>conftest.
$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 $ac_includes_default
3530 #include <$ac_header>
3532 rm -f conftest.
$ac_objext
3533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3534 (eval $ac_compile) 2>conftest.er1
3536 grep -v '^ *+' conftest.er1
>conftest.err
3538 cat conftest.err
>&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } &&
3541 { ac_try
='test -z "$ac_c_werror_flag"
3542 || test ! -s conftest.err'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; } &&
3548 { ac_try
='test -s conftest.$ac_objext'
3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3554 ac_header_compiler
=yes
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.
$ac_ext >&5
3559 ac_header_compiler
=no
3561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3563 echo "${ECHO_T}$ac_header_compiler" >&6
3565 # Is the header present?
3566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3568 cat >conftest.
$ac_ext <<_ACEOF
3571 cat confdefs.h
>>conftest.
$ac_ext
3572 cat >>conftest.
$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #include <$ac_header>
3576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3577 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3579 grep -v '^ *+' conftest.er1
>conftest.err
3581 cat conftest.err
>&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } >/dev
/null
; then
3584 if test -s conftest.err
; then
3585 ac_cpp_err
=$ac_c_preproc_warn_flag
3586 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3593 if test -z "$ac_cpp_err"; then
3594 ac_header_preproc
=yes
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.
$ac_ext >&5
3599 ac_header_preproc
=no
3601 rm -f conftest.err conftest.
$ac_ext
3602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3603 echo "${ECHO_T}$ac_header_preproc" >&6
3605 # So? What about this header?
3606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3612 ac_header_preproc
=yes
3615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3629 ## ------------------------------------------ ##
3630 ## Report this to the AC_PACKAGE_NAME lists. ##
3631 ## ------------------------------------------ ##
3634 sed "s/^/$as_me: WARNING: /" >&2
3637 echo "$as_me:$LINENO: checking for $ac_header" >&5
3638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 eval "$as_ac_Header=\$ac_header_preproc"
3644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3649 cat >>confdefs.h
<<_ACEOF
3650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3661 for ac_func
in getrusage
time sigaction __setfpucw
3663 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3664 echo "$as_me:$LINENO: checking for $ac_func" >&5
3665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3666 if eval "test \"\${$as_ac_var+set}\" = set"; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 cat >conftest.
$ac_ext <<_ACEOF
3672 cat confdefs.h
>>conftest.
$ac_ext
3673 cat >>conftest.
$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3677 #define $ac_func innocuous_$ac_func
3679 /* System header to define __stub macros and hopefully few prototypes,
3680 which can conflict with char $ac_func (); below.
3681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682 <limits.h> exists even on freestanding compilers. */
3685 # include <limits.h>
3687 # include <assert.h>
3692 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3700 /* The GNU C library defines this for functions which it implements
3701 to always fail with ENOSYS. Some functions are actually named
3702 something starting with __ and the normal name is an alias. */
3703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3706 char (*f) () = $ac_func;
3715 return f != $ac_func;
3720 rm -f conftest.
$ac_objext conftest
$ac_exeext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3722 (eval $ac_link) 2>conftest.er1
3724 grep -v '^ *+' conftest.er1
>conftest.err
3726 cat conftest.err
>&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try
='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try
='test -s conftest$ac_exeext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 eval "$as_ac_var=yes"
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.
$ac_ext >&5
3747 eval "$as_ac_var=no"
3749 rm -f conftest.err conftest.
$ac_objext \
3750 conftest
$ac_exeext conftest.
$ac_ext
3752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3754 if test `eval echo '${'$as_ac_var'}'` = yes; then
3755 cat >>confdefs.h
<<_ACEOF
3756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3763 # Check for socket libraries
3765 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
3766 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
3767 if test "${ac_cv_lib_socket_bind+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 ac_check_lib_save_LIBS
=$LIBS
3771 LIBS
="-lsocket $LIBS"
3772 cat >conftest.
$ac_ext <<_ACEOF
3775 cat confdefs.h
>>conftest.
$ac_ext
3776 cat >>conftest.
$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3779 /* Override any gcc2 internal prototype to avoid an error. */
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3794 rm -f conftest.
$ac_objext conftest
$ac_exeext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3796 (eval $ac_link) 2>conftest.er1
3798 grep -v '^ *+' conftest.er1
>conftest.err
3800 cat conftest.err
>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try
='test -z "$ac_c_werror_flag"
3804 || test ! -s conftest.err'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; } &&
3810 { ac_try
='test -s conftest$ac_exeext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_cv_lib_socket_bind
=yes
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.
$ac_ext >&5
3821 ac_cv_lib_socket_bind
=no
3823 rm -f conftest.err conftest.
$ac_objext \
3824 conftest
$ac_exeext conftest.
$ac_ext
3825 LIBS
=$ac_check_lib_save_LIBS
3827 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
3828 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
3829 if test $ac_cv_lib_socket_bind = yes; then
3830 cat >>confdefs.h
<<_ACEOF
3831 #define HAVE_LIBSOCKET 1
3834 LIBS
="-lsocket $LIBS"
3839 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3840 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3841 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 ac_check_lib_save_LIBS
=$LIBS
3846 cat >conftest.
$ac_ext <<_ACEOF
3849 cat confdefs.h
>>conftest.
$ac_ext
3850 cat >>conftest.
$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3853 /* Override any gcc2 internal prototype to avoid an error. */
3857 /* We use char because int might match the return type of a gcc2
3858 builtin and then its argument prototype would still apply. */
3859 char gethostbyname ();
3868 rm -f conftest.
$ac_objext conftest
$ac_exeext
3869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3870 (eval $ac_link) 2>conftest.er1
3872 grep -v '^ *+' conftest.er1
>conftest.err
3874 cat conftest.err
>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try
='test -z "$ac_c_werror_flag"
3878 || test ! -s conftest.err'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; } &&
3884 { ac_try
='test -s conftest$ac_exeext'
3885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; }; then
3890 ac_cv_lib_nsl_gethostbyname
=yes
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.
$ac_ext >&5
3895 ac_cv_lib_nsl_gethostbyname
=no
3897 rm -f conftest.err conftest.
$ac_objext \
3898 conftest
$ac_exeext conftest.
$ac_ext
3899 LIBS
=$ac_check_lib_save_LIBS
3901 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3902 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3903 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3904 cat >>confdefs.h
<<_ACEOF
3905 #define HAVE_LIBNSL 1
3913 .
${srcdir}/..
/..
/bfd
/configure.
host
3917 USE_MAINTAINER_MODE
=no
3918 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3919 if test "${enable_maintainer_mode+set}" = set; then
3920 enableval
="$enable_maintainer_mode"
3921 case "${enableval}" in
3922 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
3924 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
3925 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
3926 { (exit 1); exit 1; }; }; MAINT
="#" ;;
3928 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
3929 echo "Setting maintainer mode" 6>&1
3936 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
3937 if test "${enable_sim_bswap+set}" = set; then
3938 enableval
="$enable_sim_bswap"
3939 case "${enableval}" in
3940 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
3941 no
) sim_bswap
="-DWITH_BSWAP=0";;
3942 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
3943 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
3944 { (exit 1); exit 1; }; }; sim_bswap
="";;
3946 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
3947 echo "Setting bswap flags = $sim_bswap" 6>&1
3954 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
3955 if test "${enable_sim_cflags+set}" = set; then
3956 enableval
="$enable_sim_cflags"
3957 case "${enableval}" in
3958 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
3959 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
3960 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
3961 { (exit 1); exit 1; }; }; sim_cflags
="";;
3963 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3965 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
3966 echo "Setting sim cflags = $sim_cflags" 6>&1
3973 # Check whether --enable-sim-debug or --disable-sim-debug was given.
3974 if test "${enable_sim_debug+set}" = set; then
3975 enableval
="$enable_sim_debug"
3976 case "${enableval}" in
3977 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
3978 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
3979 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
3981 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
3982 echo "Setting sim debug = $sim_debug" 6>&1
3989 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3990 if test "${enable_sim_stdio+set}" = set; then
3991 enableval
="$enable_sim_stdio"
3992 case "${enableval}" in
3993 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
3994 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
3995 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3996 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3997 { (exit 1); exit 1; }; }; sim_stdio
="";;
3999 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4000 echo "Setting stdio flags = $sim_stdio" 6>&1
4007 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4008 if test "${enable_sim_trace+set}" = set; then
4009 enableval
="$enable_sim_trace"
4010 case "${enableval}" in
4011 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
4012 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
4014 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4017 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4018 if test x
"$sim_trace" = x
; then
4019 sim_trace
="-DWITH_TRACE='(TRACE_$x"
4021 sim_trace
="${sim_trace}|TRACE_$x"
4024 sim_trace
="$sim_trace)'" ;;
4026 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4027 echo "Setting sim trace = $sim_trace" 6>&1
4034 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4035 if test "${enable_sim_profile+set}" = set; then
4036 enableval
="$enable_sim_profile"
4037 case "${enableval}" in
4038 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
4039 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
4041 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4044 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4045 if test x
"$sim_profile" = x
; then
4046 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
4048 sim_profile
="${sim_profile}|PROFILE_$x"
4051 sim_profile
="$sim_profile)'" ;;
4053 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
4054 echo "Setting sim profile = $sim_profile" 6>&1
4057 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
4061 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4062 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4063 if test "${ac_cv_type_signal+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 cat >conftest.
$ac_ext <<_ACEOF
4069 cat confdefs.h
>>conftest.
$ac_ext
4070 cat >>conftest.
$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 #include <sys/types.h>
4078 extern "C" void (*signal (int, void (*)(int)))(int);
4080 void (*signal ()) ();
4091 rm -f conftest.
$ac_objext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4093 (eval $ac_compile) 2>conftest.er1
4095 grep -v '^ *+' conftest.er1
>conftest.err
4097 cat conftest.err
>&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } &&
4100 { ac_try
='test -z "$ac_c_werror_flag"
4101 || test ! -s conftest.err'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; } &&
4107 { ac_try
='test -s conftest.$ac_objext'
4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4113 ac_cv_type_signal
=void
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.
$ac_ext >&5
4118 ac_cv_type_signal
=int
4120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4122 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4123 echo "${ECHO_T}$ac_cv_type_signal" >&6
4125 cat >>confdefs.h
<<_ACEOF
4126 #define RETSIGTYPE $ac_cv_type_signal
4136 sim_link_links
=tconfig.h
4137 if test -f ${srcdir}/tconfig.
in
4139 sim_link_files
=tconfig.
in
4141 sim_link_files
=..
/common
/tconfig.
in
4144 # targ-vals.def points to the libc macro description file.
4146 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
4148 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
4149 sim_link_links
="${sim_link_links} targ-vals.def"
4151 # This file contains common code used by all simulators.
4153 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
4154 # directory. It is intended to be invoked before any target specific stuff.
4155 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
4156 # It is intended to be invoked last.
4158 # The simulator's configure.in should look like:
4160 # dnl Process this file with autoconf to produce a configure script.
4161 # sinclude(../common/aclocal.m4)
4163 # AC_INIT(Makefile.in)
4167 # ... target specific stuff ...
4218 sim_inline
="-DDEFAULT_INLINE=0"
4255 # This file is derived from `gettext.m4'. The difference is that the
4256 # included macros assume Cygnus-style source and build trees.
4258 # Macro to add for using GNU gettext.
4259 # Ulrich Drepper <drepper@cygnus.com>, 1995.
4261 # This file file be copied and used freely without restrictions. It can
4262 # be used in projects which are not available under the GNU Public License
4263 # but which still want to provide support for the GNU gettext functionality.
4264 # Please note that the actual code is *not* freely available.
4272 # Search path for a program which passes the given test.
4273 # Ulrich Drepper <drepper@cygnus.com>, 1996.
4275 # This file file be copied and used freely without restrictions. It can
4276 # be used in projects which are not available under the GNU Public License
4277 # but which still want to provide support for the GNU gettext functionality.
4278 # Please note that the actual code is *not* freely available.
4284 # Check whether LC_MESSAGES is available in <locale.h>.
4285 # Ulrich Drepper <drepper@cygnus.com>, 1995.
4287 # This file file be copied and used freely without restrictions. It can
4288 # be used in projects which are not available under the GNU Public License
4289 # but which still want to provide support for the GNU gettext functionality.
4290 # Please note that the actual code is *not* freely available.
4301 # NOTE: Don't add -Wall or -Wunused, they both include
4302 # -Wunused-parameter which reports bogus warnings.
4303 # NOTE: If you add to this list, remember to update
4304 # gdb/doc/gdbint.texinfo.
4305 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
4306 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
4307 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4308 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4309 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4310 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4311 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4312 # -Woverloaded-virtual -Winline -Werror"
4313 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4314 if test "${enable_build_warnings+set}" = set; then
4315 enableval
="$enable_build_warnings"
4316 case "${enableval}" in
4318 no
) build_warnings
="-w";;
4319 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4320 build_warnings
="${build_warnings} ${t}";;
4321 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4322 build_warnings
="${t} ${build_warnings}";;
4323 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4325 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4326 echo "Setting compiler warning flags = $build_warnings" 6>&1
4328 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
4329 if test "${enable_sim_build_warnings+set}" = set; then
4330 enableval
="$enable_sim_build_warnings"
4331 case "${enableval}" in
4333 no
) build_warnings
="-w";;
4334 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4335 build_warnings
="${build_warnings} ${t}";;
4336 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
4337 build_warnings
="${t} ${build_warnings}";;
4338 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4340 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
4341 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4345 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
4347 echo "$as_me:$LINENO: checking compiler warning flags" >&5
4348 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
4349 # Separate out the -Werror flag as some files just cannot be
4350 # compiled with it enabled.
4351 for w
in ${build_warnings}; do
4353 -Werr*) WERROR_CFLAGS
=-Werror ;;
4354 *) # Check that GCC accepts it
4355 saved_CFLAGS
="$CFLAGS"
4357 cat >conftest.
$ac_ext <<_ACEOF
4360 cat confdefs.h
>>conftest.
$ac_ext
4361 cat >>conftest.
$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4372 rm -f conftest.
$ac_objext
4373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374 (eval $ac_compile) 2>conftest.er1
4376 grep -v '^ *+' conftest.er1
>conftest.err
4378 cat conftest.err
>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try
='test -z "$ac_c_werror_flag"
4382 || test ! -s conftest.err'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try
='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 WARN_CFLAGS
="${WARN_CFLAGS} $w"
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.
$ac_ext >&5
4400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4401 CFLAGS
="$saved_CFLAGS"
4404 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4405 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
4410 for ac_header
in unistd.h
4412 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4414 echo "$as_me:$LINENO: checking for $ac_header" >&5
4415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4422 # Is the header compilable?
4423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4425 cat >conftest.
$ac_ext <<_ACEOF
4428 cat confdefs.h
>>conftest.
$ac_ext
4429 cat >>conftest.
$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 $ac_includes_default
4432 #include <$ac_header>
4434 rm -f conftest.
$ac_objext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436 (eval $ac_compile) 2>conftest.er1
4438 grep -v '^ *+' conftest.er1
>conftest.err
4440 cat conftest.err
>&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try
='test -z "$ac_c_werror_flag"
4444 || test ! -s conftest.err'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; } &&
4450 { ac_try
='test -s conftest.$ac_objext'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 ac_header_compiler
=yes
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.
$ac_ext >&5
4461 ac_header_compiler
=no
4463 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4465 echo "${ECHO_T}$ac_header_compiler" >&6
4467 # Is the header present?
4468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4470 cat >conftest.
$ac_ext <<_ACEOF
4473 cat confdefs.h
>>conftest.
$ac_ext
4474 cat >>conftest.
$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 #include <$ac_header>
4478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4479 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4481 grep -v '^ *+' conftest.er1
>conftest.err
4483 cat conftest.err
>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } >/dev
/null
; then
4486 if test -s conftest.err
; then
4487 ac_cpp_err
=$ac_c_preproc_warn_flag
4488 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4495 if test -z "$ac_cpp_err"; then
4496 ac_header_preproc
=yes
4498 echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.
$ac_ext >&5
4501 ac_header_preproc
=no
4503 rm -f conftest.err conftest.
$ac_ext
4504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4505 echo "${ECHO_T}$ac_header_preproc" >&6
4507 # So? What about this header?
4508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4514 ac_header_preproc
=yes
4517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4531 ## ------------------------------------------ ##
4532 ## Report this to the AC_PACKAGE_NAME lists. ##
4533 ## ------------------------------------------ ##
4536 sed "s/^/$as_me: WARNING: /" >&2
4539 echo "$as_me:$LINENO: checking for $ac_header" >&5
4540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 eval "$as_ac_Header=\$ac_header_preproc"
4546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4551 cat >>confdefs.h
<<_ACEOF
4552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4562 ac_sources
="$sim_link_files"
4563 ac_dests
="$sim_link_links"
4564 while test -n "$ac_sources"; do
4565 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
4566 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
4567 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
4569 ac_config_links
="$ac_config_links $ac_config_links_1"
4572 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
4573 cgen_breaks
="break cgen_rtx_error";
4576 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
4578 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
4580 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
4582 ac_config_commands
="$ac_config_commands Makefile"
4584 ac_config_commands
="$ac_config_commands stamp-h"
4586 cat >confcache
<<\_ACEOF
4587 # This file is a shell script that caches the results of configure
4588 # tests run on this system so they can be shared between configure
4589 # scripts and configure runs, see configure's option --config-cache.
4590 # It is not useful on other systems. If it contains results you don't
4591 # want to keep, you may remove or edit it.
4593 # config.status only pays attention to the cache file if you give it
4594 # the --recheck option to rerun configure.
4596 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4597 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4602 # The following way of writing the cache mishandles newlines in values,
4603 # but we know of no workaround that is simple, portable, and efficient.
4604 # So, don't put newlines in cache variables' values.
4605 # Ultrix sh set writes to stderr and can't be redirected directly,
4606 # and sets the high bit in the cache file unless we assign to the vars.
4609 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4611 # `set' does not quote correctly, so add quotes (double-quote
4612 # substitution turns \\\\ into \\, and sed turns \\ into \).
4615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4618 # `set' quotes correctly as required by POSIX, so do not add quotes.
4620 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4627 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4629 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4631 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4632 if test -w $cache_file; then
4633 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4634 cat confcache
>$cache_file
4636 echo "not updating unwritable cache $cache_file"
4641 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4642 # Let make expand exec_prefix.
4643 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4645 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4646 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4647 # trailing colons and then remove the whole line if VPATH becomes empty
4648 # (actually we leave an empty line to preserve line numbers).
4649 if test "x$srcdir" = x.
; then
4650 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
4651 s/:*\$(srcdir):*/:/;
4652 s/:*\${srcdir}:*/:/;
4654 s/^\([^=]*=[ ]*\):*/\1/;
4660 DEFS
=-DHAVE_CONFIG_H
4664 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4665 # 1. Remove the extension, and $U if already installed.
4666 ac_i
=`echo "$ac_i" |
4667 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4669 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
4670 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
4674 LTLIBOBJS
=$ac_ltlibobjs
4678 : ${CONFIG_STATUS=./config.status}
4679 ac_clean_files_save
=$ac_clean_files
4680 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4681 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4682 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4683 cat >$CONFIG_STATUS <<_ACEOF
4685 # Generated by $as_me.
4686 # Run this file to recreate the current configuration.
4687 # Compiler output produced by configure, useful for debugging
4688 # configure, is in config.log if it exists.
4693 SHELL=\${CONFIG_SHELL-$SHELL}
4696 cat >>$CONFIG_STATUS <<\_ACEOF
4697 ## --------------------- ##
4698 ## M4sh Initialization. ##
4699 ## --------------------- ##
4701 # Be Bourne compatible
4702 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
4705 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4706 # is contrary to our usage. Disable this feature.
4707 alias -g '${1+"$@"}'='"$@"'
4708 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
4711 DUALCASE
=1; export DUALCASE
# for MKS sh
4713 # Support unset when possible.
4714 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
4721 # Work around bugs in pre-3.0 UWIN ksh.
4722 $as_unset ENV MAIL MAILPATH
4729 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4730 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4731 LC_TELEPHONE LC_TIME
4733 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4734 eval $as_var=C
; export $as_var
4740 # Required to use basename.
4741 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4747 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
4748 as_basename
=basename
4754 # Name of the executable.
4755 as_me
=`$as_basename "$0" ||
4756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4757 X"$0" : 'X\(//\)$' \| \
4758 X"$0" : 'X\(/\)$' \| \
4759 . : '\(.\)' 2>/dev/null ||
4761 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4762 /^X\/\(\/\/\)$/{ s//\1/; q; }
4763 /^X\/\(\/\).*/{ s//\1/; q; }
4767 # PATH needs CR, and LINENO needs CR and PATH.
4768 # Avoid depending upon Character Ranges.
4769 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4770 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4771 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4772 as_cr_digits
='0123456789'
4773 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4775 # The user is always right.
4776 if test "${PATH_SEPARATOR+set}" != set; then
4777 echo "#! /bin/sh" >conf$$.sh
4778 echo "exit 0" >>conf$$.sh
4780 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4791 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
4792 test "x$as_lineno_1" != "x$as_lineno_2" &&
4793 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
4794 # Find who we are. Look in the path if we contain no path at all
4797 *[\\/]* ) as_myself
=$0 ;;
4798 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir
=.
4803 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
4808 # We did not find ourselves, most probably we were run as `sh COMMAND'
4809 # in which case we are not to be found in the path.
4810 if test "x$as_myself" = x
; then
4813 if test ! -f "$as_myself"; then
4814 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4815 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4816 { (exit 1); exit 1; }; }
4818 case $CONFIG_SHELL in
4820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4821 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
4824 test -z "$as_dir" && as_dir
=.
4825 for as_base
in sh bash ksh sh5
; do
4828 if ("$as_dir/$as_base" -c '
4831 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4832 test "x$as_lineno_1" != "x$as_lineno_2" &&
4833 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
4834 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
4835 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
4836 CONFIG_SHELL
=$as_dir/$as_base
4838 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4846 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4847 # uniformly replaced by the line number. The first 'sed' inserts a
4848 # line-number line before each line; the second 'sed' does the real
4849 # work. The second script uses 'N' to pair each line-number line
4850 # with the numbered line, and appends trailing '-' during
4851 # substitution so that $LINENO is not a special case at line end.
4852 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4853 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4854 sed '=' <$as_myself |
4859 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4862 s,^['$as_cr_digits']*\n,,
4864 chmod +x
$as_me.lineno ||
4865 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4866 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4867 { (exit 1); exit 1; }; }
4869 # Don't try to exec as it changes $[0], causing all sort of problems
4870 # (the dirname of $[0] is not the place where we might find the
4871 # original and so on. Autoconf is especially sensible to this).
4873 # Exit status is that of the last command.
4878 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4879 *c
*,-n*) ECHO_N
= ECHO_C
='
4881 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
4882 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
4885 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4891 rm -f conf$$ conf$$.exe conf$$.
file
4893 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4894 # We could just check for DJGPP; but this test a) works b) is more generic
4895 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4896 if test -f conf$$.exe
; then
4897 # Don't use ln at all; we don't have any links
4902 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4907 rm -f conf$$ conf$$.exe conf$$.
file
4909 if mkdir
-p .
2>/dev
/null
; then
4912 test -d .
/-p && rmdir .
/-p
4916 as_executable_p
="test -f"
4918 # Sed expression to map a string onto a valid CPP name.
4919 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4921 # Sed expression to map a string onto a valid variable name.
4922 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4926 # We need space, tab and new line, in precisely that order.
4936 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4937 # report actual input values of CONFIG_FILES etc. instead of their
4938 # values after options handling. Logging --version etc. is OK.
4942 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4943 ## Running $as_me. ##
4948 This file was extended by $as_me, which was
4949 generated by GNU Autoconf 2.59. Invocation command line was
4951 CONFIG_FILES = $CONFIG_FILES
4952 CONFIG_HEADERS = $CONFIG_HEADERS
4953 CONFIG_LINKS = $CONFIG_LINKS
4954 CONFIG_COMMANDS = $CONFIG_COMMANDS
4958 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4962 # Files that config.status was made for.
4963 if test -n "$ac_config_files"; then
4964 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4967 if test -n "$ac_config_headers"; then
4968 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4971 if test -n "$ac_config_links"; then
4972 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4975 if test -n "$ac_config_commands"; then
4976 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4979 cat >>$CONFIG_STATUS <<\_ACEOF
4982 \`$as_me' instantiates files from templates according to the
4983 current configuration.
4985 Usage: $0 [OPTIONS] [FILE]...
4987 -h, --help print this help, then exit
4988 -V, --version print version number, then exit
4989 -q, --quiet do not print progress messages
4990 -d, --debug don't remove temporary files
4991 --recheck update $as_me by reconfiguring in the same conditions
4992 --file=FILE[:TEMPLATE]
4993 instantiate the configuration file FILE
4994 --header=FILE[:TEMPLATE]
4995 instantiate the configuration header FILE
4997 Configuration files:
5000 Configuration headers:
5003 Configuration links:
5006 Configuration commands:
5009 Report bugs to <bug-autoconf@gnu.org>."
5012 cat >>$CONFIG_STATUS <<_ACEOF
5015 configured by $0, generated by GNU Autoconf 2.59,
5016 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5018 Copyright (C) 2003 Free Software Foundation, Inc.
5019 This config.status script is free software; the Free Software Foundation
5020 gives unlimited permission to copy, distribute and modify it."
5025 cat >>$CONFIG_STATUS <<\_ACEOF
5026 # If no file are specified by the user, then we need to provide default
5027 # value. By we need to know if files were specified by the user.
5033 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
5034 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
5042 *) # This is not an option, so the user has probably given explicit
5045 ac_need_defaults
=false
;;
5049 # Handling of the options.
5051 cat >>$CONFIG_STATUS <<\_ACEOF
5052 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5054 --version |
--vers* |
-V )
5055 echo "$ac_cs_version"; exit 0 ;;
5057 # Conflict between --help and --header
5058 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5059 Try \`$0 --help' for more information." >&5
5060 echo "$as_me: error: ambiguous option: $1
5061 Try \`$0 --help' for more information." >&2;}
5062 { (exit 1); exit 1; }; };;
5063 --help |
--hel |
-h )
5064 echo "$ac_cs_usage"; exit 0 ;;
5065 --debug |
--d* |
-d )
5067 --file |
--fil |
--fi |
--f )
5069 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
5070 ac_need_defaults
=false
;;
5071 --header |
--heade |
--head |
--hea )
5073 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
5074 ac_need_defaults
=false
;;
5075 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5076 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5080 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5081 Try \`$0 --help' for more information." >&5
5082 echo "$as_me: error: unrecognized option: $1
5083 Try \`$0 --help' for more information." >&2;}
5084 { (exit 1); exit 1; }; } ;;
5086 *) ac_config_targets
="$ac_config_targets $1" ;;
5092 ac_configure_extra_args
=
5094 if $ac_cs_silent; then
5096 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5100 cat >>$CONFIG_STATUS <<_ACEOF
5101 if \$ac_cs_recheck; then
5102 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5103 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5112 cat >>$CONFIG_STATUS <<\_ACEOF
5113 for ac_config_target
in $ac_config_targets
5115 case "$ac_config_target" in
5116 # Handling of arguments.
5117 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5118 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5119 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5120 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
5121 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
5122 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
5123 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
5124 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5125 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5126 { (exit 1); exit 1; }; };;
5130 # If the user did not use the arguments to specify the items to instantiate,
5131 # then the envvar interface is used. Set only those that are not.
5132 # We use the long form for the default assignment because of an extremely
5133 # bizarre bug on SunOS 4.1.3.
5134 if $ac_need_defaults; then
5135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5136 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5137 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
5138 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
5141 # Have a temporary directory for convenience. Make it in the build tree
5142 # simply because there is no reason to put it here, and in addition,
5143 # creating and moving files from /tmp can sometimes cause problems.
5144 # Create a temporary directory, and hook for its removal unless debugging.
5147 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5148 trap '{ (exit 1); exit 1; }' 1 2 13 15
5151 # Create a (secure) tmp directory for tmp files.
5154 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5155 test -n "$tmp" && test -d "$tmp"
5158 tmp
=.
/confstat$$
-$RANDOM
5159 (umask 077 && mkdir
$tmp)
5162 echo "$me: cannot create a temporary directory in ." >&2
5163 { (exit 1); exit 1; }
5168 cat >>$CONFIG_STATUS <<_ACEOF
5171 # CONFIG_FILES section.
5174 # No need to generate the scripts if there are no CONFIG_FILES.
5175 # This happens for instance when ./config.status config.h
5176 if test -n "\$CONFIG_FILES"; then
5177 # Protect against being on the right side of a sed subst in config.status.
5178 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5179 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5180 s,@SHELL@,$SHELL,;t t
5181 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5182 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5183 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5184 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5185 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5186 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5187 s,@exec_prefix@,$exec_prefix,;t t
5188 s,@prefix@,$prefix,;t t
5189 s,@program_transform_name@,$program_transform_name,;t t
5190 s,@bindir@,$bindir,;t t
5191 s,@sbindir@,$sbindir,;t t
5192 s,@libexecdir@,$libexecdir,;t t
5193 s,@datadir@,$datadir,;t t
5194 s,@sysconfdir@,$sysconfdir,;t t
5195 s,@sharedstatedir@,$sharedstatedir,;t t
5196 s,@localstatedir@,$localstatedir,;t t
5197 s,@libdir@,$libdir,;t t
5198 s,@includedir@,$includedir,;t t
5199 s,@oldincludedir@,$oldincludedir,;t t
5200 s,@infodir@,$infodir,;t t
5201 s,@mandir@,$mandir,;t t
5202 s,@build_alias@,$build_alias,;t t
5203 s,@host_alias@,$host_alias,;t t
5204 s,@target_alias@,$target_alias,;t t
5206 s,@ECHO_C@,$ECHO_C,;t t
5207 s,@ECHO_N@,$ECHO_N,;t t
5208 s,@ECHO_T@,$ECHO_T,;t t
5210 s,@build@,$build,;t t
5211 s,@build_cpu@,$build_cpu,;t t
5212 s,@build_vendor@,$build_vendor,;t t
5213 s,@build_os@,$build_os,;t t
5215 s,@host_cpu@,$host_cpu,;t t
5216 s,@host_vendor@,$host_vendor,;t t
5217 s,@host_os@,$host_os,;t t
5218 s,@target@,$target,;t t
5219 s,@target_cpu@,$target_cpu,;t t
5220 s,@target_vendor@,$target_vendor,;t t
5221 s,@target_os@,$target_os,;t t
5223 s,@CFLAGS@,$CFLAGS,;t t
5224 s,@LDFLAGS@,$LDFLAGS,;t t
5225 s,@CPPFLAGS@,$CPPFLAGS,;t t
5226 s,@ac_ct_CC@,$ac_ct_CC,;t t
5227 s,@EXEEXT@,$EXEEXT,;t t
5228 s,@OBJEXT@,$OBJEXT,;t t
5229 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5230 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5231 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5232 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
5233 s,@HDEFINES@,$HDEFINES,;t t
5235 s,@RANLIB@,$RANLIB,;t t
5236 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5238 s,@EGREP@,$EGREP,;t t
5239 s,@MAINT@,$MAINT,;t t
5240 s,@sim_bswap@,$sim_bswap,;t t
5241 s,@sim_cflags@,$sim_cflags,;t t
5242 s,@sim_debug@,$sim_debug,;t t
5243 s,@sim_stdio@,$sim_stdio,;t t
5244 s,@sim_trace@,$sim_trace,;t t
5245 s,@sim_profile@,$sim_profile,;t t
5246 s,@sim_environment@,$sim_environment,;t t
5247 s,@sim_alignment@,$sim_alignment,;t t
5248 s,@sim_assert@,$sim_assert,;t t
5249 s,@sim_bitsize@,$sim_bitsize,;t t
5250 s,@sim_endian@,$sim_endian,;t t
5251 s,@sim_hostendian@,$sim_hostendian,;t t
5252 s,@sim_float@,$sim_float,;t t
5253 s,@sim_scache@,$sim_scache,;t t
5254 s,@sim_default_model@,$sim_default_model,;t t
5255 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5256 s,@sim_hw_objs@,$sim_hw_objs,;t t
5257 s,@sim_hw@,$sim_hw,;t t
5258 s,@sim_inline@,$sim_inline,;t t
5259 s,@sim_packages@,$sim_packages,;t t
5260 s,@sim_regparm@,$sim_regparm,;t t
5261 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5262 s,@sim_smp@,$sim_smp,;t t
5263 s,@sim_stdcall@,$sim_stdcall,;t t
5264 s,@sim_xor_endian@,$sim_xor_endian,;t t
5265 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5266 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
5267 s,@cgen_breaks@,$cgen_breaks,;t t
5268 s,@LIBOBJS@,$LIBOBJS,;t t
5269 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5274 cat >>$CONFIG_STATUS <<\_ACEOF
5275 # Split the substitutions into bite-sized pieces for seds with
5276 # small command number limits, like on Digital OSF/1 and HP-UX.
5278 ac_sed_frag
=1 # Number of current file.
5279 ac_beg
=1 # First line for current file.
5280 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5283 while $ac_more_lines; do
5284 if test $ac_beg -gt 1; then
5285 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5287 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5289 if test ! -s $tmp/subs.frag
; then
5292 # The purpose of the label and of the branching condition is to
5293 # speed up the sed processing (if there are no `@' at all, there
5294 # is no need to browse any of the substitutions).
5295 # These are the two extra sed commands mentioned above.
5297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5298 if test -z "$ac_sed_cmds"; then
5299 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5301 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5303 ac_sed_frag
=`expr $ac_sed_frag + 1`
5305 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5308 if test -z "$ac_sed_cmds"; then
5311 fi # test -n "$CONFIG_FILES"
5314 cat >>$CONFIG_STATUS <<\_ACEOF
5315 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5316 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5318 - |
*:- |
*:-:* ) # input from stdin
5320 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5321 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5322 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5323 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5324 * ) ac_file_in
=$ac_file.
in ;;
5327 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5328 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5330 X"$ac_file" : 'X\(//\)[^/]' \| \
5331 X"$ac_file" : 'X\(//\)$' \| \
5332 X"$ac_file" : 'X\(/\)' \| \
5333 . : '\(.\)' 2>/dev/null ||
5335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5337 /^X\(\/\/\)$/{ s//\1/; q; }
5338 /^X\(\/\).*/{ s//\1/; q; }
5340 { if $as_mkdir_p; then
5345 while test ! -d "$as_dir"; do
5346 as_dirs
="$as_dir $as_dirs"
5347 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5349 X"$as_dir" : 'X\(//\)[^/]' \| \
5350 X"$as_dir" : 'X\(//\)$' \| \
5351 X"$as_dir" : 'X\(/\)' \| \
5352 . : '\(.\)' 2>/dev/null ||
5354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5356 /^X\(\/\/\)$/{ s//\1/; q; }
5357 /^X\(\/\).*/{ s//\1/; q; }
5360 test ! -n "$as_dirs" || mkdir
$as_dirs
5361 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5362 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5363 { (exit 1); exit 1; }; }; }
5367 if test "$ac_dir" != .
; then
5368 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5369 # A "../" for each directory in $ac_dir_suffix.
5370 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5372 ac_dir_suffix
= ac_top_builddir
=
5376 .
) # No --srcdir option. We are building in place.
5378 if test -z "$ac_top_builddir"; then
5381 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5383 [\\/]* | ?
:[\\/]* ) # Absolute path.
5384 ac_srcdir
=$srcdir$ac_dir_suffix;
5385 ac_top_srcdir
=$srcdir ;;
5387 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5388 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5391 # Do not use `cd foo && pwd` to compute absolute paths, because
5392 # the directories may not exist.
5394 .
) ac_abs_builddir
="$ac_dir";;
5397 .
) ac_abs_builddir
=`pwd`;;
5398 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5399 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5402 case $ac_abs_builddir in
5403 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5405 case ${ac_top_builddir}.
in
5406 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5407 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5408 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5411 case $ac_abs_builddir in
5412 .
) ac_abs_srcdir
=$ac_srcdir;;
5415 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5416 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5417 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5420 case $ac_abs_builddir in
5421 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5423 case $ac_top_srcdir in
5424 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5425 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5426 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5432 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5433 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
5436 if test x
"$ac_file" != x-
; then
5437 { echo "$as_me:$LINENO: creating $ac_file" >&5
5438 echo "$as_me: creating $ac_file" >&6;}
5441 # Let's still pretend it is `configure' which instantiates (i.e., don't
5442 # use $as_me), people would be surprised to read:
5443 # /* config.h. Generated by config.status. */
5444 if test x
"$ac_file" = x-
; then
5447 configure_input
="$ac_file. "
5449 configure_input
=$configure_input"Generated from `echo $ac_file_in |
5450 sed 's,.*/,,'` by configure."
5452 # First look for the input files in the build tree, otherwise in the
5454 ac_file_inputs
=`IFS=:
5455 for f in $ac_file_in; do
5457 -) echo $tmp/stdin ;;
5459 # Absolute (can't be DOS-style, as IFS=:)
5460 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5461 echo "$as_me: error: cannot find input file: $f" >&2;}
5462 { (exit 1); exit 1; }; }
5465 if test -f "$f"; then
5468 elif test -f "$srcdir/$f"; then
5473 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5474 echo "$as_me: error: cannot find input file: $f" >&2;}
5475 { (exit 1); exit 1; }; }
5478 done` ||
{ (exit 1); exit 1; }
5480 cat >>$CONFIG_STATUS <<_ACEOF
5484 cat >>$CONFIG_STATUS <<\_ACEOF
5486 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5487 s
,@configure_input@
,$configure_input,;t t
5488 s
,@srcdir@
,$ac_srcdir,;t t
5489 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
5490 s
,@top_srcdir@
,$ac_top_srcdir,;t t
5491 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
5492 s
,@builddir@
,$ac_builddir,;t t
5493 s
,@abs_builddir@
,$ac_abs_builddir,;t t
5494 s
,@top_builddir@
,$ac_top_builddir,;t t
5495 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
5496 s
,@INSTALL@
,$ac_INSTALL,;t t
5497 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5499 if test x"$ac_file" != x-; then
5500 mv $tmp/out $ac_file
5508 cat >>$CONFIG_STATUS <<\_ACEOF
5511 # CONFIG_HEADER section.
5514 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
5515 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5517 # ac_d sets the value in "#define NAME VALUE" lines.
5518 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5519 ac_dB
='[ ].*$,\1#\2'
5522 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5523 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5524 ac_uB
='$,\1#\2define\3'
5528 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
5529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5531 - |
*:- |
*:-:* ) # input from stdin
5533 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5534 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5535 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5536 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5537 * ) ac_file_in
=$ac_file.
in ;;
5540 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
5541 echo "$as_me: creating $ac_file" >&6;}
5543 # First look for the input files in the build tree, otherwise in the
5545 ac_file_inputs
=`IFS=:
5546 for f in $ac_file_in; do
5548 -) echo $tmp/stdin ;;
5550 # Absolute (can't be DOS-style, as IFS=:)
5551 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5552 echo "$as_me: error: cannot find input file: $f" >&2;}
5553 { (exit 1); exit 1; }; }
5554 # Do quote $f, to prevent DOS paths from being IFS'd.
5557 if test -f "$f"; then
5560 elif test -f "$srcdir/$f"; then
5565 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5566 echo "$as_me: error: cannot find input file: $f" >&2;}
5567 { (exit 1); exit 1; }; }
5570 done` ||
{ (exit 1); exit 1; }
5571 # Remove the trailing spaces.
5572 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5576 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5577 # `conftest.undefs', that substitutes the proper values into
5578 # config.h.in to produce config.h. The first handles `#define'
5579 # templates, and the second `#undef' templates.
5580 # And first: Protect against being on the right side of a sed subst in
5581 # config.status. Protect against being in an unquoted here document
5583 rm -f conftest.defines conftest.undefs
5584 # Using a here document instead of a string reduces the quoting nightmare.
5585 # Putting comments in sed scripts is not portable.
5587 # `end' is used to avoid that the second main sed command (meant for
5588 # 0-ary CPP macros) applies to n-ary macro definitions.
5589 # See the Autoconf documentation for `clear'.
5590 cat >confdef2sed.
sed <<\_ACEOF
5595 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5597 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5600 # If some macros were called several times there might be several times
5601 # the same #defines, which is useless. Nevertheless, we may not want to
5602 # sort them, since we want the *last* AC-DEFINE to be honored.
5603 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5604 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5605 rm -f confdef2sed.sed
5607 # This sed command replaces #undef with comments. This is necessary, for
5608 # example, in the case of _POSIX_SOURCE, which is predefined and required
5609 # on some systems where configure will not decide to define it.
5610 cat >>conftest.undefs <<\_ACEOF
5611 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5614 # Break up conftest.defines because some shells have a limit on the size
5615 # of here documents, and old seds have small limits too (100 cmds).
5616 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5617 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5618 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5619 echo ' :' >>$CONFIG_STATUS
5621 while grep . conftest.defines >/dev/null
5623 # Write a limited-size here document to $tmp/defines.sed.
5624 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5625 # Speed up: don't consider the non `#define' lines.
5626 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5627 # Work around the forget-to-reset-the-flag bug.
5628 echo 't clr' >>$CONFIG_STATUS
5629 echo ': clr' >>$CONFIG_STATUS
5630 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
5632 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5636 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
5637 rm -f conftest.defines
5638 mv conftest.
tail conftest.defines
5640 rm -f conftest.defines
5641 echo ' fi # grep' >>$CONFIG_STATUS
5642 echo >>$CONFIG_STATUS
5644 # Break up conftest.undefs because some shells have a limit on the size
5645 # of here documents, and old seds have small limits too (100 cmds).
5646 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5648 while grep . conftest.undefs
>/dev
/null
5650 # Write a limited-size here document to $tmp/undefs.sed.
5651 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5652 # Speed up: don't consider the non
`#undef'
5653 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5654 # Work around the forget-to-reset-the-flag bug.
5655 echo 't clr' >>$CONFIG_STATUS
5656 echo ': clr' >>$CONFIG_STATUS
5657 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5659 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5663 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5664 rm -f conftest.undefs
5665 mv conftest.tail conftest.undefs
5667 rm -f conftest.undefs
5669 cat >>$CONFIG_STATUS <<\_ACEOF
5670 # Let's still pretend it is `configure
' which instantiates (i.e., don't
5671 # use $as_me), people would be surprised to read:
5672 # /* config.h. Generated by config.status. */
5673 if test x
"$ac_file" = x-
; then
5674 echo "/* Generated by configure. */" >$tmp/config.h
5676 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5678 cat $tmp/in >>$tmp/config.h
5680 if test x
"$ac_file" != x-
; then
5681 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
5682 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5683 echo "$as_me: $ac_file is unchanged" >&6;}
5685 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5687 X"$ac_file" : 'X\(//\)[^/]' \| \
5688 X"$ac_file" : 'X\(//\)$' \| \
5689 X"$ac_file" : 'X\(/\)' \| \
5690 . : '\(.\)' 2>/dev/null ||
5692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5694 /^X\(\/\/\)$/{ s//\1/; q; }
5695 /^X\(\/\).*/{ s//\1/; q; }
5697 { if $as_mkdir_p; then
5702 while test ! -d "$as_dir"; do
5703 as_dirs
="$as_dir $as_dirs"
5704 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5706 X"$as_dir" : 'X\(//\)[^/]' \| \
5707 X"$as_dir" : 'X\(//\)$' \| \
5708 X"$as_dir" : 'X\(/\)' \| \
5709 . : '\(.\)' 2>/dev/null ||
5711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5713 /^X\(\/\/\)$/{ s//\1/; q; }
5714 /^X\(\/\).*/{ s//\1/; q; }
5717 test ! -n "$as_dirs" || mkdir
$as_dirs
5718 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5719 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5720 { (exit 1); exit 1; }; }; }
5723 mv $tmp/config.h
$ac_file
5731 cat >>$CONFIG_STATUS <<\_ACEOF
5734 # CONFIG_LINKS section.
5737 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
5738 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
5739 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5741 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
5742 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
5744 if test ! -r $srcdir/$ac_source; then
5745 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
5746 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
5747 { (exit 1); exit 1; }; }
5751 # Make relative symlinks.
5752 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
5753 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5754 X"$ac_dest" : 'X\(//\)[^/]' \| \
5755 X"$ac_dest" : 'X\(//\)$' \| \
5756 X"$ac_dest" : 'X\(/\)' \| \
5757 . : '\(.\)' 2>/dev/null ||
5759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5761 /^X\(\/\/\)$/{ s//\1/; q; }
5762 /^X\(\/\).*/{ s//\1/; q; }
5764 { if $as_mkdir_p; then
5765 mkdir
-p "$ac_dest_dir"
5767 as_dir
="$ac_dest_dir"
5769 while test ! -d "$as_dir"; do
5770 as_dirs
="$as_dir $as_dirs"
5771 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5773 X"$as_dir" : 'X\(//\)[^/]' \| \
5774 X"$as_dir" : 'X\(//\)$' \| \
5775 X"$as_dir" : 'X\(/\)' \| \
5776 . : '\(.\)' 2>/dev/null ||
5778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5780 /^X\(\/\/\)$/{ s//\1/; q; }
5781 /^X\(\/\).*/{ s//\1/; q; }
5784 test ! -n "$as_dirs" || mkdir
$as_dirs
5785 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
5786 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
5787 { (exit 1); exit 1; }; }; }
5791 if test "$ac_dest_dir" != .
; then
5792 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
5793 # A "../" for each directory in $ac_dir_suffix.
5794 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5796 ac_dir_suffix
= ac_top_builddir
=
5800 .
) # No --srcdir option. We are building in place.
5802 if test -z "$ac_top_builddir"; then
5805 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5807 [\\/]* | ?
:[\\/]* ) # Absolute path.
5808 ac_srcdir
=$srcdir$ac_dir_suffix;
5809 ac_top_srcdir
=$srcdir ;;
5811 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5812 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5815 # Do not use `cd foo && pwd` to compute absolute paths, because
5816 # the directories may not exist.
5818 .
) ac_abs_builddir
="$ac_dest_dir";;
5820 case "$ac_dest_dir" in
5821 .
) ac_abs_builddir
=`pwd`;;
5822 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
5823 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
5826 case $ac_abs_builddir in
5827 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5829 case ${ac_top_builddir}.
in
5830 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5831 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5832 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5835 case $ac_abs_builddir in
5836 .
) ac_abs_srcdir
=$ac_srcdir;;
5839 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5840 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5841 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5844 case $ac_abs_builddir in
5845 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5847 case $ac_top_srcdir in
5848 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5849 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5850 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5856 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
5857 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
5860 # Try a symlink, then a hard link, then a copy.
5861 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
5862 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
5863 cp -p $srcdir/$ac_source $ac_dest ||
5864 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
5865 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
5866 { (exit 1); exit 1; }; }
5869 cat >>$CONFIG_STATUS <<\_ACEOF
5872 # CONFIG_COMMANDS section.
5874 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
5875 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
5876 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5877 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
5878 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5879 X"$ac_dest" : 'X\(//\)[^/]' \| \
5880 X"$ac_dest" : 'X\(//\)$' \| \
5881 X"$ac_dest" : 'X\(/\)' \| \
5882 . : '\(.\)' 2>/dev/null ||
5884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5886 /^X\(\/\/\)$/{ s//\1/; q; }
5887 /^X\(\/\).*/{ s//\1/; q; }
5889 { if $as_mkdir_p; then
5894 while test ! -d "$as_dir"; do
5895 as_dirs
="$as_dir $as_dirs"
5896 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5898 X"$as_dir" : 'X\(//\)[^/]' \| \
5899 X"$as_dir" : 'X\(//\)$' \| \
5900 X"$as_dir" : 'X\(/\)' \| \
5901 . : '\(.\)' 2>/dev/null ||
5903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5905 /^X\(\/\/\)$/{ s//\1/; q; }
5906 /^X\(\/\).*/{ s//\1/; q; }
5909 test ! -n "$as_dirs" || mkdir
$as_dirs
5910 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5912 { (exit 1); exit 1; }; }; }
5916 if test "$ac_dir" != .
; then
5917 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5918 # A "../" for each directory in $ac_dir_suffix.
5919 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5921 ac_dir_suffix
= ac_top_builddir
=
5925 .
) # No --srcdir option. We are building in place.
5927 if test -z "$ac_top_builddir"; then
5930 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5932 [\\/]* | ?
:[\\/]* ) # Absolute path.
5933 ac_srcdir
=$srcdir$ac_dir_suffix;
5934 ac_top_srcdir
=$srcdir ;;
5936 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5937 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5940 # Do not use `cd foo && pwd` to compute absolute paths, because
5941 # the directories may not exist.
5943 .
) ac_abs_builddir
="$ac_dir";;
5946 .
) ac_abs_builddir
=`pwd`;;
5947 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5948 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5951 case $ac_abs_builddir in
5952 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5954 case ${ac_top_builddir}.
in
5955 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5956 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5957 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5960 case $ac_abs_builddir in
5961 .
) ac_abs_srcdir
=$ac_srcdir;;
5964 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5965 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5966 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5969 case $ac_abs_builddir in
5970 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5972 case $ac_top_srcdir in
5973 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5974 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5975 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5980 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5981 echo "$as_me: executing $ac_dest commands" >&6;}
5983 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
5984 rm -f Makesim1.tmp Makesim2.tmp Makefile
5985 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
5986 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
5987 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
5988 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
5989 <Makefile.sim
>Makefile
5990 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
5992 stamp-h
) echo > stamp-h
;;
5997 cat >>$CONFIG_STATUS <<\_ACEOF
5999 { (exit 0); exit 0; }
6001 chmod +x
$CONFIG_STATUS
6002 ac_clean_files
=$ac_clean_files_save
6005 # configure is writing to config.log, and then calls config.status.
6006 # config.status does its own redirection, appending to config.log.
6007 # Unfortunately, on DOS this fails, as config.log is still kept open
6008 # by configure, so config.status won't be able to write to it; its
6009 # output is simply discarded. So we exec the FD to /dev/null,
6010 # effectively closing config.log, so it can be properly (re)opened and
6011 # appended to by config.status. When coming back to configure, we
6012 # need to make the FD available again.
6013 if test "$no_create" != yes; then
6015 ac_config_status_args
=
6016 test "$silent" = yes &&
6017 ac_config_status_args
="$ac_config_status_args --quiet"
6019 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6021 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6022 # would make configure fail if this is the last instruction.
6023 $ac_cs_success ||
{ (exit 1); exit 1; }