2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="Makefile.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI CGEN_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 --enable-maintainer-mode Enable developer functionality.
854 --enable-sim-bswap Use Host specific BSWAP instruction.
855 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
856 --enable-sim-debug=opts Enable debugging flags
857 --enable-sim-stdio Specify whether to use stdio for console input/output.
858 --enable-sim-trace=opts Enable tracing flags
859 --enable-sim-profile=opts Enable profiling flags
860 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
861 --enable-sim-hostendian=end Specify host byte endian orientation.
862 --enable-sim-scache=size Specify simulator execution cache size.
863 --enable-build-warnings Enable build-time compiler warnings if gcc is used
864 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
865 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
866 --enable-sim-default-model=model Specify default model to simulate.
867 --enable-sim-environment=environment Specify mixed, user, virtual or operating environment.
868 --enable-sim-inline=inlines Specify which functions should be inlined.
869 --enable-cgen-maint=DIR build cgen generated files
872 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
875 --with-bugurl=URL Direct users to URL to report a bug
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
899 if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 ac_dir_suffix= ac_top_builddir=
908 .) # No --srcdir option. We are building in place.
910 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 # Do not use `cd foo && pwd` to compute absolute paths, because
924 # the directories may not exist.
926 .) ac_abs_builddir="$ac_dir";;
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 case $ac_abs_builddir in
935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 case $ac_abs_builddir in
944 .) ac_abs_srcdir=$ac_srcdir;;
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 case $ac_abs_builddir in
953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981 test -n "$ac_init_help" && exit 0
982 if $ac_init_version; then
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by $as_me, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_must_keep_next=false
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 -* ) ac_must_keep_next=true ;;
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1114 # The following way of writing the cache mishandles newlines in values,
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -n "$ac_subst_files"; then
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1159 if test -s confdefs.h; then
1166 sed "/^$/d" confdefs.h | sort
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1249 # Check that the precious variables saved in the cache have kept the same
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1324 ac_config_headers="$ac_config_headers config.h:config.in"
1327 # This file contains common code used by all simulators.
1329 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1330 # directory. It is intended to be invoked before any target specific stuff.
1331 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1332 # It is intended to be invoked last.
1334 # The simulator's configure.in should look like:
1336 # dnl Process this file with autoconf to produce a configure script.
1337 # sinclude(../common/aclocal.m4)
1339 # AC_INIT(Makefile.in)
1343 # ... target specific stuff ...
1394 sim_inline="-DDEFAULT_INLINE=0"
1431 # intl sister-directory configuration rules.
1434 # The idea behind this macro is that there's no need to repeat all the
1435 # autoconf probes done by the intl directory - it's already done them
1436 # for us. In fact, there's no need even to look at the cache for the
1437 # answers. All we need to do is nab a few pieces of information.
1438 # The intl directory is set up to make this easy, by generating a
1439 # small file which can be sourced as a shell script; then we produce
1440 # the necessary substitutions and definitions for this directory.
1444 # Autoconf M4 include file defining utility macros for complex Canadian
1456 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
1458 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
1461 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1462 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
1466 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
1467 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
1471 # Backported from Autoconf 2.5x; can go away when and if
1472 # we switch. Put the OS path separator in $PATH_SEPARATOR.
1477 # ACX_HAVE_GCC_FOR_TARGET
1478 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
1481 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
1482 # Searching for installed target binutils. We need to take extra care,
1483 # else we may find the wrong assembler, linker, etc., and lose.
1485 # First try --with-build-time-tools, if specified.
1487 # For build != host, we ask the installed GCC for the name of the tool it
1488 # uses, and accept it if it is an absolute path. This is because the
1489 # only good choice for a compiler is the same GCC version that is being
1490 # installed (or we couldn't make target libraries), and we assume that
1491 # on the host system we'll have not only the same GCC version, but also
1492 # the same binutils version.
1494 # For build == host, search the same directories that the installed
1495 # compiler will search. We used to do this for the assembler, linker,
1496 # and nm only; for simplicity of configuration, however, we extend this
1497 # criterion to tools (such as ar and ranlib) that are never invoked by
1498 # the compiler, to avoid mismatches.
1500 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
1501 # if build == target. This makes the most sense only when bootstrapping,
1502 # but we also do so when build != host. In this case, we hope that the
1503 # build and host systems will have similar contents of MD_EXEC_PREFIX.
1505 # If we do not find a suitable binary, then try the user's path.
1509 # AC_PROG_CPP_WERROR
1510 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
1511 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
1512 # For now, using this also overrides header checks to use only the
1513 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
1514 # bit harder from here).
1515 # Eventually autoconf will default to checking headers with the compiler
1516 # instead, and we'll have to do this differently.
1518 # AC_PROG_CPP_WERROR
1521 # We require the gnatbind program, and a compiler driver that
1522 # understands Ada. We use the user's CC setting, already found,
1523 # and possibly add $1 to the command-line parameters.
1525 # Sets the shell variable have_gnat to yes or no as appropriate, and
1526 # substitutes GNATBIND and GNATMAKE.
1552 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1553 # it by inlining the macro's contents.
1554 # This file contains common code used by all simulators.
1556 # common.m4 invokes AC macros used by all simulators and by the common
1557 # directory. It is intended to be included before any target specific
1558 # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1559 # the Makefile. It is intended to be invoked last.
1561 # The simulator's configure.in should look like:
1563 # dnl Process this file with autoconf to produce a configure script.
1565 # AC_INIT(Makefile.in)
1566 # AC_CONFIG_HEADER(config.h:config.in)
1568 # sinclude(../common/aclocal.m4)
1569 # sinclude(../common/common.m4)
1571 # ... target specific stuff ...
1574 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1575 if test -f $ac_dir/install-sh; then
1577 ac_install_sh="$ac_aux_dir/install-sh -c"
1579 elif test -f $ac_dir/install.sh; then
1581 ac_install_sh="$ac_aux_dir/install.sh -c"
1583 elif test -f $ac_dir/shtool; then
1585 ac_install_sh="$ac_aux_dir/shtool install -c"
1589 if test -z "$ac_aux_dir"; then
1590 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1591 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1592 { (exit 1); exit 1; }; }
1594 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1595 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1596 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1598 # Make sure we can run config.sub.
1599 $ac_config_sub sun4 >/dev/null 2>&1 ||
1600 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1601 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1602 { (exit 1); exit 1; }; }
1604 echo "$as_me:$LINENO: checking build system type" >&5
1605 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1606 if test "${ac_cv_build+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 ac_cv_build_alias=$build_alias
1610 test -z "$ac_cv_build_alias" &&
1611 ac_cv_build_alias=`$ac_config_guess`
1612 test -z "$ac_cv_build_alias" &&
1613 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1614 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1615 { (exit 1); exit 1; }; }
1616 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1623 echo "${ECHO_T}$ac_cv_build" >&6
1625 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630 echo "$as_me:$LINENO: checking host system type" >&5
1631 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1632 if test "${ac_cv_host+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 ac_cv_host_alias=$host_alias
1636 test -z "$ac_cv_host_alias" &&
1637 ac_cv_host_alias=$ac_cv_build_alias
1638 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1640 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1644 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1645 echo "${ECHO_T}$ac_cv_host" >&6
1647 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652 echo "$as_me:$LINENO: checking target system type" >&5
1653 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1654 if test "${ac_cv_target+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 ac_cv_target_alias=$target_alias
1658 test "x$ac_cv_target_alias" = "x" &&
1659 ac_cv_target_alias=$ac_cv_host_alias
1660 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1661 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1662 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1663 { (exit 1); exit 1; }; }
1666 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1667 echo "${ECHO_T}$ac_cv_target" >&6
1668 target=$ac_cv_target
1669 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1670 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1671 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1674 # The aliases save the names the user supplied, while $host etc.
1675 # will get canonicalized.
1676 test -n "$target_alias" &&
1677 test "$program_prefix$program_suffix$program_transform_name" = \
1679 program_prefix=${target_alias}-
1680 test "$program_prefix" != NONE &&
1681 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1682 # Use a double $ so make ignores it.
1683 test "$program_suffix" != NONE &&
1684 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1685 # Double any \ or $. echo might interpret backslashes.
1686 # By default was `s,x,x', remove it if useless.
1687 cat <<\_ACEOF >conftest.sed
1688 s/[\\$]/&&/g;s/;s,x,x,$//
1690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1694 ac_cpp='$CPP $CPPFLAGS'
1695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1698 if test -n "$ac_tool_prefix"; then
1699 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1700 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 if test -n "$CC"; then
1707 ac_cv_prog_CC="$CC" # Let the user override the test.
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 if test -n "$CC"; then
1727 echo "$as_me:$LINENO: result: $CC" >&5
1728 echo "${ECHO_T}$CC" >&6
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1735 if test -z "$ac_cv_prog_CC"; then
1737 # Extract the first word of "gcc", so it can be a program name with args.
1738 set dummy gcc; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$ac_ct_CC"; then
1745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_ac_ct_CC="gcc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1777 if test -z "$CC"; then
1778 if test -n "$ac_tool_prefix"; then
1779 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1780 set dummy ${ac_tool_prefix}cc; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_CC+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 if test -n "$CC"; then
1787 ac_cv_prog_CC="$CC" # Let the user override the test.
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 test -z "$as_dir" && as_dir=.
1794 for ac_exec_ext in '' $ac_executable_extensions; do
1795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796 ac_cv_prog_CC="${ac_tool_prefix}cc"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 if test -n "$CC"; then
1807 echo "$as_me:$LINENO: result: $CC" >&5
1808 echo "${ECHO_T}$CC" >&6
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1815 if test -z "$ac_cv_prog_CC"; then
1817 # Extract the first word of "cc", so it can be a program name with args.
1818 set dummy cc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 if test -n "$ac_ct_CC"; then
1825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_ac_ct_CC="cc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1844 if test -n "$ac_ct_CC"; then
1845 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1846 echo "${ECHO_T}$ac_ct_CC" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1858 if test -z "$CC"; then
1859 # Extract the first word of "cc", so it can be a program name with args.
1860 set dummy cc; ac_word=$2
1861 echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863 if test "${ac_cv_prog_CC+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 if test -n "$CC"; then
1867 ac_cv_prog_CC="$CC" # Let the user override the test.
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1878 ac_prog_rejected=yes
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 if test $ac_prog_rejected = yes; then
1889 # We found a bogon in the path, so make sure we never use it.
1890 set dummy $ac_cv_prog_CC
1892 if test $# != 0; then
1893 # We chose a different compiler from the bogus one.
1894 # However, it has the same basename, so the bogon will be chosen
1895 # first if we set CC to just the basename; use the full file name.
1897 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1903 if test -n "$CC"; then
1904 echo "$as_me:$LINENO: result: $CC" >&5
1905 echo "${ECHO_T}$CC" >&6
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1912 if test -z "$CC"; then
1913 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$CC"; then
1924 ac_cv_prog_CC="$CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 if test -n "$CC"; then
1944 echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1951 test -n "$CC" && break
1954 if test -z "$CC"; then
1958 # Extract the first word of "$ac_prog", so it can be a program name with args.
1959 set dummy $ac_prog; ac_word=$2
1960 echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 if test -n "$ac_ct_CC"; then
1966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 test -z "$as_dir" && as_dir=.
1973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975 ac_cv_prog_ac_ct_CC="$ac_prog"
1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1985 if test -n "$ac_ct_CC"; then
1986 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1987 echo "${ECHO_T}$ac_ct_CC" >&6
1989 echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6
1993 test -n "$ac_ct_CC" && break
2002 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2003 See \`config.log' for more details." >&5
2004 echo "$as_me: error: no acceptable C compiler found in \$PATH
2005 See \`config.log' for more details." >&2;}
2006 { (exit 1); exit 1; }; }
2008 # Provide some information about the compiler.
2009 echo "$as_me:$LINENO:" \
2010 "checking for C compiler version" >&5
2011 ac_compiler=`set X $ac_compile; echo $2`
2012 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2013 (eval $ac_compiler --version </dev/null >&5) 2>&5
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }
2017 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2018 (eval $ac_compiler -v </dev/null >&5) 2>&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }
2022 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2023 (eval $ac_compiler -V </dev/null >&5) 2>&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }
2028 cat >conftest.$ac_ext <<_ACEOF
2031 cat confdefs.h >>conftest.$ac_ext
2032 cat >>conftest.$ac_ext <<_ACEOF
2033 /* end confdefs.h. */
2043 ac_clean_files_save=$ac_clean_files
2044 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2045 # Try to create an executable without -o first, disregard a.out.
2046 # It will help us diagnose broken compilers, and finding out an intuition
2048 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2049 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2050 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2051 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2052 (eval $ac_link_default) 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; then
2056 # Find the output, starting from the most likely. This scheme is
2057 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2060 # Be careful to initialize this variable, since it used to be cached.
2061 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2063 # b.out is created by i960 compilers.
2064 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2066 test -f "$ac_file" || continue
2068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2071 # This is the source file.
2074 # We found the default executable, but exeext='' is most
2078 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2079 # FIXME: I believe we export ac_cv_exeext for Libtool,
2080 # but it would be cool to find out if it's true. Does anybody
2081 # maintain Libtool? --akim.
2089 echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2092 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2093 See \`config.log' for more details." >&5
2094 echo "$as_me: error: C compiler cannot create executables
2095 See \`config.log' for more details." >&2;}
2096 { (exit 77); exit 77; }; }
2099 ac_exeext=$ac_cv_exeext
2100 echo "$as_me:$LINENO: result: $ac_file" >&5
2101 echo "${ECHO_T}$ac_file" >&6
2103 # Check the compiler produces executables we can run. If not, either
2104 # the compiler is broken, or we cross compile.
2105 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2106 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2107 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2108 # If not cross compiling, check that we can run a simple program.
2109 if test "$cross_compiling" != yes; then
2110 if { ac_try='./$ac_file'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; }; then
2118 if test "$cross_compiling" = maybe; then
2121 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2122 If you meant to cross compile, use \`--host'.
2123 See \`config.log' for more details." >&5
2124 echo "$as_me: error: cannot run C compiled programs.
2125 If you meant to cross compile, use \`--host'.
2126 See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2131 echo "$as_me:$LINENO: result: yes" >&5
2132 echo "${ECHO_T}yes" >&6
2134 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2135 ac_clean_files=$ac_clean_files_save
2136 # Check the compiler produces executables we can run. If not, either
2137 # the compiler is broken, or we cross compile.
2138 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2139 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2140 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2141 echo "${ECHO_T}$cross_compiling" >&6
2143 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2144 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2146 (eval $ac_link) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2151 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2152 # work properly (i.e., refer to `conftest.exe'), while it won't with
2154 for ac_file in conftest.exe conftest conftest.*; do
2155 test -f "$ac_file" || continue
2157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2165 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2168 See \`config.log' for more details." >&2;}
2169 { (exit 1); exit 1; }; }
2172 rm -f conftest$ac_cv_exeext
2173 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2174 echo "${ECHO_T}$ac_cv_exeext" >&6
2176 rm -f conftest.$ac_ext
2177 EXEEXT=$ac_cv_exeext
2179 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2180 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2181 if test "${ac_cv_objext+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 cat >conftest.$ac_ext <<_ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h. */
2199 rm -f conftest.o conftest.obj
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201 (eval $ac_compile) 2>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; then
2205 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2208 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2216 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2219 See \`config.log' for more details." >&2;}
2220 { (exit 1); exit 1; }; }
2223 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2225 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2226 echo "${ECHO_T}$ac_cv_objext" >&6
2227 OBJEXT=$ac_cv_objext
2229 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2230 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2231 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 cat >conftest.$ac_ext <<_ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>conftest.er1
2256 grep -v '^ *+' conftest.er1 >conftest.err
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
2261 { ac_try='test -z "$ac_c_werror_flag"
2262 || test ! -s conftest.err'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; } &&
2268 { ac_try='test -s conftest.$ac_objext'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2285 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2286 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2287 GCC=`test $ac_compiler_gnu = yes && echo yes`
2288 ac_test_CFLAGS=${CFLAGS+set}
2289 ac_save_CFLAGS=$CFLAGS
2291 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2292 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2293 if test "${ac_cv_prog_cc_g+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 cat >conftest.$ac_ext <<_ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2315 grep -v '^ *+' conftest.er1 >conftest.err
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2343 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2344 if test "$ac_test_CFLAGS" = set; then
2345 CFLAGS=$ac_save_CFLAGS
2346 elif test $ac_cv_prog_cc_g = yes; then
2347 if test "$GCC" = yes; then
2353 if test "$GCC" = yes; then
2359 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2360 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2361 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 ac_cv_prog_cc_stdc=no
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2374 #include <sys/types.h>
2375 #include <sys/stat.h>
2376 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2377 struct buf { int x; };
2378 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2379 static char *e (p, i)
2385 static char *f (char * (*g) (char **, int), char **p, ...)
2390 s = g (p, va_arg (v,int));
2395 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2396 function prototypes and stuff, but not '\xHH' hex character constants.
2397 These don't provoke an error unfortunately, instead are silently treated
2398 as 'x'. The following induces an error, until -std1 is added to get
2399 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2400 array size at least. It's necessary to write '\x00'==0 to get something
2401 that's true only with -std1. */
2402 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2404 int test (int i, double x);
2405 struct s1 {int (*f) (int a);};
2406 struct s2 {int (*f) (double a);};
2407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2418 # Don't try gcc -ansi; that turns off useful extensions and
2419 # breaks some systems' header files.
2420 # AIX -qlanglvl=ansi
2421 # Ultrix and OSF/1 -std1
2422 # HP-UX 10.20 and later -Ae
2423 # HP-UX older versions -Aa -D_HPUX_SOURCE
2424 # SVR4 -Xc -D__EXTENSIONS__
2425 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2427 CC="$ac_save_CC $ac_arg"
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>conftest.er1
2432 grep -v '^ *+' conftest.er1 >conftest.err
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -z "$ac_c_werror_flag"
2438 || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2450 ac_cv_prog_cc_stdc=$ac_arg
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f conftest.err conftest.$ac_objext
2459 rm -f conftest.$ac_ext conftest.$ac_objext
2464 case "x$ac_cv_prog_cc_stdc" in
2466 echo "$as_me:$LINENO: result: none needed" >&5
2467 echo "${ECHO_T}none needed" >&6 ;;
2469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2470 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2471 CC="$CC $ac_cv_prog_cc_stdc" ;;
2474 # Some people use a C++ compiler to compile C. Since we use `exit',
2475 # in C++ we need to declare it. In case someone uses the same compiler
2476 # for both compiling C and C++ we need to have the C++ compiler decide
2477 # the declaration of exit, since it's the most demanding environment.
2478 cat >conftest.$ac_ext <<_ACEOF
2483 rm -f conftest.$ac_objext
2484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485 (eval $ac_compile) 2>conftest.er1
2487 grep -v '^ *+' conftest.er1 >conftest.err
2489 cat conftest.err >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } &&
2492 { ac_try='test -z "$ac_c_werror_flag"
2493 || test ! -s conftest.err'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; } &&
2499 { ac_try='test -s conftest.$ac_objext'
2500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2505 for ac_declaration in \
2507 'extern "C" void std::exit (int) throw (); using std::exit;' \
2508 'extern "C" void std::exit (int); using std::exit;' \
2509 'extern "C" void exit (int) throw ();' \
2510 'extern "C" void exit (int);' \
2513 cat >conftest.$ac_ext <<_ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2529 rm -f conftest.$ac_objext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531 (eval $ac_compile) 2>conftest.er1
2533 grep -v '^ *+' conftest.er1 >conftest.err
2535 cat conftest.err >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } &&
2538 { ac_try='test -z "$ac_c_werror_flag"
2539 || test ! -s conftest.err'
2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; } &&
2545 { ac_try='test -s conftest.$ac_objext'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2578 grep -v '^ *+' conftest.er1 >conftest.err
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag"
2584 || test ! -s conftest.err'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; } &&
2590 { ac_try='test -s conftest.$ac_objext'
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2605 if test -n "$ac_declaration"; then
2606 echo '#ifdef __cplusplus' >>confdefs.h
2607 echo $ac_declaration >>confdefs.h
2608 echo '#endif' >>confdefs.h
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623 # Find a good install program. We prefer a C program (faster),
2624 # so one script is as good as another. But avoid the broken or
2625 # incompatible versions:
2626 # SysV /etc/install, /usr/sbin/install
2627 # SunOS /usr/etc/install
2628 # IRIX /sbin/install
2630 # AmigaOS /C/install, which installs bootblocks on floppy discs
2631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2634 # OS/2's system install, which has a completely different semantic
2635 # ./install, which can be erroneously created by make from ./install.sh.
2636 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2637 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2638 if test -z "$INSTALL"; then
2639 if test "${ac_cv_path_install+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 # Account for people who put trailing slashes in PATH elements.
2649 ./ | .// | /cC/* | \
2650 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2651 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2654 # OSF1 and SCO ODT 3.0 have their own names for install.
2655 # Don't use installbsd from OSF since it installs stuff as root
2657 for ac_prog in ginstall scoinst install; do
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2660 if test $ac_prog = install &&
2661 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662 # AIX install. It has an incompatible calling convention.
2664 elif test $ac_prog = install &&
2665 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666 # program-specific install script used by HP pwplus--don't use.
2669 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2681 if test "${ac_cv_path_install+set}" = set; then
2682 INSTALL=$ac_cv_path_install
2684 # As a last resort, use the slow shell script. We don't cache a
2685 # path for INSTALL within a source directory, because that will
2686 # break other packages using the cache if that directory is
2687 # removed, or if the path is relative.
2688 INSTALL=$ac_install_sh
2691 echo "$as_me:$LINENO: result: $INSTALL" >&5
2692 echo "${ECHO_T}$INSTALL" >&6
2694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2695 # It thinks the first close brace ends the variable substitution.
2696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2698 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2700 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2703 # Put a plausible default for CC_FOR_BUILD in Makefile.
2704 if test "x$cross_compiling" = "xno"; then
2705 CC_FOR_BUILD='$(CC)'
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_RANLIB+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 if test -n "$RANLIB"; then
2724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 RANLIB=$ac_cv_prog_RANLIB
2743 if test -n "$RANLIB"; then
2744 echo "$as_me:$LINENO: result: $RANLIB" >&5
2745 echo "${ECHO_T}$RANLIB" >&6
2747 echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2752 if test -z "$ac_cv_prog_RANLIB"; then
2753 ac_ct_RANLIB=$RANLIB
2754 # Extract the first word of "ranlib", so it can be a program name with args.
2755 set dummy ranlib; ac_word=$2
2756 echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2758 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 if test -n "$ac_ct_RANLIB"; then
2762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771 ac_cv_prog_ac_ct_RANLIB="ranlib"
2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2781 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2782 if test -n "$ac_ct_RANLIB"; then
2783 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2784 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2786 echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2790 RANLIB=$ac_ct_RANLIB
2792 RANLIB="$ac_cv_prog_RANLIB"
2797 # If we haven't got the data from the intl directory,
2798 # assume NLS is disabled.
2807 if test -f ../../intl/config.intl; then
2808 . ../../intl/config.intl
2810 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2811 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2812 if test x"$USE_NLS" != xyes; then
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2816 echo "$as_me:$LINENO: result: yes" >&5
2817 echo "${ECHO_T}yes" >&6
2819 cat >>confdefs.h <<\_ACEOF
2820 #define ENABLE_NLS 1
2824 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2825 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2826 # Look for .po and .gmo files in the source directory.
2829 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2830 # If there aren't any .gmo files the shell will give us the
2831 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2833 case "$cat" in *\**)
2836 # The quadruple backslash is collapsed to a double backslash
2837 # by the backticks, then collapsed again by the double quotes,
2838 # leaving us with one backslash in the sed expression (right
2839 # before the dot that mustn't act as a wildcard).
2840 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2841 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2842 # The user is allowed to set LINGUAS to a list of languages to
2843 # install catalogs for. If it's empty that means "all of them."
2844 if test "x$LINGUAS" = x; then
2845 CATALOGS="$CATALOGS $cat"
2846 XLINGUAS="$XLINGUAS $lang"
2848 case "$LINGUAS" in *$lang*)
2849 CATALOGS="$CATALOGS $cat"
2850 XLINGUAS="$XLINGUAS $lang"
2856 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2857 echo "${ECHO_T}$LINGUAS" >&6
2870 # Check for common headers.
2871 # FIXME: Seems to me this can cause problems for i386-windows hosts.
2872 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2880 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2881 # On Suns, sometimes $CPP names a directory.
2882 if test -n "$CPP" && test -d "$CPP"; then
2885 if test -z "$CPP"; then
2886 if test "${ac_cv_prog_CPP+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 # Double quotes because CPP needs to be expanded
2890 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2893 for ac_c_preproc_warn_flag in '' yes
2895 # Use a header file that comes with gcc, so configuring glibc
2896 # with a fresh cross-compiler works.
2897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2898 # <limits.h> exists even on freestanding compilers.
2899 # On the NeXT, cc -E runs the code through the compiler's parser,
2900 # not just through cpp. "Syntax error" is here to catch this case.
2901 cat >conftest.$ac_ext <<_ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2908 # include <limits.h>
2910 # include <assert.h>
2914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2917 grep -v '^ *+' conftest.er1 >conftest.err
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } >/dev/null; then
2922 if test -s conftest.err; then
2923 ac_cpp_err=$ac_c_preproc_warn_flag
2924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2931 if test -z "$ac_cpp_err"; then
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 # Broken: fails on valid input.
2940 rm -f conftest.err conftest.$ac_ext
2942 # OK, works on sane cases. Now check whether non-existent headers
2943 # can be detected and how.
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 #include <ac_nonexistent.h>
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev/null; then
2960 if test -s conftest.err; then
2961 ac_cpp_err=$ac_c_preproc_warn_flag
2962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2969 if test -z "$ac_cpp_err"; then
2970 # Broken: success on invalid input.
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 # Passes both tests.
2980 rm -f conftest.err conftest.$ac_ext
2983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2984 rm -f conftest.err conftest.$ac_ext
2985 if $ac_preproc_ok; then
2997 echo "$as_me:$LINENO: result: $CPP" >&5
2998 echo "${ECHO_T}$CPP" >&6
3000 for ac_c_preproc_warn_flag in '' yes
3002 # Use a header file that comes with gcc, so configuring glibc
3003 # with a fresh cross-compiler works.
3004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3005 # <limits.h> exists even on freestanding compilers.
3006 # On the NeXT, cc -E runs the code through the compiler's parser,
3007 # not just through cpp. "Syntax error" is here to catch this case.
3008 cat >conftest.$ac_ext <<_ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3015 # include <limits.h>
3017 # include <assert.h>
3021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3024 grep -v '^ *+' conftest.er1 >conftest.err
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } >/dev/null; then
3029 if test -s conftest.err; then
3030 ac_cpp_err=$ac_c_preproc_warn_flag
3031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3038 if test -z "$ac_cpp_err"; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 # Broken: fails on valid input.
3047 rm -f conftest.err conftest.$ac_ext
3049 # OK, works on sane cases. Now check whether non-existent headers
3050 # can be detected and how.
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3057 #include <ac_nonexistent.h>
3059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1 >conftest.err
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev/null; then
3067 if test -s conftest.err; then
3068 ac_cpp_err=$ac_c_preproc_warn_flag
3069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3076 if test -z "$ac_cpp_err"; then
3077 # Broken: success on invalid input.
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 # Passes both tests.
3087 rm -f conftest.err conftest.$ac_ext
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.$ac_ext
3092 if $ac_preproc_ok; then
3095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 echo "$as_me:$LINENO: checking for egrep" >&5
3110 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3111 if test "${ac_cv_prog_egrep+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3115 then ac_cv_prog_egrep='grep -E'
3116 else ac_cv_prog_egrep='egrep'
3119 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3120 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3121 EGREP=$ac_cv_prog_egrep
3124 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3125 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3126 if test "${ac_cv_header_stdc+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3148 rm -f conftest.$ac_objext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150 (eval $ac_compile) 2>conftest.er1
3152 grep -v '^ *+' conftest.er1 >conftest.err
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -z "$ac_c_werror_flag"
3158 || test ! -s conftest.err'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; } &&
3164 { ac_try='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_header_stdc=yes
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 ac_cv_header_stdc=no
3177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3179 if test $ac_cv_header_stdc = yes; then
3180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3181 cat >conftest.$ac_ext <<_ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3191 $EGREP "memchr" >/dev/null 2>&1; then
3194 ac_cv_header_stdc=no
3200 if test $ac_cv_header_stdc = yes; then
3201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3202 cat >conftest.$ac_ext <<_ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212 $EGREP "free" >/dev/null 2>&1; then
3215 ac_cv_header_stdc=no
3221 if test $ac_cv_header_stdc = yes; then
3222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3223 if test "$cross_compiling" = yes; then
3226 cat >conftest.$ac_ext <<_ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3233 #if ((' ' & 0x0FF) == 0x020)
3234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3237 # define ISLOWER(c) \
3238 (('a' <= (c) && (c) <= 'i') \
3239 || ('j' <= (c) && (c) <= 'r') \
3240 || ('s' <= (c) && (c) <= 'z'))
3241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3249 for (i = 0; i < 256; i++)
3250 if (XOR (islower (i), ISLOWER (i))
3251 || toupper (i) != TOUPPER (i))
3256 rm -f conftest$ac_exeext
3257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3258 (eval $ac_link) 2>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; }; then
3269 echo "$as_me: program exited with status $ac_status" >&5
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3274 ac_cv_header_stdc=no
3276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3281 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3282 if test $ac_cv_header_stdc = yes; then
3284 cat >>confdefs.h <<\_ACEOF
3285 #define STDC_HEADERS 1
3290 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3300 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3301 inttypes.h stdint.h unistd.h
3303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3304 echo "$as_me:$LINENO: checking for $ac_header" >&5
3305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 cat >conftest.$ac_ext <<_ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315 $ac_includes_default
3317 #include <$ac_header>
3319 rm -f conftest.$ac_objext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3321 (eval $ac_compile) 2>conftest.er1
3323 grep -v '^ *+' conftest.er1 >conftest.err
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -z "$ac_c_werror_flag"
3329 || test ! -s conftest.err'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3341 eval "$as_ac_Header=yes"
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 eval "$as_ac_Header=no"
3348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3353 cat >>confdefs.h <<_ACEOF
3354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3367 for ac_header in stdlib.h string.h strings.h unistd.h time.h
3369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3371 echo "$as_me:$LINENO: checking for $ac_header" >&5
3372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3379 # Is the header compilable?
3380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 $ac_includes_default
3389 #include <$ac_header>
3391 rm -f conftest.$ac_objext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>conftest.er1
3395 grep -v '^ *+' conftest.er1 >conftest.err
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -z "$ac_c_werror_flag"
3401 || test ! -s conftest.err'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 ac_header_compiler=yes
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 ac_header_compiler=no
3420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3422 echo "${ECHO_T}$ac_header_compiler" >&6
3424 # Is the header present?
3425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3433 #include <$ac_header>
3435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } >/dev/null; then
3443 if test -s conftest.err; then
3444 ac_cpp_err=$ac_c_preproc_warn_flag
3445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452 if test -z "$ac_cpp_err"; then
3453 ac_header_preproc=yes
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 ac_header_preproc=no
3460 rm -f conftest.err conftest.$ac_ext
3461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3462 echo "${ECHO_T}$ac_header_preproc" >&6
3464 # So? What about this header?
3465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3471 ac_header_preproc=yes
3474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3488 ## ------------------------------------------ ##
3489 ## Report this to the AC_PACKAGE_NAME lists. ##
3490 ## ------------------------------------------ ##
3493 sed "s/^/$as_me: WARNING: /" >&2
3496 echo "$as_me:$LINENO: checking for $ac_header" >&5
3497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 eval "$as_ac_Header=\$ac_header_preproc"
3503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3508 cat >>confdefs.h <<_ACEOF
3509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3518 for ac_header in sys/time.h sys/resource.h
3520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3522 echo "$as_me:$LINENO: checking for $ac_header" >&5
3523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3530 # Is the header compilable?
3531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 $ac_includes_default
3540 #include <$ac_header>
3542 rm -f conftest.$ac_objext
3543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3544 (eval $ac_compile) 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -z "$ac_c_werror_flag"
3552 || test ! -s conftest.err'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; } &&
3558 { ac_try='test -s conftest.$ac_objext'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3564 ac_header_compiler=yes
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3569 ac_header_compiler=no
3571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3573 echo "${ECHO_T}$ac_header_compiler" >&6
3575 # Is the header present?
3576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3578 cat >conftest.$ac_ext <<_ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3584 #include <$ac_header>
3586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3589 grep -v '^ *+' conftest.er1 >conftest.err
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } >/dev/null; then
3594 if test -s conftest.err; then
3595 ac_cpp_err=$ac_c_preproc_warn_flag
3596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3603 if test -z "$ac_cpp_err"; then
3604 ac_header_preproc=yes
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 ac_header_preproc=no
3611 rm -f conftest.err conftest.$ac_ext
3612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3613 echo "${ECHO_T}$ac_header_preproc" >&6
3615 # So? What about this header?
3616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3622 ac_header_preproc=yes
3625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3639 ## ------------------------------------------ ##
3640 ## Report this to the AC_PACKAGE_NAME lists. ##
3641 ## ------------------------------------------ ##
3644 sed "s/^/$as_me: WARNING: /" >&2
3647 echo "$as_me:$LINENO: checking for $ac_header" >&5
3648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 eval "$as_ac_Header=\$ac_header_preproc"
3654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3659 cat >>confdefs.h <<_ACEOF
3660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3669 for ac_header in fcntl.h fpu_control.h
3671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3673 echo "$as_me:$LINENO: checking for $ac_header" >&5
3674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3681 # Is the header compilable?
3682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 $ac_includes_default
3691 #include <$ac_header>
3693 rm -f conftest.$ac_objext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695 (eval $ac_compile) 2>conftest.er1
3697 grep -v '^ *+' conftest.er1 >conftest.err
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } &&
3702 { ac_try='test -z "$ac_c_werror_flag"
3703 || test ! -s conftest.err'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; } &&
3709 { ac_try='test -s conftest.$ac_objext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 ac_header_compiler=yes
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3720 ac_header_compiler=no
3722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3724 echo "${ECHO_T}$ac_header_compiler" >&6
3726 # Is the header present?
3727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3729 cat >conftest.$ac_ext <<_ACEOF
3732 cat confdefs.h >>conftest.$ac_ext
3733 cat >>conftest.$ac_ext <<_ACEOF
3734 /* end confdefs.h. */
3735 #include <$ac_header>
3737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3740 grep -v '^ *+' conftest.er1 >conftest.err
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } >/dev/null; then
3745 if test -s conftest.err; then
3746 ac_cpp_err=$ac_c_preproc_warn_flag
3747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3754 if test -z "$ac_cpp_err"; then
3755 ac_header_preproc=yes
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3760 ac_header_preproc=no
3762 rm -f conftest.err conftest.$ac_ext
3763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3764 echo "${ECHO_T}$ac_header_preproc" >&6
3766 # So? What about this header?
3767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3773 ac_header_preproc=yes
3776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3790 ## ------------------------------------------ ##
3791 ## Report this to the AC_PACKAGE_NAME lists. ##
3792 ## ------------------------------------------ ##
3795 sed "s/^/$as_me: WARNING: /" >&2
3798 echo "$as_me:$LINENO: checking for $ac_header" >&5
3799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 eval "$as_ac_Header=\$ac_header_preproc"
3805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3810 cat >>confdefs.h <<_ACEOF
3811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3821 for ac_header in dlfcn.h errno.h sys/stat.h
3823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3825 echo "$as_me:$LINENO: checking for $ac_header" >&5
3826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3833 # Is the header compilable?
3834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3835 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
3843 #include <$ac_header>
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1 >conftest.err
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_header_compiler=yes
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_header_compiler=no
3874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3876 echo "${ECHO_T}$ac_header_compiler" >&6
3878 # Is the header present?
3879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 #include <$ac_header>
3889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3892 grep -v '^ *+' conftest.er1 >conftest.err
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } >/dev/null; then
3897 if test -s conftest.err; then
3898 ac_cpp_err=$ac_c_preproc_warn_flag
3899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3906 if test -z "$ac_cpp_err"; then
3907 ac_header_preproc=yes
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3912 ac_header_preproc=no
3914 rm -f conftest.err conftest.$ac_ext
3915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3916 echo "${ECHO_T}$ac_header_preproc" >&6
3918 # So? What about this header?
3919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3925 ac_header_preproc=yes
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3942 ## ------------------------------------------ ##
3943 ## Report this to the AC_PACKAGE_NAME lists. ##
3944 ## ------------------------------------------ ##
3947 sed "s/^/$as_me: WARNING: /" >&2
3950 echo "$as_me:$LINENO: checking for $ac_header" >&5
3951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 eval "$as_ac_Header=\$ac_header_preproc"
3957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3962 cat >>confdefs.h <<_ACEOF
3963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3974 for ac_func in getrusage time sigaction __setfpucw
3976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3977 echo "$as_me:$LINENO: checking for $ac_func" >&5
3978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3979 if eval "test \"\${$as_ac_var+set}\" = set"; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 cat >conftest.$ac_ext <<_ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3990 #define $ac_func innocuous_$ac_func
3992 /* System header to define __stub macros and hopefully few prototypes,
3993 which can conflict with char $ac_func (); below.
3994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995 <limits.h> exists even on freestanding compilers. */
3998 # include <limits.h>
4000 # include <assert.h>
4005 /* Override any gcc2 internal prototype to avoid an error. */
4010 /* We use char because int might match the return type of a gcc2
4011 builtin and then its argument prototype would still apply. */
4013 /* The GNU C library defines this for functions which it implements
4014 to always fail with ENOSYS. Some functions are actually named
4015 something starting with __ and the normal name is an alias. */
4016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4019 char (*f) () = $ac_func;
4028 return f != $ac_func;
4033 rm -f conftest.$ac_objext conftest$ac_exeext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4035 (eval $ac_link) 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest$ac_exeext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 eval "$as_ac_var=yes"
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 eval "$as_ac_var=no"
4062 rm -f conftest.err conftest.$ac_objext \
4063 conftest$ac_exeext conftest.$ac_ext
4065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4067 if test `eval echo '${'$as_ac_var'}'` = yes; then
4068 cat >>confdefs.h <<_ACEOF
4069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4076 # Check for socket libraries
4078 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
4079 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
4080 if test "${ac_cv_lib_socket_bind+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 ac_check_lib_save_LIBS=$LIBS
4084 LIBS="-lsocket $LIBS"
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4092 /* Override any gcc2 internal prototype to avoid an error. */
4096 /* We use char because int might match the return type of a gcc2
4097 builtin and then its argument prototype would still apply. */
4107 rm -f conftest.$ac_objext conftest$ac_exeext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4109 (eval $ac_link) 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -z "$ac_c_werror_flag"
4117 || test ! -s conftest.err'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest$ac_exeext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_lib_socket_bind=yes
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 ac_cv_lib_socket_bind=no
4136 rm -f conftest.err conftest.$ac_objext \
4137 conftest$ac_exeext conftest.$ac_ext
4138 LIBS=$ac_check_lib_save_LIBS
4140 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
4141 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
4142 if test $ac_cv_lib_socket_bind = yes; then
4143 cat >>confdefs.h <<_ACEOF
4144 #define HAVE_LIBSOCKET 1
4147 LIBS="-lsocket $LIBS"
4152 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4153 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4154 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 ac_check_lib_save_LIBS=$LIBS
4159 cat >conftest.$ac_ext <<_ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4166 /* Override any gcc2 internal prototype to avoid an error. */
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4172 char gethostbyname ();
4181 rm -f conftest.$ac_objext conftest$ac_exeext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4183 (eval $ac_link) 2>conftest.er1
4185 grep -v '^ *+' conftest.er1 >conftest.err
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -z "$ac_c_werror_flag"
4191 || test ! -s conftest.err'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; } &&
4197 { ac_try='test -s conftest$ac_exeext'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4203 ac_cv_lib_nsl_gethostbyname=yes
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 ac_cv_lib_nsl_gethostbyname=no
4210 rm -f conftest.err conftest.$ac_objext \
4211 conftest$ac_exeext conftest.$ac_ext
4212 LIBS=$ac_check_lib_save_LIBS
4214 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4215 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4216 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4217 cat >>confdefs.h <<_ACEOF
4218 #define HAVE_LIBNSL 1
4226 . ${srcdir}/../../bfd/configure.host
4230 USE_MAINTAINER_MODE=no
4231 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4232 if test "${enable_maintainer_mode+set}" = set; then
4233 enableval="$enable_maintainer_mode"
4234 case "${enableval}" in
4235 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4237 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4238 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4239 { (exit 1); exit 1; }; }; MAINT="#" ;;
4241 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4242 echo "Setting maintainer mode" 6>&1
4249 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4250 if test "${enable_sim_bswap+set}" = set; then
4251 enableval="$enable_sim_bswap"
4252 case "${enableval}" in
4253 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4254 no) sim_bswap="-DWITH_BSWAP=0";;
4255 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4256 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4257 { (exit 1); exit 1; }; }; sim_bswap="";;
4259 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4260 echo "Setting bswap flags = $sim_bswap" 6>&1
4267 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4268 if test "${enable_sim_cflags+set}" = set; then
4269 enableval="$enable_sim_cflags"
4270 case "${enableval}" in
4271 yes) sim_cflags="-O2 -fomit-frame-pointer";;
4272 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4273 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4274 { (exit 1); exit 1; }; }; sim_cflags="";;
4276 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4278 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4279 echo "Setting sim cflags = $sim_cflags" 6>&1
4286 # Check whether --enable-sim-debug or --disable-sim-debug was given.
4287 if test "${enable_sim_debug+set}" = set; then
4288 enableval="$enable_sim_debug"
4289 case "${enableval}" in
4290 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4291 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4292 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4294 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4295 echo "Setting sim debug = $sim_debug" 6>&1
4302 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4303 if test "${enable_sim_stdio+set}" = set; then
4304 enableval="$enable_sim_stdio"
4305 case "${enableval}" in
4306 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4307 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4308 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4309 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4310 { (exit 1); exit 1; }; }; sim_stdio="";;
4312 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4313 echo "Setting stdio flags = $sim_stdio" 6>&1
4320 # Check whether --enable-sim-trace or --disable-sim-trace was given.
4321 if test "${enable_sim_trace+set}" = set; then
4322 enableval="$enable_sim_trace"
4323 case "${enableval}" in
4324 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4325 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4327 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4330 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4331 if test x"$sim_trace" = x; then
4332 sim_trace="-DWITH_TRACE='(TRACE_$x"
4334 sim_trace="${sim_trace}|TRACE_$x"
4337 sim_trace="$sim_trace)'" ;;
4339 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4340 echo "Setting sim trace = $sim_trace" 6>&1
4347 # Check whether --enable-sim-profile or --disable-sim-profile was given.
4348 if test "${enable_sim_profile+set}" = set; then
4349 enableval="$enable_sim_profile"
4350 case "${enableval}" in
4351 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4352 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4354 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4357 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4358 if test x"$sim_profile" = x; then
4359 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4361 sim_profile="${sim_profile}|PROFILE_$x"
4364 sim_profile="$sim_profile)'" ;;
4366 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4367 echo "Setting sim profile = $sim_profile" 6>&1
4370 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
4375 # Check whether --with-pkgversion or --without-pkgversion was given.
4376 if test "${with_pkgversion+set}" = set; then
4377 withval="$with_pkgversion"
4379 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4380 echo "$as_me: error: package version not specified" >&2;}
4381 { (exit 1); exit 1; }; } ;;
4383 *) PKGVERSION="($withval) " ;;
4393 # Check whether --with-bugurl or --without-bugurl was given.
4394 if test "${with_bugurl+set}" = set; then
4395 withval="$with_bugurl"
4397 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4398 echo "$as_me: error: bug URL not specified" >&2;}
4399 { (exit 1); exit 1; }; } ;;
4402 *) BUGURL="$withval"
4406 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4415 REPORT_BUGS_TO="<$BUGURL>"
4416 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4423 cat >>confdefs.h <<_ACEOF
4424 #define PKGVERSION "$PKGVERSION"
4428 cat >>confdefs.h <<_ACEOF
4429 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4433 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4434 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4435 if test "${ac_cv_type_signal+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <sys/types.h>
4450 extern "C" void (*signal (int, void (*)(int)))(int);
4452 void (*signal ()) ();
4463 rm -f conftest.$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -z "$ac_c_werror_flag"
4473 || test ! -s conftest.err'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 ac_cv_type_signal=void
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 ac_cv_type_signal=int
4492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4494 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4495 echo "${ECHO_T}$ac_cv_type_signal" >&6
4497 cat >>confdefs.h <<_ACEOF
4498 #define RETSIGTYPE $ac_cv_type_signal
4508 sim_link_links=tconfig.h
4509 if test -f ${srcdir}/tconfig.in
4511 sim_link_files=tconfig.in
4513 sim_link_files=../common/tconfig.in
4516 # targ-vals.def points to the libc macro description file.
4518 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4520 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4521 sim_link_links="${sim_link_links} targ-vals.def"
4524 # For dv-rv and rvdummy.
4529 for ac_header in sys/socket.h sys/select.h limits.h sys/param.h
4531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4533 echo "$as_me:$LINENO: checking for $ac_header" >&5
4534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4541 # Is the header compilable?
4542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 $ac_includes_default
4551 #include <$ac_header>
4553 rm -f conftest.$ac_objext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555 (eval $ac_compile) 2>conftest.er1
4557 grep -v '^ *+' conftest.er1 >conftest.err
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
4562 { ac_try='test -z "$ac_c_werror_flag"
4563 || test ! -s conftest.err'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; } &&
4569 { ac_try='test -s conftest.$ac_objext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 ac_header_compiler=yes
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580 ac_header_compiler=no
4582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4584 echo "${ECHO_T}$ac_header_compiler" >&6
4586 # Is the header present?
4587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4589 cat >conftest.$ac_ext <<_ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4595 #include <$ac_header>
4597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1 >conftest.err
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } >/dev/null; then
4605 if test -s conftest.err; then
4606 ac_cpp_err=$ac_c_preproc_warn_flag
4607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4614 if test -z "$ac_cpp_err"; then
4615 ac_header_preproc=yes
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 ac_header_preproc=no
4622 rm -f conftest.err conftest.$ac_ext
4623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4624 echo "${ECHO_T}$ac_header_preproc" >&6
4626 # So? What about this header?
4627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4633 ac_header_preproc=yes
4636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4650 ## ------------------------------------------ ##
4651 ## Report this to the AC_PACKAGE_NAME lists. ##
4652 ## ------------------------------------------ ##
4655 sed "s/^/$as_me: WARNING: /" >&2
4658 echo "$as_me:$LINENO: checking for $ac_header" >&5
4659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 eval "$as_ac_Header=\$ac_header_preproc"
4665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4670 cat >>confdefs.h <<_ACEOF
4671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4679 wire_alignment="NONSTRICT_ALIGNMENT"
4680 default_alignment=""
4682 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
4683 if test "${enable_sim_alignment+set}" = set; then
4684 enableval="$enable_sim_alignment"
4685 case "${enableval}" in
4686 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4687 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4688 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4689 yes) if test x"$wire_alignment" != x; then
4690 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4692 if test x"$default_alignment" != x; then
4693 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4695 echo "No hard-wired alignment for target $target" 1>&6
4696 sim_alignment="-DWITH_ALIGNMENT=0"
4699 no) if test x"$default_alignment" != x; then
4700 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4702 if test x"$wire_alignment" != x; then
4703 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4705 echo "No default alignment for target $target" 1>&6
4706 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4709 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
4710 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
4711 { (exit 1); exit 1; }; }; sim_alignment="";;
4713 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4714 echo "Setting alignment flags = $sim_alignment" 6>&1
4717 if test x"$default_alignment" != x; then
4718 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4720 if test x"$wire_alignment" != x; then
4721 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4728 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
4729 if test "${enable_sim_hostendian+set}" = set; then
4730 enableval="$enable_sim_hostendian"
4731 case "${enableval}" in
4732 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4733 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4734 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4735 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
4736 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
4737 { (exit 1); exit 1; }; }; sim_hostendian="";;
4739 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4740 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4744 if test "x$cross_compiling" = "xno"; then
4745 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4747 if test "${ac_cv_c_bigendian+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 # See if sys/param.h defines the BYTE_ORDER macro.
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 #include <sys/types.h>
4758 #include <sys/param.h>
4763 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773 (eval $ac_compile) 2>conftest.er1
4775 grep -v '^ *+' conftest.er1 >conftest.err
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -z "$ac_c_werror_flag"
4781 || test ! -s conftest.err'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; } &&
4787 { ac_try='test -s conftest.$ac_objext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 # It does; now see whether it defined to BIG_ENDIAN or not.
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 #include <sys/types.h>
4801 #include <sys/param.h>
4806 #if BYTE_ORDER != BIG_ENDIAN
4814 rm -f conftest.$ac_objext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816 (eval $ac_compile) 2>conftest.er1
4818 grep -v '^ *+' conftest.er1 >conftest.err
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -z "$ac_c_werror_flag"
4824 || test ! -s conftest.err'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; } &&
4830 { ac_try='test -s conftest.$ac_objext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4836 ac_cv_c_bigendian=yes
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4841 ac_cv_c_bigendian=no
4843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 # It does not; compile a test program.
4849 if test "$cross_compiling" = yes; then
4850 # try to guess the endianness by grepping values into an object file
4851 ac_cv_c_bigendian=unknown
4852 cat >conftest.$ac_ext <<_ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4859 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4861 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4862 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4867 _ascii (); _ebcdic ();
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -z "$ac_c_werror_flag"
4882 || test ! -s conftest.err'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; } &&
4888 { ac_try='test -s conftest.$ac_objext'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4894 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4895 ac_cv_c_bigendian=yes
4897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4898 if test "$ac_cv_c_bigendian" = unknown; then
4899 ac_cv_c_bigendian=no
4901 # finding both strings is unlikely to happen, but who knows?
4902 ac_cv_c_bigendian=unknown
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4921 /* Are we little or big endian? From Harbison&Steele. */
4925 char c[sizeof (long)];
4928 exit (u.c[sizeof (long) - 1] == 1);
4931 rm -f conftest$ac_exeext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933 (eval $ac_link) 2>&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 ac_cv_c_bigendian=no
4944 echo "$as_me: program exited with status $ac_status" >&5
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4949 ac_cv_c_bigendian=yes
4951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4956 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4957 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4958 case $ac_cv_c_bigendian in
4961 cat >>confdefs.h <<\_ACEOF
4962 #define WORDS_BIGENDIAN 1
4968 { { echo "$as_me:$LINENO: error: unknown endianness
4969 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4970 echo "$as_me: error: unknown endianness
4971 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4972 { (exit 1); exit 1; }; } ;;
4975 if test $ac_cv_c_bigendian = yes; then
4976 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4978 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4981 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
4985 default_sim_scache="16384"
4986 # Check whether --enable-sim-scache or --disable-sim-scache was given.
4987 if test "${enable_sim_scache+set}" = set; then
4988 enableval="$enable_sim_scache"
4989 case "${enableval}" in
4990 yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
4991 no) sim_scache="-DWITH_SCACHE=0" ;;
4992 [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
4993 *) { { echo "$as_me:$LINENO: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&5
4994 echo "$as_me: error: \"Bad value $enableval passed to --enable-sim-scache\"" >&2;}
4995 { (exit 1); exit 1; }; };
4998 if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
4999 echo "Setting scache size = $sim_scache" 6>&1
5002 sim_scache="-DWITH_SCACHE=${default_sim_scache}"
5006 # NOTE: Don't add -Wall or -Wunused, they both include
5007 # -Wunused-parameter which reports bogus warnings.
5008 # NOTE: If you add to this list, remember to update
5009 # gdb/doc/gdbint.texinfo.
5010 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5011 -Wformat -Wparentheses -Wpointer-arith"
5012 # GCC supports -Wuninitialized only with -O or -On, n != 0.
5013 if test x${CFLAGS+set} = xset; then
5017 build_warnings="${build_warnings} -Wuninitialized"
5021 build_warnings="${build_warnings} -Wuninitialized"
5023 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
5024 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
5025 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
5026 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
5027 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
5028 # -Woverloaded-virtual -Winline -Werror"
5029 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5030 if test "${enable_build_warnings+set}" = set; then
5031 enableval="$enable_build_warnings"
5032 case "${enableval}" in
5034 no) build_warnings="-w";;
5035 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5036 build_warnings="${build_warnings} ${t}";;
5037 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5038 build_warnings="${t} ${build_warnings}";;
5039 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5041 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5042 echo "Setting compiler warning flags = $build_warnings" 6>&1
5044 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
5045 if test "${enable_sim_build_warnings+set}" = set; then
5046 enableval="$enable_sim_build_warnings"
5047 case "${enableval}" in
5049 no) build_warnings="-w";;
5050 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5051 build_warnings="${build_warnings} ${t}";;
5052 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5053 build_warnings="${t} ${build_warnings}";;
5054 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5056 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
5057 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
5061 if test "x${build_warnings}" != x -a "x$GCC" = xyes
5063 echo "$as_me:$LINENO: checking compiler warning flags" >&5
5064 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
5065 # Separate out the -Werror flag as some files just cannot be
5066 # compiled with it enabled.
5067 for w in ${build_warnings}; do
5069 -Werr*) WERROR_CFLAGS=-Werror ;;
5070 *) # Check that GCC accepts it
5071 saved_CFLAGS="$CFLAGS"
5073 cat >conftest.$ac_ext <<_ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5088 rm -f conftest.$ac_objext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>conftest.er1
5092 grep -v '^ *+' conftest.er1 >conftest.err
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_c_werror_flag"
5098 || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest.$ac_objext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 WARN_CFLAGS="${WARN_CFLAGS} $w"
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5117 CFLAGS="$saved_CFLAGS"
5120 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
5121 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
5125 if test x"no" = x"yes"; then
5131 hardware="core pal glue"
5133 hardware="core pal glue rv cris"
5135 sim_hw_cflags="-DWITH_HW=1"
5137 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5138 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
5139 if test "${enable_sim_hardware+set}" = set; then
5140 enableval="$enable_sim_hardware"
5142 case "${enableval}" in
5145 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5146 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5147 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5149 if test "$sim_hw_p" != yes; then
5151 sim_hw_cflags="-DWITH_HW=0"
5154 sim_hw_cflags="-DWITH_HW=1"
5157 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
5158 for i in $hardware ; do
5161 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
5165 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5166 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5170 if test "$sim_hw_p" != yes; then
5172 sim_hw_cflags="-DWITH_HW=0"
5175 if test x"$silent" != x"yes"; then
5176 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5180 # The default model shouldn't matter as long as there's a BFD.
5182 default_sim_default_model="crisv32"
5183 # Check whether --enable-sim-default-model or --disable-sim-default-model was given.
5184 if test "${enable_sim_default_model+set}" = set; then
5185 enableval="$enable_sim_default_model"
5186 case "${enableval}" in
5187 yes|no) { { echo "$as_me:$LINENO: error: \"Missing argument to --enable-sim-default-model\"" >&5
5188 echo "$as_me: error: \"Missing argument to --enable-sim-default-model\"" >&2;}
5189 { (exit 1); exit 1; }; };;
5190 *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
5192 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5193 echo "Setting default model = $sim_default_model" 6>&1
5196 sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
5200 # Check whether --enable-sim-environment or --disable-sim-environment was given.
5201 if test "${enable_sim_environment+set}" = set; then
5202 enableval="$enable_sim_environment"
5203 case "${enableval}" in
5204 all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
5205 user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
5206 virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
5207 operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
5208 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&5
5209 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-environment\"" >&2;}
5210 { (exit 1); exit 1; }; };
5211 sim_environment="";;
5213 if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
5214 echo "Setting sim environment = $sim_environment" 6>&1
5217 sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
5220 default_sim_inline=""
5221 # Check whether --enable-sim-inline or --disable-sim-inline was given.
5222 if test "${enable_sim_inline+set}" = set; then
5223 enableval="$enable_sim_inline"
5225 case "$enableval" in
5226 no) sim_inline="-DDEFAULT_INLINE=0";;
5227 0) sim_inline="-DDEFAULT_INLINE=0";;
5228 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
5229 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
5230 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
5233 *_INLINE=*) new_flag="-D$x";;
5234 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
5235 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
5236 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
5238 if test x"$sim_inline" = x""; then
5239 sim_inline="$new_flag"
5241 sim_inline="$sim_inline $new_flag"
5245 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
5246 echo "Setting inline flags = $sim_inline" 6>&1
5250 if test "x$cross_compiling" = "xno"; then
5251 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
5252 sim_inline="${default_sim_inline}"
5253 if test x"$silent" != x"yes"; then
5254 echo "Setting inline flags = $sim_inline" 6>&1
5260 sim_inline="-DDEFAULT_INLINE=0"
5266 cgendir='$(srcdir)/../../cgen'
5267 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
5268 if test "${enable_cgen_maint+set}" = set; then
5269 enableval="$enable_cgen_maint"
5270 case "${enableval}" in
5271 yes) cgen_maint=yes ;;
5272 no) cgen_maint=no ;;
5274 # argument is cgen install directory (not implemented yet).
5275 # Having a `share' directory might be more appropriate for the .scm,
5277 cgendir=${cgen_maint}/lib/cgen
5281 fi; if test x${cgen_maint} != xno ; then
5292 ac_sources="$sim_link_files"
5293 ac_dests="$sim_link_links"
5294 while test -n "$ac_sources"; do
5295 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5296 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5297 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5299 ac_config_links="$ac_config_links $ac_config_links_1"
5302 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5303 cgen_breaks="break cgen_rtx_error";
5306 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
5308 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
5310 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
5312 ac_config_commands="$ac_config_commands Makefile"
5314 ac_config_commands="$ac_config_commands stamp-h"
5316 cat >confcache <<\_ACEOF
5317 # This file is a shell script that caches the results of configure
5318 # tests run on this system so they can be shared between configure
5319 # scripts and configure runs, see configure's option --config-cache.
5320 # It is not useful on other systems. If it contains results you don't
5321 # want to keep, you may remove or edit it.
5323 # config.status only pays attention to the cache file if you give it
5324 # the --recheck option to rerun configure.
5326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5332 # The following way of writing the cache mishandles newlines in values,
5333 # but we know of no workaround that is simple, portable, and efficient.
5334 # So, don't put newlines in cache variables' values.
5335 # Ultrix sh set writes to stderr and can't be redirected directly,
5336 # and sets the high bit in the cache file unless we assign to the vars.
5339 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5341 # `set' does not quote correctly, so add quotes (double-quote
5342 # substitution turns \\\\ into \\, and sed turns \\ into \).
5345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5348 # `set' quotes correctly as required by POSIX, so do not add quotes.
5350 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5357 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5359 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5361 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5362 if test -w $cache_file; then
5363 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5364 cat confcache >$cache_file
5366 echo "not updating unwritable cache $cache_file"
5371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5372 # Let make expand exec_prefix.
5373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5375 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5376 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5377 # trailing colons and then remove the whole line if VPATH becomes empty
5378 # (actually we leave an empty line to preserve line numbers).
5379 if test "x$srcdir" = x.; then
5380 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5381 s/:*\$(srcdir):*/:/;
5382 s/:*\${srcdir}:*/:/;
5384 s/^\([^=]*=[ ]*\):*/\1/;
5390 DEFS=-DHAVE_CONFIG_H
5394 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5395 # 1. Remove the extension, and $U if already installed.
5396 ac_i=`echo "$ac_i" |
5397 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5399 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5400 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5404 LTLIBOBJS=$ac_ltlibobjs
5408 : ${CONFIG_STATUS=./config.status}
5409 ac_clean_files_save=$ac_clean_files
5410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5411 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5412 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5413 cat >$CONFIG_STATUS <<_ACEOF
5415 # Generated by $as_me.
5416 # Run this file to recreate the current configuration.
5417 # Compiler output produced by configure, useful for debugging
5418 # configure, is in config.log if it exists.
5423 SHELL=\${CONFIG_SHELL-$SHELL}
5426 cat >>$CONFIG_STATUS <<\_ACEOF
5427 ## --------------------- ##
5428 ## M4sh Initialization. ##
5429 ## --------------------- ##
5431 # Be Bourne compatible
5432 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5435 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5436 # is contrary to our usage. Disable this feature.
5437 alias -g '${1+"$@"}'='"$@"'
5438 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5441 DUALCASE=1; export DUALCASE # for MKS sh
5443 # Support unset when possible.
5444 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5451 # Work around bugs in pre-3.0 UWIN ksh.
5452 $as_unset ENV MAIL MAILPATH
5459 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5460 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5461 LC_TELEPHONE LC_TIME
5463 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5464 eval $as_var=C; export $as_var
5470 # Required to use basename.
5471 if expr a : '\(a\)' >/dev/null 2>&1; then
5477 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5478 as_basename=basename
5484 # Name of the executable.
5485 as_me=`$as_basename "$0" ||
5486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5487 X"$0" : 'X\(//\)$' \| \
5488 X"$0" : 'X\(/\)$' \| \
5489 . : '\(.\)' 2>/dev/null ||
5491 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5492 /^X\/\(\/\/\)$/{ s//\1/; q; }
5493 /^X\/\(\/\).*/{ s//\1/; q; }
5497 # PATH needs CR, and LINENO needs CR and PATH.
5498 # Avoid depending upon Character Ranges.
5499 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5500 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5501 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5502 as_cr_digits='0123456789'
5503 as_cr_alnum=$as_cr_Letters$as_cr_digits
5505 # The user is always right.
5506 if test "${PATH_SEPARATOR+set}" != set; then
5507 echo "#! /bin/sh" >conf$$.sh
5508 echo "exit 0" >>conf$$.sh
5510 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5521 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5522 test "x$as_lineno_1" != "x$as_lineno_2" &&
5523 test "x$as_lineno_3" = "x$as_lineno_2" || {
5524 # Find who we are. Look in the path if we contain no path at all
5527 *[\\/]* ) as_myself=$0 ;;
5528 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 test -z "$as_dir" && as_dir=.
5533 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5538 # We did not find ourselves, most probably we were run as `sh COMMAND'
5539 # in which case we are not to be found in the path.
5540 if test "x$as_myself" = x; then
5543 if test ! -f "$as_myself"; then
5544 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5545 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5546 { (exit 1); exit 1; }; }
5548 case $CONFIG_SHELL in
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5554 test -z "$as_dir" && as_dir=.
5555 for as_base in sh bash ksh sh5; do
5558 if ("$as_dir/$as_base" -c '
5561 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5562 test "x$as_lineno_1" != "x$as_lineno_2" &&
5563 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5564 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5565 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5566 CONFIG_SHELL=$as_dir/$as_base
5568 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5576 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5577 # uniformly replaced by the line number. The first 'sed' inserts a
5578 # line-number line before each line; the second 'sed' does the real
5579 # work. The second script uses 'N' to pair each line-number line
5580 # with the numbered line, and appends trailing '-' during
5581 # substitution so that $LINENO is not a special case at line end.
5582 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5583 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5584 sed '=' <$as_myself |
5589 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5592 s,^['$as_cr_digits']*\n,,
5594 chmod +x $as_me.lineno ||
5595 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5596 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5597 { (exit 1); exit 1; }; }
5599 # Don't try to exec as it changes $[0], causing all sort of problems
5600 # (the dirname of $[0] is not the place where we might find the
5601 # original and so on. Autoconf is especially sensible to this).
5603 # Exit status is that of the last command.
5608 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5609 *c*,-n*) ECHO_N= ECHO_C='
5611 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5612 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5615 if expr a : '\(a\)' >/dev/null 2>&1; then
5621 rm -f conf$$ conf$$.exe conf$$.file
5623 if ln -s conf$$.file conf$$ 2>/dev/null; then
5624 # We could just check for DJGPP; but this test a) works b) is more generic
5625 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5626 if test -f conf$$.exe; then
5627 # Don't use ln at all; we don't have any links
5632 elif ln conf$$.file conf$$ 2>/dev/null; then
5637 rm -f conf$$ conf$$.exe conf$$.file
5639 if mkdir -p . 2>/dev/null; then
5642 test -d ./-p && rmdir ./-p
5646 as_executable_p="test -f"
5648 # Sed expression to map a string onto a valid CPP name.
5649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5651 # Sed expression to map a string onto a valid variable name.
5652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5656 # We need space, tab and new line, in precisely that order.
5666 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5667 # report actual input values of CONFIG_FILES etc. instead of their
5668 # values after options handling. Logging --version etc. is OK.
5672 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5673 ## Running $as_me. ##
5678 This file was extended by $as_me, which was
5679 generated by GNU Autoconf 2.59. Invocation command line was
5681 CONFIG_FILES = $CONFIG_FILES
5682 CONFIG_HEADERS = $CONFIG_HEADERS
5683 CONFIG_LINKS = $CONFIG_LINKS
5684 CONFIG_COMMANDS = $CONFIG_COMMANDS
5688 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5692 # Files that config.status was made for.
5693 if test -n "$ac_config_files"; then
5694 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5697 if test -n "$ac_config_headers"; then
5698 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5701 if test -n "$ac_config_links"; then
5702 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5705 if test -n "$ac_config_commands"; then
5706 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5709 cat >>$CONFIG_STATUS <<\_ACEOF
5712 \`$as_me' instantiates files from templates according to the
5713 current configuration.
5715 Usage: $0 [OPTIONS] [FILE]...
5717 -h, --help print this help, then exit
5718 -V, --version print version number, then exit
5719 -q, --quiet do not print progress messages
5720 -d, --debug don't remove temporary files
5721 --recheck update $as_me by reconfiguring in the same conditions
5722 --file=FILE[:TEMPLATE]
5723 instantiate the configuration file FILE
5724 --header=FILE[:TEMPLATE]
5725 instantiate the configuration header FILE
5727 Configuration files:
5730 Configuration headers:
5733 Configuration links:
5736 Configuration commands:
5739 Report bugs to <bug-autoconf@gnu.org>."
5742 cat >>$CONFIG_STATUS <<_ACEOF
5745 configured by $0, generated by GNU Autoconf 2.59,
5746 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5748 Copyright (C) 2003 Free Software Foundation, Inc.
5749 This config.status script is free software; the Free Software Foundation
5750 gives unlimited permission to copy, distribute and modify it."
5755 cat >>$CONFIG_STATUS <<\_ACEOF
5756 # If no file are specified by the user, then we need to provide default
5757 # value. By we need to know if files were specified by the user.
5763 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5764 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5772 *) # This is not an option, so the user has probably given explicit
5775 ac_need_defaults=false;;
5779 # Handling of the options.
5781 cat >>$CONFIG_STATUS <<\_ACEOF
5782 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5784 --version | --vers* | -V )
5785 echo "$ac_cs_version"; exit 0 ;;
5787 # Conflict between --help and --header
5788 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5789 Try \`$0 --help' for more information." >&5
5790 echo "$as_me: error: ambiguous option: $1
5791 Try \`$0 --help' for more information." >&2;}
5792 { (exit 1); exit 1; }; };;
5793 --help | --hel | -h )
5794 echo "$ac_cs_usage"; exit 0 ;;
5795 --debug | --d* | -d )
5797 --file | --fil | --fi | --f )
5799 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5800 ac_need_defaults=false;;
5801 --header | --heade | --head | --hea )
5803 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5804 ac_need_defaults=false;;
5805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5806 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5810 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5811 Try \`$0 --help' for more information." >&5
5812 echo "$as_me: error: unrecognized option: $1
5813 Try \`$0 --help' for more information." >&2;}
5814 { (exit 1); exit 1; }; } ;;
5816 *) ac_config_targets="$ac_config_targets $1" ;;
5822 ac_configure_extra_args=
5824 if $ac_cs_silent; then
5826 ac_configure_extra_args="$ac_configure_extra_args --silent"
5830 cat >>$CONFIG_STATUS <<_ACEOF
5831 if \$ac_cs_recheck; then
5832 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5833 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5842 cat >>$CONFIG_STATUS <<\_ACEOF
5843 for ac_config_target in $ac_config_targets
5845 case "$ac_config_target" in
5846 # Handling of arguments.
5847 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5848 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5849 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5850 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
5851 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5852 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
5853 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5854 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5855 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5856 { (exit 1); exit 1; }; };;
5860 # If the user did not use the arguments to specify the items to instantiate,
5861 # then the envvar interface is used. Set only those that are not.
5862 # We use the long form for the default assignment because of an extremely
5863 # bizarre bug on SunOS 4.1.3.
5864 if $ac_need_defaults; then
5865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5866 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5867 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5868 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5871 # Have a temporary directory for convenience. Make it in the build tree
5872 # simply because there is no reason to put it here, and in addition,
5873 # creating and moving files from /tmp can sometimes cause problems.
5874 # Create a temporary directory, and hook for its removal unless debugging.
5877 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5878 trap '{ (exit 1); exit 1; }' 1 2 13 15
5881 # Create a (secure) tmp directory for tmp files.
5884 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5885 test -n "$tmp" && test -d "$tmp"
5888 tmp=./confstat$$-$RANDOM
5889 (umask 077 && mkdir $tmp)
5892 echo "$me: cannot create a temporary directory in ." >&2
5893 { (exit 1); exit 1; }
5898 cat >>$CONFIG_STATUS <<_ACEOF
5901 # CONFIG_FILES section.
5904 # No need to generate the scripts if there are no CONFIG_FILES.
5905 # This happens for instance when ./config.status config.h
5906 if test -n "\$CONFIG_FILES"; then
5907 # Protect against being on the right side of a sed subst in config.status.
5908 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5909 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5910 s,@SHELL@,$SHELL,;t t
5911 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5912 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5913 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5914 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5915 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5916 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5917 s,@exec_prefix@,$exec_prefix,;t t
5918 s,@prefix@,$prefix,;t t
5919 s,@program_transform_name@,$program_transform_name,;t t
5920 s,@bindir@,$bindir,;t t
5921 s,@sbindir@,$sbindir,;t t
5922 s,@libexecdir@,$libexecdir,;t t
5923 s,@datadir@,$datadir,;t t
5924 s,@sysconfdir@,$sysconfdir,;t t
5925 s,@sharedstatedir@,$sharedstatedir,;t t
5926 s,@localstatedir@,$localstatedir,;t t
5927 s,@libdir@,$libdir,;t t
5928 s,@includedir@,$includedir,;t t
5929 s,@oldincludedir@,$oldincludedir,;t t
5930 s,@infodir@,$infodir,;t t
5931 s,@mandir@,$mandir,;t t
5932 s,@build_alias@,$build_alias,;t t
5933 s,@host_alias@,$host_alias,;t t
5934 s,@target_alias@,$target_alias,;t t
5936 s,@ECHO_C@,$ECHO_C,;t t
5937 s,@ECHO_N@,$ECHO_N,;t t
5938 s,@ECHO_T@,$ECHO_T,;t t
5940 s,@sim_environment@,$sim_environment,;t t
5941 s,@sim_alignment@,$sim_alignment,;t t
5942 s,@sim_assert@,$sim_assert,;t t
5943 s,@sim_bitsize@,$sim_bitsize,;t t
5944 s,@sim_endian@,$sim_endian,;t t
5945 s,@sim_hostendian@,$sim_hostendian,;t t
5946 s,@sim_float@,$sim_float,;t t
5947 s,@sim_scache@,$sim_scache,;t t
5948 s,@sim_default_model@,$sim_default_model,;t t
5949 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5950 s,@sim_hw_objs@,$sim_hw_objs,;t t
5951 s,@sim_hw@,$sim_hw,;t t
5952 s,@sim_inline@,$sim_inline,;t t
5953 s,@sim_packages@,$sim_packages,;t t
5954 s,@sim_regparm@,$sim_regparm,;t t
5955 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5956 s,@sim_smp@,$sim_smp,;t t
5957 s,@sim_stdcall@,$sim_stdcall,;t t
5958 s,@sim_xor_endian@,$sim_xor_endian,;t t
5959 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5960 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
5961 s,@build@,$build,;t t
5962 s,@build_cpu@,$build_cpu,;t t
5963 s,@build_vendor@,$build_vendor,;t t
5964 s,@build_os@,$build_os,;t t
5966 s,@host_cpu@,$host_cpu,;t t
5967 s,@host_vendor@,$host_vendor,;t t
5968 s,@host_os@,$host_os,;t t
5969 s,@target@,$target,;t t
5970 s,@target_cpu@,$target_cpu,;t t
5971 s,@target_vendor@,$target_vendor,;t t
5972 s,@target_os@,$target_os,;t t
5974 s,@CFLAGS@,$CFLAGS,;t t
5975 s,@LDFLAGS@,$LDFLAGS,;t t
5976 s,@CPPFLAGS@,$CPPFLAGS,;t t
5977 s,@ac_ct_CC@,$ac_ct_CC,;t t
5978 s,@EXEEXT@,$EXEEXT,;t t
5979 s,@OBJEXT@,$OBJEXT,;t t
5980 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5981 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5982 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5983 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
5984 s,@HDEFINES@,$HDEFINES,;t t
5986 s,@RANLIB@,$RANLIB,;t t
5987 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5988 s,@USE_NLS@,$USE_NLS,;t t
5989 s,@LIBINTL@,$LIBINTL,;t t
5990 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
5991 s,@INCINTL@,$INCINTL,;t t
5992 s,@XGETTEXT@,$XGETTEXT,;t t
5993 s,@GMSGFMT@,$GMSGFMT,;t t
5994 s,@POSUB@,$POSUB,;t t
5995 s,@CATALOGS@,$CATALOGS,;t t
5996 s,@DATADIRNAME@,$DATADIRNAME,;t t
5997 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
5998 s,@GENCAT@,$GENCAT,;t t
5999 s,@CATOBJEXT@,$CATOBJEXT,;t t
6001 s,@EGREP@,$EGREP,;t t
6002 s,@MAINT@,$MAINT,;t t
6003 s,@sim_bswap@,$sim_bswap,;t t
6004 s,@sim_cflags@,$sim_cflags,;t t
6005 s,@sim_debug@,$sim_debug,;t t
6006 s,@sim_stdio@,$sim_stdio,;t t
6007 s,@sim_trace@,$sim_trace,;t t
6008 s,@sim_profile@,$sim_profile,;t t
6009 s,@PKGVERSION@,$PKGVERSION,;t t
6010 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
6011 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
6012 s,@CGEN_MAINT@,$CGEN_MAINT,;t t
6013 s,@cgendir@,$cgendir,;t t
6015 s,@cgen_breaks@,$cgen_breaks,;t t
6016 s,@LIBOBJS@,$LIBOBJS,;t t
6017 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6022 cat >>$CONFIG_STATUS <<\_ACEOF
6023 # Split the substitutions into bite-sized pieces for seds with
6024 # small command number limits, like on Digital OSF/1 and HP-UX.
6026 ac_sed_frag=1 # Number of current file.
6027 ac_beg=1 # First line for current file.
6028 ac_end=$ac_max_sed_lines # Line after last line for current file.
6031 while $ac_more_lines; do
6032 if test $ac_beg -gt 1; then
6033 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6035 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6037 if test ! -s $tmp/subs.frag; then
6040 # The purpose of the label and of the branching condition is to
6041 # speed up the sed processing (if there are no `@' at all, there
6042 # is no need to browse any of the substitutions).
6043 # These are the two extra sed commands mentioned above.
6045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6046 if test -z "$ac_sed_cmds"; then
6047 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6049 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6051 ac_sed_frag=`expr $ac_sed_frag + 1`
6053 ac_end=`expr $ac_end + $ac_max_sed_lines`
6056 if test -z "$ac_sed_cmds"; then
6059 fi # test -n "$CONFIG_FILES"
6062 cat >>$CONFIG_STATUS <<\_ACEOF
6063 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6064 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6066 - | *:- | *:-:* ) # input from stdin
6068 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6069 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6070 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6071 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6072 * ) ac_file_in=$ac_file.in ;;
6075 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6076 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6078 X"$ac_file" : 'X\(//\)[^/]' \| \
6079 X"$ac_file" : 'X\(//\)$' \| \
6080 X"$ac_file" : 'X\(/\)' \| \
6081 . : '\(.\)' 2>/dev/null ||
6083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6085 /^X\(\/\/\)$/{ s//\1/; q; }
6086 /^X\(\/\).*/{ s//\1/; q; }
6088 { if $as_mkdir_p; then
6093 while test ! -d "$as_dir"; do
6094 as_dirs="$as_dir $as_dirs"
6095 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6097 X"$as_dir" : 'X\(//\)[^/]' \| \
6098 X"$as_dir" : 'X\(//\)$' \| \
6099 X"$as_dir" : 'X\(/\)' \| \
6100 . : '\(.\)' 2>/dev/null ||
6102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6104 /^X\(\/\/\)$/{ s//\1/; q; }
6105 /^X\(\/\).*/{ s//\1/; q; }
6108 test ! -n "$as_dirs" || mkdir $as_dirs
6109 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6110 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6111 { (exit 1); exit 1; }; }; }
6115 if test "$ac_dir" != .; then
6116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6117 # A "../" for each directory in $ac_dir_suffix.
6118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6120 ac_dir_suffix= ac_top_builddir=
6124 .) # No --srcdir option. We are building in place.
6126 if test -z "$ac_top_builddir"; then
6129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6131 [\\/]* | ?:[\\/]* ) # Absolute path.
6132 ac_srcdir=$srcdir$ac_dir_suffix;
6133 ac_top_srcdir=$srcdir ;;
6135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6139 # Do not use `cd foo && pwd` to compute absolute paths, because
6140 # the directories may not exist.
6142 .) ac_abs_builddir="$ac_dir";;
6145 .) ac_abs_builddir=`pwd`;;
6146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6147 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6150 case $ac_abs_builddir in
6151 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6153 case ${ac_top_builddir}. in
6154 .) ac_abs_top_builddir=$ac_abs_builddir;;
6155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6159 case $ac_abs_builddir in
6160 .) ac_abs_srcdir=$ac_srcdir;;
6163 .) ac_abs_srcdir=$ac_abs_builddir;;
6164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6168 case $ac_abs_builddir in
6169 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6171 case $ac_top_srcdir in
6172 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6180 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6181 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6184 if test x"$ac_file" != x-; then
6185 { echo "$as_me:$LINENO: creating $ac_file" >&5
6186 echo "$as_me: creating $ac_file" >&6;}
6189 # Let's still pretend it is `configure' which instantiates (i.e., don't
6190 # use $as_me), people would be surprised to read:
6191 # /* config.h. Generated by config.status. */
6192 if test x"$ac_file" = x-; then
6195 configure_input="$ac_file. "
6197 configure_input=$configure_input"Generated from `echo $ac_file_in |
6198 sed 's,.*/,,'` by configure."
6200 # First look for the input files in the build tree, otherwise in the
6202 ac_file_inputs=`IFS=:
6203 for f in $ac_file_in; do
6205 -) echo $tmp/stdin ;;
6207 # Absolute (can't be DOS-style, as IFS=:)
6208 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6209 echo "$as_me: error: cannot find input file: $f" >&2;}
6210 { (exit 1); exit 1; }; }
6213 if test -f "$f"; then
6216 elif test -f "$srcdir/$f"; then
6221 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6222 echo "$as_me: error: cannot find input file: $f" >&2;}
6223 { (exit 1); exit 1; }; }
6226 done` || { (exit 1); exit 1; }
6228 cat >>$CONFIG_STATUS <<_ACEOF
6232 cat >>$CONFIG_STATUS <<\_ACEOF
6234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6235 s,@configure_input@,$configure_input,;t t
6236 s,@srcdir@,$ac_srcdir,;t t
6237 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6238 s,@top_srcdir@,$ac_top_srcdir,;t t
6239 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6240 s,@builddir@,$ac_builddir,;t t
6241 s,@abs_builddir@,$ac_abs_builddir,;t t
6242 s,@top_builddir@,$ac_top_builddir,;t t
6243 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6244 s,@INSTALL@,$ac_INSTALL,;t t
6245 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6247 if test x"$ac_file" != x-; then
6248 mv $tmp/out $ac_file
6256 cat >>$CONFIG_STATUS <<\_ACEOF
6259 # CONFIG_HEADER section.
6262 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6263 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6265 # ac_d sets the value in "#define NAME VALUE" lines.
6266 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6267 ac_dB='[ ].*$,\1#\2'
6270 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6271 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6272 ac_uB='$,\1#\2define\3'
6276 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6279 - | *:- | *:-:* ) # input from stdin
6281 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6283 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6284 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6285 * ) ac_file_in=$ac_file.in ;;
6288 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6289 echo "$as_me: creating $ac_file" >&6;}
6291 # First look for the input files in the build tree, otherwise in the
6293 ac_file_inputs=`IFS=:
6294 for f in $ac_file_in; do
6296 -) echo $tmp/stdin ;;
6298 # Absolute (can't be DOS-style, as IFS=:)
6299 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6300 echo "$as_me: error: cannot find input file: $f" >&2;}
6301 { (exit 1); exit 1; }; }
6302 # Do quote $f, to prevent DOS paths from being IFS'd.
6305 if test -f "$f"; then
6308 elif test -f "$srcdir/$f"; then
6313 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6314 echo "$as_me: error: cannot find input file: $f" >&2;}
6315 { (exit 1); exit 1; }; }
6318 done` || { (exit 1); exit 1; }
6319 # Remove the trailing spaces.
6320 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6324 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6325 # `conftest.undefs', that substitutes the proper values into
6326 # config.h.in to produce config.h. The first handles `#define'
6327 # templates, and the second `#undef' templates.
6328 # And first: Protect against being on the right side of a sed subst in
6329 # config.status. Protect against being in an unquoted here document
6331 rm -f conftest.defines conftest.undefs
6332 # Using a here document instead of a string reduces the quoting nightmare.
6333 # Putting comments in sed scripts is not portable.
6335 # `end' is used to avoid that the second main sed command (meant for
6336 # 0-ary CPP macros) applies to n-ary macro definitions.
6337 # See the Autoconf documentation for `clear'.
6338 cat >confdef2sed.sed <<\_ACEOF
6343 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6345 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6348 # If some macros were called several times there might be several times
6349 # the same #defines, which is useless. Nevertheless, we may not want to
6350 # sort them, since we want the *last* AC-DEFINE to be honored.
6351 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6352 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6353 rm -f confdef2sed.sed
6355 # This sed command replaces #undef with comments. This is necessary, for
6356 # example, in the case of _POSIX_SOURCE, which is predefined and required
6357 # on some systems where configure will not decide to define it.
6358 cat >>conftest.undefs <<\_ACEOF
6359 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6362 # Break up conftest.defines because some shells have a limit on the size
6363 # of here documents, and old seds have small limits too (100 cmds).
6364 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6365 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6366 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6367 echo ' :' >>$CONFIG_STATUS
6369 while grep . conftest.defines >/dev/null
6371 # Write a limited-size here document to $tmp/defines.sed.
6372 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6373 # Speed up: don't consider the non `#define' lines.
6374 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6375 # Work around the forget-to-reset-the-flag bug.
6376 echo 't clr' >>$CONFIG_STATUS
6377 echo ': clr' >>$CONFIG_STATUS
6378 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6380 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6384 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6385 rm -f conftest.defines
6386 mv conftest.tail conftest.defines
6388 rm -f conftest.defines
6389 echo ' fi # grep' >>$CONFIG_STATUS
6390 echo >>$CONFIG_STATUS
6392 # Break up conftest.undefs because some shells have a limit on the size
6393 # of here documents, and old seds have small limits too (100 cmds).
6394 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6396 while grep . conftest.undefs >/dev/null
6398 # Write a limited-size here document to $tmp/undefs.sed.
6399 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6400 # Speed up: don't consider the non `#undef'
6401 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6402 # Work around the forget-to-reset-the-flag bug.
6403 echo 't clr' >>$CONFIG_STATUS
6404 echo ': clr' >>$CONFIG_STATUS
6405 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6407 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6411 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6412 rm -f conftest.undefs
6413 mv conftest.tail conftest.undefs
6415 rm -f conftest.undefs
6417 cat >>$CONFIG_STATUS <<\_ACEOF
6418 # Let's still pretend it is `configure' which instantiates (i.e., don't
6419 # use $as_me), people would be surprised to read:
6420 # /* config.h. Generated by config.status. */
6421 if test x"$ac_file" = x-; then
6422 echo "/* Generated by configure. */" >$tmp/config.h
6424 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6426 cat $tmp/in >>$tmp/config.h
6428 if test x"$ac_file" != x-; then
6429 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6430 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6431 echo "$as_me: $ac_file is unchanged" >&6;}
6433 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6434 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6435 X"$ac_file" : 'X\(//\)[^/]' \| \
6436 X"$ac_file" : 'X\(//\)$' \| \
6437 X"$ac_file" : 'X\(/\)' \| \
6438 . : '\(.\)' 2>/dev/null ||
6440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6441 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6442 /^X\(\/\/\)$/{ s//\1/; q; }
6443 /^X\(\/\).*/{ s//\1/; q; }
6445 { if $as_mkdir_p; then
6450 while test ! -d "$as_dir"; do
6451 as_dirs="$as_dir $as_dirs"
6452 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6454 X"$as_dir" : 'X\(//\)[^/]' \| \
6455 X"$as_dir" : 'X\(//\)$' \| \
6456 X"$as_dir" : 'X\(/\)' \| \
6457 . : '\(.\)' 2>/dev/null ||
6459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6461 /^X\(\/\/\)$/{ s//\1/; q; }
6462 /^X\(\/\).*/{ s//\1/; q; }
6465 test ! -n "$as_dirs" || mkdir $as_dirs
6466 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6467 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6468 { (exit 1); exit 1; }; }; }
6471 mv $tmp/config.h $ac_file
6479 cat >>$CONFIG_STATUS <<\_ACEOF
6482 # CONFIG_LINKS section.
6485 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
6486 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6487 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6489 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
6490 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
6492 if test ! -r $srcdir/$ac_source; then
6493 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
6494 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
6495 { (exit 1); exit 1; }; }
6499 # Make relative symlinks.
6500 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
6501 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6502 X"$ac_dest" : 'X\(//\)[^/]' \| \
6503 X"$ac_dest" : 'X\(//\)$' \| \
6504 X"$ac_dest" : 'X\(/\)' \| \
6505 . : '\(.\)' 2>/dev/null ||
6507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6509 /^X\(\/\/\)$/{ s//\1/; q; }
6510 /^X\(\/\).*/{ s//\1/; q; }
6512 { if $as_mkdir_p; then
6513 mkdir -p "$ac_dest_dir"
6515 as_dir="$ac_dest_dir"
6517 while test ! -d "$as_dir"; do
6518 as_dirs="$as_dir $as_dirs"
6519 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6521 X"$as_dir" : 'X\(//\)[^/]' \| \
6522 X"$as_dir" : 'X\(//\)$' \| \
6523 X"$as_dir" : 'X\(/\)' \| \
6524 . : '\(.\)' 2>/dev/null ||
6526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6528 /^X\(\/\/\)$/{ s//\1/; q; }
6529 /^X\(\/\).*/{ s//\1/; q; }
6532 test ! -n "$as_dirs" || mkdir $as_dirs
6533 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
6534 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
6535 { (exit 1); exit 1; }; }; }
6539 if test "$ac_dest_dir" != .; then
6540 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
6541 # A "../" for each directory in $ac_dir_suffix.
6542 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6544 ac_dir_suffix= ac_top_builddir=
6548 .) # No --srcdir option. We are building in place.
6550 if test -z "$ac_top_builddir"; then
6553 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6555 [\\/]* | ?:[\\/]* ) # Absolute path.
6556 ac_srcdir=$srcdir$ac_dir_suffix;
6557 ac_top_srcdir=$srcdir ;;
6559 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6560 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6563 # Do not use `cd foo && pwd` to compute absolute paths, because
6564 # the directories may not exist.
6566 .) ac_abs_builddir="$ac_dest_dir";;
6568 case "$ac_dest_dir" in
6569 .) ac_abs_builddir=`pwd`;;
6570 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
6571 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
6574 case $ac_abs_builddir in
6575 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6577 case ${ac_top_builddir}. in
6578 .) ac_abs_top_builddir=$ac_abs_builddir;;
6579 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6580 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6583 case $ac_abs_builddir in
6584 .) ac_abs_srcdir=$ac_srcdir;;
6587 .) ac_abs_srcdir=$ac_abs_builddir;;
6588 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6589 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6592 case $ac_abs_builddir in
6593 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6595 case $ac_top_srcdir in
6596 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6597 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6598 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6604 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
6605 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
6608 # Try a symlink, then a hard link, then a copy.
6609 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6610 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
6611 cp -p $srcdir/$ac_source $ac_dest ||
6612 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
6613 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
6614 { (exit 1); exit 1; }; }
6617 cat >>$CONFIG_STATUS <<\_ACEOF
6620 # CONFIG_COMMANDS section.
6622 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6623 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6624 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6625 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6626 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6627 X"$ac_dest" : 'X\(//\)[^/]' \| \
6628 X"$ac_dest" : 'X\(//\)$' \| \
6629 X"$ac_dest" : 'X\(/\)' \| \
6630 . : '\(.\)' 2>/dev/null ||
6632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6634 /^X\(\/\/\)$/{ s//\1/; q; }
6635 /^X\(\/\).*/{ s//\1/; q; }
6637 { if $as_mkdir_p; then
6642 while test ! -d "$as_dir"; do
6643 as_dirs="$as_dir $as_dirs"
6644 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6646 X"$as_dir" : 'X\(//\)[^/]' \| \
6647 X"$as_dir" : 'X\(//\)$' \| \
6648 X"$as_dir" : 'X\(/\)' \| \
6649 . : '\(.\)' 2>/dev/null ||
6651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6653 /^X\(\/\/\)$/{ s//\1/; q; }
6654 /^X\(\/\).*/{ s//\1/; q; }
6657 test ! -n "$as_dirs" || mkdir $as_dirs
6658 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6659 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6660 { (exit 1); exit 1; }; }; }
6664 if test "$ac_dir" != .; then
6665 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6666 # A "../" for each directory in $ac_dir_suffix.
6667 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6669 ac_dir_suffix= ac_top_builddir=
6673 .) # No --srcdir option. We are building in place.
6675 if test -z "$ac_top_builddir"; then
6678 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6680 [\\/]* | ?:[\\/]* ) # Absolute path.
6681 ac_srcdir=$srcdir$ac_dir_suffix;
6682 ac_top_srcdir=$srcdir ;;
6684 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6685 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6688 # Do not use `cd foo && pwd` to compute absolute paths, because
6689 # the directories may not exist.
6691 .) ac_abs_builddir="$ac_dir";;
6694 .) ac_abs_builddir=`pwd`;;
6695 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6696 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6699 case $ac_abs_builddir in
6700 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6702 case ${ac_top_builddir}. in
6703 .) ac_abs_top_builddir=$ac_abs_builddir;;
6704 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6705 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6708 case $ac_abs_builddir in
6709 .) ac_abs_srcdir=$ac_srcdir;;
6712 .) ac_abs_srcdir=$ac_abs_builddir;;
6713 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6714 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6717 case $ac_abs_builddir in
6718 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6720 case $ac_top_srcdir in
6721 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6722 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6723 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6728 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6729 echo "$as_me: executing $ac_dest commands" >&6;}
6731 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
6732 rm -f Makesim1.tmp Makesim2.tmp Makefile
6733 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
6734 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
6735 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
6736 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
6737 <Makefile.sim >Makefile
6738 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
6740 stamp-h ) echo > stamp-h ;;
6745 cat >>$CONFIG_STATUS <<\_ACEOF
6747 { (exit 0); exit 0; }
6749 chmod +x $CONFIG_STATUS
6750 ac_clean_files=$ac_clean_files_save
6753 # configure is writing to config.log, and then calls config.status.
6754 # config.status does its own redirection, appending to config.log.
6755 # Unfortunately, on DOS this fails, as config.log is still kept open
6756 # by configure, so config.status won't be able to write to it; its
6757 # output is simply discarded. So we exec the FD to /dev/null,
6758 # effectively closing config.log, so it can be properly (re)opened and
6759 # appended to by config.status. When coming back to configure, we
6760 # need to make the FD available again.
6761 if test "$no_create" != yes; then
6763 ac_config_status_args=
6764 test "$silent" = yes &&
6765 ac_config_status_args="$ac_config_status_args --quiet"
6767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6770 # would make configure fail if this is the last instruction.
6771 $ac_cs_success || { (exit 1); exit 1; }