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 CGEN_MAINT cgendir cgen cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --build=BUILD configure
for building on BUILD
[guessed
]
841 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
842 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
852 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861 --enable-sim-endian=endian Specify target byte endian orientation.
862 --enable-sim-alignment=align Specify strict
, nonstrict or forced alignment of memory accesses.
863 --enable-sim-hostendian=end Specify
host byte endian orientation.
864 --enable-sim-scache=size Specify simulator execution cache size.
865 --enable-sim-default-model=model Specify default model to simulate.
866 --enable-sim-environment=environment Specify mixed
, user
, virtual or operating environment.
867 --enable-sim-inline=inlines Specify
which functions should be inlined.
868 --enable-cgen-maint=DIR build cgen generated files
871 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
872 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
873 --with-included-gettext use the GNU
gettext library included here
875 Some influential environment variables
:
876 CC C compiler
command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
879 nonstandard directory
<lib dir
>
880 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
881 headers
in a nonstandard directory
<include dir
>
884 Use these variables to override the choices made by
`configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
902 ac_dir_suffix= ac_top_builddir=
906 .) # No --srcdir option. We are building in place.
908 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Do not use `cd foo
&& pwd` to compute absolute paths, because
922 # the directories may not exist.
924 .) ac_abs_builddir="$ac_dir";;
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
1006 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1007 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1008 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1009 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1010 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1012 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1013 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1015 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1016 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1017 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1018 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1019 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1020 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1021 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_must_keep_next=false
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 -* ) ac_must_keep_next=true ;;
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close
' the trap.
1101 trap 'exit_status
=$?
1102 # Save into config.log some information that might help in debugging.
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1112 # The following way of writing the cache mishandles newlines in values,
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1135 for ac_var
in $ac_subst_vars
1137 eval ac_val
=$
`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -n "$ac_subst_files"; then
1149 for ac_var
in $ac_subst_files
1151 eval ac_val
=$
`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1157 if test -s confdefs.h
; then
1164 sed "/^$/d" confdefs.h |
sort
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1171 rm -f core
*.core
&&
1172 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's
/^
/|
/' "$ac_site_file" >&5
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1247 # Check that the precious variables saved in the cache have kept the same
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1260 ac_cache_corrupted=: ;;
1262 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1269 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1294 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1301 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 ac_config_headers="$ac_config_headers config.h:config.in"
1325 # This file contains common code used by all simulators.
1327 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1328 # directory. It is intended to be invoked before any target specific stuff.
1329 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1330 # It is intended to be invoked last.
1332 # The simulator's configure.
in should
look like
:
1334 # dnl Process this file with autoconf to produce a configure script.
1335 # sinclude(../common/aclocal.m4)
1337 # AC_INIT(Makefile.in)
1341 # ... target specific stuff ...
1392 sim_inline
="-DDEFAULT_INLINE=0"
1429 # This file is derived from `gettext.m4'. The difference is that the
1430 # included macros assume Cygnus-style source and build trees.
1432 # Macro to add for using GNU gettext.
1433 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1435 # This file file be copied and used freely without restrictions. It can
1436 # be used in projects which are not available under the GNU Public License
1437 # but which still want to provide support for the GNU gettext functionality.
1438 # Please note that the actual code is *not* freely available.
1446 # Search path for a program which passes the given test.
1447 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1449 # This file file be copied and used freely without restrictions. It can
1450 # be used in projects which are not available under the GNU Public License
1451 # but which still want to provide support for the GNU gettext functionality.
1452 # Please note that the actual code is *not* freely available.
1458 # Check whether LC_MESSAGES is available in <locale.h>.
1459 # Ulrich Drepper <drepper@cygnus.com>, 1995.
1461 # This file file be copied and used freely without restrictions. It can
1462 # be used in projects which are not available under the GNU Public License
1463 # but which still want to provide support for the GNU gettext functionality.
1464 # Please note that the actual code is *not* freely available.
1474 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1475 # it by inlining the macro's contents.
1476 # This file contains common code used by all simulators.
1478 # common.m4 invokes AC macros used by all simulators and by the common
1479 # directory. It is intended to be included before any target specific
1480 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1481 # the Makefile. It is intended to be invoked last.
1483 # The simulator's configure.in should look like:
1485 # dnl Process this file with autoconf to produce a configure script.
1487 # AC_INIT(Makefile.in)
1488 # AC_CONFIG_HEADER(config.h:config.in)
1490 # sinclude(../common/aclocal.m4)
1491 # sinclude(../common/common.m4)
1493 # ... target specific stuff ...
1496 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1497 if test -f $ac_dir/install-sh
; then
1499 ac_install_sh
="$ac_aux_dir/install-sh -c"
1501 elif test -f $ac_dir/install.sh
; then
1503 ac_install_sh
="$ac_aux_dir/install.sh -c"
1505 elif test -f $ac_dir/shtool
; then
1507 ac_install_sh
="$ac_aux_dir/shtool install -c"
1511 if test -z "$ac_aux_dir"; then
1512 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514 { (exit 1); exit 1; }; }
1516 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1517 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1518 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1520 # Make sure we can run config.sub.
1521 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1522 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: checking build system type" >&5
1527 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528 if test "${ac_cv_build+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 ac_cv_build_alias
=$build_alias
1532 test -z "$ac_cv_build_alias" &&
1533 ac_cv_build_alias
=`$ac_config_guess`
1534 test -z "$ac_cv_build_alias" &&
1535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537 { (exit 1); exit 1; }; }
1538 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1544 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545 echo "${ECHO_T}$ac_cv_build" >&6
1547 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552 echo "$as_me:$LINENO: checking host system type" >&5
1553 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554 if test "${ac_cv_host+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 ac_cv_host_alias
=$host_alias
1558 test -z "$ac_cv_host_alias" &&
1559 ac_cv_host_alias
=$ac_cv_build_alias
1560 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1566 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567 echo "${ECHO_T}$ac_cv_host" >&6
1569 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574 echo "$as_me:$LINENO: checking target system type" >&5
1575 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576 if test "${ac_cv_target+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 ac_cv_target_alias
=$target_alias
1580 test "x$ac_cv_target_alias" = "x" &&
1581 ac_cv_target_alias
=$ac_cv_host_alias
1582 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1588 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589 echo "${ECHO_T}$ac_cv_target" >&6
1590 target
=$ac_cv_target
1591 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596 # The aliases save the names the user supplied, while $host etc.
1597 # will get canonicalized.
1598 test -n "$target_alias" &&
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1601 program_prefix
=${target_alias}-
1602 test "$program_prefix" != NONE
&&
1603 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1604 # Use a double $ so make ignores it.
1605 test "$program_suffix" != NONE
&&
1606 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1607 # Double any \ or $. echo might interpret backslashes.
1608 # By default was `s,x,x', remove it if useless.
1609 cat <<\_ACEOF
>conftest.
sed
1610 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1612 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1616 ac_cpp
='$CPP $CPPFLAGS'
1617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1620 if test -n "$ac_tool_prefix"; then
1621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1622 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC
="$CC" # Let the user override the test.
1631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1635 test -z "$as_dir" && as_dir
=.
1636 for ac_exec_ext
in '' $ac_executable_extensions; do
1637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 if test -n "$CC"; then
1649 echo "$as_me:$LINENO: result: $CC" >&5
1650 echo "${ECHO_T}$CC" >&6
1652 echo "$as_me:$LINENO: result: no" >&5
1653 echo "${ECHO_T}no" >&6
1657 if test -z "$ac_cv_prog_CC"; then
1659 # Extract the first word of "gcc", so it can be a program name with args.
1660 set dummy gcc
; ac_word
=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir
=.
1674 for ac_exec_ext
in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC
="gcc"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1699 if test -z "$CC"; then
1700 if test -n "$ac_tool_prefix"; then
1701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1702 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 if test -n "$CC"; then
1709 ac_cv_prog_CC
="$CC" # Let the user override the test.
1711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir
=.
1716 for ac_exec_ext
in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 if test -n "$CC"; then
1729 echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1737 if test -z "$ac_cv_prog_CC"; then
1739 # Extract the first word of "cc", so it can be a program name with args.
1740 set dummy cc
; ac_word
=$2
1741 echo "$as_me:$LINENO: checking for $ac_word" >&5
1742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 if test -n "$ac_ct_CC"; then
1747 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1753 test -z "$as_dir" && as_dir
=.
1754 for ac_exec_ext
in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 ac_cv_prog_ac_ct_CC
="cc"
1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1766 if test -n "$ac_ct_CC"; then
1767 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1768 echo "${ECHO_T}$ac_ct_CC" >&6
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1780 if test -z "$CC"; then
1781 # Extract the first word of "cc", so it can be a program name with args.
1782 set dummy cc
; ac_word
=$2
1783 echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785 if test "${ac_cv_prog_CC+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 if test -n "$CC"; then
1789 ac_cv_prog_CC
="$CC" # Let the user override the test.
1792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1796 test -z "$as_dir" && as_dir
=.
1797 for ac_exec_ext
in '' $ac_executable_extensions; do
1798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1800 ac_prog_rejected
=yes
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 if test $ac_prog_rejected = yes; then
1811 # We found a bogon in the path, so make sure we never use it.
1812 set dummy
$ac_cv_prog_CC
1814 if test $# != 0; then
1815 # We chose a different compiler from the bogus one.
1816 # However, it has the same basename, so the bogon will be chosen
1817 # first if we set CC to just the basename; use the full file name.
1819 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1825 if test -n "$CC"; then
1826 echo "$as_me:$LINENO: result: $CC" >&5
1827 echo "${ECHO_T}$CC" >&6
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1834 if test -z "$CC"; then
1835 if test -n "$ac_tool_prefix"; then
1838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1839 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_CC+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC
="$CC" # Let the user override the test.
1848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1852 test -z "$as_dir" && as_dir
=.
1853 for ac_exec_ext
in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 if test -n "$CC"; then
1866 echo "$as_me:$LINENO: result: $CC" >&5
1867 echo "${ECHO_T}$CC" >&6
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1873 test -n "$CC" && break
1876 if test -z "$CC"; then
1880 # Extract the first word of "$ac_prog", so it can be a program name with args.
1881 set dummy
$ac_prog; ac_word
=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$ac_ct_CC"; then
1888 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir
=.
1895 for ac_exec_ext
in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_CC
="$ac_prog"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1907 if test -n "$ac_ct_CC"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909 echo "${ECHO_T}$ac_ct_CC" >&6
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 test -n "$ac_ct_CC" && break
1924 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1925 See \`config.log' for more details." >&5
1926 echo "$as_me: error: no acceptable C compiler found in \$PATH
1927 See \`config.log' for more details." >&2;}
1928 { (exit 1); exit 1; }; }
1930 # Provide some information about the compiler.
1931 echo "$as_me:$LINENO:" \
1932 "checking for C compiler version" >&5
1933 ac_compiler
=`set X $ac_compile; echo $2`
1934 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1935 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1939 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1940 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }
1944 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1945 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }
1950 cat >conftest.
$ac_ext <<_ACEOF
1953 cat confdefs.h
>>conftest.
$ac_ext
1954 cat >>conftest.
$ac_ext <<_ACEOF
1955 /* end confdefs.h. */
1965 ac_clean_files_save
=$ac_clean_files
1966 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1967 # Try to create an executable without -o first, disregard a.out.
1968 # It will help us diagnose broken compilers, and finding out an intuition
1970 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1971 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1972 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1974 (eval $ac_link_default) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; then
1978 # Find the output, starting from the most likely. This scheme is
1979 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1982 # Be careful to initialize this variable, since it used to be cached.
1983 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1985 # b.out is created by i960 compilers.
1986 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1988 test -f "$ac_file" ||
continue
1990 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1993 # This is the source file.
1996 # We found the default executable, but exeext='' is most
2000 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2001 # FIXME: I believe we export ac_cv_exeext for Libtool,
2002 # but it would be cool to find out if it's true. Does anybody
2003 # maintain Libtool? --akim.
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.
$ac_ext >&5
2014 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2015 See \`config.log' for more details." >&5
2016 echo "$as_me: error: C compiler cannot create executables
2017 See \`config.log' for more details." >&2;}
2018 { (exit 77); exit 77; }; }
2021 ac_exeext
=$ac_cv_exeext
2022 echo "$as_me:$LINENO: result: $ac_file" >&5
2023 echo "${ECHO_T}$ac_file" >&6
2025 # Check the compiler produces executables we can run. If not, either
2026 # the compiler is broken, or we cross compile.
2027 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2028 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2029 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2030 # If not cross compiling, check that we can run a simple program.
2031 if test "$cross_compiling" != yes; then
2032 if { ac_try
='./$ac_file'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2040 if test "$cross_compiling" = maybe
; then
2043 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2044 If you meant to cross compile, use \`--host'.
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot run C compiled programs.
2047 If you meant to cross compile, use \`--host'.
2048 See \`config.log' for more details." >&2;}
2049 { (exit 1); exit 1; }; }
2053 echo "$as_me:$LINENO: result: yes" >&5
2054 echo "${ECHO_T}yes" >&6
2056 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2057 ac_clean_files
=$ac_clean_files_save
2058 # Check the compiler produces executables we can run. If not, either
2059 # the compiler is broken, or we cross compile.
2060 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2062 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063 echo "${ECHO_T}$cross_compiling" >&6
2065 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2068 (eval $ac_link) 2>&5
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; then
2072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2073 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2074 # work properly (i.e., refer to `conftest.exe'), while it won't with
2076 for ac_file
in conftest.exe conftest conftest.
*; do
2077 test -f "$ac_file" ||
continue
2079 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2080 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2087 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2088 See \`config.log' for more details." >&5
2089 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2090 See \`config.log' for more details." >&2;}
2091 { (exit 1); exit 1; }; }
2094 rm -f conftest
$ac_cv_exeext
2095 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2096 echo "${ECHO_T}$ac_cv_exeext" >&6
2098 rm -f conftest.
$ac_ext
2099 EXEEXT
=$ac_cv_exeext
2101 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2102 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2103 if test "${ac_cv_objext+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 cat >conftest.
$ac_ext <<_ACEOF
2109 cat confdefs.h
>>conftest.
$ac_ext
2110 cat >>conftest.
$ac_ext <<_ACEOF
2111 /* end confdefs.h. */
2121 rm -f conftest.o conftest.obj
2122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2123 (eval $ac_compile) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2129 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2130 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2135 echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.
$ac_ext >&5
2138 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2139 See \`config.log' for more details." >&5
2140 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2141 See \`config.log' for more details." >&2;}
2142 { (exit 1); exit 1; }; }
2145 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2147 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2148 echo "${ECHO_T}$ac_cv_objext" >&6
2149 OBJEXT
=$ac_cv_objext
2151 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2152 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2153 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 cat >conftest.
$ac_ext <<_ACEOF
2159 cat confdefs.h
>>conftest.
$ac_ext
2160 cat >>conftest.
$ac_ext <<_ACEOF
2161 /* end confdefs.h. */
2174 rm -f conftest.
$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>conftest.er1
2178 grep -v '^ *+' conftest.er1
>conftest.err
2180 cat conftest.err
>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); } &&
2183 { ac_try
='test -z "$ac_c_werror_flag"
2184 || test ! -s conftest.err'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; } &&
2190 { ac_try
='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.
$ac_ext >&5
2203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2204 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2207 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2208 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2209 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2210 ac_test_CFLAGS
=${CFLAGS+set}
2211 ac_save_CFLAGS
=$CFLAGS
2213 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2214 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2215 if test "${ac_cv_prog_cc_g+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 cat >conftest.
$ac_ext <<_ACEOF
2221 cat confdefs.h
>>conftest.
$ac_ext
2222 cat >>conftest.
$ac_ext <<_ACEOF
2223 /* end confdefs.h. */
2233 rm -f conftest.
$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>conftest.er1
2237 grep -v '^ *+' conftest.er1
>conftest.err
2239 cat conftest.err
>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try
='test -z "$ac_c_werror_flag"
2243 || test ! -s conftest.err'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; } &&
2249 { ac_try
='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2257 echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.
$ac_ext >&5
2262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2264 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2265 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2266 if test "$ac_test_CFLAGS" = set; then
2267 CFLAGS
=$ac_save_CFLAGS
2268 elif test $ac_cv_prog_cc_g = yes; then
2269 if test "$GCC" = yes; then
2275 if test "$GCC" = yes; then
2281 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2282 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2283 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 ac_cv_prog_cc_stdc
=no
2288 cat >conftest.
$ac_ext <<_ACEOF
2291 cat confdefs.h
>>conftest.
$ac_ext
2292 cat >>conftest.
$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2296 #include <sys/types.h>
2297 #include <sys/stat.h>
2298 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2299 struct buf { int x; };
2300 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2301 static char *e (p, i)
2307 static char *f (char * (*g) (char **, int), char **p, ...)
2312 s = g (p, va_arg (v,int));
2317 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2318 function prototypes and stuff, but not '\xHH' hex character constants.
2319 These don't provoke an error unfortunately, instead are silently treated
2320 as 'x'. The following induces an error, until -std1 is added to get
2321 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2322 array size at least. It's necessary to write '\x00'==0 to get something
2323 that's true only with -std1. */
2324 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2326 int test (int i, double x);
2327 struct s1 {int (*f) (int a);};
2328 struct s2 {int (*f) (double a);};
2329 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2335 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2340 # Don't try gcc -ansi; that turns off useful extensions and
2341 # breaks some systems' header files.
2342 # AIX -qlanglvl=ansi
2343 # Ultrix and OSF/1 -std1
2344 # HP-UX 10.20 and later -Ae
2345 # HP-UX older versions -Aa -D_HPUX_SOURCE
2346 # SVR4 -Xc -D__EXTENSIONS__
2347 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2349 CC
="$ac_save_CC $ac_arg"
2350 rm -f conftest.
$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2354 grep -v '^ *+' conftest.er1
>conftest.err
2356 cat conftest.err
>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try
='test -z "$ac_c_werror_flag"
2360 || test ! -s conftest.err'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; } &&
2366 { ac_try
='test -s conftest.$ac_objext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2372 ac_cv_prog_cc_stdc
=$ac_arg
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.
$ac_ext >&5
2379 rm -f conftest.err conftest.
$ac_objext
2381 rm -f conftest.
$ac_ext conftest.
$ac_objext
2386 case "x$ac_cv_prog_cc_stdc" in
2388 echo "$as_me:$LINENO: result: none needed" >&5
2389 echo "${ECHO_T}none needed" >&6 ;;
2391 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2392 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2393 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2396 # Some people use a C++ compiler to compile C. Since we use `exit',
2397 # in C++ we need to declare it. In case someone uses the same compiler
2398 # for both compiling C and C++ we need to have the C++ compiler decide
2399 # the declaration of exit, since it's the most demanding environment.
2400 cat >conftest.
$ac_ext <<_ACEOF
2405 rm -f conftest.
$ac_objext
2406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407 (eval $ac_compile) 2>conftest.er1
2409 grep -v '^ *+' conftest.er1
>conftest.err
2411 cat conftest.err
>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); } &&
2414 { ac_try
='test -z "$ac_c_werror_flag"
2415 || test ! -s conftest.err'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; } &&
2421 { ac_try
='test -s conftest.$ac_objext'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2427 for ac_declaration
in \
2429 'extern "C" void std::exit (int) throw (); using std::exit;' \
2430 'extern "C" void std::exit (int); using std::exit;' \
2431 'extern "C" void exit (int) throw ();' \
2432 'extern "C" void exit (int);' \
2435 cat >conftest.
$ac_ext <<_ACEOF
2438 cat confdefs.h
>>conftest.
$ac_ext
2439 cat >>conftest.
$ac_ext <<_ACEOF
2440 /* end confdefs.h. */
2451 rm -f conftest.
$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2455 grep -v '^ *+' conftest.er1
>conftest.err
2457 cat conftest.err
>&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try
='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try
='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.
$ac_ext >&5
2480 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2481 cat >conftest.
$ac_ext <<_ACEOF
2484 cat confdefs.h
>>conftest.
$ac_ext
2485 cat >>conftest.
$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 rm -f conftest.
$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>conftest.er1
2500 grep -v '^ *+' conftest.er1
>conftest.err
2502 cat conftest.err
>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try
='test -z "$ac_c_werror_flag"
2506 || test ! -s conftest.err'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; } &&
2512 { ac_try
='test -s conftest.$ac_objext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.
$ac_ext >&5
2524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2527 if test -n "$ac_declaration"; then
2528 echo '#ifdef __cplusplus' >>confdefs.h
2529 echo $ac_declaration >>confdefs.h
2530 echo '#endif' >>confdefs.h
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.
$ac_ext >&5
2538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2540 ac_cpp
='$CPP $CPPFLAGS'
2541 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2545 # Find a good install program. We prefer a C program (faster),
2546 # so one script is as good as another. But avoid the broken or
2547 # incompatible versions:
2548 # SysV /etc/install, /usr/sbin/install
2549 # SunOS /usr/etc/install
2550 # IRIX /sbin/install
2552 # AmigaOS /C/install, which installs bootblocks on floppy discs
2553 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2556 # OS/2's system install, which has a completely different semantic
2557 # ./install, which can be erroneously created by make from ./install.sh.
2558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2560 if test -z "$INSTALL"; then
2561 if test "${ac_cv_path_install+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir
=.
2569 # Account for people who put trailing slashes in PATH elements.
2571 .
/ | .
// |
/cC
/* | \
2572 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2573 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2576 # OSF1 and SCO ODT 3.0 have their own names for install.
2577 # Don't use installbsd from OSF since it installs stuff as root
2579 for ac_prog
in ginstall scoinst
install; do
2580 for ac_exec_ext
in '' $ac_executable_extensions; do
2581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2582 if test $ac_prog = install &&
2583 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2584 # AIX install. It has an incompatible calling convention.
2586 elif test $ac_prog = install &&
2587 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2588 # program-specific install script used by HP pwplus--don't use.
2591 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2603 if test "${ac_cv_path_install+set}" = set; then
2604 INSTALL
=$ac_cv_path_install
2606 # As a last resort, use the slow shell script. We don't cache a
2607 # path for INSTALL within a source directory, because that will
2608 # break other packages using the cache if that directory is
2609 # removed, or if the path is relative.
2610 INSTALL
=$ac_install_sh
2613 echo "$as_me:$LINENO: result: $INSTALL" >&5
2614 echo "${ECHO_T}$INSTALL" >&6
2616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2617 # It thinks the first close brace ends the variable substitution.
2618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2622 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2625 # Put a plausible default for CC_FOR_BUILD in Makefile.
2626 if test "x$cross_compiling" = "xno"; then
2627 CC_FOR_BUILD
='$(CC)'
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2639 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2640 echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2642 if test "${ac_cv_prog_RANLIB+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$RANLIB"; then
2646 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir
=.
2653 for ac_exec_ext
in '' $ac_executable_extensions; do
2654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 RANLIB
=$ac_cv_prog_RANLIB
2665 if test -n "$RANLIB"; then
2666 echo "$as_me:$LINENO: result: $RANLIB" >&5
2667 echo "${ECHO_T}$RANLIB" >&6
2669 echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2674 if test -z "$ac_cv_prog_RANLIB"; then
2675 ac_ct_RANLIB
=$RANLIB
2676 # Extract the first word of "ranlib", so it can be a program name with args.
2677 set dummy ranlib
; ac_word
=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$ac_ct_RANLIB"; then
2684 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir
=.
2691 for ac_exec_ext
in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2703 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2704 if test -n "$ac_ct_RANLIB"; then
2705 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2706 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 RANLIB
=$ac_ct_RANLIB
2714 RANLIB
="$ac_cv_prog_RANLIB"
2719 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2720 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2721 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2722 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 cat >conftest.
make <<\_ACEOF
2727 @
echo 'ac_maketemp="$(MAKE)"'
2729 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2730 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2731 if test -n "$ac_maketemp"; then
2732 eval ac_cv_prog_make_
${ac_make}_set
=yes
2734 eval ac_cv_prog_make_
${ac_make}_set
=no
2738 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2739 echo "$as_me:$LINENO: result: yes" >&5
2740 echo "${ECHO_T}yes" >&6
2743 echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2745 SET_MAKE
="MAKE=${MAKE-make}"
2749 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2750 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2751 if test "${ac_cv_search_strerror+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 ac_func_search_save_LIBS
=$LIBS
2755 ac_cv_search_strerror
=no
2756 cat >conftest.
$ac_ext <<_ACEOF
2759 cat confdefs.h
>>conftest.
$ac_ext
2760 cat >>conftest.
$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2763 /* Override any gcc2 internal prototype to avoid an error. */
2767 /* We use char because int might match the return type of a gcc2
2768 builtin and then its argument prototype would still apply. */
2778 rm -f conftest.
$ac_objext conftest
$ac_exeext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780 (eval $ac_link) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1
>conftest.err
2784 cat conftest.err
>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try
='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try
='test -s conftest$ac_exeext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_search_strerror
="none required"
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.
$ac_ext >&5
2806 rm -f conftest.err conftest.
$ac_objext \
2807 conftest
$ac_exeext conftest.
$ac_ext
2808 if test "$ac_cv_search_strerror" = no
; then
2809 for ac_lib
in cposix
; do
2810 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2811 cat >conftest.
$ac_ext <<_ACEOF
2814 cat confdefs.h
>>conftest.
$ac_ext
2815 cat >>conftest.
$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2818 /* Override any gcc2 internal prototype to avoid an error. */
2822 /* We use char because int might match the return type of a gcc2
2823 builtin and then its argument prototype would still apply. */
2833 rm -f conftest.
$ac_objext conftest
$ac_exeext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835 (eval $ac_link) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1
>conftest.err
2839 cat conftest.err
>&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try
='test -z "$ac_c_werror_flag"
2843 || 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"
3159 || test ! -s conftest.err'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try
='test -s conftest.$ac_objext'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 ac_cv_header_stdc
=yes
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.
$ac_ext >&5
3176 ac_cv_header_stdc
=no
3178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3180 if test $ac_cv_header_stdc = yes; then
3181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3182 cat >conftest.
$ac_ext <<_ACEOF
3185 cat confdefs.h
>>conftest.
$ac_ext
3186 cat >>conftest.
$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3192 $EGREP "memchr" >/dev
/null
2>&1; then
3195 ac_cv_header_stdc
=no
3201 if test $ac_cv_header_stdc = yes; then
3202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3203 cat >conftest.
$ac_ext <<_ACEOF
3206 cat confdefs.h
>>conftest.
$ac_ext
3207 cat >>conftest.
$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3213 $EGREP "free" >/dev
/null
2>&1; then
3216 ac_cv_header_stdc
=no
3222 if test $ac_cv_header_stdc = yes; then
3223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3224 if test "$cross_compiling" = yes; then
3227 cat >conftest.
$ac_ext <<_ACEOF
3230 cat confdefs.h
>>conftest.
$ac_ext
3231 cat >>conftest.
$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3234 #if ((' ' & 0x0FF) == 0x020)
3235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3238 # define ISLOWER(c) \
3239 (('a' <= (c) && (c) <= 'i') \
3240 || ('j' <= (c) && (c) <= 'r') \
3241 || ('s' <= (c) && (c) <= 'z'))
3242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3250 for (i = 0; i < 256; i++)
3251 if (XOR (islower (i), ISLOWER (i))
3252 || toupper (i) != TOUPPER (i))
3257 rm -f conftest
$ac_exeext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259 (eval $ac_link) 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
3270 echo "$as_me: program exited with status $ac_status" >&5
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.
$ac_ext >&5
3275 ac_cv_header_stdc
=no
3277 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3281 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3282 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3283 if test $ac_cv_header_stdc = yes; then
3285 cat >>confdefs.h
<<\_ACEOF
3286 #define STDC_HEADERS 1
3291 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3292 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3293 if test "${ac_cv_c_const+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 cat >conftest.
$ac_ext <<_ACEOF
3299 cat confdefs.h
>>conftest.
$ac_ext
3300 cat >>conftest.
$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3306 /* FIXME: Include the comments suggested by Paul. */
3308 /* Ultrix mips cc rejects this. */
3309 typedef int charset[2];
3311 /* SunOS 4.1.1 cc rejects this. */
3312 char const *const *ccp;
3314 /* NEC SVR4.0.2 mips cc rejects this. */
3315 struct point {int x, y;};
3316 static struct point const zero = {0,0};
3317 /* AIX XL C 1.02.0.0 rejects this.
3318 It does not let you subtract one const X* pointer from another in
3319 an arm of an if-expression whose if-part is not a constant
3321 const char *g = "string";
3322 ccp = &g + (g ? g-g : 0);
3323 /* HPUX 7.0 cc rejects these. */
3326 ccp = (char const *const *) p;
3327 { /* SCO 3.2v4 cc rejects this. */
3329 char const *s = 0 ? (char *) 0 : (char const *) 0;
3333 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3335 const int *foo = &x[0];
3338 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3339 typedef const int *iptr;
3343 { /* AIX XL C 1.02.0.0 rejects this saying
3344 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3345 struct s { int j; const int *ap[3]; };
3346 struct s *b; b->j = 5;
3348 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3357 rm -f conftest.
$ac_objext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359 (eval $ac_compile) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1
>conftest.err
3363 cat conftest.err
>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try
='test -z "$ac_c_werror_flag"
3367 || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try
='test -s conftest.$ac_objext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.
$ac_ext >&5
3386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3388 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3389 echo "${ECHO_T}$ac_cv_c_const" >&6
3390 if test $ac_cv_c_const = no
; then
3392 cat >>confdefs.h
<<\_ACEOF
3398 echo "$as_me:$LINENO: checking for inline" >&5
3399 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3400 if test "${ac_cv_c_inline+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 for ac_kw
in inline __inline__ __inline
; do
3405 cat >conftest.
$ac_ext <<_ACEOF
3408 cat confdefs.h
>>conftest.
$ac_ext
3409 cat >>conftest.
$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3413 static $ac_kw foo_t static_foo () {return 0; }
3414 $ac_kw foo_t foo () {return 0; }
3418 rm -f conftest.
$ac_objext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420 (eval $ac_compile) 2>conftest.er1
3422 grep -v '^ *+' conftest.er1
>conftest.err
3424 cat conftest.err
>&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try
='test -z "$ac_c_werror_flag"
3428 || test ! -s conftest.err'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; } &&
3434 { ac_try
='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 ac_cv_c_inline
=$ac_kw; break
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.
$ac_ext >&5
3446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3450 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3451 echo "${ECHO_T}$ac_cv_c_inline" >&6
3454 case $ac_cv_c_inline in
3457 case $ac_cv_c_inline in
3459 *) ac_val
=$ac_cv_c_inline;;
3461 cat >>confdefs.h
<<_ACEOF
3463 #define inline $ac_val
3469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3479 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3480 inttypes.h stdint.h unistd.h
3482 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3483 echo "$as_me:$LINENO: checking for $ac_header" >&5
3484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 cat >conftest.
$ac_ext <<_ACEOF
3491 cat confdefs.h
>>conftest.
$ac_ext
3492 cat >>conftest.
$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 $ac_includes_default
3496 #include <$ac_header>
3498 rm -f conftest.
$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>conftest.er1
3502 grep -v '^ *+' conftest.er1
>conftest.err
3504 cat conftest.err
>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try
='test -z "$ac_c_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try
='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 eval "$as_ac_Header=yes"
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.
$ac_ext >&5
3525 eval "$as_ac_Header=no"
3527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3532 cat >>confdefs.h
<<_ACEOF
3533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3541 echo "$as_me:$LINENO: checking for off_t" >&5
3542 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3543 if test "${ac_cv_type_off_t+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 cat >conftest.
$ac_ext <<_ACEOF
3549 cat confdefs.h
>>conftest.
$ac_ext
3550 cat >>conftest.
$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 $ac_includes_default
3564 rm -f conftest.
$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3568 grep -v '^ *+' conftest.er1
>conftest.err
3570 cat conftest.err
>&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try
='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try
='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_cv_type_off_t
=yes
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.
$ac_ext >&5
3593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3595 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3596 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3597 if test $ac_cv_type_off_t = yes; then
3601 cat >>confdefs.h
<<_ACEOF
3607 echo "$as_me:$LINENO: checking for size_t" >&5
3608 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3609 if test "${ac_cv_type_size_t+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 cat >conftest.
$ac_ext <<_ACEOF
3615 cat confdefs.h
>>conftest.
$ac_ext
3616 cat >>conftest.
$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 $ac_includes_default
3624 if (sizeof (size_t))
3630 rm -f conftest.
$ac_objext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3634 grep -v '^ *+' conftest.er1
>conftest.err
3636 cat conftest.err
>&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try
='test -z "$ac_c_werror_flag"
3640 || test ! -s conftest.err'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try
='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_cv_type_size_t
=yes
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.
$ac_ext >&5
3657 ac_cv_type_size_t
=no
3659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3661 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3662 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3663 if test $ac_cv_type_size_t = yes; then
3667 cat >>confdefs.h
<<_ACEOF
3668 #define size_t unsigned
3673 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3674 # for constant arguments. Useless!
3675 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3676 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3677 if test "${ac_cv_working_alloca_h+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 cat >conftest.
$ac_ext <<_ACEOF
3683 cat confdefs.h
>>conftest.
$ac_ext
3684 cat >>conftest.
$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3690 char *p = (char *) alloca (2 * sizeof (int));
3695 rm -f conftest.
$ac_objext conftest
$ac_exeext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3697 (eval $ac_link) 2>conftest.er1
3699 grep -v '^ *+' conftest.er1
>conftest.err
3701 cat conftest.err
>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try
='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try
='test -s conftest$ac_exeext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 ac_cv_working_alloca_h
=yes
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.
$ac_ext >&5
3722 ac_cv_working_alloca_h
=no
3724 rm -f conftest.err conftest.
$ac_objext \
3725 conftest
$ac_exeext conftest.
$ac_ext
3727 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3728 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3729 if test $ac_cv_working_alloca_h = yes; then
3731 cat >>confdefs.h
<<\_ACEOF
3732 #define HAVE_ALLOCA_H 1
3737 echo "$as_me:$LINENO: checking for alloca" >&5
3738 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3739 if test "${ac_cv_func_alloca_works+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 cat >conftest.
$ac_ext <<_ACEOF
3745 cat confdefs.h
>>conftest.
$ac_ext
3746 cat >>conftest.
$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3749 # define alloca __builtin_alloca
3752 # include <malloc.h>
3753 # define alloca _alloca
3756 # include <alloca.h>
3761 # ifndef alloca /* predefined by HP cc +Olibcalls */
3772 char *p = (char *) alloca (1);
3777 rm -f conftest.
$ac_objext conftest
$ac_exeext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779 (eval $ac_link) 2>conftest.er1
3781 grep -v '^ *+' conftest.er1
>conftest.err
3783 cat conftest.err
>&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try
='test -z "$ac_c_werror_flag"
3787 || test ! -s conftest.err'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; } &&
3793 { ac_try
='test -s conftest$ac_exeext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 ac_cv_func_alloca_works
=yes
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.
$ac_ext >&5
3804 ac_cv_func_alloca_works
=no
3806 rm -f conftest.err conftest.
$ac_objext \
3807 conftest
$ac_exeext conftest.
$ac_ext
3809 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3810 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3812 if test $ac_cv_func_alloca_works = yes; then
3814 cat >>confdefs.h
<<\_ACEOF
3815 #define HAVE_ALLOCA 1
3819 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3820 # that cause trouble. Some versions do not even contain alloca or
3821 # contain a buggy version. If you still want to use their alloca,
3822 # use ar to extract alloca.o from them instead of compiling alloca.c.
3824 ALLOCA
=alloca.
$ac_objext
3826 cat >>confdefs.h
<<\_ACEOF
3831 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3832 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3833 if test "${ac_cv_os_cray+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 cat >conftest.
$ac_ext <<_ACEOF
3839 cat confdefs.h
>>conftest.
$ac_ext
3840 cat >>conftest.
$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842 #if defined(CRAY) && ! defined(CRAY2)
3849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850 $EGREP "webecray" >/dev
/null
2>&1; then
3858 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3859 echo "${ECHO_T}$ac_cv_os_cray" >&6
3860 if test $ac_cv_os_cray = yes; then
3861 for ac_func
in _getb67 GETB67 getb67
; do
3862 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3863 echo "$as_me:$LINENO: checking for $ac_func" >&5
3864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3865 if eval "test \"\${$as_ac_var+set}\" = set"; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 cat >conftest.
$ac_ext <<_ACEOF
3871 cat confdefs.h
>>conftest.
$ac_ext
3872 cat >>conftest.
$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3876 #define $ac_func innocuous_$ac_func
3878 /* System header to define __stub macros and hopefully few prototypes,
3879 which can conflict with char $ac_func (); below.
3880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3881 <limits.h> exists even on freestanding compilers. */
3884 # include <limits.h>
3886 # include <assert.h>
3891 /* Override any gcc2 internal prototype to avoid an error. */
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3899 /* The GNU C library defines this for functions which it implements
3900 to always fail with ENOSYS. Some functions are actually named
3901 something starting with __ and the normal name is an alias. */
3902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3905 char (*f) () = $ac_func;
3914 return f != $ac_func;
3919 rm -f conftest.
$ac_objext conftest
$ac_exeext
3920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3921 (eval $ac_link) 2>conftest.er1
3923 grep -v '^ *+' conftest.er1
>conftest.err
3925 cat conftest.err
>&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } &&
3928 { ac_try
='test -z "$ac_c_werror_flag"
3929 || test ! -s conftest.err'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; } &&
3935 { ac_try
='test -s conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 eval "$as_ac_var=yes"
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.
$ac_ext >&5
3946 eval "$as_ac_var=no"
3948 rm -f conftest.err conftest.
$ac_objext \
3949 conftest
$ac_exeext conftest.
$ac_ext
3951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3953 if test `eval echo '${'$as_ac_var'}'` = yes; then
3955 cat >>confdefs.h
<<_ACEOF
3956 #define CRAY_STACKSEG_END $ac_func
3965 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3966 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3967 if test "${ac_cv_c_stack_direction+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 if test "$cross_compiling" = yes; then
3971 ac_cv_c_stack_direction
=0
3973 cat >conftest.
$ac_ext <<_ACEOF
3976 cat confdefs.h
>>conftest.
$ac_ext
3977 cat >>conftest.
$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3980 find_stack_direction ()
3982 static char *addr = 0;
3987 return find_stack_direction ();
3990 return (&dummy > addr) ? 1 : -1;
3996 exit (find_stack_direction () < 0);
3999 rm -f conftest
$ac_exeext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4001 (eval $ac_link) 2>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 ac_cv_c_stack_direction
=1
4012 echo "$as_me: program exited with status $ac_status" >&5
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.
$ac_ext >&5
4017 ac_cv_c_stack_direction
=-1
4019 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4023 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4025 cat >>confdefs.h
<<_ACEOF
4026 #define STACK_DIRECTION $ac_cv_c_stack_direction
4034 for ac_header
in stdlib.h unistd.h
4036 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4038 echo "$as_me:$LINENO: checking for $ac_header" >&5
4039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4046 # Is the header compilable?
4047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4049 cat >conftest.
$ac_ext <<_ACEOF
4052 cat confdefs.h
>>conftest.
$ac_ext
4053 cat >>conftest.
$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 $ac_includes_default
4056 #include <$ac_header>
4058 rm -f conftest.
$ac_objext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
4062 grep -v '^ *+' conftest.er1
>conftest.err
4064 cat conftest.err
>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try
='test -z "$ac_c_werror_flag"
4068 || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try
='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_header_compiler
=yes
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.
$ac_ext >&5
4085 ac_header_compiler
=no
4087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4089 echo "${ECHO_T}$ac_header_compiler" >&6
4091 # Is the header present?
4092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4094 cat >conftest.
$ac_ext <<_ACEOF
4097 cat confdefs.h
>>conftest.
$ac_ext
4098 cat >>conftest.
$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #include <$ac_header>
4102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4103 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4105 grep -v '^ *+' conftest.er1
>conftest.err
4107 cat conftest.err
>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } >/dev
/null
; then
4110 if test -s conftest.err
; then
4111 ac_cpp_err
=$ac_c_preproc_warn_flag
4112 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4119 if test -z "$ac_cpp_err"; then
4120 ac_header_preproc
=yes
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.
$ac_ext >&5
4125 ac_header_preproc
=no
4127 rm -f conftest.err conftest.
$ac_ext
4128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4129 echo "${ECHO_T}$ac_header_preproc" >&6
4131 # So? What about this header?
4132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4138 ac_header_preproc
=yes
4141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4155 ## ------------------------------------------ ##
4156 ## Report this to the AC_PACKAGE_NAME lists. ##
4157 ## ------------------------------------------ ##
4160 sed "s/^/$as_me: WARNING: /" >&2
4163 echo "$as_me:$LINENO: checking for $ac_header" >&5
4164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 eval "$as_ac_Header=\$ac_header_preproc"
4170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4175 cat >>confdefs.h
<<_ACEOF
4176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4184 for ac_func
in getpagesize
4186 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4187 echo "$as_me:$LINENO: checking for $ac_func" >&5
4188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4189 if eval "test \"\${$as_ac_var+set}\" = set"; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 cat >conftest.
$ac_ext <<_ACEOF
4195 cat confdefs.h
>>conftest.
$ac_ext
4196 cat >>conftest.
$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4200 #define $ac_func innocuous_$ac_func
4202 /* System header to define __stub macros and hopefully few prototypes,
4203 which can conflict with char $ac_func (); below.
4204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205 <limits.h> exists even on freestanding compilers. */
4208 # include <limits.h>
4210 # include <assert.h>
4215 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4223 /* The GNU C library defines this for functions which it implements
4224 to always fail with ENOSYS. Some functions are actually named
4225 something starting with __ and the normal name is an alias. */
4226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4229 char (*f) () = $ac_func;
4238 return f != $ac_func;
4243 rm -f conftest.
$ac_objext conftest
$ac_exeext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245 (eval $ac_link) 2>conftest.er1
4247 grep -v '^ *+' conftest.er1
>conftest.err
4249 cat conftest.err
>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try
='test -z "$ac_c_werror_flag"
4253 || test ! -s conftest.err'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; } &&
4259 { ac_try
='test -s conftest$ac_exeext'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4265 eval "$as_ac_var=yes"
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.
$ac_ext >&5
4270 eval "$as_ac_var=no"
4272 rm -f conftest.err conftest.
$ac_objext \
4273 conftest
$ac_exeext conftest.
$ac_ext
4275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4277 if test `eval echo '${'$as_ac_var'}'` = yes; then
4278 cat >>confdefs.h
<<_ACEOF
4279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4285 echo "$as_me:$LINENO: checking for working mmap" >&5
4286 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4287 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 if test "$cross_compiling" = yes; then
4291 ac_cv_func_mmap_fixed_mapped
=no
4293 cat >conftest.
$ac_ext <<_ACEOF
4296 cat confdefs.h
>>conftest.
$ac_ext
4297 cat >>conftest.
$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 $ac_includes_default
4300 /* malloc might have been renamed as rpl_malloc. */
4303 /* Thanks to Mike Haertel and Jim Avera for this test.
4304 Here is a matrix of mmap possibilities:
4305 mmap private not fixed
4306 mmap private fixed at somewhere currently unmapped
4307 mmap private fixed at somewhere already mapped
4308 mmap shared not fixed
4309 mmap shared fixed at somewhere currently unmapped
4310 mmap shared fixed at somewhere already mapped
4311 For private mappings, we should verify that changes cannot be read()
4312 back from the file, nor mmap's back from the file at a different
4313 address. (There have been systems where private was not correctly
4314 implemented like the infamous i386 svr4.0, and systems where the
4315 VM page cache was not coherent with the file system buffer cache
4316 like early versions of FreeBSD and possibly contemporary NetBSD.)
4317 For shared mappings, we should conversely verify that changes get
4318 propagated back to all the places they're supposed to be.
4320 Grep wants private fixed already mapped.
4321 The main things grep needs to know about mmap are:
4322 * does it exist and is it safe to write into the mmap'd area
4323 * how to use it (BSD variants) */
4326 #include <sys/mman.h>
4328 #if !STDC_HEADERS && !HAVE_STDLIB_H
4332 /* This mess was copied from the GNU getpagesize.h. */
4333 #if !HAVE_GETPAGESIZE
4334 /* Assume that all systems that can run configure have sys/param.h. */
4335 # if !HAVE_SYS_PARAM_H
4336 # define HAVE_SYS_PARAM_H 1
4339 # ifdef _SC_PAGESIZE
4340 # define getpagesize() sysconf(_SC_PAGESIZE)
4341 # else /* no _SC_PAGESIZE */
4342 # if HAVE_SYS_PARAM_H
4343 # include <sys/param.h>
4344 # ifdef EXEC_PAGESIZE
4345 # define getpagesize() EXEC_PAGESIZE
4346 # else /* no EXEC_PAGESIZE */
4348 # define getpagesize() NBPG * CLSIZE
4351 # endif /* no CLSIZE */
4352 # else /* no NBPG */
4354 # define getpagesize() NBPC
4355 # else /* no NBPC */
4357 # define getpagesize() PAGESIZE
4358 # endif /* PAGESIZE */
4359 # endif /* no NBPC */
4360 # endif /* no NBPG */
4361 # endif /* no EXEC_PAGESIZE */
4362 # else /* no HAVE_SYS_PARAM_H */
4363 # define getpagesize() 8192 /* punt totally */
4364 # endif /* no HAVE_SYS_PARAM_H */
4365 # endif /* no _SC_PAGESIZE */
4367 #endif /* no HAVE_GETPAGESIZE */
4372 char *data, *data2, *data3;
4376 pagesize = getpagesize ();
4378 /* First, make a file with some known garbage in it. */
4379 data = (char *) malloc (pagesize);
4382 for (i = 0; i < pagesize; ++i)
4383 *(data + i) = rand ();
4385 fd = creat ("conftest.mmap", 0600);
4388 if (write (fd, data, pagesize) != pagesize)
4392 /* Next, try to mmap the file at a fixed address which already has
4393 something else allocated at it. If we can, also make sure that
4394 we see the same garbage. */
4395 fd = open ("conftest.mmap", O_RDWR);
4398 data2 = (char *) malloc (2 * pagesize);
4401 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4402 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4403 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4405 for (i = 0; i < pagesize; ++i)
4406 if (*(data + i) != *(data2 + i))
4409 /* Finally, make sure that changes to the mapped area do not
4410 percolate back to the file as seen by read(). (This is a bug on
4411 some variants of i386 svr4.0.) */
4412 for (i = 0; i < pagesize; ++i)
4413 *(data2 + i) = *(data2 + i) + 1;
4414 data3 = (char *) malloc (pagesize);
4417 if (read (fd, data3, pagesize) != pagesize)
4419 for (i = 0; i < pagesize; ++i)
4420 if (*(data + i) != *(data3 + i))
4426 rm -f conftest
$ac_exeext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4428 (eval $ac_link) 2>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_cv_func_mmap_fixed_mapped
=yes
4439 echo "$as_me: program exited with status $ac_status" >&5
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.
$ac_ext >&5
4444 ac_cv_func_mmap_fixed_mapped
=no
4446 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4450 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4451 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4453 cat >>confdefs.h
<<\_ACEOF
4470 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4471 unistd.h values.h sys
/param.h
4473 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4475 echo "$as_me:$LINENO: checking for $ac_header" >&5
4476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4483 # Is the header compilable?
4484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4486 cat >conftest.
$ac_ext <<_ACEOF
4489 cat confdefs.h
>>conftest.
$ac_ext
4490 cat >>conftest.
$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 $ac_includes_default
4493 #include <$ac_header>
4495 rm -f conftest.
$ac_objext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>conftest.er1
4499 grep -v '^ *+' conftest.er1
>conftest.err
4501 cat conftest.err
>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try
='test -z "$ac_c_werror_flag"
4505 || test ! -s conftest.err'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try
='test -s conftest.$ac_objext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_header_compiler
=yes
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.
$ac_ext >&5
4522 ac_header_compiler
=no
4524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4526 echo "${ECHO_T}$ac_header_compiler" >&6
4528 # Is the header present?
4529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4531 cat >conftest.
$ac_ext <<_ACEOF
4534 cat confdefs.h
>>conftest.
$ac_ext
4535 cat >>conftest.
$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 #include <$ac_header>
4539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4540 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1
>conftest.err
4544 cat conftest.err
>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } >/dev
/null
; then
4547 if test -s conftest.err
; then
4548 ac_cpp_err
=$ac_c_preproc_warn_flag
4549 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4556 if test -z "$ac_cpp_err"; then
4557 ac_header_preproc
=yes
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.
$ac_ext >&5
4562 ac_header_preproc
=no
4564 rm -f conftest.err conftest.
$ac_ext
4565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4566 echo "${ECHO_T}$ac_header_preproc" >&6
4568 # So? What about this header?
4569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4575 ac_header_preproc
=yes
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4592 ## ------------------------------------------ ##
4593 ## Report this to the AC_PACKAGE_NAME lists. ##
4594 ## ------------------------------------------ ##
4597 sed "s/^/$as_me: WARNING: /" >&2
4600 echo "$as_me:$LINENO: checking for $ac_header" >&5
4601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 eval "$as_ac_Header=\$ac_header_preproc"
4607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4612 cat >>confdefs.h
<<_ACEOF
4613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4630 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4631 __argz_count __argz_stringify __argz_next
4633 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4634 echo "$as_me:$LINENO: checking for $ac_func" >&5
4635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4636 if eval "test \"\${$as_ac_var+set}\" = set"; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 cat >conftest.
$ac_ext <<_ACEOF
4642 cat confdefs.h
>>conftest.
$ac_ext
4643 cat >>conftest.
$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4647 #define $ac_func innocuous_$ac_func
4649 /* System header to define __stub macros and hopefully few prototypes,
4650 which can conflict with char $ac_func (); below.
4651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4652 <limits.h> exists even on freestanding compilers. */
4655 # include <limits.h>
4657 # include <assert.h>
4662 /* Override any gcc2 internal prototype to avoid an error. */
4667 /* We use char because int might match the return type of a gcc2
4668 builtin and then its argument prototype would still apply. */
4670 /* The GNU C library defines this for functions which it implements
4671 to always fail with ENOSYS. Some functions are actually named
4672 something starting with __ and the normal name is an alias. */
4673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4676 char (*f) () = $ac_func;
4685 return f != $ac_func;
4690 rm -f conftest.
$ac_objext conftest
$ac_exeext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>conftest.er1
4694 grep -v '^ *+' conftest.er1
>conftest.err
4696 cat conftest.err
>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try
='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try
='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 eval "$as_ac_var=yes"
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.
$ac_ext >&5
4717 eval "$as_ac_var=no"
4719 rm -f conftest.err conftest.
$ac_objext \
4720 conftest
$ac_exeext conftest.
$ac_ext
4722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4724 if test `eval echo '${'$as_ac_var'}'` = yes; then
4725 cat >>confdefs.h
<<_ACEOF
4726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4733 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4735 for ac_func
in stpcpy
4737 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4738 echo "$as_me:$LINENO: checking for $ac_func" >&5
4739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4740 if eval "test \"\${$as_ac_var+set}\" = set"; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 cat >conftest.
$ac_ext <<_ACEOF
4746 cat confdefs.h
>>conftest.
$ac_ext
4747 cat >>conftest.
$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4751 #define $ac_func innocuous_$ac_func
4753 /* System header to define __stub macros and hopefully few prototypes,
4754 which can conflict with char $ac_func (); below.
4755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756 <limits.h> exists even on freestanding compilers. */
4759 # include <limits.h>
4761 # include <assert.h>
4766 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4774 /* The GNU C library defines this for functions which it implements
4775 to always fail with ENOSYS. Some functions are actually named
4776 something starting with __ and the normal name is an alias. */
4777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4780 char (*f) () = $ac_func;
4789 return f != $ac_func;
4794 rm -f conftest.
$ac_objext conftest
$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796 (eval $ac_link) 2>conftest.er1
4798 grep -v '^ *+' conftest.er1
>conftest.err
4800 cat conftest.err
>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try
='test -z "$ac_c_werror_flag"
4804 || test ! -s conftest.err'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; } &&
4810 { ac_try
='test -s conftest$ac_exeext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 eval "$as_ac_var=yes"
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.
$ac_ext >&5
4821 eval "$as_ac_var=no"
4823 rm -f conftest.err conftest.
$ac_objext \
4824 conftest
$ac_exeext conftest.
$ac_ext
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4828 if test `eval echo '${'$as_ac_var'}'` = yes; then
4829 cat >>confdefs.h
<<_ACEOF
4830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4837 if test "${ac_cv_func_stpcpy}" = "yes"; then
4838 cat >>confdefs.h
<<\_ACEOF
4839 #define HAVE_STPCPY 1
4844 if test $ac_cv_header_locale_h = yes; then
4845 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4846 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4847 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 cat >conftest.
$ac_ext <<_ACEOF
4853 cat confdefs.h
>>conftest.
$ac_ext
4854 cat >>conftest.
$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4865 rm -f conftest.
$ac_objext conftest
$ac_exeext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4867 (eval $ac_link) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1
>conftest.err
4871 cat conftest.err
>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try
='test -z "$ac_c_werror_flag"
4875 || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try
='test -s conftest$ac_exeext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 am_cv_val_LC_MESSAGES
=yes
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.
$ac_ext >&5
4892 am_cv_val_LC_MESSAGES
=no
4894 rm -f conftest.err conftest.
$ac_objext \
4895 conftest
$ac_exeext conftest.
$ac_ext
4897 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4898 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4899 if test $am_cv_val_LC_MESSAGES = yes; then
4900 cat >>confdefs.h
<<\_ACEOF
4901 #define HAVE_LC_MESSAGES 1
4906 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4907 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4908 # Check whether --enable-nls or --disable-nls was given.
4909 if test "${enable_nls+set}" = set; then
4910 enableval
="$enable_nls"
4915 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4916 echo "${ECHO_T}$USE_NLS" >&6
4919 USE_INCLUDED_LIBINTL
=no
4921 if test "$USE_NLS" = "yes"; then
4922 cat >>confdefs.h
<<\_ACEOF
4923 #define ENABLE_NLS 1
4926 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4927 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4929 # Check whether --with-included-gettext or --without-included-gettext was given.
4930 if test "${with_included_gettext+set}" = set; then
4931 withval
="$with_included_gettext"
4932 nls_cv_force_use_gnu_gettext
=$withval
4934 nls_cv_force_use_gnu_gettext
=no
4936 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4937 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4939 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4940 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4942 nls_cv_header_libgt
=
4945 if test "${ac_cv_header_libintl_h+set}" = set; then
4946 echo "$as_me:$LINENO: checking for libintl.h" >&5
4947 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4948 if test "${ac_cv_header_libintl_h+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4952 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4954 # Is the header compilable?
4955 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4956 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4957 cat >conftest.
$ac_ext <<_ACEOF
4960 cat confdefs.h
>>conftest.
$ac_ext
4961 cat >>conftest.
$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 $ac_includes_default
4964 #include <libintl.h>
4966 rm -f conftest.
$ac_objext
4967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968 (eval $ac_compile) 2>conftest.er1
4970 grep -v '^ *+' conftest.er1
>conftest.err
4972 cat conftest.err
>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try
='test -z "$ac_c_werror_flag"
4976 || test ! -s conftest.err'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; } &&
4982 { ac_try
='test -s conftest.$ac_objext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_header_compiler
=yes
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.
$ac_ext >&5
4993 ac_header_compiler
=no
4995 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4997 echo "${ECHO_T}$ac_header_compiler" >&6
4999 # Is the header present?
5000 echo "$as_me:$LINENO: checking libintl.h presence" >&5
5001 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
5002 cat >conftest.
$ac_ext <<_ACEOF
5005 cat confdefs.h
>>conftest.
$ac_ext
5006 cat >>conftest.
$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5008 #include <libintl.h>
5010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5011 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5013 grep -v '^ *+' conftest.er1
>conftest.err
5015 cat conftest.err
>&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } >/dev
/null
; then
5018 if test -s conftest.err
; then
5019 ac_cpp_err
=$ac_c_preproc_warn_flag
5020 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5027 if test -z "$ac_cpp_err"; then
5028 ac_header_preproc
=yes
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.
$ac_ext >&5
5033 ac_header_preproc
=no
5035 rm -f conftest.err conftest.
$ac_ext
5036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5037 echo "${ECHO_T}$ac_header_preproc" >&6
5039 # So? What about this header?
5040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5042 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5043 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5044 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5045 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5046 ac_header_preproc
=yes
5049 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5050 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5051 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5052 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5053 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5054 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5055 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5056 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5057 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5058 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5059 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5060 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5063 ## ------------------------------------------ ##
5064 ## Report this to the AC_PACKAGE_NAME lists. ##
5065 ## ------------------------------------------ ##
5068 sed "s/^/$as_me: WARNING: /" >&2
5071 echo "$as_me:$LINENO: checking for libintl.h" >&5
5072 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5073 if test "${ac_cv_header_libintl_h+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 ac_cv_header_libintl_h
=$ac_header_preproc
5078 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5079 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5082 if test $ac_cv_header_libintl_h = yes; then
5083 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5084 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5085 if test "${gt_cv_func_gettext_libc+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 cat >conftest.
$ac_ext <<_ACEOF
5091 cat confdefs.h
>>conftest.
$ac_ext
5092 cat >>conftest.
$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 #include <libintl.h>
5098 return (int) gettext ("")
5103 rm -f conftest.
$ac_objext conftest
$ac_exeext
5104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5105 (eval $ac_link) 2>conftest.er1
5107 grep -v '^ *+' conftest.er1
>conftest.err
5109 cat conftest.err
>&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } &&
5112 { ac_try
='test -z "$ac_c_werror_flag"
5113 || test ! -s conftest.err'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; } &&
5119 { ac_try
='test -s conftest$ac_exeext'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 gt_cv_func_gettext_libc
=yes
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.
$ac_ext >&5
5130 gt_cv_func_gettext_libc
=no
5132 rm -f conftest.err conftest.
$ac_objext \
5133 conftest
$ac_exeext conftest.
$ac_ext
5135 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5136 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5138 if test "$gt_cv_func_gettext_libc" != "yes"; then
5139 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5140 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5141 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 ac_check_lib_save_LIBS
=$LIBS
5146 cat >conftest.
$ac_ext <<_ACEOF
5149 cat confdefs.h
>>conftest.
$ac_ext
5150 cat >>conftest.
$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5153 /* Override any gcc2 internal prototype to avoid an error. */
5157 /* We use char because int might match the return type of a gcc2
5158 builtin and then its argument prototype would still apply. */
5159 char bindtextdomain ();
5168 rm -f conftest.
$ac_objext conftest
$ac_exeext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5170 (eval $ac_link) 2>conftest.er1
5172 grep -v '^ *+' conftest.er1
>conftest.err
5174 cat conftest.err
>&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } &&
5177 { ac_try
='test -z "$ac_c_werror_flag"
5178 || test ! -s conftest.err'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try
='test -s conftest$ac_exeext'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_cv_lib_intl_bindtextdomain
=yes
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.
$ac_ext >&5
5195 ac_cv_lib_intl_bindtextdomain
=no
5197 rm -f conftest.err conftest.
$ac_objext \
5198 conftest
$ac_exeext conftest.
$ac_ext
5199 LIBS
=$ac_check_lib_save_LIBS
5201 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5202 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5203 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5204 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5205 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5206 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 cat >conftest.
$ac_ext <<_ACEOF
5212 cat confdefs.h
>>conftest.
$ac_ext
5213 cat >>conftest.
$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5219 return (int) gettext ("")
5224 rm -f conftest.
$ac_objext conftest
$ac_exeext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>conftest.er1
5228 grep -v '^ *+' conftest.er1
>conftest.err
5230 cat conftest.err
>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try
='test -z "$ac_c_werror_flag"
5234 || test ! -s conftest.err'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; } &&
5240 { ac_try
='test -s conftest$ac_exeext'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 gt_cv_func_gettext_libintl
=yes
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.
$ac_ext >&5
5251 gt_cv_func_gettext_libintl
=no
5253 rm -f conftest.err conftest.
$ac_objext \
5254 conftest
$ac_exeext conftest.
$ac_ext
5256 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5257 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5262 if test "$gt_cv_func_gettext_libc" = "yes" \
5263 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5264 cat >>confdefs.h
<<\_ACEOF
5265 #define HAVE_GETTEXT 1
5268 # Extract the first word of "msgfmt", so it can be a program name with args.
5269 set dummy msgfmt
; ac_word
=$2
5270 echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5272 if test "${ac_cv_path_MSGFMT+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5280 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5281 for ac_dir
in $PATH; do
5282 test -z "$ac_dir" && ac_dir
=.
5283 if test -f $ac_dir/$ac_word; then
5284 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5285 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5291 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5295 MSGFMT
="$ac_cv_path_MSGFMT"
5296 if test -n "$MSGFMT"; then
5297 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5298 echo "${ECHO_T}$MSGFMT" >&6
5300 echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5303 if test "$MSGFMT" != "no"; then
5305 for ac_func
in dcgettext
5307 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5308 echo "$as_me:$LINENO: checking for $ac_func" >&5
5309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5310 if eval "test \"\${$as_ac_var+set}\" = set"; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 cat >conftest.
$ac_ext <<_ACEOF
5316 cat confdefs.h
>>conftest.
$ac_ext
5317 cat >>conftest.
$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5321 #define $ac_func innocuous_$ac_func
5323 /* System header to define __stub macros and hopefully few prototypes,
5324 which can conflict with char $ac_func (); below.
5325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326 <limits.h> exists even on freestanding compilers. */
5329 # include <limits.h>
5331 # include <assert.h>
5336 /* Override any gcc2 internal prototype to avoid an error. */
5341 /* We use char because int might match the return type of a gcc2
5342 builtin and then its argument prototype would still apply. */
5344 /* The GNU C library defines this for functions which it implements
5345 to always fail with ENOSYS. Some functions are actually named
5346 something starting with __ and the normal name is an alias. */
5347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5350 char (*f) () = $ac_func;
5359 return f != $ac_func;
5364 rm -f conftest.
$ac_objext conftest
$ac_exeext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5366 (eval $ac_link) 2>conftest.er1
5368 grep -v '^ *+' conftest.er1
>conftest.err
5370 cat conftest.err
>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try
='test -z "$ac_c_werror_flag"
5374 || test ! -s conftest.err'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 { ac_try
='test -s conftest$ac_exeext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 eval "$as_ac_var=yes"
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.
$ac_ext >&5
5391 eval "$as_ac_var=no"
5393 rm -f conftest.err conftest.
$ac_objext \
5394 conftest
$ac_exeext conftest.
$ac_ext
5396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5398 if test `eval echo '${'$as_ac_var'}'` = yes; then
5399 cat >>confdefs.h
<<_ACEOF
5400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5406 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5407 set dummy gmsgfmt
; ac_word
=$2
5408 echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir
=.
5423 for ac_exec_ext
in '' $ac_executable_extensions; do
5424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5436 GMSGFMT
=$ac_cv_path_GMSGFMT
5438 if test -n "$GMSGFMT"; then
5439 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5440 echo "${ECHO_T}$GMSGFMT" >&6
5442 echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6
5446 # Extract the first word of "xgettext", so it can be a program name with args.
5447 set dummy xgettext
; ac_word
=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5458 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5459 for ac_dir
in $PATH; do
5460 test -z "$ac_dir" && ac_dir
=.
5461 if test -f $ac_dir/$ac_word; then
5462 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5463 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5469 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5473 XGETTEXT
="$ac_cv_path_XGETTEXT"
5474 if test -n "$XGETTEXT"; then
5475 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5476 echo "${ECHO_T}$XGETTEXT" >&6
5478 echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6
5482 cat >conftest.
$ac_ext <<_ACEOF
5485 cat confdefs.h
>>conftest.
$ac_ext
5486 cat >>conftest.
$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5492 extern int _nl_msg_cat_cntr;
5493 return _nl_msg_cat_cntr
5498 rm -f conftest.
$ac_objext conftest
$ac_exeext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500 (eval $ac_link) 2>conftest.er1
5502 grep -v '^ *+' conftest.er1
>conftest.err
5504 cat conftest.err
>&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } &&
5507 { ac_try
='test -z "$ac_c_werror_flag"
5508 || test ! -s conftest.err'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try
='test -s conftest$ac_exeext'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.
$ac_ext >&5
5529 rm -f conftest.err conftest.
$ac_objext \
5530 conftest
$ac_exeext conftest.
$ac_ext
5540 if test "$CATOBJEXT" = "NONE"; then
5541 nls_cv_use_gnu_gettext
=yes
5545 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5546 INTLOBJS
="\$(GETTOBJS)"
5547 # Extract the first word of "msgfmt", so it can be a program name with args.
5548 set dummy msgfmt
; ac_word
=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_path_MSGFMT+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5559 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5560 for ac_dir
in $PATH; do
5561 test -z "$ac_dir" && ac_dir
=.
5562 if test -f $ac_dir/$ac_word; then
5563 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5564 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5570 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5574 MSGFMT
="$ac_cv_path_MSGFMT"
5575 if test -n "$MSGFMT"; then
5576 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5577 echo "${ECHO_T}$MSGFMT" >&6
5579 echo "$as_me:$LINENO: result: no" >&5
5580 echo "${ECHO_T}no" >&6
5583 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5584 set dummy gmsgfmt
; ac_word
=$2
5585 echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5599 test -z "$as_dir" && as_dir
=.
5600 for ac_exec_ext
in '' $ac_executable_extensions; do
5601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5613 GMSGFMT
=$ac_cv_path_GMSGFMT
5615 if test -n "$GMSGFMT"; then
5616 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5617 echo "${ECHO_T}$GMSGFMT" >&6
5619 echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6
5623 # Extract the first word of "xgettext", so it can be a program name with args.
5624 set dummy xgettext
; ac_word
=$2
5625 echo "$as_me:$LINENO: checking for $ac_word" >&5
5626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5627 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5635 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5636 for ac_dir
in $PATH; do
5637 test -z "$ac_dir" && ac_dir
=.
5638 if test -f $ac_dir/$ac_word; then
5639 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5640 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5646 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5650 XGETTEXT
="$ac_cv_path_XGETTEXT"
5651 if test -n "$XGETTEXT"; then
5652 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5653 echo "${ECHO_T}$XGETTEXT" >&6
5655 echo "$as_me:$LINENO: result: no" >&5
5656 echo "${ECHO_T}no" >&6
5660 USE_INCLUDED_LIBINTL
=yes
5664 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5666 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5667 nls_cv_header_intl
=libintl.h
5668 nls_cv_header_libgt
=libgettext.h
5671 if test "$XGETTEXT" != ":"; then
5672 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5675 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5676 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5681 # We need to process the po/ directory.
5685 nls_cv_header_intl
=libintl.h
5686 nls_cv_header_libgt
=libgettext.h
5689 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5690 # because some of the sources are only built for this goal.
5691 if test "$PACKAGE" = gettext; then
5693 USE_INCLUDED_LIBINTL
=yes
5696 for lang
in $ALL_LINGUAS; do
5697 GMOFILES
="$GMOFILES $lang.gmo"
5698 POFILES
="$POFILES $lang.po"
5714 if test "x$CATOBJEXT" != "x"; then
5715 if test "x$ALL_LINGUAS" = "x"; then
5718 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5719 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5721 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5722 case "$ALL_LINGUAS" in
5723 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5726 LINGUAS
=$NEW_LINGUAS
5727 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5728 echo "${ECHO_T}$LINGUAS" >&6
5731 if test -n "$LINGUAS"; then
5732 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5736 if test $ac_cv_header_locale_h = yes; then
5737 INCLUDE_LOCALE_H
="#include <locale.h>"
5740 /* The system does not provide the header <locale.h>. Take care yourself. */"
5744 if test -f $srcdir/po2tbl.
sed.
in; then
5745 if test "$CATOBJEXT" = ".cat"; then
5746 if test "${ac_cv_header_linux_version_h+set}" = set; then
5747 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5748 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5749 if test "${ac_cv_header_linux_version_h+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5753 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5755 # Is the header compilable?
5756 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5757 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5758 cat >conftest.
$ac_ext <<_ACEOF
5761 cat confdefs.h
>>conftest.
$ac_ext
5762 cat >>conftest.
$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 $ac_includes_default
5765 #include <linux/version.h>
5767 rm -f conftest.
$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>conftest.er1
5771 grep -v '^ *+' conftest.er1
>conftest.err
5773 cat conftest.err
>&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try
='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try
='test -s conftest.$ac_objext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_header_compiler
=yes
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.
$ac_ext >&5
5794 ac_header_compiler
=no
5796 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5798 echo "${ECHO_T}$ac_header_compiler" >&6
5800 # Is the header present?
5801 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5802 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5803 cat >conftest.
$ac_ext <<_ACEOF
5806 cat confdefs.h
>>conftest.
$ac_ext
5807 cat >>conftest.
$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 #include <linux/version.h>
5811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5812 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5814 grep -v '^ *+' conftest.er1
>conftest.err
5816 cat conftest.err
>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } >/dev
/null
; then
5819 if test -s conftest.err
; then
5820 ac_cpp_err
=$ac_c_preproc_warn_flag
5821 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5828 if test -z "$ac_cpp_err"; then
5829 ac_header_preproc
=yes
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.
$ac_ext >&5
5834 ac_header_preproc
=no
5836 rm -f conftest.err conftest.
$ac_ext
5837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5838 echo "${ECHO_T}$ac_header_preproc" >&6
5840 # So? What about this header?
5841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5843 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5844 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5845 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5846 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5847 ac_header_preproc
=yes
5850 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5851 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5852 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5853 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5854 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5855 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5856 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5857 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5858 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5859 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5861 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5864 ## ------------------------------------------ ##
5865 ## Report this to the AC_PACKAGE_NAME lists. ##
5866 ## ------------------------------------------ ##
5869 sed "s/^/$as_me: WARNING: /" >&2
5872 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5873 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5874 if test "${ac_cv_header_linux_version_h+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 ac_cv_header_linux_version_h
=$ac_header_preproc
5879 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5880 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5883 if test $ac_cv_header_linux_version_h = yes; then
5891 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5893 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5894 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5897 if test "$PACKAGE" = "gettext"; then
5907 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5913 if test -d $srcdir/po
; then
5914 test -d po || mkdir po
5915 if test "x$srcdir" != "x."; then
5916 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5917 posrcprefix
="$srcdir/"
5919 posrcprefix
="../$srcdir/"
5925 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5926 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5930 # Check for common headers.
5931 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5932 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5938 for ac_header
in stdlib.h string.h
strings.h unistd.h
time.h
5940 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5942 echo "$as_me:$LINENO: checking for $ac_header" >&5
5943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5950 # Is the header compilable?
5951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5953 cat >conftest.
$ac_ext <<_ACEOF
5956 cat confdefs.h
>>conftest.
$ac_ext
5957 cat >>conftest.
$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 $ac_includes_default
5960 #include <$ac_header>
5962 rm -f conftest.
$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>conftest.er1
5966 grep -v '^ *+' conftest.er1
>conftest.err
5968 cat conftest.err
>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try
='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try
='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_header_compiler
=yes
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.
$ac_ext >&5
5989 ac_header_compiler
=no
5991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5993 echo "${ECHO_T}$ac_header_compiler" >&6
5995 # Is the header present?
5996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5998 cat >conftest.
$ac_ext <<_ACEOF
6001 cat confdefs.h
>>conftest.
$ac_ext
6002 cat >>conftest.
$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #include <$ac_header>
6006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6007 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6009 grep -v '^ *+' conftest.er1
>conftest.err
6011 cat conftest.err
>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } >/dev
/null
; then
6014 if test -s conftest.err
; then
6015 ac_cpp_err
=$ac_c_preproc_warn_flag
6016 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6023 if test -z "$ac_cpp_err"; then
6024 ac_header_preproc
=yes
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.
$ac_ext >&5
6029 ac_header_preproc
=no
6031 rm -f conftest.err conftest.
$ac_ext
6032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6033 echo "${ECHO_T}$ac_header_preproc" >&6
6035 # So? What about this header?
6036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6042 ac_header_preproc
=yes
6045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6052 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6059 ## ------------------------------------------ ##
6060 ## Report this to the AC_PACKAGE_NAME lists. ##
6061 ## ------------------------------------------ ##
6064 sed "s/^/$as_me: WARNING: /" >&2
6067 echo "$as_me:$LINENO: checking for $ac_header" >&5
6068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 eval "$as_ac_Header=\$ac_header_preproc"
6074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6079 cat >>confdefs.h
<<_ACEOF
6080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089 for ac_header
in sys
/time.h sys
/resource.h
6091 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6093 echo "$as_me:$LINENO: checking for $ac_header" >&5
6094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6101 # Is the header compilable?
6102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6104 cat >conftest.
$ac_ext <<_ACEOF
6107 cat confdefs.h
>>conftest.
$ac_ext
6108 cat >>conftest.
$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6111 #include <$ac_header>
6113 rm -f conftest.
$ac_objext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115 (eval $ac_compile) 2>conftest.er1
6117 grep -v '^ *+' conftest.er1
>conftest.err
6119 cat conftest.err
>&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } &&
6122 { ac_try
='test -z "$ac_c_werror_flag"
6123 || test ! -s conftest.err'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try
='test -s conftest.$ac_objext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_header_compiler
=yes
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.
$ac_ext >&5
6140 ac_header_compiler
=no
6142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6144 echo "${ECHO_T}$ac_header_compiler" >&6
6146 # Is the header present?
6147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6149 cat >conftest.
$ac_ext <<_ACEOF
6152 cat confdefs.h
>>conftest.
$ac_ext
6153 cat >>conftest.
$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #include <$ac_header>
6157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6158 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6160 grep -v '^ *+' conftest.er1
>conftest.err
6162 cat conftest.err
>&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } >/dev
/null
; then
6165 if test -s conftest.err
; then
6166 ac_cpp_err
=$ac_c_preproc_warn_flag
6167 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6174 if test -z "$ac_cpp_err"; then
6175 ac_header_preproc
=yes
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.
$ac_ext >&5
6180 ac_header_preproc
=no
6182 rm -f conftest.err conftest.
$ac_ext
6183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6184 echo "${ECHO_T}$ac_header_preproc" >&6
6186 # So? What about this header?
6187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6193 ac_header_preproc
=yes
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6210 ## ------------------------------------------ ##
6211 ## Report this to the AC_PACKAGE_NAME lists. ##
6212 ## ------------------------------------------ ##
6215 sed "s/^/$as_me: WARNING: /" >&2
6218 echo "$as_me:$LINENO: checking for $ac_header" >&5
6219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 eval "$as_ac_Header=\$ac_header_preproc"
6225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6230 cat >>confdefs.h
<<_ACEOF
6231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6240 for ac_header
in fcntl.h fpu_control.h
6242 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6244 echo "$as_me:$LINENO: checking for $ac_header" >&5
6245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6252 # Is the header compilable?
6253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6255 cat >conftest.
$ac_ext <<_ACEOF
6258 cat confdefs.h
>>conftest.
$ac_ext
6259 cat >>conftest.
$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 $ac_includes_default
6262 #include <$ac_header>
6264 rm -f conftest.
$ac_objext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6266 (eval $ac_compile) 2>conftest.er1
6268 grep -v '^ *+' conftest.er1
>conftest.err
6270 cat conftest.err
>&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try
='test -z "$ac_c_werror_flag"
6274 || test ! -s conftest.err'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try
='test -s conftest.$ac_objext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_header_compiler
=yes
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.
$ac_ext >&5
6291 ac_header_compiler
=no
6293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6295 echo "${ECHO_T}$ac_header_compiler" >&6
6297 # Is the header present?
6298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6300 cat >conftest.
$ac_ext <<_ACEOF
6303 cat confdefs.h
>>conftest.
$ac_ext
6304 cat >>conftest.
$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 #include <$ac_header>
6308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6309 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6311 grep -v '^ *+' conftest.er1
>conftest.err
6313 cat conftest.err
>&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } >/dev
/null
; then
6316 if test -s conftest.err
; then
6317 ac_cpp_err
=$ac_c_preproc_warn_flag
6318 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6325 if test -z "$ac_cpp_err"; then
6326 ac_header_preproc
=yes
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.
$ac_ext >&5
6331 ac_header_preproc
=no
6333 rm -f conftest.err conftest.
$ac_ext
6334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6335 echo "${ECHO_T}$ac_header_preproc" >&6
6337 # So? What about this header?
6338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6344 ac_header_preproc
=yes
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6361 ## ------------------------------------------ ##
6362 ## Report this to the AC_PACKAGE_NAME lists. ##
6363 ## ------------------------------------------ ##
6366 sed "s/^/$as_me: WARNING: /" >&2
6369 echo "$as_me:$LINENO: checking for $ac_header" >&5
6370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 eval "$as_ac_Header=\$ac_header_preproc"
6376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6381 cat >>confdefs.h
<<_ACEOF
6382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6392 for ac_header
in dlfcn.h errno.h sys
/stat.h
6394 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396 echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6404 # Is the header compilable?
6405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6407 cat >conftest.
$ac_ext <<_ACEOF
6410 cat confdefs.h
>>conftest.
$ac_ext
6411 cat >>conftest.
$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 $ac_includes_default
6414 #include <$ac_header>
6416 rm -f conftest.
$ac_objext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418 (eval $ac_compile) 2>conftest.er1
6420 grep -v '^ *+' conftest.er1
>conftest.err
6422 cat conftest.err
>&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try
='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; } &&
6432 { ac_try
='test -s conftest.$ac_objext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_header_compiler
=yes
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.
$ac_ext >&5
6443 ac_header_compiler
=no
6445 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6447 echo "${ECHO_T}$ac_header_compiler" >&6
6449 # Is the header present?
6450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6452 cat >conftest.
$ac_ext <<_ACEOF
6455 cat confdefs.h
>>conftest.
$ac_ext
6456 cat >>conftest.
$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 #include <$ac_header>
6460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6461 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6463 grep -v '^ *+' conftest.er1
>conftest.err
6465 cat conftest.err
>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } >/dev
/null
; then
6468 if test -s conftest.err
; then
6469 ac_cpp_err
=$ac_c_preproc_warn_flag
6470 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6477 if test -z "$ac_cpp_err"; then
6478 ac_header_preproc
=yes
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.
$ac_ext >&5
6483 ac_header_preproc
=no
6485 rm -f conftest.err conftest.
$ac_ext
6486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6487 echo "${ECHO_T}$ac_header_preproc" >&6
6489 # So? What about this header?
6490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6496 ac_header_preproc
=yes
6499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6513 ## ------------------------------------------ ##
6514 ## Report this to the AC_PACKAGE_NAME lists. ##
6515 ## ------------------------------------------ ##
6518 sed "s/^/$as_me: WARNING: /" >&2
6521 echo "$as_me:$LINENO: checking for $ac_header" >&5
6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 eval "$as_ac_Header=\$ac_header_preproc"
6528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533 cat >>confdefs.h
<<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6545 for ac_func
in getrusage
time sigaction __setfpucw
6547 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6548 echo "$as_me:$LINENO: checking for $ac_func" >&5
6549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6550 if eval "test \"\${$as_ac_var+set}\" = set"; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 cat >conftest.
$ac_ext <<_ACEOF
6556 cat confdefs.h
>>conftest.
$ac_ext
6557 cat >>conftest.
$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6561 #define $ac_func innocuous_$ac_func
6563 /* System header to define __stub macros and hopefully few prototypes,
6564 which can conflict with char $ac_func (); below.
6565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6566 <limits.h> exists even on freestanding compilers. */
6569 # include <limits.h>
6571 # include <assert.h>
6576 /* Override any gcc2 internal prototype to avoid an error. */
6581 /* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
6584 /* The GNU C library defines this for functions which it implements
6585 to always fail with ENOSYS. Some functions are actually named
6586 something starting with __ and the normal name is an alias. */
6587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6590 char (*f) () = $ac_func;
6599 return f != $ac_func;
6604 rm -f conftest.
$ac_objext conftest
$ac_exeext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6606 (eval $ac_link) 2>conftest.er1
6608 grep -v '^ *+' conftest.er1
>conftest.err
6610 cat conftest.err
>&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try
='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try
='test -s conftest$ac_exeext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 eval "$as_ac_var=yes"
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.
$ac_ext >&5
6631 eval "$as_ac_var=no"
6633 rm -f conftest.err conftest.
$ac_objext \
6634 conftest
$ac_exeext conftest.
$ac_ext
6636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6638 if test `eval echo '${'$as_ac_var'}'` = yes; then
6639 cat >>confdefs.h
<<_ACEOF
6640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6647 # Check for socket libraries
6649 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6650 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6651 if test "${ac_cv_lib_socket_bind+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 ac_check_lib_save_LIBS
=$LIBS
6655 LIBS
="-lsocket $LIBS"
6656 cat >conftest.
$ac_ext <<_ACEOF
6659 cat confdefs.h
>>conftest.
$ac_ext
6660 cat >>conftest.
$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6663 /* Override any gcc2 internal prototype to avoid an error. */
6667 /* We use char because int might match the return type of a gcc2
6668 builtin and then its argument prototype would still apply. */
6678 rm -f conftest.
$ac_objext conftest
$ac_exeext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6680 (eval $ac_link) 2>conftest.er1
6682 grep -v '^ *+' conftest.er1
>conftest.err
6684 cat conftest.err
>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try
='test -z "$ac_c_werror_flag"
6688 || test ! -s conftest.err'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; } &&
6694 { ac_try
='test -s conftest$ac_exeext'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 ac_cv_lib_socket_bind
=yes
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.
$ac_ext >&5
6705 ac_cv_lib_socket_bind
=no
6707 rm -f conftest.err conftest.
$ac_objext \
6708 conftest
$ac_exeext conftest.
$ac_ext
6709 LIBS
=$ac_check_lib_save_LIBS
6711 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6712 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6713 if test $ac_cv_lib_socket_bind = yes; then
6714 cat >>confdefs.h
<<_ACEOF
6715 #define HAVE_LIBSOCKET 1
6718 LIBS
="-lsocket $LIBS"
6723 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6724 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6725 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 ac_check_lib_save_LIBS
=$LIBS
6730 cat >conftest.
$ac_ext <<_ACEOF
6733 cat confdefs.h
>>conftest.
$ac_ext
6734 cat >>conftest.
$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6737 /* Override any gcc2 internal prototype to avoid an error. */
6741 /* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */
6743 char gethostbyname ();
6752 rm -f conftest.
$ac_objext conftest
$ac_exeext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6754 (eval $ac_link) 2>conftest.er1
6756 grep -v '^ *+' conftest.er1
>conftest.err
6758 cat conftest.err
>&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
6761 { ac_try
='test -z "$ac_c_werror_flag"
6762 || test ! -s conftest.err'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; } &&
6768 { ac_try
='test -s conftest$ac_exeext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 ac_cv_lib_nsl_gethostbyname
=yes
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.
$ac_ext >&5
6779 ac_cv_lib_nsl_gethostbyname
=no
6781 rm -f conftest.err conftest.
$ac_objext \
6782 conftest
$ac_exeext conftest.
$ac_ext
6783 LIBS
=$ac_check_lib_save_LIBS
6785 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6786 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6787 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6788 cat >>confdefs.h
<<_ACEOF
6789 #define HAVE_LIBNSL 1
6797 .
${srcdir}/..
/..
/bfd
/configure.
host
6801 USE_MAINTAINER_MODE
=no
6802 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6803 if test "${enable_maintainer_mode+set}" = set; then
6804 enableval
="$enable_maintainer_mode"
6805 case "${enableval}" in
6806 yes) MAINT
="" USE_MAINTAINER_MODE
=yes ;;
6808 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6809 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6810 { (exit 1); exit 1; }; }; MAINT
="#" ;;
6812 if test x
"$silent" != x
"yes" && test x
"$MAINT" = x
""; then
6813 echo "Setting maintainer mode" 6>&1
6820 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6821 if test "${enable_sim_bswap+set}" = set; then
6822 enableval
="$enable_sim_bswap"
6823 case "${enableval}" in
6824 yes) sim_bswap
="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6825 no
) sim_bswap
="-DWITH_BSWAP=0";;
6826 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6827 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6828 { (exit 1); exit 1; }; }; sim_bswap
="";;
6830 if test x
"$silent" != x
"yes" && test x
"$sim_bswap" != x
""; then
6831 echo "Setting bswap flags = $sim_bswap" 6>&1
6838 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6839 if test "${enable_sim_cflags+set}" = set; then
6840 enableval
="$enable_sim_cflags"
6841 case "${enableval}" in
6842 yes) sim_cflags
="-O2 -fomit-frame-pointer";;
6843 trace
) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6844 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6845 { (exit 1); exit 1; }; }; sim_cflags
="";;
6847 *) sim_cflags
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6849 if test x
"$silent" != x
"yes" && test x
"$sim_cflags" != x
""; then
6850 echo "Setting sim cflags = $sim_cflags" 6>&1
6857 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6858 if test "${enable_sim_debug+set}" = set; then
6859 enableval
="$enable_sim_debug"
6860 case "${enableval}" in
6861 yes) sim_debug
="-DDEBUG=7 -DWITH_DEBUG=7";;
6862 no
) sim_debug
="-DDEBUG=0 -DWITH_DEBUG=0";;
6863 *) sim_debug
="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6865 if test x
"$silent" != x
"yes" && test x
"$sim_debug" != x
""; then
6866 echo "Setting sim debug = $sim_debug" 6>&1
6873 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6874 if test "${enable_sim_stdio+set}" = set; then
6875 enableval
="$enable_sim_stdio"
6876 case "${enableval}" in
6877 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
6878 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
6879 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6880 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6881 { (exit 1); exit 1; }; }; sim_stdio
="";;
6883 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
6884 echo "Setting stdio flags = $sim_stdio" 6>&1
6891 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6892 if test "${enable_sim_trace+set}" = set; then
6893 enableval
="$enable_sim_trace"
6894 case "${enableval}" in
6895 yes) sim_trace
="-DTRACE=1 -DWITH_TRACE=-1";;
6896 no
) sim_trace
="-DTRACE=0 -DWITH_TRACE=0";;
6898 sim_trace
="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6901 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6902 if test x
"$sim_trace" = x
; then
6903 sim_trace
="-DWITH_TRACE='(TRACE_$x"
6905 sim_trace
="${sim_trace}|TRACE_$x"
6908 sim_trace
="$sim_trace)'" ;;
6910 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
6911 echo "Setting sim trace = $sim_trace" 6>&1
6918 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6919 if test "${enable_sim_profile+set}" = set; then
6920 enableval
="$enable_sim_profile"
6921 case "${enableval}" in
6922 yes) sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1";;
6923 no
) sim_profile
="-DPROFILE=0 -DWITH_PROFILE=0";;
6925 sim_profile
="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6928 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
6929 if test x
"$sim_profile" = x
; then
6930 sim_profile
="-DWITH_PROFILE='(PROFILE_$x"
6932 sim_profile
="${sim_profile}|PROFILE_$x"
6935 sim_profile
="$sim_profile)'" ;;
6937 if test x
"$silent" != x
"yes" && test x
"$sim_profile" != x
""; then
6938 echo "Setting sim profile = $sim_profile" 6>&1
6941 sim_profile
="-DPROFILE=1 -DWITH_PROFILE=-1"
6945 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6946 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6947 if test "${ac_cv_type_signal+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 cat >conftest.
$ac_ext <<_ACEOF
6953 cat confdefs.h
>>conftest.
$ac_ext
6954 cat >>conftest.
$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 #include <sys/types.h>
6962 extern "C" void (*signal (int, void (*)(int)))(int);
6964 void (*signal ()) ();
6975 rm -f conftest.
$ac_objext
6976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6977 (eval $ac_compile) 2>conftest.er1
6979 grep -v '^ *+' conftest.er1
>conftest.err
6981 cat conftest.err
>&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try
='test -z "$ac_c_werror_flag"
6985 || test ! -s conftest.err'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; } &&
6991 { ac_try
='test -s conftest.$ac_objext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 ac_cv_type_signal
=void
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.
$ac_ext >&5
7002 ac_cv_type_signal
=int
7004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7006 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7007 echo "${ECHO_T}$ac_cv_type_signal" >&6
7009 cat >>confdefs.h
<<_ACEOF
7010 #define RETSIGTYPE $ac_cv_type_signal
7020 sim_link_links
=tconfig.h
7021 if test -f ${srcdir}/tconfig.
in
7023 sim_link_files
=tconfig.
in
7025 sim_link_files
=..
/common
/tconfig.
in
7028 # targ-vals.def points to the libc macro description file.
7030 *-*-*) TARG_VALS_DEF
=..
/common
/nltvals.def
;;
7032 sim_link_files
="${sim_link_files} ${TARG_VALS_DEF}"
7033 sim_link_links
="${sim_link_links} targ-vals.def"
7037 wire_endian
="BIG_ENDIAN"
7039 # Check whether --enable-sim-endian or --disable-sim-endian was given.
7040 if test "${enable_sim_endian+set}" = set; then
7041 enableval
="$enable_sim_endian"
7042 case "${enableval}" in
7043 b
*|B
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
7044 l
*|L
*) sim_endian
="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
7045 yes) if test x
"$wire_endian" != x
; then
7046 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7048 if test x
"$default_endian" != x
; then
7049 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
7051 echo "No hard-wired endian for target $target" 1>&6
7052 sim_endian
="-DWITH_TARGET_BYTE_ORDER=0"
7055 no
) if test x
"$default_endian" != x
; then
7056 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7058 if test x
"$wire_endian" != x
; then
7059 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
7061 echo "No default endian for target $target" 1>&6
7062 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
7065 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
7066 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
7067 { (exit 1); exit 1; }; }; sim_endian
="";;
7069 if test x
"$silent" != x
"yes" && test x
"$sim_endian" != x
""; then
7070 echo "Setting endian flags = $sim_endian" 6>&1
7073 if test x
"$default_endian" != x
; then
7074 sim_endian
="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7076 if test x
"$wire_endian" != x
; then
7077 sim_endian
="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7083 wire_alignment
="STRICT_ALIGNMENT"
7084 default_alignment
=""
7086 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
7087 if test "${enable_sim_alignment+set}" = set; then
7088 enableval
="$enable_sim_alignment"
7089 case "${enableval}" in
7090 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
7091 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
7092 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
7093 yes) if test x
"$wire_alignment" != x
; then
7094 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7096 if test x
"$default_alignment" != x
; then
7097 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
7099 echo "No hard-wired alignment for target $target" 1>&6
7100 sim_alignment
="-DWITH_ALIGNMENT=0"
7103 no
) if test x
"$default_alignment" != x
; then
7104 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7106 if test x
"$wire_alignment" != x
; then
7107 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
7109 echo "No default alignment for target $target" 1>&6
7110 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
7113 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
7114 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
7115 { (exit 1); exit 1; }; }; sim_alignment
="";;
7117 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
7118 echo "Setting alignment flags = $sim_alignment" 6>&1
7121 if test x
"$default_alignment" != x
; then
7122 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
7124 if test x
"$wire_alignment" != x
; then
7125 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
7132 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
7133 if test "${enable_sim_hostendian+set}" = set; then
7134 enableval
="$enable_sim_hostendian"
7135 case "${enableval}" in
7136 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
7137 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
7138 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
7139 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
7140 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
7141 { (exit 1); exit 1; }; }; sim_hostendian
="";;
7143 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
7144 echo "Setting hostendian flags = $sim_hostendian" 6>&1
7148 if test "x$cross_compiling" = "xno"; then
7149 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7150 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7151 if test "${ac_cv_c_bigendian+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 # See if sys/param.h defines the BYTE_ORDER macro.
7155 cat >conftest.
$ac_ext <<_ACEOF
7158 cat confdefs.h
>>conftest.
$ac_ext
7159 cat >>conftest.
$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 #include <sys/types.h>
7162 #include <sys/param.h>
7167 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7175 rm -f conftest.
$ac_objext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
7179 grep -v '^ *+' conftest.er1
>conftest.err
7181 cat conftest.err
>&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try
='test -z "$ac_c_werror_flag"
7185 || test ! -s conftest.err'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; } &&
7191 { ac_try
='test -s conftest.$ac_objext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 # It does; now see whether it defined to BIG_ENDIAN or not.
7198 cat >conftest.
$ac_ext <<_ACEOF
7201 cat confdefs.h
>>conftest.
$ac_ext
7202 cat >>conftest.
$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 #include <sys/types.h>
7205 #include <sys/param.h>
7210 #if BYTE_ORDER != BIG_ENDIAN
7218 rm -f conftest.
$ac_objext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220 (eval $ac_compile) 2>conftest.er1
7222 grep -v '^ *+' conftest.er1
>conftest.err
7224 cat conftest.err
>&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } &&
7227 { ac_try
='test -z "$ac_c_werror_flag"
7228 || test ! -s conftest.err'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; } &&
7234 { ac_try
='test -s conftest.$ac_objext'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; }; then
7240 ac_cv_c_bigendian
=yes
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.
$ac_ext >&5
7245 ac_cv_c_bigendian
=no
7247 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.
$ac_ext >&5
7252 # It does not; compile a test program.
7253 if test "$cross_compiling" = yes; then
7254 # try to guess the endianness by grepping values into an object file
7255 ac_cv_c_bigendian
=unknown
7256 cat >conftest.
$ac_ext <<_ACEOF
7259 cat confdefs.h
>>conftest.
$ac_ext
7260 cat >>conftest.
$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7263 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7264 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7265 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7266 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7267 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7271 _ascii (); _ebcdic ();
7276 rm -f conftest.
$ac_objext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7278 (eval $ac_compile) 2>conftest.er1
7280 grep -v '^ *+' conftest.er1
>conftest.err
7282 cat conftest.err
>&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try
='test -z "$ac_c_werror_flag"
7286 || test ! -s conftest.err'
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; } &&
7292 { ac_try
='test -s conftest.$ac_objext'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7299 ac_cv_c_bigendian
=yes
7301 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7302 if test "$ac_cv_c_bigendian" = unknown
; then
7303 ac_cv_c_bigendian
=no
7305 # finding both strings is unlikely to happen, but who knows?
7306 ac_cv_c_bigendian
=unknown
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.
$ac_ext >&5
7314 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7316 cat >conftest.
$ac_ext <<_ACEOF
7319 cat confdefs.h
>>conftest.
$ac_ext
7320 cat >>conftest.
$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7325 /* Are we little or big endian? From Harbison&Steele. */
7329 char c[sizeof (long)];
7332 exit (u.c[sizeof (long) - 1] == 1);
7335 rm -f conftest
$ac_exeext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7337 (eval $ac_link) 2>&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7346 ac_cv_c_bigendian
=no
7348 echo "$as_me: program exited with status $ac_status" >&5
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.
$ac_ext >&5
7353 ac_cv_c_bigendian
=yes
7355 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7360 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7361 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7362 case $ac_cv_c_bigendian in
7365 cat >>confdefs.h
<<\_ACEOF
7366 #define WORDS_BIGENDIAN 1
7372 { { echo "$as_me:$LINENO: error: unknown endianness
7373 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7374 echo "$as_me: error: unknown endianness
7375 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7376 { (exit 1); exit 1; }; } ;;
7379 if test $ac_cv_c_bigendian = yes; then
7380 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7382 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7385 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
7389 default_sim_scache
="16384"
7390 # Check whether --enable-sim-scache or --disable-sim-scache was given.
7391 if test "${enable_sim_scache+set}" = set; then
7392 enableval
="$enable_sim_scache"
7393 case "${enableval}" in
7394 yes) sim_scache
="-DWITH_SCACHE=${default_sim_scache}";;
7395 no
) sim_scache
="-DWITH_SCACHE=0" ;;
7396 [0-9]*) sim_scache
="-DWITH_SCACHE=${enableval}";;
7397 *) { { echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5
7398 echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;}
7399 { (exit 1); exit 1; }; };
7402 if test x
"$silent" != x
"yes" && test x
"$sim_scache" != x
""; then
7403 echo "Setting scache size = $sim_scache" 6>&1
7406 sim_scache
="-DWITH_SCACHE=${default_sim_scache}"
7410 default_sim_default_model
="iq2000"
7411 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
7412 if test "${enable_sim_default_model+set}" = set; then
7413 enableval
="$enable_sim_default_model"
7414 case "${enableval}" in
7415 yes|no
) { { echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5
7416 echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;}
7417 { (exit 1); exit 1; }; };;
7418 *) sim_default_model
="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
7420 if test x
"$silent" != x
"yes" && test x
"$sim_default_model" != x
""; then
7421 echo "Setting default model = $sim_default_model" 6>&1
7424 sim_default_model
="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
7428 # Check whether --enable-sim-environment or --disable-sim-environment was given.
7429 if test "${enable_sim_environment+set}" = set; then
7430 enableval
="$enable_sim_environment"
7431 case "${enableval}" in
7432 all | ALL
) sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
7433 user | USER
) sim_environment
="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
7434 virtual | VIRTUAL
) sim_environment
="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
7435 operating | OPERATING
) sim_environment
="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
7436 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5
7437 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;}
7438 { (exit 1); exit 1; }; };
7439 sim_environment
="";;
7441 if test x
"$silent" != x
"yes" && test x
"$sim_environment" != x
""; then
7442 echo "Setting sim environment = $sim_environment" 6>&1
7445 sim_environment
="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
7448 default_sim_inline
=""
7449 # Check whether --enable-sim-inline or --disable-sim-inline was given.
7450 if test "${enable_sim_inline+set}" = set; then
7451 enableval
="$enable_sim_inline"
7453 case "$enableval" in
7454 no
) sim_inline
="-DDEFAULT_INLINE=0";;
7455 0) sim_inline
="-DDEFAULT_INLINE=0";;
7456 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
7457 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
7458 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
7461 *_INLINE
=*) new_flag
="-D$x";;
7462 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
7463 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
7464 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
7466 if test x
"$sim_inline" = x
""; then
7467 sim_inline
="$new_flag"
7469 sim_inline
="$sim_inline $new_flag"
7473 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
7474 echo "Setting inline flags = $sim_inline" 6>&1
7478 if test "x$cross_compiling" = "xno"; then
7479 if test x
"$GCC" != "x" -a x
"${default_sim_inline}" != "x" ; then
7480 sim_inline
="${default_sim_inline}"
7481 if test x
"$silent" != x
"yes"; then
7482 echo "Setting inline flags = $sim_inline" 6>&1
7488 sim_inline
="-DDEFAULT_INLINE=0"
7494 cgendir
='$(srcdir)/../../cgen'
7495 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
7496 if test "${enable_cgen_maint+set}" = set; then
7497 enableval
="$enable_cgen_maint"
7498 case "${enableval}" in
7499 yes) cgen_maint
=yes ;;
7500 no
) cgen_maint
=no
;;
7502 # argument is cgen install directory (not implemented yet).
7503 # Having a `share' directory might be more appropriate for the .scm,
7505 cgendir
=${cgen_maint}/lib
/cgen
7509 fi; if test x
${cgen_maint} != xno
; then
7520 ac_sources
="$sim_link_files"
7521 ac_dests
="$sim_link_links"
7522 while test -n "$ac_sources"; do
7523 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
7524 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
7525 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
7527 ac_config_links
="$ac_config_links $ac_config_links_1"
7530 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
7531 cgen_breaks
="break cgen_rtx_error";
7534 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
7536 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
7538 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
7540 ac_config_commands
="$ac_config_commands Makefile"
7542 ac_config_commands
="$ac_config_commands stamp-h"
7544 cat >confcache
<<\_ACEOF
7545 # This file is a shell script that caches the results of configure
7546 # tests run on this system so they can be shared between configure
7547 # scripts and configure runs, see configure's option --config-cache.
7548 # It is not useful on other systems. If it contains results you don't
7549 # want to keep, you may remove or edit it.
7551 # config.status only pays attention to the cache file if you give it
7552 # the --recheck option to rerun configure.
7554 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7555 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7560 # The following way of writing the cache mishandles newlines in values,
7561 # but we know of no workaround that is simple, portable, and efficient.
7562 # So, don't put newlines in cache variables' values.
7563 # Ultrix sh set writes to stderr and can't be redirected directly,
7564 # and sets the high bit in the cache file unless we assign to the vars.
7567 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7569 # `set' does not quote correctly, so add quotes (double-quote
7570 # substitution turns \\\\ into \\, and sed turns \\ into \).
7573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7576 # `set' quotes correctly as required by POSIX, so do not add quotes.
7578 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7587 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7589 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7590 if test -w $cache_file; then
7591 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7592 cat confcache
>$cache_file
7594 echo "not updating unwritable cache $cache_file"
7599 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7600 # Let make expand exec_prefix.
7601 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7603 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7604 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7605 # trailing colons and then remove the whole line if VPATH becomes empty
7606 # (actually we leave an empty line to preserve line numbers).
7607 if test "x$srcdir" = x.
; then
7608 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7609 s/:*\$(srcdir):*/:/;
7610 s/:*\${srcdir}:*/:/;
7612 s/^\([^=]*=[ ]*\):*/\1/;
7618 DEFS
=-DHAVE_CONFIG_H
7622 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7623 # 1. Remove the extension, and $U if already installed.
7624 ac_i
=`echo "$ac_i" |
7625 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7627 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7628 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7632 LTLIBOBJS
=$ac_ltlibobjs
7636 : ${CONFIG_STATUS=./config.status}
7637 ac_clean_files_save
=$ac_clean_files
7638 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7639 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7640 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7641 cat >$CONFIG_STATUS <<_ACEOF
7643 # Generated by $as_me.
7644 # Run this file to recreate the current configuration.
7645 # Compiler output produced by configure, useful for debugging
7646 # configure, is in config.log if it exists.
7651 SHELL=\${CONFIG_SHELL-$SHELL}
7654 cat >>$CONFIG_STATUS <<\_ACEOF
7655 ## --------------------- ##
7656 ## M4sh Initialization. ##
7657 ## --------------------- ##
7659 # Be Bourne compatible
7660 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7663 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7664 # is contrary to our usage. Disable this feature.
7665 alias -g '${1+"$@"}'='"$@"'
7666 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7669 DUALCASE
=1; export DUALCASE
# for MKS sh
7671 # Support unset when possible.
7672 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7679 # Work around bugs in pre-3.0 UWIN ksh.
7680 $as_unset ENV MAIL MAILPATH
7687 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7688 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7689 LC_TELEPHONE LC_TIME
7691 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7692 eval $as_var=C
; export $as_var
7698 # Required to use basename.
7699 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7705 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7706 as_basename
=basename
7712 # Name of the executable.
7713 as_me
=`$as_basename "$0" ||
7714 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7715 X"$0" : 'X\(//\)$' \| \
7716 X"$0" : 'X\(/\)$' \| \
7717 . : '\(.\)' 2>/dev/null ||
7719 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7720 /^X\/\(\/\/\)$/{ s//\1/; q; }
7721 /^X\/\(\/\).*/{ s//\1/; q; }
7725 # PATH needs CR, and LINENO needs CR and PATH.
7726 # Avoid depending upon Character Ranges.
7727 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7728 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7729 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7730 as_cr_digits
='0123456789'
7731 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7733 # The user is always right.
7734 if test "${PATH_SEPARATOR+set}" != set; then
7735 echo "#! /bin/sh" >conf$$.sh
7736 echo "exit 0" >>conf$$.sh
7738 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7749 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7750 test "x$as_lineno_1" != "x$as_lineno_2" &&
7751 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7752 # Find who we are. Look in the path if we contain no path at all
7755 *[\\/]* ) as_myself
=$0 ;;
7756 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7760 test -z "$as_dir" && as_dir
=.
7761 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7766 # We did not find ourselves, most probably we were run as `sh COMMAND'
7767 # in which case we are not to be found in the path.
7768 if test "x$as_myself" = x
; then
7771 if test ! -f "$as_myself"; then
7772 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7773 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7774 { (exit 1); exit 1; }; }
7776 case $CONFIG_SHELL in
7778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7779 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7782 test -z "$as_dir" && as_dir
=.
7783 for as_base
in sh bash ksh sh5
; do
7786 if ("$as_dir/$as_base" -c '
7789 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7790 test "x$as_lineno_1" != "x$as_lineno_2" &&
7791 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7792 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
7793 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
7794 CONFIG_SHELL
=$as_dir/$as_base
7796 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7804 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7805 # uniformly replaced by the line number. The first 'sed' inserts a
7806 # line-number line before each line; the second 'sed' does the real
7807 # work. The second script uses 'N' to pair each line-number line
7808 # with the numbered line, and appends trailing '-' during
7809 # substitution so that $LINENO is not a special case at line end.
7810 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7811 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7812 sed '=' <$as_myself |
7817 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7820 s,^['$as_cr_digits']*\n,,
7822 chmod +x
$as_me.lineno ||
7823 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7824 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7825 { (exit 1); exit 1; }; }
7827 # Don't try to exec as it changes $[0], causing all sort of problems
7828 # (the dirname of $[0] is not the place where we might find the
7829 # original and so on. Autoconf is especially sensible to this).
7831 # Exit status is that of the last command.
7836 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7837 *c
*,-n*) ECHO_N
= ECHO_C
='
7839 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7840 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7843 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7849 rm -f conf$$ conf$$.exe conf$$.
file
7851 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7852 # We could just check for DJGPP; but this test a) works b) is more generic
7853 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7854 if test -f conf$$.exe
; then
7855 # Don't use ln at all; we don't have any links
7860 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7865 rm -f conf$$ conf$$.exe conf$$.
file
7867 if mkdir
-p .
2>/dev
/null
; then
7870 test -d .
/-p && rmdir .
/-p
7874 as_executable_p
="test -f"
7876 # Sed expression to map a string onto a valid CPP name.
7877 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7879 # Sed expression to map a string onto a valid variable name.
7880 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7884 # We need space, tab and new line, in precisely that order.
7894 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7895 # report actual input values of CONFIG_FILES etc. instead of their
7896 # values after options handling. Logging --version etc. is OK.
7900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7901 ## Running $as_me. ##
7906 This file was extended by $as_me, which was
7907 generated by GNU Autoconf 2.59. Invocation command line was
7909 CONFIG_FILES = $CONFIG_FILES
7910 CONFIG_HEADERS = $CONFIG_HEADERS
7911 CONFIG_LINKS = $CONFIG_LINKS
7912 CONFIG_COMMANDS = $CONFIG_COMMANDS
7916 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7920 # Files that config.status was made for.
7921 if test -n "$ac_config_files"; then
7922 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7925 if test -n "$ac_config_headers"; then
7926 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7929 if test -n "$ac_config_links"; then
7930 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7933 if test -n "$ac_config_commands"; then
7934 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7937 cat >>$CONFIG_STATUS <<\_ACEOF
7940 \`$as_me' instantiates files from templates according to the
7941 current configuration.
7943 Usage: $0 [OPTIONS] [FILE]...
7945 -h, --help print this help, then exit
7946 -V, --version print version number, then exit
7947 -q, --quiet do not print progress messages
7948 -d, --debug don't remove temporary files
7949 --recheck update $as_me by reconfiguring in the same conditions
7950 --file=FILE[:TEMPLATE]
7951 instantiate the configuration file FILE
7952 --header=FILE[:TEMPLATE]
7953 instantiate the configuration header FILE
7955 Configuration files:
7958 Configuration headers:
7961 Configuration links:
7964 Configuration commands:
7967 Report bugs to <bug-autoconf@gnu.org>."
7970 cat >>$CONFIG_STATUS <<_ACEOF
7973 configured by $0, generated by GNU Autoconf 2.59,
7974 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7976 Copyright (C) 2003 Free Software Foundation, Inc.
7977 This config.status script is free software; the Free Software Foundation
7978 gives unlimited permission to copy, distribute and modify it."
7983 cat >>$CONFIG_STATUS <<\_ACEOF
7984 # If no file are specified by the user, then we need to provide default
7985 # value. By we need to know if files were specified by the user.
7991 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7992 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8000 *) # This is not an option, so the user has probably given explicit
8003 ac_need_defaults
=false
;;
8007 # Handling of the options.
8009 cat >>$CONFIG_STATUS <<\_ACEOF
8010 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8012 --version |
--vers* |
-V )
8013 echo "$ac_cs_version"; exit 0 ;;
8015 # Conflict between --help and --header
8016 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8017 Try \`$0 --help' for more information." >&5
8018 echo "$as_me: error: ambiguous option: $1
8019 Try \`$0 --help' for more information." >&2;}
8020 { (exit 1); exit 1; }; };;
8021 --help |
--hel |
-h )
8022 echo "$ac_cs_usage"; exit 0 ;;
8023 --debug |
--d* |
-d )
8025 --file |
--fil |
--fi |
--f )
8027 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8028 ac_need_defaults
=false
;;
8029 --header |
--heade |
--head |
--hea )
8031 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8032 ac_need_defaults
=false
;;
8033 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8034 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8038 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8039 Try \`$0 --help' for more information." >&5
8040 echo "$as_me: error: unrecognized option: $1
8041 Try \`$0 --help' for more information." >&2;}
8042 { (exit 1); exit 1; }; } ;;
8044 *) ac_config_targets
="$ac_config_targets $1" ;;
8050 ac_configure_extra_args
=
8052 if $ac_cs_silent; then
8054 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8058 cat >>$CONFIG_STATUS <<_ACEOF
8059 if \$ac_cs_recheck; then
8060 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8061 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8070 cat >>$CONFIG_STATUS <<\_ACEOF
8071 for ac_config_target
in $ac_config_targets
8073 case "$ac_config_target" in
8074 # Handling of arguments.
8075 "Makefile.sim" ) CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
8076 "Make-common.sim" ) CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
8077 ".gdbinit" ) CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
8078 "$ac_config_links_1" ) CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
8079 "Makefile" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
8080 "stamp-h" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
8081 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8084 { (exit 1); exit 1; }; };;
8088 # If the user did not use the arguments to specify the items to instantiate,
8089 # then the envvar interface is used. Set only those that are not.
8090 # We use the long form for the default assignment because of an extremely
8091 # bizarre bug on SunOS 4.1.3.
8092 if $ac_need_defaults; then
8093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8095 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
8096 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8099 # Have a temporary directory for convenience. Make it in the build tree
8100 # simply because there is no reason to put it here, and in addition,
8101 # creating and moving files from /tmp can sometimes cause problems.
8102 # Create a temporary directory, and hook for its removal unless debugging.
8105 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8106 trap '{ (exit 1); exit 1; }' 1 2 13 15
8109 # Create a (secure) tmp directory for tmp files.
8112 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8113 test -n "$tmp" && test -d "$tmp"
8116 tmp
=.
/confstat$$
-$RANDOM
8117 (umask 077 && mkdir
$tmp)
8120 echo "$me: cannot create a temporary directory in ." >&2
8121 { (exit 1); exit 1; }
8126 cat >>$CONFIG_STATUS <<_ACEOF
8129 # CONFIG_FILES section.
8132 # No need to generate the scripts if there are no CONFIG_FILES.
8133 # This happens for instance when ./config.status config.h
8134 if test -n "\$CONFIG_FILES"; then
8135 # Protect against being on the right side of a sed subst in config.status.
8136 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8137 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8138 s,@SHELL@,$SHELL,;t t
8139 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8140 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8141 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8142 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8143 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8144 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8145 s,@exec_prefix@,$exec_prefix,;t t
8146 s,@prefix@,$prefix,;t t
8147 s,@program_transform_name@,$program_transform_name,;t t
8148 s,@bindir@,$bindir,;t t
8149 s,@sbindir@,$sbindir,;t t
8150 s,@libexecdir@,$libexecdir,;t t
8151 s,@datadir@,$datadir,;t t
8152 s,@sysconfdir@,$sysconfdir,;t t
8153 s,@sharedstatedir@,$sharedstatedir,;t t
8154 s,@localstatedir@,$localstatedir,;t t
8155 s,@libdir@,$libdir,;t t
8156 s,@includedir@,$includedir,;t t
8157 s,@oldincludedir@,$oldincludedir,;t t
8158 s,@infodir@,$infodir,;t t
8159 s,@mandir@,$mandir,;t t
8160 s,@build_alias@,$build_alias,;t t
8161 s,@host_alias@,$host_alias,;t t
8162 s,@target_alias@,$target_alias,;t t
8164 s,@ECHO_C@,$ECHO_C,;t t
8165 s,@ECHO_N@,$ECHO_N,;t t
8166 s,@ECHO_T@,$ECHO_T,;t t
8168 s,@sim_environment@,$sim_environment,;t t
8169 s,@sim_alignment@,$sim_alignment,;t t
8170 s,@sim_assert@,$sim_assert,;t t
8171 s,@sim_bitsize@,$sim_bitsize,;t t
8172 s,@sim_endian@,$sim_endian,;t t
8173 s,@sim_hostendian@,$sim_hostendian,;t t
8174 s,@sim_float@,$sim_float,;t t
8175 s,@sim_scache@,$sim_scache,;t t
8176 s,@sim_default_model@,$sim_default_model,;t t
8177 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
8178 s,@sim_hw_objs@,$sim_hw_objs,;t t
8179 s,@sim_hw@,$sim_hw,;t t
8180 s,@sim_inline@,$sim_inline,;t t
8181 s,@sim_packages@,$sim_packages,;t t
8182 s,@sim_regparm@,$sim_regparm,;t t
8183 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
8184 s,@sim_smp@,$sim_smp,;t t
8185 s,@sim_stdcall@,$sim_stdcall,;t t
8186 s,@sim_xor_endian@,$sim_xor_endian,;t t
8187 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8188 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
8189 s,@build@,$build,;t t
8190 s,@build_cpu@,$build_cpu,;t t
8191 s,@build_vendor@,$build_vendor,;t t
8192 s,@build_os@,$build_os,;t t
8194 s,@host_cpu@,$host_cpu,;t t
8195 s,@host_vendor@,$host_vendor,;t t
8196 s,@host_os@,$host_os,;t t
8197 s,@target@,$target,;t t
8198 s,@target_cpu@,$target_cpu,;t t
8199 s,@target_vendor@,$target_vendor,;t t
8200 s,@target_os@,$target_os,;t t
8202 s,@CFLAGS@,$CFLAGS,;t t
8203 s,@LDFLAGS@,$LDFLAGS,;t t
8204 s,@CPPFLAGS@,$CPPFLAGS,;t t
8205 s,@ac_ct_CC@,$ac_ct_CC,;t t
8206 s,@EXEEXT@,$EXEEXT,;t t
8207 s,@OBJEXT@,$OBJEXT,;t t
8208 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8209 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8210 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8211 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8212 s,@HDEFINES@,$HDEFINES,;t t
8214 s,@RANLIB@,$RANLIB,;t t
8215 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8216 s,@SET_MAKE@,$SET_MAKE,;t t
8218 s,@EGREP@,$EGREP,;t t
8219 s,@ALLOCA@,$ALLOCA,;t t
8220 s,@USE_NLS@,$USE_NLS,;t t
8221 s,@MSGFMT@,$MSGFMT,;t t
8222 s,@GMSGFMT@,$GMSGFMT,;t t
8223 s,@XGETTEXT@,$XGETTEXT,;t t
8224 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8225 s,@CATALOGS@,$CATALOGS,;t t
8226 s,@CATOBJEXT@,$CATOBJEXT,;t t
8227 s,@DATADIRNAME@,$DATADIRNAME,;t t
8228 s,@GMOFILES@,$GMOFILES,;t t
8229 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8230 s,@INTLDEPS@,$INTLDEPS,;t t
8231 s,@INTLLIBS@,$INTLLIBS,;t t
8232 s,@INTLOBJS@,$INTLOBJS,;t t
8233 s,@POFILES@,$POFILES,;t t
8234 s,@POSUB@,$POSUB,;t t
8235 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8236 s,@GT_NO@,$GT_NO,;t t
8237 s,@GT_YES@,$GT_YES,;t t
8238 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8240 s,@MAINT@,$MAINT,;t t
8241 s,@sim_bswap@,$sim_bswap,;t t
8242 s,@sim_cflags@,$sim_cflags,;t t
8243 s,@sim_debug@,$sim_debug,;t t
8244 s,@sim_stdio@,$sim_stdio,;t t
8245 s,@sim_trace@,$sim_trace,;t t
8246 s,@sim_profile@,$sim_profile,;t t
8247 s,@CGEN_MAINT@,$CGEN_MAINT,;t t
8248 s,@cgendir@,$cgendir,;t t
8250 s,@cgen_breaks@,$cgen_breaks,;t t
8251 s,@LIBOBJS@,$LIBOBJS,;t t
8252 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8257 cat >>$CONFIG_STATUS <<\_ACEOF
8258 # Split the substitutions into bite-sized pieces for seds with
8259 # small command number limits, like on Digital OSF/1 and HP-UX.
8261 ac_sed_frag
=1 # Number of current file.
8262 ac_beg
=1 # First line for current file.
8263 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8266 while $ac_more_lines; do
8267 if test $ac_beg -gt 1; then
8268 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8270 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8272 if test ! -s $tmp/subs.frag
; then
8275 # The purpose of the label and of the branching condition is to
8276 # speed up the sed processing (if there are no `@' at all, there
8277 # is no need to browse any of the substitutions).
8278 # These are the two extra sed commands mentioned above.
8280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8281 if test -z "$ac_sed_cmds"; then
8282 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8284 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8286 ac_sed_frag
=`expr $ac_sed_frag + 1`
8288 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8291 if test -z "$ac_sed_cmds"; then
8294 fi # test -n "$CONFIG_FILES"
8297 cat >>$CONFIG_STATUS <<\_ACEOF
8298 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8301 - |
*:- |
*:-:* ) # input from stdin
8303 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8304 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8305 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8306 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8307 * ) ac_file_in
=$ac_file.
in ;;
8310 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8311 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8312 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8313 X"$ac_file" : 'X\(//\)[^/]' \| \
8314 X"$ac_file" : 'X\(//\)$' \| \
8315 X"$ac_file" : 'X\(/\)' \| \
8316 . : '\(.\)' 2>/dev/null ||
8318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8320 /^X\(\/\/\)$/{ s//\1/; q; }
8321 /^X\(\/\).*/{ s//\1/; q; }
8323 { if $as_mkdir_p; then
8328 while test ! -d "$as_dir"; do
8329 as_dirs
="$as_dir $as_dirs"
8330 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8332 X"$as_dir" : 'X\(//\)[^/]' \| \
8333 X"$as_dir" : 'X\(//\)$' \| \
8334 X"$as_dir" : 'X\(/\)' \| \
8335 . : '\(.\)' 2>/dev/null ||
8337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8339 /^X\(\/\/\)$/{ s//\1/; q; }
8340 /^X\(\/\).*/{ s//\1/; q; }
8343 test ! -n "$as_dirs" || mkdir
$as_dirs
8344 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8345 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8346 { (exit 1); exit 1; }; }; }
8350 if test "$ac_dir" != .
; then
8351 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8352 # A "../" for each directory in $ac_dir_suffix.
8353 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8355 ac_dir_suffix
= ac_top_builddir
=
8359 .
) # No --srcdir option. We are building in place.
8361 if test -z "$ac_top_builddir"; then
8364 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8366 [\\/]* | ?
:[\\/]* ) # Absolute path.
8367 ac_srcdir
=$srcdir$ac_dir_suffix;
8368 ac_top_srcdir
=$srcdir ;;
8370 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8371 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8374 # Do not use `cd foo && pwd` to compute absolute paths, because
8375 # the directories may not exist.
8377 .
) ac_abs_builddir
="$ac_dir";;
8380 .
) ac_abs_builddir
=`pwd`;;
8381 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8382 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8385 case $ac_abs_builddir in
8386 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8388 case ${ac_top_builddir}.
in
8389 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8390 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8391 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8394 case $ac_abs_builddir in
8395 .
) ac_abs_srcdir
=$ac_srcdir;;
8398 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8399 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8400 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8403 case $ac_abs_builddir in
8404 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8406 case $ac_top_srcdir in
8407 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8408 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8409 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8415 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8416 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8419 if test x
"$ac_file" != x-
; then
8420 { echo "$as_me:$LINENO: creating $ac_file" >&5
8421 echo "$as_me: creating $ac_file" >&6;}
8424 # Let's still pretend it is `configure' which instantiates (i.e., don't
8425 # use $as_me), people would be surprised to read:
8426 # /* config.h. Generated by config.status. */
8427 if test x
"$ac_file" = x-
; then
8430 configure_input
="$ac_file. "
8432 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8433 sed 's,.*/,,'` by configure."
8435 # First look for the input files in the build tree, otherwise in the
8437 ac_file_inputs
=`IFS=:
8438 for f in $ac_file_in; do
8440 -) echo $tmp/stdin ;;
8442 # Absolute (can't be DOS-style, as IFS=:)
8443 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8444 echo "$as_me: error: cannot find input file: $f" >&2;}
8445 { (exit 1); exit 1; }; }
8448 if test -f "$f"; then
8451 elif test -f "$srcdir/$f"; then
8456 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8457 echo "$as_me: error: cannot find input file: $f" >&2;}
8458 { (exit 1); exit 1; }; }
8461 done` ||
{ (exit 1); exit 1; }
8463 cat >>$CONFIG_STATUS <<_ACEOF
8467 cat >>$CONFIG_STATUS <<\_ACEOF
8469 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8470 s
,@configure_input@
,$configure_input,;t t
8471 s
,@srcdir@
,$ac_srcdir,;t t
8472 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8473 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8474 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8475 s
,@builddir@
,$ac_builddir,;t t
8476 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8477 s
,@top_builddir@
,$ac_top_builddir,;t t
8478 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8479 s
,@INSTALL@
,$ac_INSTALL,;t t
8480 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8482 if test x"$ac_file" != x-; then
8483 mv $tmp/out $ac_file
8491 cat >>$CONFIG_STATUS <<\_ACEOF
8494 # CONFIG_HEADER section.
8497 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8498 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8500 # ac_d sets the value in "#define NAME VALUE" lines.
8501 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8502 ac_dB
='[ ].*$,\1#\2'
8505 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8506 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8507 ac_uB
='$,\1#\2define\3'
8511 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8512 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8514 - |
*:- |
*:-:* ) # input from stdin
8516 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8517 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8518 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8519 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8520 * ) ac_file_in
=$ac_file.
in ;;
8523 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8524 echo "$as_me: creating $ac_file" >&6;}
8526 # First look for the input files in the build tree, otherwise in the
8528 ac_file_inputs
=`IFS=:
8529 for f in $ac_file_in; do
8531 -) echo $tmp/stdin ;;
8533 # Absolute (can't be DOS-style, as IFS=:)
8534 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8535 echo "$as_me: error: cannot find input file: $f" >&2;}
8536 { (exit 1); exit 1; }; }
8537 # Do quote $f, to prevent DOS paths from being IFS'd.
8540 if test -f "$f"; then
8543 elif test -f "$srcdir/$f"; then
8548 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8549 echo "$as_me: error: cannot find input file: $f" >&2;}
8550 { (exit 1); exit 1; }; }
8553 done` ||
{ (exit 1); exit 1; }
8554 # Remove the trailing spaces.
8555 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8559 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8560 # `conftest.undefs', that substitutes the proper values into
8561 # config.h.in to produce config.h. The first handles `#define'
8562 # templates, and the second `#undef' templates.
8563 # And first: Protect against being on the right side of a sed subst in
8564 # config.status. Protect against being in an unquoted here document
8566 rm -f conftest.defines conftest.undefs
8567 # Using a here document instead of a string reduces the quoting nightmare.
8568 # Putting comments in sed scripts is not portable.
8570 # `end' is used to avoid that the second main sed command (meant for
8571 # 0-ary CPP macros) applies to n-ary macro definitions.
8572 # See the Autoconf documentation for `clear'.
8573 cat >confdef2sed.
sed <<\_ACEOF
8578 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8580 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8583 # If some macros were called several times there might be several times
8584 # the same #defines, which is useless. Nevertheless, we may not want to
8585 # sort them, since we want the *last* AC-DEFINE to be honored.
8586 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8587 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8588 rm -f confdef2sed.sed
8590 # This sed command replaces #undef with comments. This is necessary, for
8591 # example, in the case of _POSIX_SOURCE, which is predefined and required
8592 # on some systems where configure will not decide to define it.
8593 cat >>conftest.undefs <<\_ACEOF
8594 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8597 # Break up conftest.defines because some shells have a limit on the size
8598 # of here documents, and old seds have small limits too (100 cmds).
8599 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8600 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8601 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8602 echo ' :' >>$CONFIG_STATUS
8604 while grep . conftest.defines >/dev/null
8606 # Write a limited-size here document to $tmp/defines.sed.
8607 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8608 # Speed up: don't consider the non `#define' lines.
8609 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8610 # Work around the forget-to-reset-the-flag bug.
8611 echo 't clr' >>$CONFIG_STATUS
8612 echo ': clr' >>$CONFIG_STATUS
8613 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8615 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8619 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8620 rm -f conftest.defines
8621 mv conftest.
tail conftest.defines
8623 rm -f conftest.defines
8624 echo ' fi # grep' >>$CONFIG_STATUS
8625 echo >>$CONFIG_STATUS
8627 # Break up conftest.undefs because some shells have a limit on the size
8628 # of here documents, and old seds have small limits too (100 cmds).
8629 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8631 while grep . conftest.undefs
>/dev
/null
8633 # Write a limited-size here document to $tmp/undefs.sed.
8634 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8635 # Speed up: don't consider the non
`#undef'
8636 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8637 # Work around the forget-to-reset-the-flag bug.
8638 echo 't clr' >>$CONFIG_STATUS
8639 echo ': clr' >>$CONFIG_STATUS
8640 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8642 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8646 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8647 rm -f conftest.undefs
8648 mv conftest.tail conftest.undefs
8650 rm -f conftest.undefs
8652 cat >>$CONFIG_STATUS <<\_ACEOF
8653 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8654 # use $as_me), people would be surprised to read:
8655 # /* config.h. Generated by config.status. */
8656 if test x
"$ac_file" = x-
; then
8657 echo "/* Generated by configure. */" >$tmp/config.h
8659 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8661 cat $tmp/in >>$tmp/config.h
8663 if test x
"$ac_file" != x-
; then
8664 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8665 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8666 echo "$as_me: $ac_file is unchanged" >&6;}
8668 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8670 X"$ac_file" : 'X\(//\)[^/]' \| \
8671 X"$ac_file" : 'X\(//\)$' \| \
8672 X"$ac_file" : 'X\(/\)' \| \
8673 . : '\(.\)' 2>/dev/null ||
8675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8677 /^X\(\/\/\)$/{ s//\1/; q; }
8678 /^X\(\/\).*/{ s//\1/; q; }
8680 { if $as_mkdir_p; then
8685 while test ! -d "$as_dir"; do
8686 as_dirs
="$as_dir $as_dirs"
8687 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8689 X"$as_dir" : 'X\(//\)[^/]' \| \
8690 X"$as_dir" : 'X\(//\)$' \| \
8691 X"$as_dir" : 'X\(/\)' \| \
8692 . : '\(.\)' 2>/dev/null ||
8694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8696 /^X\(\/\/\)$/{ s//\1/; q; }
8697 /^X\(\/\).*/{ s//\1/; q; }
8700 test ! -n "$as_dirs" || mkdir
$as_dirs
8701 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8702 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8703 { (exit 1); exit 1; }; }; }
8706 mv $tmp/config.h
$ac_file
8714 cat >>$CONFIG_STATUS <<\_ACEOF
8717 # CONFIG_LINKS section.
8720 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
8721 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8722 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8724 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8725 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8727 if test ! -r $srcdir/$ac_source; then
8728 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8729 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8730 { (exit 1); exit 1; }; }
8734 # Make relative symlinks.
8735 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8736 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8737 X"$ac_dest" : 'X\(//\)[^/]' \| \
8738 X"$ac_dest" : 'X\(//\)$' \| \
8739 X"$ac_dest" : 'X\(/\)' \| \
8740 . : '\(.\)' 2>/dev/null ||
8742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8744 /^X\(\/\/\)$/{ s//\1/; q; }
8745 /^X\(\/\).*/{ s//\1/; q; }
8747 { if $as_mkdir_p; then
8748 mkdir
-p "$ac_dest_dir"
8750 as_dir
="$ac_dest_dir"
8752 while test ! -d "$as_dir"; do
8753 as_dirs
="$as_dir $as_dirs"
8754 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8756 X"$as_dir" : 'X\(//\)[^/]' \| \
8757 X"$as_dir" : 'X\(//\)$' \| \
8758 X"$as_dir" : 'X\(/\)' \| \
8759 . : '\(.\)' 2>/dev/null ||
8761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8763 /^X\(\/\/\)$/{ s//\1/; q; }
8764 /^X\(\/\).*/{ s//\1/; q; }
8767 test ! -n "$as_dirs" || mkdir
$as_dirs
8768 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8769 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8770 { (exit 1); exit 1; }; }; }
8774 if test "$ac_dest_dir" != .
; then
8775 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8776 # A "../" for each directory in $ac_dir_suffix.
8777 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8779 ac_dir_suffix
= ac_top_builddir
=
8783 .
) # No --srcdir option. We are building in place.
8785 if test -z "$ac_top_builddir"; then
8788 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8790 [\\/]* | ?
:[\\/]* ) # Absolute path.
8791 ac_srcdir
=$srcdir$ac_dir_suffix;
8792 ac_top_srcdir
=$srcdir ;;
8794 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8795 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8798 # Do not use `cd foo && pwd` to compute absolute paths, because
8799 # the directories may not exist.
8801 .
) ac_abs_builddir
="$ac_dest_dir";;
8803 case "$ac_dest_dir" in
8804 .
) ac_abs_builddir
=`pwd`;;
8805 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
8806 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
8809 case $ac_abs_builddir in
8810 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8812 case ${ac_top_builddir}.
in
8813 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8814 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8815 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8818 case $ac_abs_builddir in
8819 .
) ac_abs_srcdir
=$ac_srcdir;;
8822 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8823 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8824 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8827 case $ac_abs_builddir in
8828 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8830 case $ac_top_srcdir in
8831 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8832 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8833 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8839 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
8840 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
8843 # Try a symlink, then a hard link, then a copy.
8844 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
8845 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
8846 cp -p $srcdir/$ac_source $ac_dest ||
8847 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8848 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8849 { (exit 1); exit 1; }; }
8852 cat >>$CONFIG_STATUS <<\_ACEOF
8855 # CONFIG_COMMANDS section.
8857 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
8858 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8859 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8860 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8861 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8862 X"$ac_dest" : 'X\(//\)[^/]' \| \
8863 X"$ac_dest" : 'X\(//\)$' \| \
8864 X"$ac_dest" : 'X\(/\)' \| \
8865 . : '\(.\)' 2>/dev/null ||
8867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8869 /^X\(\/\/\)$/{ s//\1/; q; }
8870 /^X\(\/\).*/{ s//\1/; q; }
8872 { if $as_mkdir_p; then
8877 while test ! -d "$as_dir"; do
8878 as_dirs
="$as_dir $as_dirs"
8879 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8880 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8881 X"$as_dir" : 'X\(//\)[^/]' \| \
8882 X"$as_dir" : 'X\(//\)$' \| \
8883 X"$as_dir" : 'X\(/\)' \| \
8884 . : '\(.\)' 2>/dev/null ||
8886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8887 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8888 /^X\(\/\/\)$/{ s//\1/; q; }
8889 /^X\(\/\).*/{ s//\1/; q; }
8892 test ! -n "$as_dirs" || mkdir
$as_dirs
8893 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8894 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8895 { (exit 1); exit 1; }; }; }
8899 if test "$ac_dir" != .
; then
8900 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8901 # A "../" for each directory in $ac_dir_suffix.
8902 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8904 ac_dir_suffix
= ac_top_builddir
=
8908 .
) # No --srcdir option. We are building in place.
8910 if test -z "$ac_top_builddir"; then
8913 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8915 [\\/]* | ?
:[\\/]* ) # Absolute path.
8916 ac_srcdir
=$srcdir$ac_dir_suffix;
8917 ac_top_srcdir
=$srcdir ;;
8919 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8920 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8923 # Do not use `cd foo && pwd` to compute absolute paths, because
8924 # the directories may not exist.
8926 .
) ac_abs_builddir
="$ac_dir";;
8929 .
) ac_abs_builddir
=`pwd`;;
8930 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8931 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8934 case $ac_abs_builddir in
8935 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8937 case ${ac_top_builddir}.
in
8938 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8939 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8940 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8943 case $ac_abs_builddir in
8944 .
) ac_abs_srcdir
=$ac_srcdir;;
8947 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8948 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8949 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8952 case $ac_abs_builddir in
8953 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8955 case $ac_top_srcdir in
8956 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8957 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8958 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8963 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8964 echo "$as_me: executing $ac_dest commands" >&6;}
8966 Makefile
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
8967 rm -f Makesim1.tmp Makesim2.tmp Makefile
8968 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
8969 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
8970 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
8971 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
8972 <Makefile.sim
>Makefile
8973 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
8975 stamp-h
) echo > stamp-h
;;
8980 cat >>$CONFIG_STATUS <<\_ACEOF
8982 { (exit 0); exit 0; }
8984 chmod +x
$CONFIG_STATUS
8985 ac_clean_files
=$ac_clean_files_save
8988 # configure is writing to config.log, and then calls config.status.
8989 # config.status does its own redirection, appending to config.log.
8990 # Unfortunately, on DOS this fails, as config.log is still kept open
8991 # by configure, so config.status won't be able to write to it; its
8992 # output is simply discarded. So we exec the FD to /dev/null,
8993 # effectively closing config.log, so it can be properly (re)opened and
8994 # appended to by config.status. When coming back to configure, we
8995 # need to make the FD available again.
8996 if test "$no_create" != yes; then
8998 ac_config_status_args
=
8999 test "$silent" = yes &&
9000 ac_config_status_args
="$ac_config_status_args --quiet"
9002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9005 # would make configure fail if this is the last instruction.
9006 $ac_cs_success ||
{ (exit 1); exit 1; }