2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile SIM_SUBTARGET sim_igen_flags sim_m16_flags sim_gen sim_multi_flags sim_multi_igen_configs sim_multi_src sim_multi_obj mips_extra_objs mips_igen_engine mips_extra_libs 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 --x-includes=DIR X include files are
in DIR
841 --x-libraries=DIR X library files are
in DIR
844 --build=BUILD configure
for building on BUILD
[guessed
]
845 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
846 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --disable-nls do not use Native Language Support
858 --enable-maintainer-mode Enable developer functionality.
859 --enable-sim-bswap Use Host specific BSWAP instruction.
860 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
861 --enable-sim-debug=opts Enable debugging flags
862 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
863 --enable-sim-trace=opts Enable tracing flags
864 --enable-sim-profile=opts Enable profiling flags
865 --enable-sim-inline=inlines Specify
which functions should be inlined.
866 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
867 --enable-sim-hostendian=end Specify
host byte endian orientation.
868 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
869 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings
if gcc is used
870 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
871 --enable-sim-endian=endian Specify target byte endian orientation.
872 --enable-sim-bitsize=N Specify target bitsize
(32 or
64).
873 --enable-sim-float Specify that the target processor has floating point hardware.
874 --enable-sim-smp=n Specify number of processors to configure
for (default
${default_sim_smp}).
875 --enable-sim-hardware=LIST Specify the hardware to be included
in the build.
878 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
879 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
880 --with-included-gettext use the GNU
gettext library included here
881 --with-x use the X Window System
883 Some influential environment variables
:
884 CC C compiler
command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
887 nonstandard directory
<lib dir
>
888 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
889 headers
in a nonstandard directory
<include dir
>
892 Use these variables to override the choices made by
`configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Do not use `cd foo
&& pwd` to compute absolute paths, because
930 # the directories may not exist.
932 .) ac_abs_builddir="$ac_dir";;
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1014 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1015 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1016 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1017 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1018 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1020 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1021 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1023 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1024 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1025 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1026 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1027 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1029 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_must_keep_next=false
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 -* ) ac_must_keep_next=true ;;
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close
' the trap.
1109 trap 'exit_status
=$?
1110 # Save into config.log some information that might help in debugging.
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1120 # The following way of writing the cache mishandles newlines in values,
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1143 for ac_var
in $ac_subst_vars
1145 eval ac_val
=$
`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -n "$ac_subst_files"; then
1157 for ac_var
in $ac_subst_files
1159 eval ac_val
=$
`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -s confdefs.h
; then
1172 sed "/^$/d" confdefs.h |
sort
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1179 rm -f core
*.core
&&
1180 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's
/^
/|
/' "$ac_site_file" >&5
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1255 # Check that the precious variables saved in the cache have kept the same
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1268 ac_cache_corrupted=: ;;
1270 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1277 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1302 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1309 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 ac_config_headers="$ac_config_headers config.h:config.in"
1333 # This file contains common code used by all simulators.
1335 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1336 # directory. It is intended to be invoked before any target specific stuff.
1337 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1338 # It is intended to be invoked last.
1340 # The simulator's configure.
in should
look like
:
1342 # dnl Process this file with autoconf to produce a configure script.
1343 # sinclude(../common/aclocal.m4)
1345 # AC_INIT(Makefile.in)
1349 # ... target specific stuff ...
1400 sim_inline
="-DDEFAULT_INLINE=0"
1437 # This file is derived from `gettext.m4'. The difference is that the
1438 # included macros assume Cygnus-style source and build trees.
1440 # Macro to add for using GNU gettext.
1441 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1443 # This file file be copied and used freely without restrictions. It can
1444 # be used in projects which are not available under the GNU Public License
1445 # but which still want to provide support for the GNU gettext functionality.
1446 # Please note that the actual code is *not* freely available.
1454 # Search path for a program which passes the given test.
1455 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1457 # This file file be copied and used freely without restrictions. It can
1458 # be used in projects which are not available under the GNU Public License
1459 # but which still want to provide support for the GNU gettext functionality.
1460 # Please note that the actual code is *not* freely available.
1466 # Check whether LC_MESSAGES is available in <locale.h>.
1467 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1469 # This file file be copied and used freely without restrictions. It can
1470 # be used in projects which are not available under the GNU Public License
1471 # but which still want to provide support for the GNU gettext functionality.
1472 # Please note that the actual code is *not* freely available.
1482 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1483 # it by inlining the macro's contents.
1484 # This file contains common code used by all simulators.
1486 # common.m4 invokes AC macros used by all simulators and by the common
1487 # directory. It is intended to be included before any target specific
1488 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1489 # the Makefile. It is intended to be invoked last.
1491 # The simulator's configure.in should look like:
1493 # dnl Process this file with autoconf to produce a configure script.
1495 # AC_INIT(Makefile.in)
1496 # AC_CONFIG_HEADER(config.h:config.in)
1498 # sinclude(../common/aclocal.m4)
1499 # sinclude(../common/common.m4)
1501 # ... target specific stuff ...
1504 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1505 if test -f $ac_dir/install-sh
; then
1507 ac_install_sh
="$ac_aux_dir/install-sh -c"
1509 elif test -f $ac_dir/install.sh
; then
1511 ac_install_sh
="$ac_aux_dir/install.sh -c"
1513 elif test -f $ac_dir/shtool
; then
1515 ac_install_sh
="$ac_aux_dir/shtool install -c"
1519 if test -z "$ac_aux_dir"; then
1520 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1521 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1522 { (exit 1); exit 1; }; }
1524 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1525 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1526 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1528 # Make sure we can run config.sub.
1529 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1530 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1531 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1532 { (exit 1); exit 1; }; }
1534 echo "$as_me:$LINENO: checking build system type" >&5
1535 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1536 if test "${ac_cv_build+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 ac_cv_build_alias
=$build_alias
1540 test -z "$ac_cv_build_alias" &&
1541 ac_cv_build_alias
=`$ac_config_guess`
1542 test -z "$ac_cv_build_alias" &&
1543 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1544 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1545 { (exit 1); exit 1; }; }
1546 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1547 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1548 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1549 { (exit 1); exit 1; }; }
1552 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1553 echo "${ECHO_T}$ac_cv_build" >&6
1555 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1556 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1557 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1560 echo "$as_me:$LINENO: checking host system type" >&5
1561 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1562 if test "${ac_cv_host+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 ac_cv_host_alias
=$host_alias
1566 test -z "$ac_cv_host_alias" &&
1567 ac_cv_host_alias
=$ac_cv_build_alias
1568 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1569 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1570 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1571 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1575 echo "${ECHO_T}$ac_cv_host" >&6
1577 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1578 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1579 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582 echo "$as_me:$LINENO: checking target system type" >&5
1583 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1584 if test "${ac_cv_target+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 ac_cv_target_alias
=$target_alias
1588 test "x$ac_cv_target_alias" = "x" &&
1589 ac_cv_target_alias
=$ac_cv_host_alias
1590 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1592 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1596 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1597 echo "${ECHO_T}$ac_cv_target" >&6
1598 target
=$ac_cv_target
1599 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604 # The aliases save the names the user supplied, while $host etc.
1605 # will get canonicalized.
1606 test -n "$target_alias" &&
1607 test "$program_prefix$program_suffix$program_transform_name" = \
1609 program_prefix
=${target_alias}-
1610 test "$program_prefix" != NONE
&&
1611 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1612 # Use a double $ so make ignores it.
1613 test "$program_suffix" != NONE
&&
1614 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1615 # Double any \ or $. echo might interpret backslashes.
1616 # By default was `s,x,x', remove it if useless.
1617 cat <<\_ACEOF
>conftest.
sed
1618 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1620 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1624 ac_cpp
='$CPP $CPPFLAGS'
1625 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1626 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1627 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1628 if test -n "$ac_tool_prefix"; then
1629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1630 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 if test -n "$CC"; then
1637 ac_cv_prog_CC
="$CC" # Let the user override the test.
1639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1643 test -z "$as_dir" && as_dir
=.
1644 for ac_exec_ext
in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 if test -n "$CC"; then
1657 echo "$as_me:$LINENO: result: $CC" >&5
1658 echo "${ECHO_T}$CC" >&6
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1665 if test -z "$ac_cv_prog_CC"; then
1667 # Extract the first word of "gcc", so it can be a program name with args.
1668 set dummy gcc
; ac_word
=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$ac_ct_CC"; then
1675 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir
=.
1682 for ac_exec_ext
in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_ac_ct_CC
="gcc"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1694 if test -n "$ac_ct_CC"; then
1695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1696 echo "${ECHO_T}$ac_ct_CC" >&6
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1707 if test -z "$CC"; then
1708 if test -n "$ac_tool_prefix"; then
1709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1710 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 if test -n "$CC"; then
1717 ac_cv_prog_CC
="$CC" # Let the user override the test.
1719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir
=.
1724 for ac_exec_ext
in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 if test -n "$CC"; then
1737 echo "$as_me:$LINENO: result: $CC" >&5
1738 echo "${ECHO_T}$CC" >&6
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1745 if test -z "$ac_cv_prog_CC"; then
1747 # Extract the first word of "cc", so it can be a program name with args.
1748 set dummy cc
; ac_word
=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 if test -n "$ac_ct_CC"; then
1755 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1761 test -z "$as_dir" && as_dir
=.
1762 for ac_exec_ext
in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_ac_ct_CC
="cc"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1788 if test -z "$CC"; then
1789 # Extract the first word of "cc", so it can be a program name with args.
1790 set dummy cc
; ac_word
=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC
="$CC" # Let the user override the test.
1800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1804 test -z "$as_dir" && as_dir
=.
1805 for ac_exec_ext
in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1808 ac_prog_rejected
=yes
1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 if test $ac_prog_rejected = yes; then
1819 # We found a bogon in the path, so make sure we never use it.
1820 set dummy
$ac_cv_prog_CC
1822 if test $# != 0; then
1823 # We chose a different compiler from the bogus one.
1824 # However, it has the same basename, so the bogon will be chosen
1825 # first if we set CC to just the basename; use the full file name.
1827 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1833 if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1842 if test -z "$CC"; then
1843 if test -n "$ac_tool_prefix"; then
1846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1847 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_CC+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC
="$CC" # Let the user override the test.
1856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir
=.
1861 for ac_exec_ext
in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 if test -n "$CC"; then
1874 echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1881 test -n "$CC" && break
1884 if test -z "$CC"; then
1888 # Extract the first word of "$ac_prog", so it can be a program name with args.
1889 set dummy
$ac_prog; ac_word
=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir
=.
1903 for ac_exec_ext
in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_CC
="$ac_prog"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1915 if test -n "$ac_ct_CC"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1917 echo "${ECHO_T}$ac_ct_CC" >&6
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1923 test -n "$ac_ct_CC" && break
1932 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: no acceptable C compiler found in \$PATH
1935 See \`config.log' for more details." >&2;}
1936 { (exit 1); exit 1; }; }
1938 # Provide some information about the compiler.
1939 echo "$as_me:$LINENO:" \
1940 "checking for C compiler version" >&5
1941 ac_compiler
=`set X $ac_compile; echo $2`
1942 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1943 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }
1947 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1948 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }
1952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1953 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }
1958 cat >conftest.
$ac_ext <<_ACEOF
1961 cat confdefs.h
>>conftest.
$ac_ext
1962 cat >>conftest.
$ac_ext <<_ACEOF
1963 /* end confdefs.h. */
1973 ac_clean_files_save
=$ac_clean_files
1974 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1975 # Try to create an executable without -o first, disregard a.out.
1976 # It will help us diagnose broken compilers, and finding out an intuition
1978 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1979 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1980 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1981 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1982 (eval $ac_link_default) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; then
1986 # Find the output, starting from the most likely. This scheme is
1987 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1990 # Be careful to initialize this variable, since it used to be cached.
1991 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1993 # b.out is created by i960 compilers.
1994 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1996 test -f "$ac_file" ||
continue
1998 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2001 # This is the source file.
2004 # We found the default executable, but exeext='' is most
2008 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2009 # FIXME: I believe we export ac_cv_exeext for Libtool,
2010 # but it would be cool to find out if it's true. Does anybody
2011 # maintain Libtool? --akim.
2019 echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.
$ac_ext >&5
2022 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2023 See \`config.log' for more details." >&5
2024 echo "$as_me: error: C compiler cannot create executables
2025 See \`config.log' for more details." >&2;}
2026 { (exit 77); exit 77; }; }
2029 ac_exeext
=$ac_cv_exeext
2030 echo "$as_me:$LINENO: result: $ac_file" >&5
2031 echo "${ECHO_T}$ac_file" >&6
2033 # Check the compiler produces executables we can run. If not, either
2034 # the compiler is broken, or we cross compile.
2035 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2036 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2037 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2038 # If not cross compiling, check that we can run a simple program.
2039 if test "$cross_compiling" != yes; then
2040 if { ac_try
='./$ac_file'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 if test "$cross_compiling" = maybe
; then
2051 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2052 If you meant to cross compile, use \`--host'.
2053 See \`config.log' for more details." >&5
2054 echo "$as_me: error: cannot run C compiled programs.
2055 If you meant to cross compile, use \`--host'.
2056 See \`config.log' for more details." >&2;}
2057 { (exit 1); exit 1; }; }
2061 echo "$as_me:$LINENO: result: yes" >&5
2062 echo "${ECHO_T}yes" >&6
2064 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2065 ac_clean_files
=$ac_clean_files_save
2066 # Check the compiler produces executables we can run. If not, either
2067 # the compiler is broken, or we cross compile.
2068 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2069 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2070 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2071 echo "${ECHO_T}$cross_compiling" >&6
2073 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2074 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2076 (eval $ac_link) 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }; then
2080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2081 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2082 # work properly (i.e., refer to `conftest.exe'), while it won't with
2084 for ac_file
in conftest.exe conftest conftest.
*; do
2085 test -f "$ac_file" ||
continue
2087 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2088 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2095 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2098 See \`config.log' for more details." >&2;}
2099 { (exit 1); exit 1; }; }
2102 rm -f conftest
$ac_cv_exeext
2103 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2104 echo "${ECHO_T}$ac_cv_exeext" >&6
2106 rm -f conftest.
$ac_ext
2107 EXEEXT
=$ac_cv_exeext
2109 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2110 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2111 if test "${ac_cv_objext+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 cat >conftest.
$ac_ext <<_ACEOF
2117 cat confdefs.h
>>conftest.
$ac_ext
2118 cat >>conftest.
$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2129 rm -f conftest.o conftest.obj
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; then
2135 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2137 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2138 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2143 echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.
$ac_ext >&5
2146 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2149 See \`config.log' for more details." >&2;}
2150 { (exit 1); exit 1; }; }
2153 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2155 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2156 echo "${ECHO_T}$ac_cv_objext" >&6
2157 OBJEXT
=$ac_cv_objext
2159 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2160 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2161 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 cat >conftest.
$ac_ext <<_ACEOF
2167 cat confdefs.h
>>conftest.
$ac_ext
2168 cat >>conftest.
$ac_ext <<_ACEOF
2169 /* end confdefs.h. */
2182 rm -f conftest.
$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>conftest.er1
2186 grep -v '^ *+' conftest.er1
>conftest.err
2188 cat conftest.err
>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; } &&
2197 { ac_try
='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.
$ac_ext >&5
2210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2211 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2214 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2215 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2216 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2217 ac_test_CFLAGS
=${CFLAGS+set}
2218 ac_save_CFLAGS
=$CFLAGS
2220 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2221 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2222 if test "${ac_cv_prog_cc_g+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 cat >conftest.
$ac_ext <<_ACEOF
2228 cat confdefs.h
>>conftest.
$ac_ext
2229 cat >>conftest.
$ac_ext <<_ACEOF
2230 /* end confdefs.h. */
2240 rm -f conftest.
$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2244 grep -v '^ *+' conftest.er1
>conftest.err
2246 cat conftest.err
>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; } &&
2255 { ac_try
='test -s conftest.$ac_objext'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2263 echo "$as_me: failed program was:" >&5
2264 sed 's/^/| /' conftest.
$ac_ext >&5
2268 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2270 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2271 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2272 if test "$ac_test_CFLAGS" = set; then
2273 CFLAGS
=$ac_save_CFLAGS
2274 elif test $ac_cv_prog_cc_g = yes; then
2275 if test "$GCC" = yes; then
2281 if test "$GCC" = yes; then
2287 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2288 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2289 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 ac_cv_prog_cc_stdc
=no
2294 cat >conftest.
$ac_ext <<_ACEOF
2297 cat confdefs.h
>>conftest.
$ac_ext
2298 cat >>conftest.
$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2302 #include <sys/types.h>
2303 #include <sys/stat.h>
2304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2305 struct buf { int x; };
2306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2307 static char *e (p, i)
2313 static char *f (char * (*g) (char **, int), char **p, ...)
2318 s = g (p, va_arg (v,int));
2323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2324 function prototypes and stuff, but not '\xHH' hex character constants.
2325 These don't provoke an error unfortunately, instead are silently treated
2326 as 'x'. The following induces an error, until -std1 is added to get
2327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2328 array size at least. It's necessary to write '\x00'==0 to get something
2329 that's true only with -std1. */
2330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2332 int test (int i, double x);
2333 struct s1 {int (*f) (int a);};
2334 struct s2 {int (*f) (double a);};
2335 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2341 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2346 # Don't try gcc -ansi; that turns off useful extensions and
2347 # breaks some systems' header files.
2348 # AIX -qlanglvl=ansi
2349 # Ultrix and OSF/1 -std1
2350 # HP-UX 10.20 and later -Ae
2351 # HP-UX older versions -Aa -D_HPUX_SOURCE
2352 # SVR4 -Xc -D__EXTENSIONS__
2353 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2355 CC
="$ac_save_CC $ac_arg"
2356 rm -f conftest.
$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>conftest.er1
2360 grep -v '^ *+' conftest.er1
>conftest.err
2362 cat conftest.err
>&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } &&
2365 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try
='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2377 ac_cv_prog_cc_stdc
=$ac_arg
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.
$ac_ext >&5
2384 rm -f conftest.err conftest.
$ac_objext
2386 rm -f conftest.
$ac_ext conftest.
$ac_objext
2391 case "x$ac_cv_prog_cc_stdc" in
2393 echo "$as_me:$LINENO: result: none needed" >&5
2394 echo "${ECHO_T}none needed" >&6 ;;
2396 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2397 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2398 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2401 # Some people use a C++ compiler to compile C. Since we use `exit',
2402 # in C++ we need to declare it. In case someone uses the same compiler
2403 # for both compiling C and C++ we need to have the C++ compiler decide
2404 # the declaration of exit, since it's the most demanding environment.
2405 cat >conftest.
$ac_ext <<_ACEOF
2410 rm -f conftest.
$ac_objext
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>conftest.er1
2414 grep -v '^ *+' conftest.er1
>conftest.err
2416 cat conftest.err
>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try
='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 for ac_declaration
in \
2433 'extern "C" void std::exit (int) throw (); using std::exit;' \
2434 'extern "C" void std::exit (int); using std::exit;' \
2435 'extern "C" void exit (int) throw ();' \
2436 'extern "C" void exit (int);' \
2439 cat >conftest.
$ac_ext <<_ACEOF
2442 cat confdefs.h
>>conftest.
$ac_ext
2443 cat >>conftest.
$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2455 rm -f conftest.
$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2459 grep -v '^ *+' conftest.er1
>conftest.err
2461 cat conftest.err
>&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try
='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.
$ac_ext >&5
2483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2484 cat >conftest.
$ac_ext <<_ACEOF
2487 cat confdefs.h
>>conftest.
$ac_ext
2488 cat >>conftest.
$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2499 rm -f conftest.
$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2503 grep -v '^ *+' conftest.er1
>conftest.err
2505 cat conftest.err
>&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try
='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.
$ac_ext >&5
2526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2529 if test -n "$ac_declaration"; then
2530 echo '#ifdef __cplusplus' >>confdefs.h
2531 echo $ac_declaration >>confdefs.h
2532 echo '#endif' >>confdefs.h
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.
$ac_ext >&5
2540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2542 ac_cpp
='$CPP $CPPFLAGS'
2543 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2547 # Find a good install program. We prefer a C program (faster),
2548 # so one script is as good as another. But avoid the broken or
2549 # incompatible versions:
2550 # SysV /etc/install, /usr/sbin/install
2551 # SunOS /usr/etc/install
2552 # IRIX /sbin/install
2554 # AmigaOS /C/install, which installs bootblocks on floppy discs
2555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2558 # OS/2's system install, which has a completely different semantic
2559 # ./install, which can be erroneously created by make from ./install.sh.
2560 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2561 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2562 if test -z "$INSTALL"; then
2563 if test "${ac_cv_path_install+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir
=.
2571 # Account for people who put trailing slashes in PATH elements.
2573 .
/ | .
// |
/cC
/* | \
2574 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2575 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2578 # OSF1 and SCO ODT 3.0 have their own names for install.
2579 # Don't use installbsd from OSF since it installs stuff as root
2581 for ac_prog
in ginstall scoinst
install; do
2582 for ac_exec_ext
in '' $ac_executable_extensions; do
2583 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2584 if test $ac_prog = install &&
2585 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2586 # AIX install. It has an incompatible calling convention.
2588 elif test $ac_prog = install &&
2589 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2590 # program-specific install script used by HP pwplus--don't use.
2593 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2605 if test "${ac_cv_path_install+set}" = set; then
2606 INSTALL
=$ac_cv_path_install
2608 # As a last resort, use the slow shell script. We don't cache a
2609 # path for INSTALL within a source directory, because that will
2610 # break other packages using the cache if that directory is
2611 # removed, or if the path is relative.
2612 INSTALL
=$ac_install_sh
2615 echo "$as_me:$LINENO: result: $INSTALL" >&5
2616 echo "${ECHO_T}$INSTALL" >&6
2618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2619 # It thinks the first close brace ends the variable substitution.
2620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2624 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2627 # Put a plausible default for CC_FOR_BUILD in Makefile.
2628 if test "x$cross_compiling" = "xno"; then
2629 CC_FOR_BUILD
='$(CC)'
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2641 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2642 echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2644 if test "${ac_cv_prog_RANLIB+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 if test -n "$RANLIB"; then
2648 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir
=.
2655 for ac_exec_ext
in '' $ac_executable_extensions; do
2656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 RANLIB
=$ac_cv_prog_RANLIB
2667 if test -n "$RANLIB"; then
2668 echo "$as_me:$LINENO: result: $RANLIB" >&5
2669 echo "${ECHO_T}$RANLIB" >&6
2671 echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6
2676 if test -z "$ac_cv_prog_RANLIB"; then
2677 ac_ct_RANLIB
=$RANLIB
2678 # Extract the first word of "ranlib", so it can be a program name with args.
2679 set dummy ranlib
; ac_word
=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$ac_ct_RANLIB"; then
2686 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir
=.
2693 for ac_exec_ext
in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2705 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2706 if test -n "$ac_ct_RANLIB"; then
2707 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2708 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2710 echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6
2714 RANLIB
=$ac_ct_RANLIB
2716 RANLIB
="$ac_cv_prog_RANLIB"
2721 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2722 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2723 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2724 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 cat >conftest.
make <<\_ACEOF
2729 @
echo 'ac_maketemp="$(MAKE)"'
2731 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2732 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2733 if test -n "$ac_maketemp"; then
2734 eval ac_cv_prog_make_
${ac_make}_set
=yes
2736 eval ac_cv_prog_make_
${ac_make}_set
=no
2740 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2741 echo "$as_me:$LINENO: result: yes" >&5
2742 echo "${ECHO_T}yes" >&6
2745 echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6
2747 SET_MAKE
="MAKE=${MAKE-make}"
2751 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2752 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2753 if test "${ac_cv_search_strerror+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 ac_func_search_save_LIBS
=$LIBS
2757 ac_cv_search_strerror
=no
2758 cat >conftest.
$ac_ext <<_ACEOF
2761 cat confdefs.h
>>conftest.
$ac_ext
2762 cat >>conftest.
$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2765 /* Override any gcc2 internal prototype to avoid an error. */
2769 /* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2780 rm -f conftest.
$ac_objext conftest
$ac_exeext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2782 (eval $ac_link) 2>conftest.er1
2784 grep -v '^ *+' conftest.er1
>conftest.err
2786 cat conftest.err
>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try
='test -s conftest$ac_exeext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 ac_cv_search_strerror
="none required"
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.
$ac_ext >&5
2807 rm -f conftest.err conftest.
$ac_objext \
2808 conftest
$ac_exeext conftest.
$ac_ext
2809 if test "$ac_cv_search_strerror" = no
; then
2810 for ac_lib
in cposix
; do
2811 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2812 cat >conftest.
$ac_ext <<_ACEOF
2815 cat confdefs.h
>>conftest.
$ac_ext
2816 cat >>conftest.
$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2819 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2834 rm -f conftest.
$ac_objext conftest
$ac_exeext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2836 (eval $ac_link) 2>conftest.er1
2838 grep -v '^ *+' conftest.er1
>conftest.err
2840 cat conftest.err
>&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try
='test -s conftest$ac_exeext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 ac_cv_search_strerror
="-l$ac_lib"
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.
$ac_ext >&5
2862 rm -f conftest.err conftest.
$ac_objext \
2863 conftest
$ac_exeext conftest.
$ac_ext
2866 LIBS
=$ac_func_search_save_LIBS
2868 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2869 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2870 if test "$ac_cv_search_strerror" != no
; then
2871 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2876 ac_cpp
='$CPP $CPPFLAGS'
2877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2886 if test -z "$CPP"; then
2887 if test "${ac_cv_prog_CPP+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 # Double quotes because CPP needs to be expanded
2891 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2894 for ac_c_preproc_warn_flag
in '' yes
2896 # Use a header file that comes with gcc, so configuring glibc
2897 # with a fresh cross-compiler works.
2898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2899 # <limits.h> exists even on freestanding compilers.
2900 # On the NeXT, cc -E runs the code through the compiler's parser,
2901 # not just through cpp. "Syntax error" is here to catch this case.
2902 cat >conftest.
$ac_ext <<_ACEOF
2905 cat confdefs.h
>>conftest.
$ac_ext
2906 cat >>conftest.
$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2909 # include <limits.h>
2911 # include <assert.h>
2915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2916 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2918 grep -v '^ *+' conftest.er1
>conftest.err
2920 cat conftest.err
>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } >/dev
/null
; then
2923 if test -s conftest.err
; then
2924 ac_cpp_err
=$ac_c_preproc_warn_flag
2925 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2932 if test -z "$ac_cpp_err"; then
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.
$ac_ext >&5
2938 # Broken: fails on valid input.
2941 rm -f conftest.err conftest.
$ac_ext
2943 # OK, works on sane cases. Now check whether non-existent headers
2944 # can be detected and how.
2945 cat >conftest.
$ac_ext <<_ACEOF
2948 cat confdefs.h
>>conftest.
$ac_ext
2949 cat >>conftest.
$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951 #include <ac_nonexistent.h>
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2956 grep -v '^ *+' conftest.er1
>conftest.err
2958 cat conftest.err
>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev
/null
; then
2961 if test -s conftest.err
; then
2962 ac_cpp_err
=$ac_c_preproc_warn_flag
2963 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2970 if test -z "$ac_cpp_err"; then
2971 # Broken: success on invalid input.
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.
$ac_ext >&5
2977 # Passes both tests.
2981 rm -f conftest.err conftest.
$ac_ext
2984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2985 rm -f conftest.err conftest.
$ac_ext
2986 if $ac_preproc_ok; then
2998 echo "$as_me:$LINENO: result: $CPP" >&5
2999 echo "${ECHO_T}$CPP" >&6
3001 for ac_c_preproc_warn_flag
in '' yes
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
3005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
3007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.
$ac_ext <<_ACEOF
3012 cat confdefs.h
>>conftest.
$ac_ext
3013 cat >>conftest.
$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3016 # include <limits.h>
3018 # include <assert.h>
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1
>conftest.err
3027 cat conftest.err
>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev
/null
; then
3030 if test -s conftest.err
; then
3031 ac_cpp_err
=$ac_c_preproc_warn_flag
3032 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3039 if test -z "$ac_cpp_err"; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.
$ac_ext >&5
3045 # Broken: fails on valid input.
3048 rm -f conftest.err conftest.
$ac_ext
3050 # OK, works on sane cases. Now check whether non-existent headers
3051 # can be detected and how.
3052 cat >conftest.
$ac_ext <<_ACEOF
3055 cat confdefs.h
>>conftest.
$ac_ext
3056 cat >>conftest.
$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058 #include <ac_nonexistent.h>
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3063 grep -v '^ *+' conftest.er1
>conftest.err
3065 cat conftest.err
>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev
/null
; then
3068 if test -s conftest.err
; then
3069 ac_cpp_err
=$ac_c_preproc_warn_flag
3070 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3077 if test -z "$ac_cpp_err"; then
3078 # Broken: success on invalid input.
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3084 # Passes both tests.
3088 rm -f conftest.err conftest.
$ac_ext
3091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092 rm -f conftest.err conftest.
$ac_ext
3093 if $ac_preproc_ok; then
3096 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3104 ac_cpp
='$CPP $CPPFLAGS'
3105 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3110 echo "$as_me:$LINENO: checking for egrep" >&5
3111 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3112 if test "${ac_cv_prog_egrep+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3116 then ac_cv_prog_egrep
='grep -E'
3117 else ac_cv_prog_egrep
='egrep'
3120 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3121 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3122 EGREP
=$ac_cv_prog_egrep
3125 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3126 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3127 if test "${ac_cv_header_stdc+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 cat >conftest.
$ac_ext <<_ACEOF
3133 cat confdefs.h
>>conftest.
$ac_ext
3134 cat >>conftest.
$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3149 rm -f conftest.
$ac_objext
3150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3151 (eval $ac_compile) 2>conftest.er1
3153 grep -v '^ *+' conftest.er1
>conftest.err
3155 cat conftest.err
>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; } &&
3164 { ac_try
='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_header_stdc
=yes
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.
$ac_ext >&5
3175 ac_cv_header_stdc
=no
3177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3179 if test $ac_cv_header_stdc = yes; then
3180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3181 cat >conftest.
$ac_ext <<_ACEOF
3184 cat confdefs.h
>>conftest.
$ac_ext
3185 cat >>conftest.
$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3191 $EGREP "memchr" >/dev
/null
2>&1; then
3194 ac_cv_header_stdc
=no
3200 if test $ac_cv_header_stdc = yes; then
3201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3202 cat >conftest.
$ac_ext <<_ACEOF
3205 cat confdefs.h
>>conftest.
$ac_ext
3206 cat >>conftest.
$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212 $EGREP "free" >/dev
/null
2>&1; then
3215 ac_cv_header_stdc
=no
3221 if test $ac_cv_header_stdc = yes; then
3222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3223 if test "$cross_compiling" = yes; then
3226 cat >conftest.
$ac_ext <<_ACEOF
3229 cat confdefs.h
>>conftest.
$ac_ext
3230 cat >>conftest.
$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3233 #if ((' ' & 0x0FF) == 0x020)
3234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3237 # define ISLOWER(c) \
3238 (('a' <= (c) && (c) <= 'i') \
3239 || ('j' <= (c) && (c) <= 'r') \
3240 || ('s' <= (c) && (c) <= 'z'))
3241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3249 for (i = 0; i < 256; i++)
3250 if (XOR (islower (i), ISLOWER (i))
3251 || toupper (i) != TOUPPER (i))
3256 rm -f conftest
$ac_exeext
3257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3258 (eval $ac_link) 2>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
3269 echo "$as_me: program exited with status $ac_status" >&5
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.
$ac_ext >&5
3274 ac_cv_header_stdc
=no
3276 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3281 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3282 if test $ac_cv_header_stdc = yes; then
3284 cat >>confdefs.h
<<\_ACEOF
3285 #define STDC_HEADERS 1
3290 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3291 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3292 if test "${ac_cv_c_const+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 cat >conftest.
$ac_ext <<_ACEOF
3298 cat confdefs.h
>>conftest.
$ac_ext
3299 cat >>conftest.
$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3305 /* FIXME: Include the comments suggested by Paul. */
3307 /* Ultrix mips cc rejects this. */
3308 typedef int charset[2];
3310 /* SunOS 4.1.1 cc rejects this. */
3311 char const *const *ccp;
3313 /* NEC SVR4.0.2 mips cc rejects this. */
3314 struct point {int x, y;};
3315 static struct point const zero = {0,0};
3316 /* AIX XL C 1.02.0.0 rejects this.
3317 It does not let you subtract one const X* pointer from another in
3318 an arm of an if-expression whose if-part is not a constant
3320 const char *g = "string";
3321 ccp = &g + (g ? g-g : 0);
3322 /* HPUX 7.0 cc rejects these. */
3325 ccp = (char const *const *) p;
3326 { /* SCO 3.2v4 cc rejects this. */
3328 char const *s = 0 ? (char *) 0 : (char const *) 0;
3332 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3334 const int *foo = &x[0];
3337 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3338 typedef const int *iptr;
3342 { /* AIX XL C 1.02.0.0 rejects this saying
3343 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3344 struct s { int j; const int *ap[3]; };
3345 struct s *b; b->j = 5;
3347 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3356 rm -f conftest.
$ac_objext
3357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3358 (eval $ac_compile) 2>conftest.er1
3360 grep -v '^ *+' conftest.er1
>conftest.err
3362 cat conftest.err
>&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } &&
3365 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try
='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.
$ac_ext >&5
3384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3386 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3387 echo "${ECHO_T}$ac_cv_c_const" >&6
3388 if test $ac_cv_c_const = no
; then
3390 cat >>confdefs.h
<<\_ACEOF
3396 echo "$as_me:$LINENO: checking for inline" >&5
3397 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3398 if test "${ac_cv_c_inline+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 for ac_kw
in inline __inline__ __inline
; do
3403 cat >conftest.
$ac_ext <<_ACEOF
3406 cat confdefs.h
>>conftest.
$ac_ext
3407 cat >>conftest.
$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3411 static $ac_kw foo_t static_foo () {return 0; }
3412 $ac_kw foo_t foo () {return 0; }
3416 rm -f conftest.
$ac_objext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>conftest.er1
3420 grep -v '^ *+' conftest.er1
>conftest.err
3422 cat conftest.err
>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; } &&
3431 { ac_try
='test -s conftest.$ac_objext'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 ac_cv_c_inline
=$ac_kw; break
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.
$ac_ext >&5
3443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3447 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3448 echo "${ECHO_T}$ac_cv_c_inline" >&6
3451 case $ac_cv_c_inline in
3454 case $ac_cv_c_inline in
3456 *) ac_val
=$ac_cv_c_inline;;
3458 cat >>confdefs.h
<<_ACEOF
3460 #define inline $ac_val
3466 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3476 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3477 inttypes.h stdint.h unistd.h
3479 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3480 echo "$as_me:$LINENO: checking for $ac_header" >&5
3481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 cat >conftest.
$ac_ext <<_ACEOF
3488 cat confdefs.h
>>conftest.
$ac_ext
3489 cat >>conftest.
$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491 $ac_includes_default
3493 #include <$ac_header>
3495 rm -f conftest.
$ac_objext
3496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3497 (eval $ac_compile) 2>conftest.er1
3499 grep -v '^ *+' conftest.er1
>conftest.err
3501 cat conftest.err
>&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try
='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 eval "$as_ac_Header=yes"
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.
$ac_ext >&5
3521 eval "$as_ac_Header=no"
3523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3528 cat >>confdefs.h
<<_ACEOF
3529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3537 echo "$as_me:$LINENO: checking for off_t" >&5
3538 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3539 if test "${ac_cv_type_off_t+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 cat >conftest.
$ac_ext <<_ACEOF
3545 cat confdefs.h
>>conftest.
$ac_ext
3546 cat >>conftest.
$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 $ac_includes_default
3560 rm -f conftest.
$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3564 grep -v '^ *+' conftest.er1
>conftest.err
3566 cat conftest.err
>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try
='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 ac_cv_type_off_t
=yes
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.
$ac_ext >&5
3588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3590 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3591 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3592 if test $ac_cv_type_off_t = yes; then
3596 cat >>confdefs.h
<<_ACEOF
3602 echo "$as_me:$LINENO: checking for size_t" >&5
3603 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3604 if test "${ac_cv_type_size_t+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 cat >conftest.
$ac_ext <<_ACEOF
3610 cat confdefs.h
>>conftest.
$ac_ext
3611 cat >>conftest.
$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613 $ac_includes_default
3619 if (sizeof (size_t))
3625 rm -f conftest.
$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>conftest.er1
3629 grep -v '^ *+' conftest.er1
>conftest.err
3631 cat conftest.err
>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; } &&
3640 { ac_try
='test -s conftest.$ac_objext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_cv_type_size_t
=yes
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.
$ac_ext >&5
3651 ac_cv_type_size_t
=no
3653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3655 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3656 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3657 if test $ac_cv_type_size_t = yes; then
3661 cat >>confdefs.h
<<_ACEOF
3662 #define size_t unsigned
3667 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3668 # for constant arguments. Useless!
3669 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3670 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3671 if test "${ac_cv_working_alloca_h+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 cat >conftest.
$ac_ext <<_ACEOF
3677 cat confdefs.h
>>conftest.
$ac_ext
3678 cat >>conftest.
$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3684 char *p = (char *) alloca (2 * sizeof (int));
3689 rm -f conftest.
$ac_objext conftest
$ac_exeext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3691 (eval $ac_link) 2>conftest.er1
3693 grep -v '^ *+' conftest.er1
>conftest.err
3695 cat conftest.err
>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; } &&
3704 { ac_try
='test -s conftest$ac_exeext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_working_alloca_h
=yes
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.
$ac_ext >&5
3715 ac_cv_working_alloca_h
=no
3717 rm -f conftest.err conftest.
$ac_objext \
3718 conftest
$ac_exeext conftest.
$ac_ext
3720 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3721 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3722 if test $ac_cv_working_alloca_h = yes; then
3724 cat >>confdefs.h
<<\_ACEOF
3725 #define HAVE_ALLOCA_H 1
3730 echo "$as_me:$LINENO: checking for alloca" >&5
3731 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3732 if test "${ac_cv_func_alloca_works+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 cat >conftest.
$ac_ext <<_ACEOF
3738 cat confdefs.h
>>conftest.
$ac_ext
3739 cat >>conftest.
$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3742 # define alloca __builtin_alloca
3745 # include <malloc.h>
3746 # define alloca _alloca
3749 # include <alloca.h>
3754 # ifndef alloca /* predefined by HP cc +Olibcalls */
3765 char *p = (char *) alloca (1);
3770 rm -f conftest.
$ac_objext conftest
$ac_exeext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3772 (eval $ac_link) 2>conftest.er1
3774 grep -v '^ *+' conftest.er1
>conftest.err
3776 cat conftest.err
>&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; } &&
3785 { ac_try
='test -s conftest$ac_exeext'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3791 ac_cv_func_alloca_works
=yes
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.
$ac_ext >&5
3796 ac_cv_func_alloca_works
=no
3798 rm -f conftest.err conftest.
$ac_objext \
3799 conftest
$ac_exeext conftest.
$ac_ext
3801 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3802 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3804 if test $ac_cv_func_alloca_works = yes; then
3806 cat >>confdefs.h
<<\_ACEOF
3807 #define HAVE_ALLOCA 1
3811 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3812 # that cause trouble. Some versions do not even contain alloca or
3813 # contain a buggy version. If you still want to use their alloca,
3814 # use ar to extract alloca.o from them instead of compiling alloca.c.
3816 ALLOCA
=alloca.
$ac_objext
3818 cat >>confdefs.h
<<\_ACEOF
3823 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3824 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3825 if test "${ac_cv_os_cray+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 cat >conftest.
$ac_ext <<_ACEOF
3831 cat confdefs.h
>>conftest.
$ac_ext
3832 cat >>conftest.
$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 #if defined(CRAY) && ! defined(CRAY2)
3841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3842 $EGREP "webecray" >/dev
/null
2>&1; then
3850 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3851 echo "${ECHO_T}$ac_cv_os_cray" >&6
3852 if test $ac_cv_os_cray = yes; then
3853 for ac_func
in _getb67 GETB67 getb67
; do
3854 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3855 echo "$as_me:$LINENO: checking for $ac_func" >&5
3856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3857 if eval "test \"\${$as_ac_var+set}\" = set"; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 cat >conftest.
$ac_ext <<_ACEOF
3863 cat confdefs.h
>>conftest.
$ac_ext
3864 cat >>conftest.
$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3868 #define $ac_func innocuous_$ac_func
3870 /* System header to define __stub macros and hopefully few prototypes,
3871 which can conflict with char $ac_func (); below.
3872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3873 <limits.h> exists even on freestanding compilers. */
3876 # include <limits.h>
3878 # include <assert.h>
3883 /* Override any gcc2 internal prototype to avoid an error. */
3888 /* We use char because int might match the return type of a gcc2
3889 builtin and then its argument prototype would still apply. */
3891 /* The GNU C library defines this for functions which it implements
3892 to always fail with ENOSYS. Some functions are actually named
3893 something starting with __ and the normal name is an alias. */
3894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3897 char (*f) () = $ac_func;
3906 return f != $ac_func;
3911 rm -f conftest.
$ac_objext conftest
$ac_exeext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913 (eval $ac_link) 2>conftest.er1
3915 grep -v '^ *+' conftest.er1
>conftest.err
3917 cat conftest.err
>&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; } &&
3926 { ac_try
='test -s conftest$ac_exeext'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3932 eval "$as_ac_var=yes"
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.
$ac_ext >&5
3937 eval "$as_ac_var=no"
3939 rm -f conftest.err conftest.
$ac_objext \
3940 conftest
$ac_exeext conftest.
$ac_ext
3942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3944 if test `eval echo '${'$as_ac_var'}'` = yes; then
3946 cat >>confdefs.h
<<_ACEOF
3947 #define CRAY_STACKSEG_END $ac_func
3956 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3957 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3958 if test "${ac_cv_c_stack_direction+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if test "$cross_compiling" = yes; then
3962 ac_cv_c_stack_direction
=0
3964 cat >conftest.
$ac_ext <<_ACEOF
3967 cat confdefs.h
>>conftest.
$ac_ext
3968 cat >>conftest.
$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3971 find_stack_direction ()
3973 static char *addr = 0;
3978 return find_stack_direction ();
3981 return (&dummy > addr) ? 1 : -1;
3987 exit (find_stack_direction () < 0);
3990 rm -f conftest
$ac_exeext
3991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3992 (eval $ac_link) 2>&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; }; then
4001 ac_cv_c_stack_direction
=1
4003 echo "$as_me: program exited with status $ac_status" >&5
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.
$ac_ext >&5
4008 ac_cv_c_stack_direction
=-1
4010 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4013 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4014 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4016 cat >>confdefs.h
<<_ACEOF
4017 #define STACK_DIRECTION $ac_cv_c_stack_direction
4025 for ac_header
in stdlib.h unistd.h
4027 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4029 echo "$as_me:$LINENO: checking for $ac_header" >&5
4030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4037 # Is the header compilable?
4038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4040 cat >conftest.
$ac_ext <<_ACEOF
4043 cat confdefs.h
>>conftest.
$ac_ext
4044 cat >>conftest.
$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 $ac_includes_default
4047 #include <$ac_header>
4049 rm -f conftest.
$ac_objext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051 (eval $ac_compile) 2>conftest.er1
4053 grep -v '^ *+' conftest.er1
>conftest.err
4055 cat conftest.err
>&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try
='test -s conftest.$ac_objext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 ac_header_compiler
=yes
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.
$ac_ext >&5
4075 ac_header_compiler
=no
4077 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4079 echo "${ECHO_T}$ac_header_compiler" >&6
4081 # Is the header present?
4082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4084 cat >conftest.
$ac_ext <<_ACEOF
4087 cat confdefs.h
>>conftest.
$ac_ext
4088 cat >>conftest.
$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <$ac_header>
4092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4093 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
4100 if test -s conftest.err
; then
4101 ac_cpp_err
=$ac_c_preproc_warn_flag
4102 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4109 if test -z "$ac_cpp_err"; then
4110 ac_header_preproc
=yes
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.
$ac_ext >&5
4115 ac_header_preproc
=no
4117 rm -f conftest.err conftest.
$ac_ext
4118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4119 echo "${ECHO_T}$ac_header_preproc" >&6
4121 # So? What about this header?
4122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4128 ac_header_preproc
=yes
4131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4145 ## ------------------------------------------ ##
4146 ## Report this to the AC_PACKAGE_NAME lists. ##
4147 ## ------------------------------------------ ##
4150 sed "s/^/$as_me: WARNING: /" >&2
4153 echo "$as_me:$LINENO: checking for $ac_header" >&5
4154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 eval "$as_ac_Header=\$ac_header_preproc"
4160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4165 cat >>confdefs.h
<<_ACEOF
4166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4174 for ac_func
in getpagesize
4176 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4177 echo "$as_me:$LINENO: checking for $ac_func" >&5
4178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4179 if eval "test \"\${$as_ac_var+set}\" = set"; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 cat >conftest.
$ac_ext <<_ACEOF
4185 cat confdefs.h
>>conftest.
$ac_ext
4186 cat >>conftest.
$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4190 #define $ac_func innocuous_$ac_func
4192 /* System header to define __stub macros and hopefully few prototypes,
4193 which can conflict with char $ac_func (); below.
4194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 <limits.h> exists even on freestanding compilers. */
4198 # include <limits.h>
4200 # include <assert.h>
4205 /* Override any gcc2 internal prototype to avoid an error. */
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4213 /* The GNU C library defines this for functions which it implements
4214 to always fail with ENOSYS. Some functions are actually named
4215 something starting with __ and the normal name is an alias. */
4216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4219 char (*f) () = $ac_func;
4228 return f != $ac_func;
4233 rm -f conftest.
$ac_objext conftest
$ac_exeext
4234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4235 (eval $ac_link) 2>conftest.er1
4237 grep -v '^ *+' conftest.er1
>conftest.err
4239 cat conftest.err
>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; } &&
4248 { ac_try
='test -s conftest$ac_exeext'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 eval "$as_ac_var=yes"
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.
$ac_ext >&5
4259 eval "$as_ac_var=no"
4261 rm -f conftest.err conftest.
$ac_objext \
4262 conftest
$ac_exeext conftest.
$ac_ext
4264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4266 if test `eval echo '${'$as_ac_var'}'` = yes; then
4267 cat >>confdefs.h
<<_ACEOF
4268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4274 echo "$as_me:$LINENO: checking for working mmap" >&5
4275 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4276 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 if test "$cross_compiling" = yes; then
4280 ac_cv_func_mmap_fixed_mapped
=no
4282 cat >conftest.
$ac_ext <<_ACEOF
4285 cat confdefs.h
>>conftest.
$ac_ext
4286 cat >>conftest.
$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 $ac_includes_default
4289 /* malloc might have been renamed as rpl_malloc. */
4292 /* Thanks to Mike Haertel and Jim Avera for this test.
4293 Here is a matrix of mmap possibilities:
4294 mmap private not fixed
4295 mmap private fixed at somewhere currently unmapped
4296 mmap private fixed at somewhere already mapped
4297 mmap shared not fixed
4298 mmap shared fixed at somewhere currently unmapped
4299 mmap shared fixed at somewhere already mapped
4300 For private mappings, we should verify that changes cannot be read()
4301 back from the file, nor mmap's back from the file at a different
4302 address. (There have been systems where private was not correctly
4303 implemented like the infamous i386 svr4.0, and systems where the
4304 VM page cache was not coherent with the file system buffer cache
4305 like early versions of FreeBSD and possibly contemporary NetBSD.)
4306 For shared mappings, we should conversely verify that changes get
4307 propagated back to all the places they're supposed to be.
4309 Grep wants private fixed already mapped.
4310 The main things grep needs to know about mmap are:
4311 * does it exist and is it safe to write into the mmap'd area
4312 * how to use it (BSD variants) */
4315 #include <sys/mman.h>
4317 #if !STDC_HEADERS && !HAVE_STDLIB_H
4321 /* This mess was copied from the GNU getpagesize.h. */
4322 #if !HAVE_GETPAGESIZE
4323 /* Assume that all systems that can run configure have sys/param.h. */
4324 # if !HAVE_SYS_PARAM_H
4325 # define HAVE_SYS_PARAM_H 1
4328 # ifdef _SC_PAGESIZE
4329 # define getpagesize() sysconf(_SC_PAGESIZE)
4330 # else /* no _SC_PAGESIZE */
4331 # if HAVE_SYS_PARAM_H
4332 # include <sys/param.h>
4333 # ifdef EXEC_PAGESIZE
4334 # define getpagesize() EXEC_PAGESIZE
4335 # else /* no EXEC_PAGESIZE */
4337 # define getpagesize() NBPG * CLSIZE
4340 # endif /* no CLSIZE */
4341 # else /* no NBPG */
4343 # define getpagesize() NBPC
4344 # else /* no NBPC */
4346 # define getpagesize() PAGESIZE
4347 # endif /* PAGESIZE */
4348 # endif /* no NBPC */
4349 # endif /* no NBPG */
4350 # endif /* no EXEC_PAGESIZE */
4351 # else /* no HAVE_SYS_PARAM_H */
4352 # define getpagesize() 8192 /* punt totally */
4353 # endif /* no HAVE_SYS_PARAM_H */
4354 # endif /* no _SC_PAGESIZE */
4356 #endif /* no HAVE_GETPAGESIZE */
4361 char *data, *data2, *data3;
4365 pagesize = getpagesize ();
4367 /* First, make a file with some known garbage in it. */
4368 data = (char *) malloc (pagesize);
4371 for (i = 0; i < pagesize; ++i)
4372 *(data + i) = rand ();
4374 fd = creat ("conftest.mmap", 0600);
4377 if (write (fd, data, pagesize) != pagesize)
4381 /* Next, try to mmap the file at a fixed address which already has
4382 something else allocated at it. If we can, also make sure that
4383 we see the same garbage. */
4384 fd = open ("conftest.mmap", O_RDWR);
4387 data2 = (char *) malloc (2 * pagesize);
4390 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4391 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4392 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4394 for (i = 0; i < pagesize; ++i)
4395 if (*(data + i) != *(data2 + i))
4398 /* Finally, make sure that changes to the mapped area do not
4399 percolate back to the file as seen by read(). (This is a bug on
4400 some variants of i386 svr4.0.) */
4401 for (i = 0; i < pagesize; ++i)
4402 *(data2 + i) = *(data2 + i) + 1;
4403 data3 = (char *) malloc (pagesize);
4406 if (read (fd, data3, pagesize) != pagesize)
4408 for (i = 0; i < pagesize; ++i)
4409 if (*(data + i) != *(data3 + i))
4415 rm -f conftest
$ac_exeext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4417 (eval $ac_link) 2>&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_cv_func_mmap_fixed_mapped
=yes
4428 echo "$as_me: program exited with status $ac_status" >&5
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.
$ac_ext >&5
4433 ac_cv_func_mmap_fixed_mapped
=no
4435 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4438 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4439 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4440 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4442 cat >>confdefs.h
<<\_ACEOF
4459 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4460 unistd.h values.h sys
/param.h
4462 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4464 echo "$as_me:$LINENO: checking for $ac_header" >&5
4465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4472 # Is the header compilable?
4473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4475 cat >conftest.
$ac_ext <<_ACEOF
4478 cat confdefs.h
>>conftest.
$ac_ext
4479 cat >>conftest.
$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 $ac_includes_default
4482 #include <$ac_header>
4484 rm -f conftest.
$ac_objext
4485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4486 (eval $ac_compile) 2>conftest.er1
4488 grep -v '^ *+' conftest.er1
>conftest.err
4490 cat conftest.err
>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; } &&
4499 { ac_try
='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 ac_header_compiler
=yes
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.
$ac_ext >&5
4510 ac_header_compiler
=no
4512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4514 echo "${ECHO_T}$ac_header_compiler" >&6
4516 # Is the header present?
4517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4519 cat >conftest.
$ac_ext <<_ACEOF
4522 cat confdefs.h
>>conftest.
$ac_ext
4523 cat >>conftest.
$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 #include <$ac_header>
4527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4528 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4530 grep -v '^ *+' conftest.er1
>conftest.err
4532 cat conftest.err
>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } >/dev
/null
; then
4535 if test -s conftest.err
; then
4536 ac_cpp_err
=$ac_c_preproc_warn_flag
4537 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4544 if test -z "$ac_cpp_err"; then
4545 ac_header_preproc
=yes
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.
$ac_ext >&5
4550 ac_header_preproc
=no
4552 rm -f conftest.err conftest.
$ac_ext
4553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4554 echo "${ECHO_T}$ac_header_preproc" >&6
4556 # So? What about this header?
4557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4563 ac_header_preproc
=yes
4566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4580 ## ------------------------------------------ ##
4581 ## Report this to the AC_PACKAGE_NAME lists. ##
4582 ## ------------------------------------------ ##
4585 sed "s/^/$as_me: WARNING: /" >&2
4588 echo "$as_me:$LINENO: checking for $ac_header" >&5
4589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 eval "$as_ac_Header=\$ac_header_preproc"
4595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4600 cat >>confdefs.h
<<_ACEOF
4601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4618 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4619 __argz_count __argz_stringify __argz_next
4621 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4622 echo "$as_me:$LINENO: checking for $ac_func" >&5
4623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4624 if eval "test \"\${$as_ac_var+set}\" = set"; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 cat >conftest.
$ac_ext <<_ACEOF
4630 cat confdefs.h
>>conftest.
$ac_ext
4631 cat >>conftest.
$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4635 #define $ac_func innocuous_$ac_func
4637 /* System header to define __stub macros and hopefully few prototypes,
4638 which can conflict with char $ac_func (); below.
4639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4640 <limits.h> exists even on freestanding compilers. */
4643 # include <limits.h>
4645 # include <assert.h>
4650 /* Override any gcc2 internal prototype to avoid an error. */
4655 /* We use char because int might match the return type of a gcc2
4656 builtin and then its argument prototype would still apply. */
4658 /* The GNU C library defines this for functions which it implements
4659 to always fail with ENOSYS. Some functions are actually named
4660 something starting with __ and the normal name is an alias. */
4661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4664 char (*f) () = $ac_func;
4673 return f != $ac_func;
4678 rm -f conftest.
$ac_objext conftest
$ac_exeext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>conftest.er1
4682 grep -v '^ *+' conftest.er1
>conftest.err
4684 cat conftest.err
>&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } &&
4687 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; } &&
4693 { ac_try
='test -s conftest$ac_exeext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 eval "$as_ac_var=yes"
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.
$ac_ext >&5
4704 eval "$as_ac_var=no"
4706 rm -f conftest.err conftest.
$ac_objext \
4707 conftest
$ac_exeext conftest.
$ac_ext
4709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4711 if test `eval echo '${'$as_ac_var'}'` = yes; then
4712 cat >>confdefs.h
<<_ACEOF
4713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4720 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4722 for ac_func
in stpcpy
4724 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4725 echo "$as_me:$LINENO: checking for $ac_func" >&5
4726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4727 if eval "test \"\${$as_ac_var+set}\" = set"; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 cat >conftest.
$ac_ext <<_ACEOF
4733 cat confdefs.h
>>conftest.
$ac_ext
4734 cat >>conftest.
$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4738 #define $ac_func innocuous_$ac_func
4740 /* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char $ac_func (); below.
4742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4743 <limits.h> exists even on freestanding compilers. */
4746 # include <limits.h>
4748 # include <assert.h>
4753 /* Override any gcc2 internal prototype to avoid an error. */
4758 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4761 /* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4767 char (*f) () = $ac_func;
4776 return f != $ac_func;
4781 rm -f conftest.
$ac_objext conftest
$ac_exeext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4783 (eval $ac_link) 2>conftest.er1
4785 grep -v '^ *+' conftest.er1
>conftest.err
4787 cat conftest.err
>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try
='test -s conftest$ac_exeext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 eval "$as_ac_var=yes"
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.
$ac_ext >&5
4807 eval "$as_ac_var=no"
4809 rm -f conftest.err conftest.
$ac_objext \
4810 conftest
$ac_exeext conftest.
$ac_ext
4812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4814 if test `eval echo '${'$as_ac_var'}'` = yes; then
4815 cat >>confdefs.h
<<_ACEOF
4816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4823 if test "${ac_cv_func_stpcpy}" = "yes"; then
4825 cat >>confdefs.h
<<\_ACEOF
4826 #define HAVE_STPCPY 1
4831 if test $ac_cv_header_locale_h = yes; then
4832 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4833 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4834 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 cat >conftest.
$ac_ext <<_ACEOF
4840 cat confdefs.h
>>conftest.
$ac_ext
4841 cat >>conftest.
$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4852 rm -f conftest.
$ac_objext conftest
$ac_exeext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4854 (eval $ac_link) 2>conftest.er1
4856 grep -v '^ *+' conftest.er1
>conftest.err
4858 cat conftest.err
>&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; } &&
4867 { ac_try
='test -s conftest$ac_exeext'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; }; then
4873 am_cv_val_LC_MESSAGES
=yes
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.
$ac_ext >&5
4878 am_cv_val_LC_MESSAGES
=no
4880 rm -f conftest.err conftest.
$ac_objext \
4881 conftest
$ac_exeext conftest.
$ac_ext
4883 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4884 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4885 if test $am_cv_val_LC_MESSAGES = yes; then
4887 cat >>confdefs.h
<<\_ACEOF
4888 #define HAVE_LC_MESSAGES 1
4893 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4894 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4895 # Check whether --enable-nls or --disable-nls was given.
4896 if test "${enable_nls+set}" = set; then
4897 enableval
="$enable_nls"
4902 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4903 echo "${ECHO_T}$USE_NLS" >&6
4906 USE_INCLUDED_LIBINTL
=no
4908 if test "$USE_NLS" = "yes"; then
4909 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4910 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4912 # Check whether --with-included-gettext or --without-included-gettext was given.
4913 if test "${with_included_gettext+set}" = set; then
4914 withval
="$with_included_gettext"
4915 nls_cv_force_use_gnu_gettext
=$withval
4917 nls_cv_force_use_gnu_gettext
=no
4919 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4920 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4922 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4923 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4925 nls_cv_header_libgt
=
4928 if test "${ac_cv_header_libintl_h+set}" = set; then
4929 echo "$as_me:$LINENO: checking for libintl.h" >&5
4930 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4931 if test "${ac_cv_header_libintl_h+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4935 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4937 # Is the header compilable?
4938 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4939 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4940 cat >conftest.
$ac_ext <<_ACEOF
4943 cat confdefs.h
>>conftest.
$ac_ext
4944 cat >>conftest.
$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 $ac_includes_default
4947 #include <libintl.h>
4949 rm -f conftest.
$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>conftest.er1
4953 grep -v '^ *+' conftest.er1
>conftest.err
4955 cat conftest.err
>&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; } &&
4964 { ac_try
='test -s conftest.$ac_objext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_header_compiler
=yes
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.
$ac_ext >&5
4975 ac_header_compiler
=no
4977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4979 echo "${ECHO_T}$ac_header_compiler" >&6
4981 # Is the header present?
4982 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4983 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4984 cat >conftest.
$ac_ext <<_ACEOF
4987 cat confdefs.h
>>conftest.
$ac_ext
4988 cat >>conftest.
$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 #include <libintl.h>
4992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4993 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4995 grep -v '^ *+' conftest.er1
>conftest.err
4997 cat conftest.err
>&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev
/null
; then
5000 if test -s conftest.err
; then
5001 ac_cpp_err
=$ac_c_preproc_warn_flag
5002 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5009 if test -z "$ac_cpp_err"; then
5010 ac_header_preproc
=yes
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.
$ac_ext >&5
5015 ac_header_preproc
=no
5017 rm -f conftest.err conftest.
$ac_ext
5018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5019 echo "${ECHO_T}$ac_header_preproc" >&6
5021 # So? What about this header?
5022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5024 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5025 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5026 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5027 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5028 ac_header_preproc
=yes
5031 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5032 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5033 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5034 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5035 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5036 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5037 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5038 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5039 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5040 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5041 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5042 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5045 ## ------------------------------------------ ##
5046 ## Report this to the AC_PACKAGE_NAME lists. ##
5047 ## ------------------------------------------ ##
5050 sed "s/^/$as_me: WARNING: /" >&2
5053 echo "$as_me:$LINENO: checking for libintl.h" >&5
5054 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5055 if test "${ac_cv_header_libintl_h+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_cv_header_libintl_h
=$ac_header_preproc
5060 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5061 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5064 if test $ac_cv_header_libintl_h = yes; then
5065 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5066 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5067 if test "${gt_cv_func_gettext_libc+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 cat >conftest.
$ac_ext <<_ACEOF
5073 cat confdefs.h
>>conftest.
$ac_ext
5074 cat >>conftest.
$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <libintl.h>
5080 return (int) gettext ("")
5085 rm -f conftest.
$ac_objext conftest
$ac_exeext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5087 (eval $ac_link) 2>conftest.er1
5089 grep -v '^ *+' conftest.er1
>conftest.err
5091 cat conftest.err
>&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; } &&
5100 { ac_try
='test -s conftest$ac_exeext'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 gt_cv_func_gettext_libc
=yes
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.
$ac_ext >&5
5111 gt_cv_func_gettext_libc
=no
5113 rm -f conftest.err conftest.
$ac_objext \
5114 conftest
$ac_exeext conftest.
$ac_ext
5116 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5117 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5119 if test "$gt_cv_func_gettext_libc" != "yes"; then
5120 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5121 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5122 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 ac_check_lib_save_LIBS
=$LIBS
5127 cat >conftest.
$ac_ext <<_ACEOF
5130 cat confdefs.h
>>conftest.
$ac_ext
5131 cat >>conftest.
$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5134 /* Override any gcc2 internal prototype to avoid an error. */
5138 /* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */
5140 char bindtextdomain ();
5149 rm -f conftest.
$ac_objext conftest
$ac_exeext
5150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5151 (eval $ac_link) 2>conftest.er1
5153 grep -v '^ *+' conftest.er1
>conftest.err
5155 cat conftest.err
>&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } &&
5158 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try
='test -s conftest$ac_exeext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 ac_cv_lib_intl_bindtextdomain
=yes
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.
$ac_ext >&5
5175 ac_cv_lib_intl_bindtextdomain
=no
5177 rm -f conftest.err conftest.
$ac_objext \
5178 conftest
$ac_exeext conftest.
$ac_ext
5179 LIBS
=$ac_check_lib_save_LIBS
5181 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5182 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5183 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5184 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5185 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5186 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 cat >conftest.
$ac_ext <<_ACEOF
5192 cat confdefs.h
>>conftest.
$ac_ext
5193 cat >>conftest.
$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5199 return (int) gettext ("")
5204 rm -f conftest.
$ac_objext conftest
$ac_exeext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206 (eval $ac_link) 2>conftest.er1
5208 grep -v '^ *+' conftest.er1
>conftest.err
5210 cat conftest.err
>&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; } &&
5219 { ac_try
='test -s conftest$ac_exeext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5225 gt_cv_func_gettext_libintl
=yes
5227 echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.
$ac_ext >&5
5230 gt_cv_func_gettext_libintl
=no
5232 rm -f conftest.err conftest.
$ac_objext \
5233 conftest
$ac_exeext conftest.
$ac_ext
5235 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5236 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5241 if test "$gt_cv_func_gettext_libc" = "yes" \
5242 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5244 cat >>confdefs.h
<<\_ACEOF
5245 #define HAVE_GETTEXT 1
5248 # Extract the first word of "msgfmt", so it can be a program name with args.
5249 set dummy msgfmt
; ac_word
=$2
5250 echo "$as_me:$LINENO: checking for $ac_word" >&5
5251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5252 if test "${ac_cv_path_MSGFMT+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5260 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5261 for ac_dir
in $PATH; do
5262 test -z "$ac_dir" && ac_dir
=.
5263 if test -f $ac_dir/$ac_word; then
5264 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5265 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5271 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5275 MSGFMT
="$ac_cv_path_MSGFMT"
5276 if test -n "$MSGFMT"; then
5277 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5278 echo "${ECHO_T}$MSGFMT" >&6
5280 echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5283 if test "$MSGFMT" != "no"; then
5285 for ac_func
in dcgettext
5287 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5288 echo "$as_me:$LINENO: checking for $ac_func" >&5
5289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5290 if eval "test \"\${$as_ac_var+set}\" = set"; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 cat >conftest.
$ac_ext <<_ACEOF
5296 cat confdefs.h
>>conftest.
$ac_ext
5297 cat >>conftest.
$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5301 #define $ac_func innocuous_$ac_func
5303 /* System header to define __stub macros and hopefully few prototypes,
5304 which can conflict with char $ac_func (); below.
5305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5306 <limits.h> exists even on freestanding compilers. */
5309 # include <limits.h>
5311 # include <assert.h>
5316 /* Override any gcc2 internal prototype to avoid an error. */
5321 /* We use char because int might match the return type of a gcc2
5322 builtin and then its argument prototype would still apply. */
5324 /* The GNU C library defines this for functions which it implements
5325 to always fail with ENOSYS. Some functions are actually named
5326 something starting with __ and the normal name is an alias. */
5327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5330 char (*f) () = $ac_func;
5339 return f != $ac_func;
5344 rm -f conftest.
$ac_objext conftest
$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346 (eval $ac_link) 2>conftest.er1
5348 grep -v '^ *+' conftest.er1
>conftest.err
5350 cat conftest.err
>&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; } &&
5359 { ac_try
='test -s conftest$ac_exeext'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365 eval "$as_ac_var=yes"
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.
$ac_ext >&5
5370 eval "$as_ac_var=no"
5372 rm -f conftest.err conftest.
$ac_objext \
5373 conftest
$ac_exeext conftest.
$ac_ext
5375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5377 if test `eval echo '${'$as_ac_var'}'` = yes; then
5378 cat >>confdefs.h
<<_ACEOF
5379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5385 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5386 set dummy gmsgfmt
; ac_word
=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5401 test -z "$as_dir" && as_dir
=.
5402 for ac_exec_ext
in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5415 GMSGFMT
=$ac_cv_path_GMSGFMT
5417 if test -n "$GMSGFMT"; then
5418 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5419 echo "${ECHO_T}$GMSGFMT" >&6
5421 echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5425 # Extract the first word of "xgettext", so it can be a program name with args.
5426 set dummy xgettext
; ac_word
=$2
5427 echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5437 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5438 for ac_dir
in $PATH; do
5439 test -z "$ac_dir" && ac_dir
=.
5440 if test -f $ac_dir/$ac_word; then
5441 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5442 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5448 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5452 XGETTEXT
="$ac_cv_path_XGETTEXT"
5453 if test -n "$XGETTEXT"; then
5454 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5455 echo "${ECHO_T}$XGETTEXT" >&6
5457 echo "$as_me:$LINENO: result: no" >&5
5458 echo "${ECHO_T}no" >&6
5461 cat >conftest.
$ac_ext <<_ACEOF
5464 cat confdefs.h
>>conftest.
$ac_ext
5465 cat >>conftest.
$ac_ext <<_ACEOF
5466 /* end confdefs.h. */
5471 extern int _nl_msg_cat_cntr;
5472 return _nl_msg_cat_cntr
5477 rm -f conftest.
$ac_objext conftest
$ac_exeext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5479 (eval $ac_link) 2>conftest.er1
5481 grep -v '^ *+' conftest.er1
>conftest.err
5483 cat conftest.err
>&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } &&
5486 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; } &&
5492 { ac_try
='test -s conftest$ac_exeext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.
$ac_ext >&5
5507 rm -f conftest.err conftest.
$ac_objext \
5508 conftest
$ac_exeext conftest.
$ac_ext
5518 if test x
"$CATOBJEXT" = x
&& test -d $srcdir/..
/intl
; then
5519 # Neither gettext nor catgets in included in the C library.
5520 # Fall back on GNU gettext library (assuming it is present).
5521 nls_cv_use_gnu_gettext
=yes
5525 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5526 INTLOBJS
="\$(GETTOBJS)"
5527 # Extract the first word of "msgfmt", so it can be a program name with args.
5528 set dummy msgfmt
; ac_word
=$2
5529 echo "$as_me:$LINENO: checking for $ac_word" >&5
5530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5531 if test "${ac_cv_path_MSGFMT+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5539 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5540 for ac_dir
in $PATH; do
5541 test -z "$ac_dir" && ac_dir
=.
5542 if test -f $ac_dir/$ac_word; then
5543 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5544 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5550 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5554 MSGFMT
="$ac_cv_path_MSGFMT"
5555 if test -n "$MSGFMT"; then
5556 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5557 echo "${ECHO_T}$MSGFMT" >&6
5559 echo "$as_me:$LINENO: result: no" >&5
5560 echo "${ECHO_T}no" >&6
5563 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5564 set dummy gmsgfmt
; ac_word
=$2
5565 echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5567 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5579 test -z "$as_dir" && as_dir
=.
5580 for ac_exec_ext
in '' $ac_executable_extensions; do
5581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5593 GMSGFMT
=$ac_cv_path_GMSGFMT
5595 if test -n "$GMSGFMT"; then
5596 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5597 echo "${ECHO_T}$GMSGFMT" >&6
5599 echo "$as_me:$LINENO: result: no" >&5
5600 echo "${ECHO_T}no" >&6
5603 # Extract the first word of "xgettext", so it can be a program name with args.
5604 set dummy xgettext
; ac_word
=$2
5605 echo "$as_me:$LINENO: checking for $ac_word" >&5
5606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5607 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5615 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5616 for ac_dir
in $PATH; do
5617 test -z "$ac_dir" && ac_dir
=.
5618 if test -f $ac_dir/$ac_word; then
5619 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5620 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5626 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5630 XGETTEXT
="$ac_cv_path_XGETTEXT"
5631 if test -n "$XGETTEXT"; then
5632 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5633 echo "${ECHO_T}$XGETTEXT" >&6
5635 echo "$as_me:$LINENO: result: no" >&5
5636 echo "${ECHO_T}no" >&6
5640 USE_INCLUDED_LIBINTL
=yes
5644 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5646 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5647 nls_cv_header_intl
=libintl.h
5648 nls_cv_header_libgt
=libgettext.h
5651 if test "$XGETTEXT" != ":"; then
5652 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5655 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5656 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5661 # We need to process the po/ directory.
5665 nls_cv_header_intl
=libintl.h
5666 nls_cv_header_libgt
=libgettext.h
5669 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5670 # because some of the sources are only built for this goal.
5671 if test "$PACKAGE" = gettext; then
5673 USE_INCLUDED_LIBINTL
=yes
5676 for lang
in $ALL_LINGUAS; do
5677 GMOFILES
="$GMOFILES $lang.gmo"
5678 POFILES
="$POFILES $lang.po"
5692 if test "x$CATOBJEXT" != "x"; then
5694 cat >>confdefs.h
<<\_ACEOF
5695 #define ENABLE_NLS 1
5701 if test "x$CATOBJEXT" != "x"; then
5702 if test "x$ALL_LINGUAS" = "x"; then
5705 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5706 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5708 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5709 case "$ALL_LINGUAS" in
5710 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5713 LINGUAS
=$NEW_LINGUAS
5714 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5715 echo "${ECHO_T}$LINGUAS" >&6
5718 if test -n "$LINGUAS"; then
5719 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5723 if test $ac_cv_header_locale_h = yes; then
5724 INCLUDE_LOCALE_H
="#include <locale.h>"
5727 /* The system does not provide the header <locale.h>. Take care yourself. */"
5731 if test -f $srcdir/po2tbl.
sed.
in; then
5732 if test "$CATOBJEXT" = ".cat"; then
5733 if test "${ac_cv_header_linux_version_h+set}" = set; then
5734 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5735 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5736 if test "${ac_cv_header_linux_version_h+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5740 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5742 # Is the header compilable?
5743 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5744 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5745 cat >conftest.
$ac_ext <<_ACEOF
5748 cat confdefs.h
>>conftest.
$ac_ext
5749 cat >>conftest.
$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 $ac_includes_default
5752 #include <linux/version.h>
5754 rm -f conftest.
$ac_objext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756 (eval $ac_compile) 2>conftest.er1
5758 grep -v '^ *+' conftest.er1
>conftest.err
5760 cat conftest.err
>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try
='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_header_compiler
=yes
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.
$ac_ext >&5
5780 ac_header_compiler
=no
5782 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5784 echo "${ECHO_T}$ac_header_compiler" >&6
5786 # Is the header present?
5787 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5788 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5789 cat >conftest.
$ac_ext <<_ACEOF
5792 cat confdefs.h
>>conftest.
$ac_ext
5793 cat >>conftest.
$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5795 #include <linux/version.h>
5797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5798 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5800 grep -v '^ *+' conftest.er1
>conftest.err
5802 cat conftest.err
>&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } >/dev
/null
; then
5805 if test -s conftest.err
; then
5806 ac_cpp_err
=$ac_c_preproc_warn_flag
5807 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5814 if test -z "$ac_cpp_err"; then
5815 ac_header_preproc
=yes
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.
$ac_ext >&5
5820 ac_header_preproc
=no
5822 rm -f conftest.err conftest.
$ac_ext
5823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5824 echo "${ECHO_T}$ac_header_preproc" >&6
5826 # So? What about this header?
5827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5829 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5830 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5831 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5832 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5833 ac_header_preproc
=yes
5836 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5837 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5838 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5839 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5840 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5841 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5842 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5843 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5844 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5845 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5846 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5847 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5850 ## ------------------------------------------ ##
5851 ## Report this to the AC_PACKAGE_NAME lists. ##
5852 ## ------------------------------------------ ##
5855 sed "s/^/$as_me: WARNING: /" >&2
5858 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5859 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5860 if test "${ac_cv_header_linux_version_h+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 ac_cv_header_linux_version_h
=$ac_header_preproc
5865 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5866 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5869 if test $ac_cv_header_linux_version_h = yes; then
5877 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5879 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5880 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5883 if test "$PACKAGE" = "gettext"; then
5893 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5899 if test -f $srcdir/po
/POTFILES.
in; then
5900 test -d po || mkdir po
5901 if test "x$srcdir" != "x."; then
5902 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5903 posrcprefix
="$srcdir/"
5905 posrcprefix
="../$srcdir/"
5911 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5912 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5916 # Check for common headers.
5917 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5918 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5924 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
5926 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5928 echo "$as_me:$LINENO: checking for $ac_header" >&5
5929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5936 # Is the header compilable?
5937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5939 cat >conftest.
$ac_ext <<_ACEOF
5942 cat confdefs.h
>>conftest.
$ac_ext
5943 cat >>conftest.
$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5945 $ac_includes_default
5946 #include <$ac_header>
5948 rm -f conftest.
$ac_objext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5950 (eval $ac_compile) 2>conftest.er1
5952 grep -v '^ *+' conftest.er1
>conftest.err
5954 cat conftest.err
>&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; } &&
5963 { ac_try
='test -s conftest.$ac_objext'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; }; then
5969 ac_header_compiler
=yes
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.
$ac_ext >&5
5974 ac_header_compiler
=no
5976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5978 echo "${ECHO_T}$ac_header_compiler" >&6
5980 # Is the header present?
5981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5983 cat >conftest.
$ac_ext <<_ACEOF
5986 cat confdefs.h
>>conftest.
$ac_ext
5987 cat >>conftest.
$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <$ac_header>
5991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5992 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5994 grep -v '^ *+' conftest.er1
>conftest.err
5996 cat conftest.err
>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } >/dev
/null
; then
5999 if test -s conftest.err
; then
6000 ac_cpp_err
=$ac_c_preproc_warn_flag
6001 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6008 if test -z "$ac_cpp_err"; then
6009 ac_header_preproc
=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.
$ac_ext >&5
6014 ac_header_preproc
=no
6016 rm -f conftest.err conftest.
$ac_ext
6017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6018 echo "${ECHO_T}$ac_header_preproc" >&6
6020 # So? What about this header?
6021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6027 ac_header_preproc
=yes
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6044 ## ------------------------------------------ ##
6045 ## Report this to the AC_PACKAGE_NAME lists. ##
6046 ## ------------------------------------------ ##
6049 sed "s/^/$as_me: WARNING: /" >&2
6052 echo "$as_me:$LINENO: checking for $ac_header" >&5
6053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 eval "$as_ac_Header=\$ac_header_preproc"
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6064 cat >>confdefs.h
<<_ACEOF
6065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6074 for ac_header
in sys
/time.h sys
/resource.h
6076 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6078 echo "$as_me:$LINENO: checking for $ac_header" >&5
6079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6086 # Is the header compilable?
6087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6089 cat >conftest.
$ac_ext <<_ACEOF
6092 cat confdefs.h
>>conftest.
$ac_ext
6093 cat >>conftest.
$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 $ac_includes_default
6096 #include <$ac_header>
6098 rm -f conftest.
$ac_objext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100 (eval $ac_compile) 2>conftest.er1
6102 grep -v '^ *+' conftest.er1
>conftest.err
6104 cat conftest.err
>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } &&
6113 { ac_try
='test -s conftest.$ac_objext'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
6119 ac_header_compiler
=yes
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.
$ac_ext >&5
6124 ac_header_compiler
=no
6126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6128 echo "${ECHO_T}$ac_header_compiler" >&6
6130 # Is the header present?
6131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6133 cat >conftest.
$ac_ext <<_ACEOF
6136 cat confdefs.h
>>conftest.
$ac_ext
6137 cat >>conftest.
$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 #include <$ac_header>
6141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6142 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6144 grep -v '^ *+' conftest.er1
>conftest.err
6146 cat conftest.err
>&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } >/dev
/null
; then
6149 if test -s conftest.err
; then
6150 ac_cpp_err
=$ac_c_preproc_warn_flag
6151 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6158 if test -z "$ac_cpp_err"; then
6159 ac_header_preproc
=yes
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.
$ac_ext >&5
6164 ac_header_preproc
=no
6166 rm -f conftest.err conftest.
$ac_ext
6167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6168 echo "${ECHO_T}$ac_header_preproc" >&6
6170 # So? What about this header?
6171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6177 ac_header_preproc
=yes
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6194 ## ------------------------------------------ ##
6195 ## Report this to the AC_PACKAGE_NAME lists. ##
6196 ## ------------------------------------------ ##
6199 sed "s/^/$as_me: WARNING: /" >&2
6202 echo "$as_me:$LINENO: checking for $ac_header" >&5
6203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 eval "$as_ac_Header=\$ac_header_preproc"
6209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6214 cat >>confdefs.h
<<_ACEOF
6215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6224 for ac_header
in fcntl.h fpu_control.h
6226 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6228 echo "$as_me:$LINENO: checking for $ac_header" >&5
6229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6236 # Is the header compilable?
6237 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6239 cat >conftest.
$ac_ext <<_ACEOF
6242 cat confdefs.h
>>conftest.
$ac_ext
6243 cat >>conftest.
$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 $ac_includes_default
6246 #include <$ac_header>
6248 rm -f conftest.
$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>conftest.er1
6252 grep -v '^ *+' conftest.er1
>conftest.err
6254 cat conftest.err
>&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try
='test -s conftest.$ac_objext'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6269 ac_header_compiler
=yes
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.
$ac_ext >&5
6274 ac_header_compiler
=no
6276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6278 echo "${ECHO_T}$ac_header_compiler" >&6
6280 # Is the header present?
6281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6283 cat >conftest.
$ac_ext <<_ACEOF
6286 cat confdefs.h
>>conftest.
$ac_ext
6287 cat >>conftest.
$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 #include <$ac_header>
6291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6292 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6294 grep -v '^ *+' conftest.er1
>conftest.err
6296 cat conftest.err
>&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } >/dev
/null
; then
6299 if test -s conftest.err
; then
6300 ac_cpp_err
=$ac_c_preproc_warn_flag
6301 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6308 if test -z "$ac_cpp_err"; then
6309 ac_header_preproc
=yes
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.
$ac_ext >&5
6314 ac_header_preproc
=no
6316 rm -f conftest.err conftest.
$ac_ext
6317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6318 echo "${ECHO_T}$ac_header_preproc" >&6
6320 # So? What about this header?
6321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6327 ac_header_preproc
=yes
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6344 ## ------------------------------------------ ##
6345 ## Report this to the AC_PACKAGE_NAME lists. ##
6346 ## ------------------------------------------ ##
6349 sed "s/^/$as_me: WARNING: /" >&2
6352 echo "$as_me:$LINENO: checking for $ac_header" >&5
6353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 eval "$as_ac_Header=\$ac_header_preproc"
6359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6364 cat >>confdefs.h
<<_ACEOF
6365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6375 for ac_header
in dlfcn.h errno.h sys
/stat.h
6377 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo "$as_me:$LINENO: checking for $ac_header" >&5
6380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387 # Is the header compilable?
6388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 #include <$ac_header>
6399 rm -f conftest.
$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>conftest.er1
6403 grep -v '^ *+' conftest.er1
>conftest.err
6405 cat conftest.err
>&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try
='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_header_compiler
=yes
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.
$ac_ext >&5
6425 ac_header_compiler
=no
6427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6429 echo "${ECHO_T}$ac_header_compiler" >&6
6431 # Is the header present?
6432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6434 cat >conftest.
$ac_ext <<_ACEOF
6437 cat confdefs.h
>>conftest.
$ac_ext
6438 cat >>conftest.
$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 #include <$ac_header>
6442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6443 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6445 grep -v '^ *+' conftest.er1
>conftest.err
6447 cat conftest.err
>&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } >/dev
/null
; then
6450 if test -s conftest.err
; then
6451 ac_cpp_err
=$ac_c_preproc_warn_flag
6452 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6459 if test -z "$ac_cpp_err"; then
6460 ac_header_preproc
=yes
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.
$ac_ext >&5
6465 ac_header_preproc
=no
6467 rm -f conftest.err conftest.
$ac_ext
6468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6469 echo "${ECHO_T}$ac_header_preproc" >&6
6471 # So? What about this header?
6472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6478 ac_header_preproc
=yes
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6495 ## ------------------------------------------ ##
6496 ## Report this to the AC_PACKAGE_NAME lists. ##
6497 ## ------------------------------------------ ##
6500 sed "s/^/$as_me: WARNING: /" >&2
6503 echo "$as_me:$LINENO: checking for $ac_header" >&5
6504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 eval "$as_ac_Header=\$ac_header_preproc"
6510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6515 cat >>confdefs.h
<<_ACEOF
6516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6527 for ac_func
in getrusage
time sigaction __setfpucw
6529 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6530 echo "$as_me:$LINENO: checking for $ac_func" >&5
6531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6532 if eval "test \"\${$as_ac_var+set}\" = set"; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 cat >conftest.
$ac_ext <<_ACEOF
6538 cat confdefs.h
>>conftest.
$ac_ext
6539 cat >>conftest.
$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6543 #define $ac_func innocuous_$ac_func
6545 /* System header to define __stub macros and hopefully few prototypes,
6546 which can conflict with char $ac_func (); below.
6547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6548 <limits.h> exists even on freestanding compilers. */
6551 # include <limits.h>
6553 # include <assert.h>
6558 /* Override any gcc2 internal prototype to avoid an error. */
6563 /* We use char because int might match the return type of a gcc2
6564 builtin and then its argument prototype would still apply. */
6566 /* The GNU C library defines this for functions which it implements
6567 to always fail with ENOSYS. Some functions are actually named
6568 something starting with __ and the normal name is an alias. */
6569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6572 char (*f) () = $ac_func;
6581 return f != $ac_func;
6586 rm -f conftest.
$ac_objext conftest
$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588 (eval $ac_link) 2>conftest.er1
6590 grep -v '^ *+' conftest.er1
>conftest.err
6592 cat conftest.err
>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; } &&
6601 { ac_try
='test -s conftest$ac_exeext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 eval "$as_ac_var=yes"
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.
$ac_ext >&5
6612 eval "$as_ac_var=no"
6614 rm -f conftest.err conftest.
$ac_objext \
6615 conftest
$ac_exeext conftest.
$ac_ext
6617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6619 if test `eval echo '${'$as_ac_var'}'` = yes; then
6620 cat >>confdefs.h
<<_ACEOF
6621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6628 # Check for socket libraries
6630 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6631 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6632 if test "${ac_cv_lib_socket_bind+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_check_lib_save_LIBS
=$LIBS
6636 LIBS
="-lsocket $LIBS"
6637 cat >conftest.
$ac_ext <<_ACEOF
6640 cat confdefs.h
>>conftest.
$ac_ext
6641 cat >>conftest.
$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6644 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6659 rm -f conftest.
$ac_objext conftest
$ac_exeext
6660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6661 (eval $ac_link) 2>conftest.er1
6663 grep -v '^ *+' conftest.er1
>conftest.err
6665 cat conftest.err
>&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } &&
6668 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; } &&
6674 { ac_try
='test -s conftest$ac_exeext'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; }; then
6680 ac_cv_lib_socket_bind
=yes
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.
$ac_ext >&5
6685 ac_cv_lib_socket_bind
=no
6687 rm -f conftest.err conftest.
$ac_objext \
6688 conftest
$ac_exeext conftest.
$ac_ext
6689 LIBS
=$ac_check_lib_save_LIBS
6691 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6692 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6693 if test $ac_cv_lib_socket_bind = yes; then
6694 cat >>confdefs.h
<<_ACEOF
6695 #define HAVE_LIBSOCKET 1
6698 LIBS
="-lsocket $LIBS"
6703 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6704 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6705 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 ac_check_lib_save_LIBS
=$LIBS
6710 cat >conftest.
$ac_ext <<_ACEOF
6713 cat confdefs.h
>>conftest.
$ac_ext
6714 cat >>conftest.
$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6717 /* Override any gcc2 internal prototype to avoid an error. */
6721 /* We use char because int might match the return type of a gcc2
6722 builtin and then its argument prototype would still apply. */
6723 char gethostbyname ();
6732 rm -f conftest.
$ac_objext conftest
$ac_exeext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6734 (eval $ac_link) 2>conftest.er1
6736 grep -v '^ *+' conftest.er1
>conftest.err
6738 cat conftest.err
>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try
='test -s conftest$ac_exeext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 ac_cv_lib_nsl_gethostbyname
=yes
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.
$ac_ext >&5
6758 ac_cv_lib_nsl_gethostbyname
=no
6760 rm -f conftest.err conftest.
$ac_objext \
6761 conftest
$ac_exeext conftest.
$ac_ext
6762 LIBS
=$ac_check_lib_save_LIBS
6764 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6765 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6766 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6767 cat >>confdefs.h
<<_ACEOF
6768 #define HAVE_LIBNSL 1
6776 .
${srcdir}/..
/..
/bfd
/configure.
host
6780 USE_MAINTAINER_MODE
=no
6781 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6782 if test "${enable_maintainer_mode+set}" = set; then
6783 enableval
="$enable_maintainer_mode"
6784 case "${enableval}" in
6785 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
6787 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6788 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6789 { (exit 1); exit 1; }; }; MAINT
="#" ;;
6791 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
6792 echo "Setting maintainer mode" 6>&1
6799 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6800 if test "${enable_sim_bswap+set}" = set; then
6801 enableval
="$enable_sim_bswap"
6802 case "${enableval}" in
6803 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6804 no
) sim_bswap
="-DWITH_BSWAP=0";;
6805 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6806 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6807 { (exit 1); exit 1; }; }; sim_bswap
="";;
6809 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
6810 echo "Setting bswap flags = $sim_bswap" 6>&1
6817 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6818 if test "${enable_sim_cflags+set}" = set; then
6819 enableval
="$enable_sim_cflags"
6820 case "${enableval}" in
6821 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
6822 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6823 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6824 { (exit 1); exit 1; }; }; sim_cflags
="";;
6826 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6828 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
6829 echo "Setting sim cflags = $sim_cflags" 6>&1
6836 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6837 if test "${enable_sim_debug+set}" = set; then
6838 enableval
="$enable_sim_debug"
6839 case "${enableval}" in
6840 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
6841 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
6842 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6844 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
6845 echo "Setting sim debug = $sim_debug" 6>&1
6852 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6853 if test "${enable_sim_stdio+set}" = set; then
6854 enableval
="$enable_sim_stdio"
6855 case "${enableval}" in
6856 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6857 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6858 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6859 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6860 { (exit 1); exit 1; }; }; sim_stdio
="";;
6862 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6863 echo "Setting stdio flags = $sim_stdio" 6>&1
6870 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6871 if test "${enable_sim_trace+set}" = set; then
6872 enableval
="$enable_sim_trace"
6873 case "${enableval}" in
6874 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
6875 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
6877 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6880 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6881 if test x
"$sim_trace" = x
; then
6882 sim_trace
="-DWITH_TRACE='(TRACE_$x"
6884 sim_trace
="${sim_trace}|TRACE_$x"
6887 sim_trace
="$sim_trace)'" ;;
6889 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6890 echo "Setting sim trace = $sim_trace" 6>&1
6897 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6898 if test "${enable_sim_profile+set}" = set; then
6899 enableval
="$enable_sim_profile"
6900 case "${enableval}" in
6901 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
6902 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
6904 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6907 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6908 if test x
"$sim_profile" = x
; then
6909 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
6911 sim_profile
="${sim_profile}|PROFILE_$x"
6914 sim_profile
="$sim_profile)'" ;;
6916 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
6917 echo "Setting sim profile = $sim_profile" 6>&1
6920 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
6924 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6925 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6926 if test "${ac_cv_type_signal+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 cat >conftest.
$ac_ext <<_ACEOF
6932 cat confdefs.h
>>conftest.
$ac_ext
6933 cat >>conftest.
$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <sys/types.h>
6941 extern "C" void (*signal (int, void (*)(int)))(int);
6943 void (*signal ()) ();
6954 rm -f conftest.
$ac_objext
6955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6956 (eval $ac_compile) 2>conftest.er1
6958 grep -v '^ *+' conftest.er1
>conftest.err
6960 cat conftest.err
>&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; } &&
6969 { ac_try
='test -s conftest.$ac_objext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 ac_cv_type_signal
=void
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.
$ac_ext >&5
6980 ac_cv_type_signal
=int
6982 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6984 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6985 echo "${ECHO_T}$ac_cv_type_signal" >&6
6987 cat >>confdefs.h
<<_ACEOF
6988 #define RETSIGTYPE $ac_cv_type_signal
6998 sim_link_links
=tconfig.h
6999 if test -f ${srcdir}/tconfig.
in
7001 sim_link_files
=tconfig.
in
7003 sim_link_files
=..
/common
/tconfig.
in
7006 # targ-vals.def points to the libc macro description file.
7008 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
7010 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
7011 sim_link_links
="${sim_link_links} targ-vals.def"
7015 default_sim_inline
=""
7016 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7017 if test "${enable_sim_inline+set}" = set; then
7018 enableval
="$enable_sim_inline"
7020 case "$enableval" in
7021 no
) sim_inline
="-DDEFAULT_INLINE=0";;
7022 0) sim_inline
="-DDEFAULT_INLINE=0";;
7023 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
7024 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
7025 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
7028 *_INLINE
=*) new_flag
="-D$x";;
7029 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7030 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
7031 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
7033 if test x
"$sim_inline" = x
""; then
7034 sim_inline
="$new_flag"
7036 sim_inline
="$sim_inline $new_flag"
7040 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
7041 echo "Setting inline flags = $sim_inline" 6>&1
7045 if test "x$cross_compiling" = "xno"; then
7046 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
7047 sim_inline
="${default_sim_inline}"
7048 if test x
"$silent" != x
"yes"; then
7049 echo "Setting inline flags = $sim_inline" 6>&1
7055 sim_inline
="-DDEFAULT_INLINE=0"
7058 wire_alignment
="NONSTRICT_ALIGNMENT"
7059 default_alignment
=""
7061 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
7062 if test "${enable_sim_alignment+set}" = set; then
7063 enableval
="$enable_sim_alignment"
7064 case "${enableval}" in
7065 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
7066 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
7067 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
7068 yes) if test x
"$wire_alignment" != x
; then
7069 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7071 if test x
"$default_alignment" != x
; then
7072 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
7074 echo "No hard-wired alignment for target $target" 1>&6
7075 sim_alignment
="-DWITH_ALIGNMENT=0"
7078 no
) if test x
"$default_alignment" != x
; then
7079 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7081 if test x
"$wire_alignment" != x
; then
7082 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
7084 echo "No default alignment for target $target" 1>&6
7085 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
7088 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
7089 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
7090 { (exit 1); exit 1; }; }; sim_alignment
="";;
7092 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
7093 echo "Setting alignment flags = $sim_alignment" 6>&1
7096 if test x
"$default_alignment" != x
; then
7097 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7099 if test x
"$wire_alignment" != x
; then
7100 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7107 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
7108 if test "${enable_sim_hostendian+set}" = set; then
7109 enableval
="$enable_sim_hostendian"
7110 case "${enableval}" in
7111 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
7112 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
7113 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
7114 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
7115 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
7116 { (exit 1); exit 1; }; }; sim_hostendian
="";;
7118 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
7119 echo "Setting hostendian flags = $sim_hostendian" 6>&1
7123 if test "x$cross_compiling" = "xno"; then
7124 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7125 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7126 if test "${ac_cv_c_bigendian+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 # See if sys/param.h defines the BYTE_ORDER macro.
7130 cat >conftest.
$ac_ext <<_ACEOF
7133 cat confdefs.h
>>conftest.
$ac_ext
7134 cat >>conftest.
$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 #include <sys/types.h>
7137 #include <sys/param.h>
7142 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7150 rm -f conftest.
$ac_objext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7152 (eval $ac_compile) 2>conftest.er1
7154 grep -v '^ *+' conftest.er1
>conftest.err
7156 cat conftest.err
>&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } &&
7159 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; } &&
7165 { ac_try
='test -s conftest.$ac_objext'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; }; then
7171 # It does; now see whether it defined to BIG_ENDIAN or not.
7172 cat >conftest.
$ac_ext <<_ACEOF
7175 cat confdefs.h
>>conftest.
$ac_ext
7176 cat >>conftest.
$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 #include <sys/types.h>
7179 #include <sys/param.h>
7184 #if BYTE_ORDER != BIG_ENDIAN
7192 rm -f conftest.
$ac_objext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7194 (eval $ac_compile) 2>conftest.er1
7196 grep -v '^ *+' conftest.er1
>conftest.err
7198 cat conftest.err
>&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; } &&
7207 { ac_try
='test -s conftest.$ac_objext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7213 ac_cv_c_bigendian
=yes
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.
$ac_ext >&5
7218 ac_cv_c_bigendian
=no
7220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7222 echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.
$ac_ext >&5
7225 # It does not; compile a test program.
7226 if test "$cross_compiling" = yes; then
7227 # try to guess the endianness by grepping values into an object file
7228 ac_cv_c_bigendian
=unknown
7229 cat >conftest.
$ac_ext <<_ACEOF
7232 cat confdefs.h
>>conftest.
$ac_ext
7233 cat >>conftest.
$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7235 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7236 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7237 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7238 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7239 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7240 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7244 _ascii (); _ebcdic ();
7249 rm -f conftest.
$ac_objext
7250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7251 (eval $ac_compile) 2>conftest.er1
7253 grep -v '^ *+' conftest.er1
>conftest.err
7255 cat conftest.err
>&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } &&
7258 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; } &&
7264 { ac_try
='test -s conftest.$ac_objext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7271 ac_cv_c_bigendian
=yes
7273 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7274 if test "$ac_cv_c_bigendian" = unknown
; then
7275 ac_cv_c_bigendian
=no
7277 # finding both strings is unlikely to happen, but who knows?
7278 ac_cv_c_bigendian
=unknown
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.
$ac_ext >&5
7286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7288 cat >conftest.
$ac_ext <<_ACEOF
7291 cat confdefs.h
>>conftest.
$ac_ext
7292 cat >>conftest.
$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7297 /* Are we little or big endian? From Harbison&Steele. */
7301 char c[sizeof (long)];
7304 exit (u.c[sizeof (long) - 1] == 1);
7307 rm -f conftest
$ac_exeext
7308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7309 (eval $ac_link) 2>&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 ac_cv_c_bigendian
=no
7320 echo "$as_me: program exited with status $ac_status" >&5
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.
$ac_ext >&5
7325 ac_cv_c_bigendian
=yes
7327 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7330 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7332 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7333 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7334 case $ac_cv_c_bigendian in
7337 cat >>confdefs.h
<<\_ACEOF
7338 #define WORDS_BIGENDIAN 1
7344 { { echo "$as_me:$LINENO: error: unknown endianness
7345 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7346 echo "$as_me: error: unknown endianness
7347 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7348 { (exit 1); exit 1; }; } ;;
7351 if test $ac_cv_c_bigendian = yes; then
7352 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7354 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7357 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
7361 # NOTE: Don't add -Wall or -Wunused, they both include
7362 # -Wunused-parameter which reports bogus warnings.
7363 # NOTE: If you add to this list, remember to update
7364 # gdb/doc/gdbint.texinfo.
7365 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7366 -Wformat -Wparentheses -Wpointer-arith"
7367 # GCC supports -Wuninitialized only with -O or -On, n != 0.
7368 if test x
${CFLAGS+set} = xset
; then
7372 build_warnings
="${build_warnings} -Wuninitialized"
7376 build_warnings
="${build_warnings} -Wuninitialized"
7378 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7379 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7380 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7381 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7382 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7383 # -Woverloaded-virtual -Winline -Werror"
7384 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7385 if test "${enable_build_warnings+set}" = set; then
7386 enableval
="$enable_build_warnings"
7387 case "${enableval}" in
7389 no
) build_warnings
="-w";;
7390 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7391 build_warnings
="${build_warnings} ${t}";;
7392 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7393 build_warnings
="${t} ${build_warnings}";;
7394 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7396 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7397 echo "Setting compiler warning flags = $build_warnings" 6>&1
7399 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7400 if test "${enable_sim_build_warnings+set}" = set; then
7401 enableval
="$enable_sim_build_warnings"
7402 case "${enableval}" in
7404 no
) build_warnings
="-w";;
7405 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7406 build_warnings
="${build_warnings} ${t}";;
7407 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
7408 build_warnings
="${t} ${build_warnings}";;
7409 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7411 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
7412 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7416 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
7418 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7419 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7420 # Separate out the -Werror flag as some files just cannot be
7421 # compiled with it enabled.
7422 for w
in ${build_warnings}; do
7424 -Werr*) WERROR_CFLAGS
=-Werror ;;
7425 *) # Check that GCC accepts it
7426 saved_CFLAGS
="$CFLAGS"
7428 cat >conftest.
$ac_ext <<_ACEOF
7431 cat confdefs.h
>>conftest.
$ac_ext
7432 cat >>conftest.
$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7443 rm -f conftest.
$ac_objext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>conftest.er1
7447 grep -v '^ *+' conftest.er1
>conftest.err
7449 cat conftest.err
>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try
='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 WARN_CFLAGS
="${WARN_CFLAGS} $w"
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.
$ac_ext >&5
7470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7471 CFLAGS
="$saved_CFLAGS"
7474 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7475 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7479 default_sim_reserved_bits
="1"
7480 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7481 if test "${enable_sim_reserved_bits+set}" = set; then
7482 enableval
="$enable_sim_reserved_bits"
7483 case "${enableval}" in
7484 yes) sim_reserved_bits
="-DWITH_RESERVED_BITS=1";;
7485 no
) sim_reserved_bits
="-DWITH_RESERVED_BITS=0";;
7486 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7487 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7488 { (exit 1); exit 1; }; }; sim_reserved_bits
="";;
7490 if test x
"$silent" != x
"yes" && test x
"$sim_reserved_bits" != x
""; then
7491 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7494 sim_reserved_bits
="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
7499 # Instead of defining a `subtarget' macro, code should be checking
7500 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
7504 mips64vr
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;;
7505 mips
*tx39
*) SIM_SUBTARGET
="-DSUBTARGET_R3900=1";;
7506 mipsisa32
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
7507 mipsisa64
*-*-*) SIM_SUBTARGET
="-DTARGET_ENABLE_FR=1";;
7508 *) SIM_SUBTARGET
="";;
7515 # Select the byte order of the target
7520 mips64el
*-*-*) mips_endian
=LITTLE_ENDIAN
;;
7521 mips64vr
*el-
*-*) default_endian
=LITTLE_ENDIAN
;;
7522 mips64
*-*-*) default_endian
=BIG_ENDIAN
;;
7523 mips16
*-*-*) default_endian
=BIG_ENDIAN
;;
7524 mipsisa32
*-*-*) default_endian
=BIG_ENDIAN
;;
7525 mipsisa64
*-*-*) default_endian
=BIG_ENDIAN
;;
7526 mips
*-*-*) default_endian
=BIG_ENDIAN
;;
7527 *) default_endian
=BIG_ENDIAN
;;
7530 wire_endian
="$mips_endian"
7531 default_endian
="$default_endian"
7532 # Check whether --enable-sim-endian or --disable-sim-endian was given.
7533 if test "${enable_sim_endian+set}" = set; then
7534 enableval
="$enable_sim_endian"
7535 case "${enableval}" in
7536 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
7537 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
7538 yes) if test x
"$wire_endian" != x
; then
7539 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7541 if test x
"$default_endian" != x
; then
7542 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
7544 echo "No hard-wired endian for target $target" 1>&6
7545 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
7548 no
) if test x
"$default_endian" != x
; then
7549 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7551 if test x
"$wire_endian" != x
; then
7552 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
7554 echo "No default endian for target $target" 1>&6
7555 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
7558 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
7559 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
7560 { (exit 1); exit 1; }; }; sim_endian
="";;
7562 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
7563 echo "Setting endian flags = $sim_endian" 6>&1
7566 if test x
"$default_endian" != x
; then
7567 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7569 if test x
"$wire_endian" != x
; then
7570 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7580 # Select the bitsize of the target
7584 mips64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
7585 mips16
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
7586 mipsisa32
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
7587 mipsisa64
*-*-*) mips_bitsize
=64 ; mips_msb
=63 ;;
7588 mips
*-*-*) mips_bitsize
=32 ; mips_msb
=31 ;;
7589 *) mips_bitsize
=64 ; mips_msb
=63 ;;
7591 wire_word_bitsize
="$mips_bitsize"
7592 wire_word_msb
="$mips_msb"
7593 wire_address_bitsize
="$mips_addr_bitsize"
7594 wire_cell_bitsize
=""
7595 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7596 if test "${enable_sim_bitsize+set}" = set; then
7597 enableval
="$enable_sim_bitsize"
7599 case "${enableval}" in
7600 64,63 |
64,63,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7601 32,31 |
32,31,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7602 64,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7603 32,0 |
64,0,* ) sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7604 32) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7605 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7607 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7609 64) if test x
"$wire_word_msb" != x
-a x
"$wire_word_msb" != x0
; then
7610 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7612 sim_bitsize
="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7614 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
7615 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
7616 { (exit 1); exit 1; }; } ;;
7619 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7622 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7623 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
7624 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
7625 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
7626 { (exit 1); exit 1; }; } ;;
7629 tmp
=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7632 x32 | x32
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7633 x64 | x64
,* ) sim_bitsize
="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
7634 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
7635 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
7636 { (exit 1); exit 1; }; } ;;
7638 if test x
"$silent" != x
"yes" && test x
"$sim_bitsize" != x
""; then
7639 echo "Setting bitsize flags = $sim_bitsize" 6>&1
7643 if test x
"$wire_word_bitsize" != x
; then
7644 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7646 if test x
"$wire_word_msb" != x
; then
7647 sim_bitsize
="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7649 if test x
"$wire_address_bitsize" != x
; then
7650 sim_bitsize
="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7652 if test x
"$wire_cell_bitsize" != x
; then
7653 sim_bitsize
="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7660 # Select the floating hardware support of the target
7662 mips_fpu
=HARDWARE_FLOATING_POINT
7665 mips
*tx39
*) mips_fpu
=HARD_FLOATING_POINT
7668 mips64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
7669 mips16
*-*-*) mips_fpu
=HARD_FLOATING_POINT
;;
7670 mipsisa32
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
7671 mipsisa64
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=64 ;;
7672 mips
*-*-*) mips_fpu
=HARD_FLOATING_POINT
; mips_fpu_bitsize
=32 ;;
7673 *) mips_fpu
=HARD_FLOATING_POINT
;;
7676 default_sim_float
="$mips_fpu"
7677 default_sim_float_bitsize
="$mips_fpu_bitsize"
7678 # Check whether --enable-sim-float or --disable-sim-float was given.
7679 if test "${enable_sim_float+set}" = set; then
7680 enableval
="$enable_sim_float"
7681 case "${enableval}" in
7682 yes | hard
) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
7683 no | soft
) sim_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
7684 32) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
7685 64) sim_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
7686 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
7687 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
7688 { (exit 1); exit 1; }; }; sim_float
="";;
7690 if test x
"$silent" != x
"yes" && test x
"$sim_float" != x
""; then
7691 echo "Setting float flags = $sim_float" 6>&1
7696 if test x
"${default_sim_float}" != x
""; then
7697 sim_float
="-DWITH_FLOATING_POINT=${default_sim_float}"
7699 if test x
"${default_sim_float_bitsize}" != x
""; then
7700 sim_float
="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
7708 # Select the level of SMP support
7714 default_sim_smp
="$mips_smp"
7715 # Check whether --enable-sim-smp or --disable-sim-smp was given.
7716 if test "${enable_sim_smp+set}" = set; then
7717 enableval
="$enable_sim_smp"
7718 case "${enableval}" in
7719 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
7720 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
7721 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
7723 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
7724 echo "Setting smp flags = $sim_smp" 6>&1
7727 sim_smp
="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp
="-N ${default_sim_smp}"
7728 if test x
"$silent" != x
"yes"; then
7729 echo "Setting smp flags = $sim_smp" 6>&1
7736 # Select the IGEN architecture
7739 sim_igen_machine
="-M mipsIV"
7740 sim_m16_machine
="-M mips16,mipsIII"
7741 sim_igen_filter
="32,64,f"
7743 sim_mach_default
="mips8000"
7746 mips
*tx39
*) sim_gen
=IGEN
7747 sim_igen_filter
="32,f"
7748 sim_igen_machine
="-M r3900"
7750 mips64vr43
*-*-*) sim_gen
=IGEN
7751 sim_igen_machine
="-M mipsIV"
7752 sim_mach_default
="mips8000"
7754 mips64vr5
*-*-*) sim_gen
=IGEN
7755 sim_igen_machine
="-M vr5000"
7756 sim_mach_default
="mips5000"
7758 mips64vr41
*) sim_gen
=M16
7759 sim_igen_machine
="-M vr4100"
7760 sim_m16_machine
="-M vr4100"
7761 sim_igen_filter
="32,64,f"
7763 sim_mach_default
="mips4100"
7765 mips64vr-
*-* | mips64vrel-
*-*)
7767 sim_multi_configs
="\
7768 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
7769 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
7770 vr5000:mipsIV:32,64,f:mips4300,mips5000\
7771 vr5400:mipsIV,vr5400:32,64,f:mips5400\
7772 vr5500:mipsIV,vr5500:32,64,f:mips5500"
7773 sim_multi_default
=mips5000
7775 mips64
*-*-*) sim_igen_filter
="32,64,f"
7778 mips16
*-*-*) sim_gen
=M16
7779 sim_igen_filter
="32,64,f"
7782 mipsisa32r2
*-*-*) sim_gen
=M16
7783 sim_igen_machine
="-M mips32r2,mips16,mips16e"
7784 sim_m16_machine
="-M mips16,mips16e,mips32r2"
7785 sim_igen_filter
="32,f"
7786 sim_mach_default
="mipsisa32r2"
7788 mipsisa32
*-*-*) sim_gen
=M16
7789 sim_igen_machine
="-M mips32,mips16,mips16e"
7790 sim_m16_machine
="-M mips16,mips16e,mips32"
7791 sim_igen_filter
="32,f"
7792 sim_mach_default
="mipsisa32"
7794 mipsisa64r2
*-*-*) sim_gen
=M16
7795 sim_igen_machine
="-M mips64r2,mips3d,mips16,mips16e"
7796 sim_m16_machine
="-M mips16,mips16e,mips64r2"
7797 sim_igen_filter
="32,64,f"
7798 sim_mach_default
="mipsisa64r2"
7800 mipsisa64sb1
*-*-*) sim_gen
=IGEN
7801 sim_igen_machine
="-M mips64,mips3d,sb1"
7802 sim_igen_filter
="32,64,f"
7803 sim_mach_default
="mips_sb1"
7805 mipsisa64
*-*-*) sim_gen
=M16
7806 sim_igen_machine
="-M mips64,mips3d,mips16,mips16e"
7807 sim_m16_machine
="-M mips16,mips16e,mips64"
7808 sim_igen_filter
="32,64,f"
7809 sim_mach_default
="mipsisa64"
7811 mips
*lsi
*) sim_gen
=M16
7812 sim_igen_machine
="-M mipsIII,mips16"
7813 sim_m16_machine
="-M mips16,mipsIII"
7814 sim_igen_filter
="32,f"
7816 sim_mach_default
="mips4000"
7818 mips
*-*-*) sim_gen
=IGEN
7819 sim_igen_filter
="32,f"
7823 # The MULTI generator can combine several simulation engines into one.
7824 # executable. A configuration which uses the MULTI should set two
7825 # variables: ${sim_multi_configs} and ${sim_multi_default}.
7827 # ${sim_multi_configs} is the list of engines to build. Each
7828 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
7831 # - NAME is a C-compatible prefix for the engine,
7832 # - MACHINE is a -M argument,
7833 # - FILTER is a -F argument, and
7834 # - BFDMACHS is a comma-separated list of bfd machines that the
7835 # simulator can run.
7837 # Each entry will have a separate simulation engine whose prefix is
7838 # m32<NAME>. If the machine list includes "mips16", there will also
7839 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
7840 # generated using the same machine list as the 32-bit version,
7841 # but the filter will be "16" instead of FILTER.
7843 # The simulator compares the bfd mach against BFDMACHS to decide
7844 # which engine to use. Entries in BFDMACHS should be bfd_mach
7845 # values with "bfd_mach_" removed. ${sim_multi_default} says
7846 # which entry should be the default.
7847 if test ${sim_gen} = MULTI
; then
7849 # Simple sanity check.
7850 if test -z "${sim_multi_configs}" ||
test -z "${sim_multi_default}"; then
7851 { { echo "$as_me:$LINENO: error: Error in configure.in: MULTI simulator not set up correctly" >&5
7852 echo "$as_me: error: Error in configure.in: MULTI simulator not set up correctly" >&2;}
7853 { (exit 1); exit 1; }; }
7856 # Start in a known state.
7857 rm -f multi-include.h multi-run.c
7860 sim_multi_obj
=multi-run.o
7861 sim_multi_igen_configs
=
7864 cat << __EOF__ > multi-run.c
7865 /* Main entry point for MULTI simulators.
7866 Copyright (C) 2003 Free Software Foundation, Inc.
7868 This program is free software; you can redistribute it and/or modify
7869 it under the terms of the GNU General Public License as published by
7870 the Free Software Foundation; either version 2 of the License, or
7871 (at your option) any later version.
7873 This program is distributed in the hope that it will be useful,
7874 but WITHOUT ANY WARRANTY; without even the implied warranty of
7875 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7876 GNU General Public License for more details.
7878 You should have received a copy of the GNU General Public License
7879 along with this program; if not, write to the Free Software
7880 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7884 This file was generated by sim/mips/configure. */
7886 #include "sim-main.h"
7887 #include "multi-include.h"
7893 sim_engine_run (SIM_DESC sd,
7896 int signal) /* ignore */
7900 if (STATE_ARCHITECTURE (sd) == NULL)
7901 mach = bfd_mach_${sim_multi_default};
7903 mach = STATE_ARCHITECTURE (SD)->mach;
7909 for fc in ${sim_multi_configs}; do
7911 # Split up the entry. ${c} contains the first three elements.
7912 # Note: outer sqaure brackets are m4 quotes.
7913 c
=`echo ${fc} | sed 's/:[^:]*$//'`
7914 bfdmachs
=`echo ${fc} | sed 's/.*://'`
7915 name
=`echo ${c} | sed 's/:.*//'`
7916 machine
=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
7917 filter
=`echo ${c} | sed 's/.*://'`
7919 # Build the following lists:
7921 # sim_multi_flags: all -M and -F flags used by the simulator
7922 # sim_multi_src: all makefile-generated source files
7923 # sim_multi_obj: the objects for ${sim_multi_src}
7924 # sim_multi_igen_configs: igen configuration strings.
7926 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
7927 # or m16) followed by the NAME, MACHINE and FILTER part of
7928 # the ${sim_multi_configs} entry.
7929 sim_multi_flags
="${sim_multi_flags} -F ${filter} -M ${machine}"
7931 # Check whether mips16 handling is needed.
7934 # Run igen twice, once for normal mode and once for mips16.
7937 # The top-level function for the mips16 simulator is
7938 # in a file m16${name}_run.c, generated by the
7939 # tmp-run-multi Makefile rule.
7940 sim_multi_src
="${sim_multi_src} m16${name}_run.c"
7941 sim_multi_obj
="${sim_multi_obj} m16${name}_run.o"
7942 sim_multi_flags
="${sim_multi_flags} -F 16"
7949 # Now add the list of igen-generated files to ${sim_multi_src}
7950 # and ${sim_multi_obj}.
7952 for base
in engine icache idecode model semantics support
; do
7953 sim_multi_src
="${sim_multi_src} ${w}${name}_${base}.c"
7954 sim_multi_src
="${sim_multi_src} ${w}${name}_${base}.h"
7955 sim_multi_obj
="${sim_multi_obj} ${w}${name}_${base}.o"
7957 sim_multi_igen_configs
="${sim_multi_igen_configs} ${w}${c}"
7960 # Add an include for the engine.h file. This file declares the
7961 # top-level foo_engine_run() function.
7962 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
7964 # Add case statements for this engine to sim_engine_run().
7965 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
7966 echo " case bfd_mach_${mach}:" >> multi-run.c
7967 if test ${mach} = ${sim_multi_default}; then
7968 echo " default:" >> multi-run.c
7969 sim_seen_default
=yes
7972 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
7974 echo " break;" >> multi-run.c
7977 # Check whether we added a 'default:' label.
7978 if test ${sim_seen_default} = no
; then
7979 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&5
7980 echo "$as_me: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&2;}
7981 { (exit 1); exit 1; }; }
7984 cat << __EOF__ >> multi-run.c
7989 mips_mach_multi (SIM_DESC sd)
7991 if (STATE_ARCHITECTURE (sd) == NULL)
7992 return bfd_mach_${sim_multi_default};
7994 switch (STATE_ARCHITECTURE (SD)->mach)
7998 # Add case statements for this engine to mips_mach_multi().
7999 for fc in ${sim_multi_configs}; do
8001 # Split up the entry. ${c} contains the first three elements.
8002 # Note: outer sqaure brackets are m4 quotes.
8003 c=`echo ${fc} | sed 's/:[^:]*$//'`
8004 bfdmachs=`echo ${fc} | sed 's/.*://'`
8006 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
8007 echo " case bfd_mach_
${mach}:" >> multi-run.c
8011 cat << __EOF__ >> multi-run.c
8012 return (STATE_ARCHITECTURE (SD)->mach);
8014 return bfd_mach_${sim_multi_default};
8019 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
8022 sim_multi_src=doesnt-exist.c
8024 if test x"${sim_mach_default}" = x""; then
8025 { { echo "$as_me:$LINENO: error
: Error
in configure.
in: \
${sim_mach_default} not defined
" >&5
8026 echo "$as_me: error
: Error
in configure.
in: \
${sim_mach_default} not defined
" >&2;}
8027 { (exit 1); exit 1; }; }
8029 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_
${sim_mach_default}"
8031 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
8032 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
8043 # Add simulated hardware devices
8049 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio
"
8050 mips_extra_objs="dv-sockser.o
"
8051 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
8058 if test x"$hw_enabled" = x"yes"; then
8063 if test "$hw_devices"; then
8064 hardware="core pal glue
"
8066 hardware="core pal glue
$hw_extra_devices"
8068 sim_hw_cflags="-DWITH_HW=1"
8070 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
8071 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
8072 if test "${enable_sim_hardware+set}" = set; then
8073 enableval="$enable_sim_hardware"
8075 case "${enableval}" in
8078 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
8079 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
8080 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
8082 if test "$sim_hw_p" != yes; then
8084 sim_hw_cflags="-DWITH_HW=0"
8087 sim_hw_cflags="-DWITH_HW=1"
8090 sim_hw_objs="\$
(SIM_COMMON_HW_OBJS
)"
8091 for i in x $hardware ; do
8095 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-
$i.o
";;
8099 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
8100 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
8104 if test "$sim_hw_p" != yes; then
8106 sim_hw_cflags="-DWITH_HW=0"
8109 if test x"$silent" != x"yes"; then
8110 echo "Setting hardware to
$sim_hw_cflags, $sim_hw, $sim_hw_objs"
8116 # Choose simulator engine
8118 *) mips_igen_engine="engine.o
"
8124 echo "$as_me:$LINENO: checking
for X
" >&5
8125 echo $ECHO_N "checking
for X...
$ECHO_C" >&6
8127 ac_path_x_has_been_run=yes
8129 # Check whether --with-x or --without-x was given.
8130 if test "${with_x+set}" = set; then
8134 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8135 if test "x
$with_x" = xno; then
8136 # The user explicitly disabled X.
8139 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
8140 # Both variables are already set.
8143 if test "${ac_cv_have_x+set}" = set; then
8144 echo $ECHO_N "(cached
) $ECHO_C" >&6
8146 # One or both of the vars are not set, and there is no cached value.
8147 ac_x_includes=no ac_x_libraries=no
8149 if mkdir conftest.dir; then
8151 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8152 cat >Imakefile <<'_ACEOF'
8154 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8156 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8157 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
8158 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8159 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8160 for ac_extension in a so sl; do
8161 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8162 test -f $ac_im_libdir/libX11.$ac_extension; then
8163 ac_im_usrlibdir=$ac_im_libdir; break
8166 # Screen out bogus values from the imake configuration. They are
8167 # bogus both because they are the default anyway, and because
8168 # using them would break gcc on systems where it needs fixed includes.
8169 case $ac_im_incroot in
8171 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes=$ac_im_incroot;;
8173 case $ac_im_usrlibdir in
8175 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8182 # Standard set of common directories for X headers.
8183 # Check X11 before X11Rn because it is often a symlink to the current release.
8195 /usr/local/X11/include
8196 /usr/local/X11R6/include
8197 /usr/local/X11R5/include
8198 /usr/local/X11R4/include
8200 /usr/local/include/X11
8201 /usr/local/include/X11R6
8202 /usr/local/include/X11R5
8203 /usr/local/include/X11R4
8207 /usr/XFree86/include/X11
8211 /usr/unsupported/include
8213 /usr/local/x11r5/include
8214 /usr/lpp/Xamples/include
8216 /usr/openwin/include
8217 /usr/openwin/share/include'
8219 if test "$ac_x_includes" = no; then
8220 # Guess where to find include files, by looking for a specified header file.
8221 # First, try using that file with no special directory specified.
8222 cat >conftest.$ac_ext <<_ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228 #include <X11/Intrinsic.h>
8230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
8231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8233 grep -v '^ *+' conftest.er1 >conftest.err
8235 cat conftest.err >&5
8236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8237 (exit $ac_status); } >/dev/null; then
8238 if test -s conftest.err; then
8239 ac_cpp_err=$ac_c_preproc_warn_flag
8240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8247 if test -z "$ac_cpp_err"; then
8248 # We can compile using X headers with no special include directory.
8251 echo "$as_me: failed program was
:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 for ac_dir in $ac_x_header_dirs; do
8255 if test -r "$ac_dir/X11
/Intrinsic.h
"; then
8256 ac_x_includes=$ac_dir
8261 rm -f conftest.err conftest.$ac_ext
8262 fi # $ac_x_includes = no
8264 if test "$ac_x_libraries" = no; then
8265 # Check for the libraries.
8266 # See if we find them without any special options.
8267 # Don't add to $LIBS permanently.
8270 cat >conftest.$ac_ext <<_ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 #include <X11/Intrinsic.h>
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
8289 grep -v '^ *+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8305 (exit $ac_status); }; }; then
8307 # We can link X programs with no special library path.
8310 echo "$as_me: failed program was
:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8314 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8316 # Don't even attempt the hair of trying to link an X program!
8317 for ac_extension in a so sl; do
8318 if test -r $ac_dir/libXt.$ac_extension; then
8319 ac_x_libraries=$ac_dir
8325 rm -f conftest.err conftest.$ac_objext \
8326 conftest$ac_exeext conftest.$ac_ext
8327 fi # $ac_x_libraries = no
8329 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8330 # Didn't find X anywhere. Cache the known absence of X.
8331 ac_cv_have_x="have_x
=no
"
8333 # Record where we found X for the cache.
8334 ac_cv_have_x="have_x
=yes \
8335 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
8340 eval "$ac_cv_have_x"
8343 if test "$have_x" != yes; then
8344 echo "$as_me:$LINENO: result
: $have_x" >&5
8345 echo "${ECHO_T}$have_x" >&6
8348 # If each of the values was on the command line, it overrides each guess.
8349 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
8350 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8351 # Update the cache value to reflect the command line values.
8352 ac_cv_have_x="have_x
=yes \
8353 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
8354 # It might be that x_includes is empty (headers are found in the
8355 # standard search path. Then output the corresponding message
8356 ac_out_x_includes=$x_includes
8357 test "x
$x_includes" = x && ac_out_x_includes="in standard search path
"
8358 echo "$as_me:$LINENO: result
: libraries
$x_libraries, headers
$ac_out_x_includes" >&5
8359 echo "${ECHO_T}libraries
$x_libraries, headers
$ac_out_x_includes" >&6
8369 for ac_header in string.h strings.h stdlib.h stdlib.h
8371 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8372 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
8373 echo "$as_me:$LINENO: checking
for $ac_header" >&5
8374 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
8375 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
8376 echo $ECHO_N "(cached
) $ECHO_C" >&6
8378 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
8379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8381 # Is the header compilable?
8382 echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8383 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6
8384 cat >conftest.$ac_ext <<_ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 $ac_includes_default
8391 #include <$ac_header>
8393 rm -f conftest.$ac_objext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395 (eval $ac_compile) 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8407 (exit $ac_status); }; } &&
8408 { ac_try='test -s conftest.$ac_objext'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 ac_header_compiler=yes
8416 echo "$as_me: failed program was
:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 ac_header_compiler=no
8421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8422 echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8423 echo "${ECHO_T}$ac_header_compiler" >&6
8425 # Is the header present?
8426 echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8427 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 #include <$ac_header>
8436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
8437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8439 grep -v '^ *+' conftest.er1 >conftest.err
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8443 (exit $ac_status); } >/dev/null; then
8444 if test -s conftest.err; then
8445 ac_cpp_err=$ac_c_preproc_warn_flag
8446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8453 if test -z "$ac_cpp_err"; then
8454 ac_header_preproc=yes
8456 echo "$as_me: failed program was
:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 ac_header_preproc=no
8461 rm -f conftest.err conftest.$ac_ext
8462 echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8463 echo "${ECHO_T}$ac_header_preproc" >&6
8465 # So? What about this header?
8466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8468 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8469 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8470 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8472 ac_header_preproc=yes
8475 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8476 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8477 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8478 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8479 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8480 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8481 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8482 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8483 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8485 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8486 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8489 ## ------------------------------------------ ##
8490 ## Report this to the AC_PACKAGE_NAME lists. ##
8491 ## ------------------------------------------ ##
8494 sed "s
/^
/$as_me: WARNING
: /" >&2
8497 echo "$as_me:$LINENO: checking
for $ac_header" >&5
8498 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
8499 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
8500 echo $ECHO_N "(cached
) $ECHO_C" >&6
8502 eval "$as_ac_Header=\
$ac_header_preproc"
8504 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
8505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8509 cat >>confdefs.h <<_ACEOF
8510 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8518 echo "$as_me:$LINENO: checking
for fabs
in -lm" >&5
8519 echo $ECHO_N "checking
for fabs
in -lm...
$ECHO_C" >&6
8520 if test "${ac_cv_lib_m_fabs+set}" = set; then
8521 echo $ECHO_N "(cached
) $ECHO_C" >&6
8523 ac_check_lib_save_LIBS=$LIBS
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8532 /* Override any gcc2 internal prototype to avoid an error. */
8536 /* We use char because int might match the return type of a gcc2
8537 builtin and then its argument prototype would still apply. */
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549 (eval $ac_link) 2>conftest.er1
8551 grep -v '^ *+' conftest.er1 >conftest.err
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8561 (exit $ac_status); }; } &&
8562 { ac_try='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 ac_cv_lib_m_fabs=yes
8570 echo "$as_me: failed program was
:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8575 rm -f conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577 LIBS=$ac_check_lib_save_LIBS
8579 echo "$as_me:$LINENO: result
: $ac_cv_lib_m_fabs" >&5
8580 echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
8581 if test $ac_cv_lib_m_fabs = yes; then
8582 cat >>confdefs.h <<_ACEOF
8593 for ac_func in aint anint sqrt
8595 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
8596 echo "$as_me:$LINENO: checking
for $ac_func" >&5
8597 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6
8598 if eval "test \"\
${$as_ac_var+set}\" = set"; then
8599 echo $ECHO_N "(cached
) $ECHO_C" >&6
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8609 #define $ac_func innocuous_$ac_func
8611 /* System header to define __stub macros and hopefully few prototypes,
8612 which can conflict with char $ac_func (); below.
8613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8614 <limits.h> exists even on freestanding compilers. */
8617 # include <limits.h>
8619 # include <assert.h>
8624 /* Override any gcc2 internal prototype to avoid an error. */
8629 /* We use char because int might match the return type of a gcc2
8630 builtin and then its argument prototype would still apply. */
8632 /* The GNU C library defines this for functions which it implements
8633 to always fail with ENOSYS. Some functions are actually named
8634 something starting with __ and the normal name is an alias. */
8635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8638 char (*f) () = $ac_func;
8647 return f != $ac_func;
8652 rm -f conftest.$ac_objext conftest$ac_exeext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654 (eval $ac_link) 2>conftest.er1
8656 grep -v '^ *+' conftest.er1 >conftest.err
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8660 (exit $ac_status); } &&
8661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8666 (exit $ac_status); }; } &&
8667 { ac_try='test -s conftest$ac_exeext'
8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8672 (exit $ac_status); }; }; then
8673 eval "$as_ac_var=yes"
8675 echo "$as_me: failed program was
:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 eval "$as_ac_var=no
"
8680 rm -f conftest.err conftest.$ac_objext \
8681 conftest$ac_exeext conftest.$ac_ext
8683 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_var'}'`" >&5
8684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8685 if test `eval echo '${'$as_ac_var'}'` = yes; then
8686 cat >>confdefs.h <<_ACEOF
8687 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
8695 ac_sources="$sim_link_files"
8696 ac_dests="$sim_link_links"
8697 while test -n "$ac_sources"; do
8698 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8699 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8700 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
8702 ac_config_links="$ac_config_links $ac_config_links_1"
8705 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
8706 cgen_breaks="break cgen_rtx_error
";
8709 ac_config_files="$ac_config_files Makefile.sim
:Makefile.
in"
8711 ac_config_files="$ac_config_files Make-common.sim
:..
/common
/Make-common.
in"
8713 ac_config_files="$ac_config_files .gdbinit
:..
/common
/gdbinit.
in"
8715 ac_config_commands="$ac_config_commands Makefile
"
8717 ac_config_commands="$ac_config_commands stamp-h
"
8719 cat >confcache <<\_ACEOF
8720 # This file is a shell script that caches the results of configure
8721 # tests run on this system so they can be shared between configure
8722 # scripts and configure runs, see configure's option --config-cache.
8723 # It is not useful on other systems. If it contains results you don't
8724 # want to keep, you may remove or edit it.
8726 # config.status only pays attention to the cache file if you give it
8727 # the --recheck option to rerun configure.
8729 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8730 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8735 # The following way of writing the cache mishandles newlines in values,
8736 # but we know of no workaround that is simple, portable, and efficient.
8737 # So, don't put newlines in cache variables' values.
8738 # Ultrix sh set writes to stderr and can't be redirected directly,
8739 # and sets the high bit in the cache file unless we assign to the vars.
8742 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8744 # `set' does not quote correctly, so add quotes (double-quote
8745 # substitution turns \\\\ into \\, and sed turns \\ into \).
8748 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
8751 # `set' quotes correctly as required by POSIX, so do not add quotes.
8753 "s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1=\\2/p
"
8760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8762 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8764 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8765 if test -w $cache_file; then
8766 test "x
$cache_file" != "x
/dev
/null
" && echo "updating cache
$cache_file"
8767 cat confcache >$cache_file
8769 echo "not updating unwritable cache
$cache_file"
8774 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
8775 # Let make expand exec_prefix.
8776 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
8778 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8779 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8780 # trailing colons and then remove the whole line if VPATH becomes empty
8781 # (actually we leave an empty line to preserve line numbers).
8782 if test "x
$srcdir" = x.; then
8783 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8784 s/:*\$(srcdir):*/:/;
8785 s/:*\${srcdir}:*/:/;
8787 s/^\([^=]*=[ ]*\):*/\1/;
8793 DEFS=-DHAVE_CONFIG_H
8797 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
8798 # 1. Remove the extension, and $U if already installed.
8799 ac_i=`echo "$ac_i" |
8800 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8802 ac_libobjs="$ac_libobjs $ac_i\
$U.
$ac_objext"
8803 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8807 LTLIBOBJS=$ac_ltlibobjs
8811 : ${CONFIG_STATUS=./config.status}
8812 ac_clean_files_save=$ac_clean_files
8813 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8814 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
8815 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
8816 cat >$CONFIG_STATUS <<_ACEOF
8818 # Generated by $as_me.
8819 # Run this file to recreate the current configuration.
8820 # Compiler output produced by configure, useful for debugging
8821 # configure, is in config.log if it exists.
8826 SHELL=\${CONFIG_SHELL-$SHELL}
8829 cat >>$CONFIG_STATUS <<\_ACEOF
8830 ## --------------------- ##
8831 ## M4sh Initialization. ##
8832 ## --------------------- ##
8834 # Be Bourne compatible
8835 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8838 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8839 # is contrary to our usage. Disable this feature.
8840 alias -g '${1+"$@"}'='"$@
"'
8841 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8844 DUALCASE=1; export DUALCASE # for MKS sh
8846 # Support unset when possible.
8847 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8854 # Work around bugs in pre-3.0 UWIN ksh.
8855 $as_unset ENV MAIL MAILPATH
8862 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8863 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8864 LC_TELEPHONE LC_TIME
8866 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8867 eval $as_var=C; export $as_var
8873 # Required to use basename.
8874 if expr a : '\(a\)' >/dev/null 2>&1; then
8880 if (basename /) >/dev/null 2>&1 && test "X
`basename / 2>&1`" = "X
/"; then
8881 as_basename=basename
8887 # Name of the executable.
8888 as_me=`$as_basename "$0" ||
8889 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8890 X"$0" : 'X\(//\)$' \| \
8891 X"$0" : 'X\(/\)$' \| \
8892 . : '\(.\)' 2>/dev/null ||
8894 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8895 /^X\/\(\/\/\)$/{ s//\1/; q; }
8896 /^X\/\(\/\).*/{ s//\1/; q; }
8900 # PATH needs CR, and LINENO needs CR and PATH.
8901 # Avoid depending upon Character Ranges.
8902 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8905 as_cr_digits='0123456789'
8906 as_cr_alnum=$as_cr_Letters$as_cr_digits
8908 # The user is always right.
8909 if test "${PATH_SEPARATOR+set}" != set; then
8910 echo "#! /bin/sh" >conf$$.sh
8911 echo "exit 0" >>conf$$.sh
8913 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8924 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8925 test "x$as_lineno_1" != "x$as_lineno_2" &&
8926 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8927 # Find who we are. Look in the path if we contain no path at all
8930 *[\\/]* ) as_myself
=$0 ;;
8931 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8935 test -z "$as_dir" && as_dir
=.
8936 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8941 # We did not find ourselves, most probably we were run as `sh COMMAND'
8942 # in which case we are not to be found in the path.
8943 if test "x$as_myself" = x
; then
8946 if test ! -f "$as_myself"; then
8947 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8948 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8949 { (exit 1); exit 1; }; }
8951 case $CONFIG_SHELL in
8953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8954 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8957 test -z "$as_dir" && as_dir
=.
8958 for as_base
in sh bash ksh sh5
; do
8961 if ("$as_dir/$as_base" -c '
8964 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8965 test "x$as_lineno_1" != "x$as_lineno_2" &&
8966 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8967 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8968 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8969 CONFIG_SHELL
=$as_dir/$as_base
8971 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8979 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8980 # uniformly replaced by the line number. The first 'sed' inserts a
8981 # line-number line before each line; the second 'sed' does the real
8982 # work. The second script uses 'N' to pair each line-number line
8983 # with the numbered line, and appends trailing '-' during
8984 # substitution so that $LINENO is not a special case at line end.
8985 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8986 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8987 sed '=' <$as_myself |
8992 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8995 s,^['$as_cr_digits']*\n,,
8997 chmod +x
$as_me.lineno ||
8998 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8999 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9000 { (exit 1); exit 1; }; }
9002 # Don't try to exec as it changes $[0], causing all sort of problems
9003 # (the dirname of $[0] is not the place where we might find the
9004 # original and so on. Autoconf is especially sensible to this).
9006 # Exit status is that of the last command.
9011 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9012 *c
*,-n*) ECHO_N
= ECHO_C
='
9014 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
9015 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
9018 if expr a
: '\(a\)' >/dev
/null
2>&1; then
9024 rm -f conf$$ conf$$.exe conf$$.
file
9026 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9027 # We could just check for DJGPP; but this test a) works b) is more generic
9028 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9029 if test -f conf$$.exe
; then
9030 # Don't use ln at all; we don't have any links
9035 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9040 rm -f conf$$ conf$$.exe conf$$.
file
9042 if mkdir
-p .
2>/dev
/null
; then
9045 test -d .
/-p && rmdir .
/-p
9049 as_executable_p
="test -f"
9051 # Sed expression to map a string onto a valid CPP name.
9052 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9054 # Sed expression to map a string onto a valid variable name.
9055 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9059 # We need space, tab and new line, in precisely that order.
9069 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9070 # report actual input values of CONFIG_FILES etc. instead of their
9071 # values after options handling. Logging --version etc. is OK.
9075 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9076 ## Running $as_me. ##
9081 This file was extended by $as_me, which was
9082 generated by GNU Autoconf 2.59. Invocation command line was
9084 CONFIG_FILES = $CONFIG_FILES
9085 CONFIG_HEADERS = $CONFIG_HEADERS
9086 CONFIG_LINKS = $CONFIG_LINKS
9087 CONFIG_COMMANDS = $CONFIG_COMMANDS
9091 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9095 # Files that config.status was made for.
9096 if test -n "$ac_config_files"; then
9097 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9100 if test -n "$ac_config_headers"; then
9101 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9104 if test -n "$ac_config_links"; then
9105 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9108 if test -n "$ac_config_commands"; then
9109 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9112 cat >>$CONFIG_STATUS <<\_ACEOF
9115 \`$as_me' instantiates files from templates according to the
9116 current configuration.
9118 Usage: $0 [OPTIONS] [FILE]...
9120 -h, --help print this help, then exit
9121 -V, --version print version number, then exit
9122 -q, --quiet do not print progress messages
9123 -d, --debug don't remove temporary files
9124 --recheck update $as_me by reconfiguring in the same conditions
9125 --file=FILE[:TEMPLATE]
9126 instantiate the configuration file FILE
9127 --header=FILE[:TEMPLATE]
9128 instantiate the configuration header FILE
9130 Configuration files:
9133 Configuration headers:
9136 Configuration links:
9139 Configuration commands:
9142 Report bugs to <bug-autoconf@gnu.org>."
9145 cat >>$CONFIG_STATUS <<_ACEOF
9148 configured by $0, generated by GNU Autoconf 2.59,
9149 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9151 Copyright (C) 2003 Free Software Foundation, Inc.
9152 This config.status script is free software; the Free Software Foundation
9153 gives unlimited permission to copy, distribute and modify it."
9158 cat >>$CONFIG_STATUS <<\_ACEOF
9159 # If no file are specified by the user, then we need to provide default
9160 # value. By we need to know if files were specified by the user.
9166 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
9167 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
9175 *) # This is not an option, so the user has probably given explicit
9178 ac_need_defaults
=false
;;
9182 # Handling of the options.
9184 cat >>$CONFIG_STATUS <<\_ACEOF
9185 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9187 --version |
--vers* |
-V )
9188 echo "$ac_cs_version"; exit 0 ;;
9190 # Conflict between --help and --header
9191 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9192 Try \`$0 --help' for more information." >&5
9193 echo "$as_me: error: ambiguous option: $1
9194 Try \`$0 --help' for more information." >&2;}
9195 { (exit 1); exit 1; }; };;
9196 --help |
--hel |
-h )
9197 echo "$ac_cs_usage"; exit 0 ;;
9198 --debug |
--d* |
-d )
9200 --file |
--fil |
--fi |
--f )
9202 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
9203 ac_need_defaults
=false
;;
9204 --header |
--heade |
--head |
--hea )
9206 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
9207 ac_need_defaults
=false
;;
9208 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9209 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9213 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9214 Try \`$0 --help' for more information." >&5
9215 echo "$as_me: error: unrecognized option: $1
9216 Try \`$0 --help' for more information." >&2;}
9217 { (exit 1); exit 1; }; } ;;
9219 *) ac_config_targets
="$ac_config_targets $1" ;;
9225 ac_configure_extra_args
=
9227 if $ac_cs_silent; then
9229 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9233 cat >>$CONFIG_STATUS <<_ACEOF
9234 if \$ac_cs_recheck; then
9235 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9236 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9245 cat >>$CONFIG_STATUS <<\_ACEOF
9246 for ac_config_target
in $ac_config_targets
9248 case "$ac_config_target" in
9249 # Handling of arguments.
9250 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
9251 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
9252 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
9253 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
9254 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
9255 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
9256 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
9257 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9258 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9259 { (exit 1); exit 1; }; };;
9263 # If the user did not use the arguments to specify the items to instantiate,
9264 # then the envvar interface is used. Set only those that are not.
9265 # We use the long form for the default assignment because of an extremely
9266 # bizarre bug on SunOS 4.1.3.
9267 if $ac_need_defaults; then
9268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9270 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
9271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9274 # Have a temporary directory for convenience. Make it in the build tree
9275 # simply because there is no reason to put it here, and in addition,
9276 # creating and moving files from /tmp can sometimes cause problems.
9277 # Create a temporary directory, and hook for its removal unless debugging.
9280 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9281 trap '{ (exit 1); exit 1; }' 1 2 13 15
9284 # Create a (secure) tmp directory for tmp files.
9287 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9288 test -n "$tmp" && test -d "$tmp"
9291 tmp
=.
/confstat$$
-$RANDOM
9292 (umask 077 && mkdir
$tmp)
9295 echo "$me: cannot create a temporary directory in ." >&2
9296 { (exit 1); exit 1; }
9301 cat >>$CONFIG_STATUS <<_ACEOF
9304 # CONFIG_FILES section.
9307 # No need to generate the scripts if there are no CONFIG_FILES.
9308 # This happens for instance when ./config.status config.h
9309 if test -n "\$CONFIG_FILES"; then
9310 # Protect against being on the right side of a sed subst in config.status.
9311 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9312 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9313 s,@SHELL@,$SHELL,;t t
9314 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9315 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9316 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9317 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9318 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9319 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9320 s,@exec_prefix@,$exec_prefix,;t t
9321 s,@prefix@,$prefix,;t t
9322 s,@program_transform_name@,$program_transform_name,;t t
9323 s,@bindir@,$bindir,;t t
9324 s,@sbindir@,$sbindir,;t t
9325 s,@libexecdir@,$libexecdir,;t t
9326 s,@datadir@,$datadir,;t t
9327 s,@sysconfdir@,$sysconfdir,;t t
9328 s,@sharedstatedir@,$sharedstatedir,;t t
9329 s,@localstatedir@,$localstatedir,;t t
9330 s,@libdir@,$libdir,;t t
9331 s,@includedir@,$includedir,;t t
9332 s,@oldincludedir@,$oldincludedir,;t t
9333 s,@infodir@,$infodir,;t t
9334 s,@mandir@,$mandir,;t t
9335 s,@build_alias@,$build_alias,;t t
9336 s,@host_alias@,$host_alias,;t t
9337 s,@target_alias@,$target_alias,;t t
9339 s,@ECHO_C@,$ECHO_C,;t t
9340 s,@ECHO_N@,$ECHO_N,;t t
9341 s,@ECHO_T@,$ECHO_T,;t t
9343 s,@sim_environment@,$sim_environment,;t t
9344 s,@sim_alignment@,$sim_alignment,;t t
9345 s,@sim_assert@,$sim_assert,;t t
9346 s,@sim_bitsize@,$sim_bitsize,;t t
9347 s,@sim_endian@,$sim_endian,;t t
9348 s,@sim_hostendian@,$sim_hostendian,;t t
9349 s,@sim_float@,$sim_float,;t t
9350 s,@sim_scache@,$sim_scache,;t t
9351 s,@sim_default_model@,$sim_default_model,;t t
9352 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9353 s,@sim_hw_objs@,$sim_hw_objs,;t t
9354 s,@sim_hw@,$sim_hw,;t t
9355 s,@sim_inline@,$sim_inline,;t t
9356 s,@sim_packages@,$sim_packages,;t t
9357 s,@sim_regparm@,$sim_regparm,;t t
9358 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9359 s,@sim_smp@,$sim_smp,;t t
9360 s,@sim_stdcall@,$sim_stdcall,;t t
9361 s,@sim_xor_endian@,$sim_xor_endian,;t t
9362 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9363 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9364 s,@build@,$build,;t t
9365 s,@build_cpu@,$build_cpu,;t t
9366 s,@build_vendor@,$build_vendor,;t t
9367 s,@build_os@,$build_os,;t t
9369 s,@host_cpu@,$host_cpu,;t t
9370 s,@host_vendor@,$host_vendor,;t t
9371 s,@host_os@,$host_os,;t t
9372 s,@target@,$target,;t t
9373 s,@target_cpu@,$target_cpu,;t t
9374 s,@target_vendor@,$target_vendor,;t t
9375 s,@target_os@,$target_os,;t t
9377 s,@CFLAGS@,$CFLAGS,;t t
9378 s,@LDFLAGS@,$LDFLAGS,;t t
9379 s,@CPPFLAGS@,$CPPFLAGS,;t t
9380 s,@ac_ct_CC@,$ac_ct_CC,;t t
9381 s,@EXEEXT@,$EXEEXT,;t t
9382 s,@OBJEXT@,$OBJEXT,;t t
9383 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9384 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9385 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9386 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9387 s,@HDEFINES@,$HDEFINES,;t t
9389 s,@RANLIB@,$RANLIB,;t t
9390 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9391 s,@SET_MAKE@,$SET_MAKE,;t t
9393 s,@EGREP@,$EGREP,;t t
9394 s,@ALLOCA@,$ALLOCA,;t t
9395 s,@USE_NLS@,$USE_NLS,;t t
9396 s,@MSGFMT@,$MSGFMT,;t t
9397 s,@GMSGFMT@,$GMSGFMT,;t t
9398 s,@XGETTEXT@,$XGETTEXT,;t t
9399 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9400 s,@CATALOGS@,$CATALOGS,;t t
9401 s,@CATOBJEXT@,$CATOBJEXT,;t t
9402 s,@DATADIRNAME@,$DATADIRNAME,;t t
9403 s,@GMOFILES@,$GMOFILES,;t t
9404 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9405 s,@INTLDEPS@,$INTLDEPS,;t t
9406 s,@INTLLIBS@,$INTLLIBS,;t t
9407 s,@INTLOBJS@,$INTLOBJS,;t t
9408 s,@POFILES@,$POFILES,;t t
9409 s,@POSUB@,$POSUB,;t t
9410 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9411 s,@GT_NO@,$GT_NO,;t t
9412 s,@GT_YES@,$GT_YES,;t t
9413 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9415 s,@MAINT@,$MAINT,;t t
9416 s,@sim_bswap@,$sim_bswap,;t t
9417 s,@sim_cflags@,$sim_cflags,;t t
9418 s,@sim_debug@,$sim_debug,;t t
9419 s,@sim_stdio@,$sim_stdio,;t t
9420 s,@sim_trace@,$sim_trace,;t t
9421 s,@sim_profile@,$sim_profile,;t t
9422 s,@SIM_SUBTARGET@,$SIM_SUBTARGET,;t t
9423 s,@sim_igen_flags@,$sim_igen_flags,;t t
9424 s,@sim_m16_flags@,$sim_m16_flags,;t t
9425 s,@sim_gen@,$sim_gen,;t t
9426 s,@sim_multi_flags@,$sim_multi_flags,;t t
9427 s,@sim_multi_igen_configs@,$sim_multi_igen_configs,;t t
9428 s,@sim_multi_src@,$sim_multi_src,;t t
9429 s,@sim_multi_obj@,$sim_multi_obj,;t t
9430 s,@mips_extra_objs@,$mips_extra_objs,;t t
9431 s,@mips_igen_engine@,$mips_igen_engine,;t t
9432 s,@mips_extra_libs@,$mips_extra_libs,;t t
9433 s,@cgen_breaks@,$cgen_breaks,;t t
9434 s,@LIBOBJS@,$LIBOBJS,;t t
9435 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9440 cat >>$CONFIG_STATUS <<\_ACEOF
9441 # Split the substitutions into bite-sized pieces for seds with
9442 # small command number limits, like on Digital OSF/1 and HP-UX.
9444 ac_sed_frag
=1 # Number of current file.
9445 ac_beg
=1 # First line for current file.
9446 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9449 while $ac_more_lines; do
9450 if test $ac_beg -gt 1; then
9451 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9453 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9455 if test ! -s $tmp/subs.frag
; then
9458 # The purpose of the label and of the branching condition is to
9459 # speed up the sed processing (if there are no `@' at all, there
9460 # is no need to browse any of the substitutions).
9461 # These are the two extra sed commands mentioned above.
9463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
9464 if test -z "$ac_sed_cmds"; then
9465 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9467 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9469 ac_sed_frag
=`expr $ac_sed_frag + 1`
9471 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9474 if test -z "$ac_sed_cmds"; then
9477 fi # test -n "$CONFIG_FILES"
9480 cat >>$CONFIG_STATUS <<\_ACEOF
9481 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9482 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9484 - |
*:- |
*:-:* ) # input from stdin
9486 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9487 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9488 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9489 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9490 * ) ac_file_in
=$ac_file.
in ;;
9493 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9494 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9495 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9496 X"$ac_file" : 'X\(//\)[^/]' \| \
9497 X"$ac_file" : 'X\(//\)$' \| \
9498 X"$ac_file" : 'X\(/\)' \| \
9499 . : '\(.\)' 2>/dev/null ||
9501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9503 /^X\(\/\/\)$/{ s//\1/; q; }
9504 /^X\(\/\).*/{ s//\1/; q; }
9506 { if $as_mkdir_p; then
9511 while test ! -d "$as_dir"; do
9512 as_dirs
="$as_dir $as_dirs"
9513 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9515 X"$as_dir" : 'X\(//\)[^/]' \| \
9516 X"$as_dir" : 'X\(//\)$' \| \
9517 X"$as_dir" : 'X\(/\)' \| \
9518 . : '\(.\)' 2>/dev/null ||
9520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9522 /^X\(\/\/\)$/{ s//\1/; q; }
9523 /^X\(\/\).*/{ s//\1/; q; }
9526 test ! -n "$as_dirs" || mkdir
$as_dirs
9527 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9528 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9529 { (exit 1); exit 1; }; }; }
9533 if test "$ac_dir" != .
; then
9534 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9535 # A "../" for each directory in $ac_dir_suffix.
9536 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9538 ac_dir_suffix
= ac_top_builddir
=
9542 .
) # No --srcdir option. We are building in place.
9544 if test -z "$ac_top_builddir"; then
9547 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9549 [\\/]* | ?
:[\\/]* ) # Absolute path.
9550 ac_srcdir
=$srcdir$ac_dir_suffix;
9551 ac_top_srcdir
=$srcdir ;;
9553 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9554 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9557 # Do not use `cd foo && pwd` to compute absolute paths, because
9558 # the directories may not exist.
9560 .
) ac_abs_builddir
="$ac_dir";;
9563 .
) ac_abs_builddir
=`pwd`;;
9564 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9565 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9568 case $ac_abs_builddir in
9569 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9571 case ${ac_top_builddir}.
in
9572 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9573 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9574 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9577 case $ac_abs_builddir in
9578 .
) ac_abs_srcdir
=$ac_srcdir;;
9581 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9582 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9583 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9586 case $ac_abs_builddir in
9587 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9589 case $ac_top_srcdir in
9590 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9591 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9592 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9598 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9599 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
9602 # Let's still pretend it is `configure' which instantiates (i.e., don't
9603 # use $as_me), people would be surprised to read:
9604 # /* config.h. Generated by config.status. */
9605 if test x
"$ac_file" = x-
; then
9608 configure_input
="$ac_file. "
9610 configure_input
=$configure_input"Generated from `echo $ac_file_in |
9611 sed 's,.*/,,'` by configure."
9613 # First look for the input files in the build tree, otherwise in the
9615 ac_file_inputs
=`IFS=:
9616 for f in $ac_file_in; do
9618 -) echo $tmp/stdin ;;
9620 # Absolute (can't be DOS-style, as IFS=:)
9621 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9622 echo "$as_me: error: cannot find input file: $f" >&2;}
9623 { (exit 1); exit 1; }; }
9626 if test -f "$f"; then
9629 elif test -f "$srcdir/$f"; then
9634 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9635 echo "$as_me: error: cannot find input file: $f" >&2;}
9636 { (exit 1); exit 1; }; }
9639 done` ||
{ (exit 1); exit 1; }
9641 if test x
"$ac_file" != x-
; then
9642 { echo "$as_me:$LINENO: creating $ac_file" >&5
9643 echo "$as_me: creating $ac_file" >&6;}
9647 cat >>$CONFIG_STATUS <<_ACEOF
9651 cat >>$CONFIG_STATUS <<\_ACEOF
9653 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9654 s
,@configure_input@
,$configure_input,;t t
9655 s
,@srcdir@
,$ac_srcdir,;t t
9656 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9657 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9658 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9659 s
,@builddir@
,$ac_builddir,;t t
9660 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9661 s
,@top_builddir@
,$ac_top_builddir,;t t
9662 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9663 s
,@INSTALL@
,$ac_INSTALL,;t t
9664 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9666 if test x"$ac_file" != x-; then
9667 mv $tmp/out $ac_file
9675 cat >>$CONFIG_STATUS <<\_ACEOF
9678 # CONFIG_HEADER section.
9681 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9682 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9684 # ac_d sets the value in "#define NAME VALUE" lines.
9685 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9686 ac_dB
='[ ].*$,\1#\2'
9689 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9690 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9691 ac_uB
='$,\1#\2define\3'
9695 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9696 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9698 - |
*:- |
*:-:* ) # input from stdin
9700 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9701 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9702 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9703 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9704 * ) ac_file_in
=$ac_file.
in ;;
9707 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9708 echo "$as_me: creating $ac_file" >&6;}
9710 # First look for the input files in the build tree, otherwise in the
9712 ac_file_inputs
=`IFS=:
9713 for f in $ac_file_in; do
9715 -) echo $tmp/stdin ;;
9717 # Absolute (can't be DOS-style, as IFS=:)
9718 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9719 echo "$as_me: error: cannot find input file: $f" >&2;}
9720 { (exit 1); exit 1; }; }
9721 # Do quote $f, to prevent DOS paths from being IFS'd.
9724 if test -f "$f"; then
9727 elif test -f "$srcdir/$f"; then
9732 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9733 echo "$as_me: error: cannot find input file: $f" >&2;}
9734 { (exit 1); exit 1; }; }
9737 done` ||
{ (exit 1); exit 1; }
9738 # Remove the trailing spaces.
9739 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9743 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9744 # `conftest.undefs', that substitutes the proper values into
9745 # config.h.in to produce config.h. The first handles `#define'
9746 # templates, and the second `#undef' templates.
9747 # And first: Protect against being on the right side of a sed subst in
9748 # config.status. Protect against being in an unquoted here document
9750 rm -f conftest.defines conftest.undefs
9751 # Using a here document instead of a string reduces the quoting nightmare.
9752 # Putting comments in sed scripts is not portable.
9754 # `end' is used to avoid that the second main sed command (meant for
9755 # 0-ary CPP macros) applies to n-ary macro definitions.
9756 # See the Autoconf documentation for `clear'.
9757 cat >confdef2sed.
sed <<\_ACEOF
9762 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9764 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9767 # If some macros were called several times there might be several times
9768 # the same #defines, which is useless. Nevertheless, we may not want to
9769 # sort them, since we want the *last* AC-DEFINE to be honored.
9770 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9771 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9772 rm -f confdef2sed.sed
9774 # This sed command replaces #undef with comments. This is necessary, for
9775 # example, in the case of _POSIX_SOURCE, which is predefined and required
9776 # on some systems where configure will not decide to define it.
9777 cat >>conftest.undefs <<\_ACEOF
9778 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9781 # Break up conftest.defines because some shells have a limit on the size
9782 # of here documents, and old seds have small limits too (100 cmds).
9783 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9784 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9785 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9786 echo ' :' >>$CONFIG_STATUS
9788 while grep . conftest.defines >/dev/null
9790 # Write a limited-size here document to $tmp/defines.sed.
9791 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9792 # Speed up: don't consider the non `#define' lines.
9793 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9794 # Work around the forget-to-reset-the-flag bug.
9795 echo 't clr' >>$CONFIG_STATUS
9796 echo ': clr' >>$CONFIG_STATUS
9797 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9799 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9803 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9804 rm -f conftest.defines
9805 mv conftest.
tail conftest.defines
9807 rm -f conftest.defines
9808 echo ' fi # grep' >>$CONFIG_STATUS
9809 echo >>$CONFIG_STATUS
9811 # Break up conftest.undefs because some shells have a limit on the size
9812 # of here documents, and old seds have small limits too (100 cmds).
9813 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9815 while grep . conftest.undefs
>/dev
/null
9817 # Write a limited-size here document to $tmp/undefs.sed.
9818 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9819 # Speed up: don't consider the non
`#undef'
9820 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9821 # Work around the forget-to-reset-the-flag bug.
9822 echo 't clr' >>$CONFIG_STATUS
9823 echo ': clr' >>$CONFIG_STATUS
9824 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9826 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9830 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9831 rm -f conftest.undefs
9832 mv conftest.tail conftest.undefs
9834 rm -f conftest.undefs
9836 cat >>$CONFIG_STATUS <<\_ACEOF
9837 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9838 # use $as_me), people would be surprised to read:
9839 # /* config.h. Generated by config.status. */
9840 if test x
"$ac_file" = x-
; then
9841 echo "/* Generated by configure. */" >$tmp/config.h
9843 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9845 cat $tmp/in >>$tmp/config.h
9847 if test x
"$ac_file" != x-
; then
9848 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9849 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9850 echo "$as_me: $ac_file is unchanged" >&6;}
9852 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9854 X"$ac_file" : 'X\(//\)[^/]' \| \
9855 X"$ac_file" : 'X\(//\)$' \| \
9856 X"$ac_file" : 'X\(/\)' \| \
9857 . : '\(.\)' 2>/dev/null ||
9859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9860 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9861 /^X\(\/\/\)$/{ s//\1/; q; }
9862 /^X\(\/\).*/{ s//\1/; q; }
9864 { if $as_mkdir_p; then
9869 while test ! -d "$as_dir"; do
9870 as_dirs
="$as_dir $as_dirs"
9871 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9872 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9873 X"$as_dir" : 'X\(//\)[^/]' \| \
9874 X"$as_dir" : 'X\(//\)$' \| \
9875 X"$as_dir" : 'X\(/\)' \| \
9876 . : '\(.\)' 2>/dev/null ||
9878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9879 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9880 /^X\(\/\/\)$/{ s//\1/; q; }
9881 /^X\(\/\).*/{ s//\1/; q; }
9884 test ! -n "$as_dirs" || mkdir
$as_dirs
9885 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9886 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9887 { (exit 1); exit 1; }; }; }
9890 mv $tmp/config.h
$ac_file
9898 cat >>$CONFIG_STATUS <<\_ACEOF
9901 # CONFIG_LINKS section.
9904 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
9905 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9906 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9908 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9909 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9911 if test ! -r $srcdir/$ac_source; then
9912 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9913 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9914 { (exit 1); exit 1; }; }
9918 # Make relative symlinks.
9919 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9920 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9921 X"$ac_dest" : 'X\(//\)[^/]' \| \
9922 X"$ac_dest" : 'X\(//\)$' \| \
9923 X"$ac_dest" : 'X\(/\)' \| \
9924 . : '\(.\)' 2>/dev/null ||
9926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9928 /^X\(\/\/\)$/{ s//\1/; q; }
9929 /^X\(\/\).*/{ s//\1/; q; }
9931 { if $as_mkdir_p; then
9932 mkdir
-p "$ac_dest_dir"
9934 as_dir
="$ac_dest_dir"
9936 while test ! -d "$as_dir"; do
9937 as_dirs
="$as_dir $as_dirs"
9938 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9940 X"$as_dir" : 'X\(//\)[^/]' \| \
9941 X"$as_dir" : 'X\(//\)$' \| \
9942 X"$as_dir" : 'X\(/\)' \| \
9943 . : '\(.\)' 2>/dev/null ||
9945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9947 /^X\(\/\/\)$/{ s//\1/; q; }
9948 /^X\(\/\).*/{ s//\1/; q; }
9951 test ! -n "$as_dirs" || mkdir
$as_dirs
9952 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9953 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9954 { (exit 1); exit 1; }; }; }
9958 if test "$ac_dest_dir" != .
; then
9959 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9960 # A "../" for each directory in $ac_dir_suffix.
9961 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9963 ac_dir_suffix
= ac_top_builddir
=
9967 .
) # No --srcdir option. We are building in place.
9969 if test -z "$ac_top_builddir"; then
9972 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9974 [\\/]* | ?
:[\\/]* ) # Absolute path.
9975 ac_srcdir
=$srcdir$ac_dir_suffix;
9976 ac_top_srcdir
=$srcdir ;;
9978 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9979 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9982 # Do not use `cd foo && pwd` to compute absolute paths, because
9983 # the directories may not exist.
9985 .
) ac_abs_builddir
="$ac_dest_dir";;
9987 case "$ac_dest_dir" in
9988 .
) ac_abs_builddir
=`pwd`;;
9989 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
9990 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
9993 case $ac_abs_builddir in
9994 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9996 case ${ac_top_builddir}.
in
9997 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9998 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9999 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10002 case $ac_abs_builddir in
10003 .
) ac_abs_srcdir
=$ac_srcdir;;
10006 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10007 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10008 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10011 case $ac_abs_builddir in
10012 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10014 case $ac_top_srcdir in
10015 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10016 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10017 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10023 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
10024 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
10027 # Try a symlink, then a hard link, then a copy.
10028 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
10029 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
10030 cp -p $srcdir/$ac_source $ac_dest ||
10031 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10032 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10033 { (exit 1); exit 1; }; }
10036 cat >>$CONFIG_STATUS <<\_ACEOF
10039 # CONFIG_COMMANDS section.
10041 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
10042 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
10043 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10044 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
10045 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10046 X"$ac_dest" : 'X\(//\)[^/]' \| \
10047 X"$ac_dest" : 'X\(//\)$' \| \
10048 X"$ac_dest" : 'X\(/\)' \| \
10049 . : '\(.\)' 2>/dev/null ||
10051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10053 /^X\(\/\/\)$/{ s//\1/; q; }
10054 /^X\(\/\).*/{ s//\1/; q; }
10056 { if $as_mkdir_p; then
10061 while test ! -d "$as_dir"; do
10062 as_dirs
="$as_dir $as_dirs"
10063 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10065 X"$as_dir" : 'X\(//\)[^/]' \| \
10066 X"$as_dir" : 'X\(//\)$' \| \
10067 X"$as_dir" : 'X\(/\)' \| \
10068 . : '\(.\)' 2>/dev/null ||
10070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10072 /^X\(\/\/\)$/{ s//\1/; q; }
10073 /^X\(\/\).*/{ s//\1/; q; }
10076 test ! -n "$as_dirs" || mkdir
$as_dirs
10077 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10078 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10079 { (exit 1); exit 1; }; }; }
10083 if test "$ac_dir" != .
; then
10084 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10085 # A "../" for each directory in $ac_dir_suffix.
10086 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10088 ac_dir_suffix
= ac_top_builddir
=
10092 .
) # No --srcdir option. We are building in place.
10094 if test -z "$ac_top_builddir"; then
10097 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10099 [\\/]* | ?
:[\\/]* ) # Absolute path.
10100 ac_srcdir
=$srcdir$ac_dir_suffix;
10101 ac_top_srcdir
=$srcdir ;;
10102 *) # Relative path.
10103 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10104 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10107 # Do not use `cd foo && pwd` to compute absolute paths, because
10108 # the directories may not exist.
10110 .
) ac_abs_builddir
="$ac_dir";;
10113 .
) ac_abs_builddir
=`pwd`;;
10114 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
10115 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
10118 case $ac_abs_builddir in
10119 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10121 case ${ac_top_builddir}.
in
10122 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
10123 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
10124 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
10127 case $ac_abs_builddir in
10128 .
) ac_abs_srcdir
=$ac_srcdir;;
10131 .
) ac_abs_srcdir
=$ac_abs_builddir;;
10132 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
10133 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
10136 case $ac_abs_builddir in
10137 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
10139 case $ac_top_srcdir in
10140 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
10141 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
10142 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
10147 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10148 echo "$as_me: executing $ac_dest commands" >&6;}
10150 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
10151 rm -f Makesim1.tmp Makesim2.tmp Makefile
10152 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
10153 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
10154 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
10155 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
10156 <Makefile.sim
>Makefile
10157 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
10159 stamp-h
) echo > stamp-h
;;
10164 cat >>$CONFIG_STATUS <<\_ACEOF
10166 { (exit 0); exit 0; }
10168 chmod +x
$CONFIG_STATUS
10169 ac_clean_files
=$ac_clean_files_save
10172 # configure is writing to config.log, and then calls config.status.
10173 # config.status does its own redirection, appending to config.log.
10174 # Unfortunately, on DOS this fails, as config.log is still kept open
10175 # by configure, so config.status won't be able to write to it; its
10176 # output is simply discarded. So we exec the FD to /dev/null,
10177 # effectively closing config.log, so it can be properly (re)opened and
10178 # appended to by config.status. When coming back to configure, we
10179 # need to make the FD available again.
10180 if test "$no_create" != yes; then
10182 ac_config_status_args
=
10183 test "$silent" = yes &&
10184 ac_config_status_args
="$ac_config_status_args --quiet"
10186 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10189 # would make configure fail if this is the last instruction.
10190 $ac_cs_success ||
{ (exit 1); exit 1; }