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='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 SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile SIM_SUBTARGET sim_igen_flags sim_m16_flags sim_gen sim_multi_flags sim_multi_igen_configs sim_multi_src sim_multi_obj mips_extra_objs mips_igen_engine mips_extra_libs cgen_breaks LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 --target=TARGET configure for building compilers for TARGET [HOST]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-nls do not use Native Language Support
858 --enable-maintainer-mode Enable developer functionality.
859 --enable-sim-bswap Use Host specific BSWAP instruction.
860 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
861 --enable-sim-debug=opts Enable debugging flags
862 --enable-sim-stdio Specify whether to use stdio for console input/output.
863 --enable-sim-trace=opts Enable tracing flags
864 --enable-sim-profile=opts Enable profiling flags
865 --enable-sim-inline=inlines Specify which functions should be inlined.
866 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
867 --enable-sim-hostendian=end Specify host byte endian orientation.
868 --enable-build-warnings Enable build-time compiler warnings if gcc is used
869 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
870 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
871 --enable-sim-endian=endian Specify target byte endian orientation.
872 --enable-sim-bitsize=N Specify target bitsize (32 or 64).
873 --enable-sim-float Specify that the target processor has floating point hardware.
874 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp}).
875 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-included-gettext use the GNU gettext library included here
881 --with-x use the X Window System
883 Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
932 .) ac_abs_builddir="$ac_dir";;
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_must_keep_next=false
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 -* ) ac_must_keep_next=true ;;
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1120 # The following way of writing the cache mishandles newlines in values,
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1143 for ac_var in $ac_subst_vars
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -n "$ac_subst_files"; then
1157 for ac_var in $ac_subst_files
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -s confdefs.h; then
1172 sed "/^$/d" confdefs.h | sort
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1255 # Check that the precious variables saved in the cache have kept the same
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1333 if test -f $ac_dir/install-sh; then
1335 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 elif test -f $ac_dir/install.sh; then
1339 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 elif test -f $ac_dir/shtool; then
1343 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356 # Make sure we can run config.sub.
1357 $ac_config_sub sun4 >/dev/null 2>&1 ||
1358 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1359 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1360 { (exit 1); exit 1; }; }
1362 echo "$as_me:$LINENO: checking build system type" >&5
1363 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1364 if test "${ac_cv_build+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 ac_cv_build_alias=$build_alias
1368 test -z "$ac_cv_build_alias" &&
1369 ac_cv_build_alias=`$ac_config_guess`
1370 test -z "$ac_cv_build_alias" &&
1371 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1372 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1373 { (exit 1); exit 1; }; }
1374 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1375 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1376 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1377 { (exit 1); exit 1; }; }
1380 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1381 echo "${ECHO_T}$ac_cv_build" >&6
1383 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388 echo "$as_me:$LINENO: checking host system type" >&5
1389 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1390 if test "${ac_cv_host+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 ac_cv_host_alias=$host_alias
1394 test -z "$ac_cv_host_alias" &&
1395 ac_cv_host_alias=$ac_cv_build_alias
1396 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1397 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1398 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1399 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1403 echo "${ECHO_T}$ac_cv_host" >&6
1405 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1406 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1407 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1411 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1412 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1413 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 cat >conftest.make <<\_ACEOF
1418 @echo 'ac_maketemp="$(MAKE)"'
1420 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1421 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1422 if test -n "$ac_maketemp"; then
1423 eval ac_cv_prog_make_${ac_make}_set=yes
1425 eval ac_cv_prog_make_${ac_make}_set=no
1429 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1430 echo "$as_me:$LINENO: result: yes" >&5
1431 echo "${ECHO_T}yes" >&6
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1436 SET_MAKE="MAKE=${MAKE-make}"
1440 echo "$as_me:$LINENO: checking for library containing strerror" >&5
1441 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1442 if test "${ac_cv_search_strerror+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 ac_func_search_save_LIBS=$LIBS
1446 ac_cv_search_strerror=no
1447 cat >conftest.$ac_ext <<_ACEOF
1450 cat confdefs.h >>conftest.$ac_ext
1451 cat >>conftest.$ac_ext <<_ACEOF
1452 /* end confdefs.h. */
1454 /* Override any gcc2 internal prototype to avoid an error. */
1458 /* We use char because int might match the return type of a gcc2
1459 builtin and then its argument prototype would still apply. */
1469 rm -f conftest.$ac_objext conftest$ac_exeext
1470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1471 (eval $ac_link) 2>conftest.er1
1473 grep -v '^ *+' conftest.er1 >conftest.err
1475 cat conftest.err >&5
1476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1477 (exit $ac_status); } &&
1478 { ac_try='test -z "$ac_c_werror_flag"
1479 || test ! -s conftest.err'
1480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1484 (exit $ac_status); }; } &&
1485 { ac_try='test -s conftest$ac_exeext'
1486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1490 (exit $ac_status); }; }; then
1491 ac_cv_search_strerror="none required"
1493 echo "$as_me: failed program was:" >&5
1494 sed 's/^/| /' conftest.$ac_ext >&5
1497 rm -f conftest.err conftest.$ac_objext \
1498 conftest$ac_exeext conftest.$ac_ext
1499 if test "$ac_cv_search_strerror" = no; then
1500 for ac_lib in cposix; do
1501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1502 cat >conftest.$ac_ext <<_ACEOF
1505 cat confdefs.h >>conftest.$ac_ext
1506 cat >>conftest.$ac_ext <<_ACEOF
1507 /* end confdefs.h. */
1509 /* Override any gcc2 internal prototype to avoid an error. */
1513 /* We use char because int might match the return type of a gcc2
1514 builtin and then its argument prototype would still apply. */
1524 rm -f conftest.$ac_objext conftest$ac_exeext
1525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1526 (eval $ac_link) 2>conftest.er1
1528 grep -v '^ *+' conftest.er1 >conftest.err
1530 cat conftest.err >&5
1531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1532 (exit $ac_status); } &&
1533 { ac_try='test -z "$ac_c_werror_flag"
1534 || test ! -s conftest.err'
1535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1539 (exit $ac_status); }; } &&
1540 { ac_try='test -s conftest$ac_exeext'
1541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1545 (exit $ac_status); }; }; then
1546 ac_cv_search_strerror="-l$ac_lib"
1549 echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1553 rm -f conftest.err conftest.$ac_objext \
1554 conftest$ac_exeext conftest.$ac_ext
1557 LIBS=$ac_func_search_save_LIBS
1559 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1560 echo "${ECHO_T}$ac_cv_search_strerror" >&6
1561 if test "$ac_cv_search_strerror" != no; then
1562 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1567 ac_cpp='$CPP $CPPFLAGS'
1568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1571 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1572 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1573 # On Suns, sometimes $CPP names a directory.
1574 if test -n "$CPP" && test -d "$CPP"; then
1577 if test -z "$CPP"; then
1578 if test "${ac_cv_prog_CPP+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 # Double quotes because CPP needs to be expanded
1582 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1585 for ac_c_preproc_warn_flag in '' yes
1587 # Use a header file that comes with gcc, so configuring glibc
1588 # with a fresh cross-compiler works.
1589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1590 # <limits.h> exists even on freestanding compilers.
1591 # On the NeXT, cc -E runs the code through the compiler's parser,
1592 # not just through cpp. "Syntax error" is here to catch this case.
1593 cat >conftest.$ac_ext <<_ACEOF
1596 cat confdefs.h >>conftest.$ac_ext
1597 cat >>conftest.$ac_ext <<_ACEOF
1598 /* end confdefs.h. */
1600 # include <limits.h>
1602 # include <assert.h>
1606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1609 grep -v '^ *+' conftest.er1 >conftest.err
1611 cat conftest.err >&5
1612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1613 (exit $ac_status); } >/dev/null; then
1614 if test -s conftest.err; then
1615 ac_cpp_err=$ac_c_preproc_warn_flag
1616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1623 if test -z "$ac_cpp_err"; then
1626 echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1629 # Broken: fails on valid input.
1632 rm -f conftest.err conftest.$ac_ext
1634 # OK, works on sane cases. Now check whether non-existent headers
1635 # can be detected and how.
1636 cat >conftest.$ac_ext <<_ACEOF
1639 cat confdefs.h >>conftest.$ac_ext
1640 cat >>conftest.$ac_ext <<_ACEOF
1641 /* end confdefs.h. */
1642 #include <ac_nonexistent.h>
1644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1647 grep -v '^ *+' conftest.er1 >conftest.err
1649 cat conftest.err >&5
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); } >/dev/null; then
1652 if test -s conftest.err; then
1653 ac_cpp_err=$ac_c_preproc_warn_flag
1654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1661 if test -z "$ac_cpp_err"; then
1662 # Broken: success on invalid input.
1665 echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1668 # Passes both tests.
1672 rm -f conftest.err conftest.$ac_ext
1675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1676 rm -f conftest.err conftest.$ac_ext
1677 if $ac_preproc_ok; then
1689 echo "$as_me:$LINENO: result: $CPP" >&5
1690 echo "${ECHO_T}$CPP" >&6
1692 for ac_c_preproc_warn_flag in '' yes
1694 # Use a header file that comes with gcc, so configuring glibc
1695 # with a fresh cross-compiler works.
1696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1697 # <limits.h> exists even on freestanding compilers.
1698 # On the NeXT, cc -E runs the code through the compiler's parser,
1699 # not just through cpp. "Syntax error" is here to catch this case.
1700 cat >conftest.$ac_ext <<_ACEOF
1703 cat confdefs.h >>conftest.$ac_ext
1704 cat >>conftest.$ac_ext <<_ACEOF
1705 /* end confdefs.h. */
1707 # include <limits.h>
1709 # include <assert.h>
1713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1716 grep -v '^ *+' conftest.er1 >conftest.err
1718 cat conftest.err >&5
1719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720 (exit $ac_status); } >/dev/null; then
1721 if test -s conftest.err; then
1722 ac_cpp_err=$ac_c_preproc_warn_flag
1723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1730 if test -z "$ac_cpp_err"; then
1733 echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1736 # Broken: fails on valid input.
1739 rm -f conftest.err conftest.$ac_ext
1741 # OK, works on sane cases. Now check whether non-existent headers
1742 # can be detected and how.
1743 cat >conftest.$ac_ext <<_ACEOF
1746 cat confdefs.h >>conftest.$ac_ext
1747 cat >>conftest.$ac_ext <<_ACEOF
1748 /* end confdefs.h. */
1749 #include <ac_nonexistent.h>
1751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1754 grep -v '^ *+' conftest.er1 >conftest.err
1756 cat conftest.err >&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); } >/dev/null; then
1759 if test -s conftest.err; then
1760 ac_cpp_err=$ac_c_preproc_warn_flag
1761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1768 if test -z "$ac_cpp_err"; then
1769 # Broken: success on invalid input.
1772 echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 # Passes both tests.
1779 rm -f conftest.err conftest.$ac_ext
1782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1783 rm -f conftest.err conftest.$ac_ext
1784 if $ac_preproc_ok; then
1787 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1788 See \`config.log' for more details." >&5
1789 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1790 See \`config.log' for more details." >&2;}
1791 { (exit 1); exit 1; }; }
1795 ac_cpp='$CPP $CPPFLAGS'
1796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801 echo "$as_me:$LINENO: checking for egrep" >&5
1802 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1803 if test "${ac_cv_prog_egrep+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1807 then ac_cv_prog_egrep='grep -E'
1808 else ac_cv_prog_egrep='egrep'
1811 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1812 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1813 EGREP=$ac_cv_prog_egrep
1816 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1818 if test "${ac_cv_header_stdc+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 cat >conftest.$ac_ext <<_ACEOF
1824 cat confdefs.h >>conftest.$ac_ext
1825 cat >>conftest.$ac_ext <<_ACEOF
1826 /* end confdefs.h. */
1840 rm -f conftest.$ac_objext
1841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1842 (eval $ac_compile) 2>conftest.er1
1844 grep -v '^ *+' conftest.er1 >conftest.err
1846 cat conftest.err >&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); } &&
1849 { ac_try='test -z "$ac_c_werror_flag"
1850 || test ! -s conftest.err'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; } &&
1856 { ac_try='test -s conftest.$ac_objext'
1857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861 (exit $ac_status); }; }; then
1862 ac_cv_header_stdc=yes
1864 echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_cv_header_stdc=no
1869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1871 if test $ac_cv_header_stdc = yes; then
1872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1873 cat >conftest.$ac_ext <<_ACEOF
1876 cat confdefs.h >>conftest.$ac_ext
1877 cat >>conftest.$ac_ext <<_ACEOF
1878 /* end confdefs.h. */
1882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1883 $EGREP "memchr" >/dev/null 2>&1; then
1886 ac_cv_header_stdc=no
1892 if test $ac_cv_header_stdc = yes; then
1893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1894 cat >conftest.$ac_ext <<_ACEOF
1897 cat confdefs.h >>conftest.$ac_ext
1898 cat >>conftest.$ac_ext <<_ACEOF
1899 /* end confdefs.h. */
1903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1904 $EGREP "free" >/dev/null 2>&1; then
1907 ac_cv_header_stdc=no
1913 if test $ac_cv_header_stdc = yes; then
1914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1915 if test "$cross_compiling" = yes; then
1918 cat >conftest.$ac_ext <<_ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1925 #if ((' ' & 0x0FF) == 0x020)
1926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1929 # define ISLOWER(c) \
1930 (('a' <= (c) && (c) <= 'i') \
1931 || ('j' <= (c) && (c) <= 'r') \
1932 || ('s' <= (c) && (c) <= 'z'))
1933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1941 for (i = 0; i < 256; i++)
1942 if (XOR (islower (i), ISLOWER (i))
1943 || toupper (i) != TOUPPER (i))
1948 rm -f conftest$ac_exeext
1949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1950 (eval $ac_link) 2>&5
1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; }; then
1961 echo "$as_me: program exited with status $ac_status" >&5
1962 echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1966 ac_cv_header_stdc=no
1968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1972 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1973 echo "${ECHO_T}$ac_cv_header_stdc" >&6
1974 if test $ac_cv_header_stdc = yes; then
1976 cat >>confdefs.h <<\_ACEOF
1977 #define STDC_HEADERS 1
1982 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1983 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1984 if test "${ac_cv_c_const+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 cat >conftest.$ac_ext <<_ACEOF
1990 cat confdefs.h >>conftest.$ac_ext
1991 cat >>conftest.$ac_ext <<_ACEOF
1992 /* end confdefs.h. */
1997 /* FIXME: Include the comments suggested by Paul. */
1999 /* Ultrix mips cc rejects this. */
2000 typedef int charset[2];
2002 /* SunOS 4.1.1 cc rejects this. */
2003 char const *const *ccp;
2005 /* NEC SVR4.0.2 mips cc rejects this. */
2006 struct point {int x, y;};
2007 static struct point const zero = {0,0};
2008 /* AIX XL C 1.02.0.0 rejects this.
2009 It does not let you subtract one const X* pointer from another in
2010 an arm of an if-expression whose if-part is not a constant
2012 const char *g = "string";
2013 ccp = &g + (g ? g-g : 0);
2014 /* HPUX 7.0 cc rejects these. */
2017 ccp = (char const *const *) p;
2018 { /* SCO 3.2v4 cc rejects this. */
2020 char const *s = 0 ? (char *) 0 : (char const *) 0;
2024 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2026 const int *foo = &x[0];
2029 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2030 typedef const int *iptr;
2034 { /* AIX XL C 1.02.0.0 rejects this saying
2035 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2036 struct s { int j; const int *ap[3]; };
2037 struct s *b; b->j = 5;
2039 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2052 grep -v '^ *+' conftest.er1 >conftest.err
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2080 echo "${ECHO_T}$ac_cv_c_const" >&6
2081 if test $ac_cv_c_const = no; then
2083 cat >>confdefs.h <<\_ACEOF
2089 echo "$as_me:$LINENO: checking for inline" >&5
2090 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2091 if test "${ac_cv_c_inline+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 for ac_kw in inline __inline__ __inline; do
2096 cat >conftest.$ac_ext <<_ACEOF
2099 cat confdefs.h >>conftest.$ac_ext
2100 cat >>conftest.$ac_ext <<_ACEOF
2101 /* end confdefs.h. */
2104 static $ac_kw foo_t static_foo () {return 0; }
2105 $ac_kw foo_t foo () {return 0; }
2109 rm -f conftest.$ac_objext
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111 (eval $ac_compile) 2>conftest.er1
2113 grep -v '^ *+' conftest.er1 >conftest.err
2115 cat conftest.err >&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); } &&
2118 { ac_try='test -z "$ac_c_werror_flag"
2119 || test ! -s conftest.err'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; } &&
2125 { ac_try='test -s conftest.$ac_objext'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2131 ac_cv_c_inline=$ac_kw; break
2133 echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2141 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2142 echo "${ECHO_T}$ac_cv_c_inline" >&6
2145 case $ac_cv_c_inline in
2148 case $ac_cv_c_inline in
2150 *) ac_val=$ac_cv_c_inline;;
2152 cat >>confdefs.h <<_ACEOF
2154 #define inline $ac_val
2160 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2170 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2171 inttypes.h stdint.h unistd.h
2173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2174 echo "$as_me:$LINENO: checking for $ac_header" >&5
2175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 cat >conftest.$ac_ext <<_ACEOF
2182 cat confdefs.h >>conftest.$ac_ext
2183 cat >>conftest.$ac_ext <<_ACEOF
2184 /* end confdefs.h. */
2185 $ac_includes_default
2187 #include <$ac_header>
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>conftest.er1
2193 grep -v '^ *+' conftest.er1 >conftest.err
2195 cat conftest.err >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -z "$ac_c_werror_flag"
2199 || test ! -s conftest.err'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; } &&
2205 { ac_try='test -s conftest.$ac_objext'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; }; then
2211 eval "$as_ac_Header=yes"
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2216 eval "$as_ac_Header=no"
2218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2223 cat >>confdefs.h <<_ACEOF
2224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2232 echo "$as_me:$LINENO: checking for off_t" >&5
2233 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2234 if test "${ac_cv_type_off_t+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 cat >conftest.$ac_ext <<_ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2243 $ac_includes_default
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>conftest.er1
2259 grep -v '^ *+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 ac_cv_type_off_t=yes
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2287 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2288 if test $ac_cv_type_off_t = yes; then
2292 cat >>confdefs.h <<_ACEOF
2298 echo "$as_me:$LINENO: checking for size_t" >&5
2299 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2300 if test "${ac_cv_type_size_t+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2309 $ac_includes_default
2315 if (sizeof (size_t))
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>conftest.er1
2325 grep -v '^ *+' conftest.er1 >conftest.err
2327 cat conftest.err >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); } &&
2330 { ac_try='test -z "$ac_c_werror_flag"
2331 || test ! -s conftest.err'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; } &&
2337 { ac_try='test -s conftest.$ac_objext'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; }; then
2343 ac_cv_type_size_t=yes
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2348 ac_cv_type_size_t=no
2350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2353 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2354 if test $ac_cv_type_size_t = yes; then
2358 cat >>confdefs.h <<_ACEOF
2359 #define size_t unsigned
2364 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2365 # for constant arguments. Useless!
2366 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2367 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2368 if test "${ac_cv_working_alloca_h+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 cat >conftest.$ac_ext <<_ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2381 char *p = (char *) alloca (2 * sizeof (int));
2386 rm -f conftest.$ac_objext conftest$ac_exeext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2388 (eval $ac_link) 2>conftest.er1
2390 grep -v '^ *+' conftest.er1 >conftest.err
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag"
2396 || test ! -s conftest.err'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest$ac_exeext'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2408 ac_cv_working_alloca_h=yes
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2413 ac_cv_working_alloca_h=no
2415 rm -f conftest.err conftest.$ac_objext \
2416 conftest$ac_exeext conftest.$ac_ext
2418 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2419 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2420 if test $ac_cv_working_alloca_h = yes; then
2422 cat >>confdefs.h <<\_ACEOF
2423 #define HAVE_ALLOCA_H 1
2428 echo "$as_me:$LINENO: checking for alloca" >&5
2429 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2430 if test "${ac_cv_func_alloca_works+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2440 # define alloca __builtin_alloca
2443 # include <malloc.h>
2444 # define alloca _alloca
2447 # include <alloca.h>
2452 # ifndef alloca /* predefined by HP cc +Olibcalls */
2463 char *p = (char *) alloca (1);
2468 rm -f conftest.$ac_objext conftest$ac_exeext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2470 (eval $ac_link) 2>conftest.er1
2472 grep -v '^ *+' conftest.er1 >conftest.err
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_c_werror_flag"
2478 || test ! -s conftest.err'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest$ac_exeext'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 ac_cv_func_alloca_works=yes
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2495 ac_cv_func_alloca_works=no
2497 rm -f conftest.err conftest.$ac_objext \
2498 conftest$ac_exeext conftest.$ac_ext
2500 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2501 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2503 if test $ac_cv_func_alloca_works = yes; then
2505 cat >>confdefs.h <<\_ACEOF
2506 #define HAVE_ALLOCA 1
2510 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2511 # that cause trouble. Some versions do not even contain alloca or
2512 # contain a buggy version. If you still want to use their alloca,
2513 # use ar to extract alloca.o from them instead of compiling alloca.c.
2515 ALLOCA=alloca.$ac_objext
2517 cat >>confdefs.h <<\_ACEOF
2522 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2523 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2524 if test "${ac_cv_os_cray+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 cat >conftest.$ac_ext <<_ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2533 #if defined(CRAY) && ! defined(CRAY2)
2540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2541 $EGREP "webecray" >/dev/null 2>&1; then
2549 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2550 echo "${ECHO_T}$ac_cv_os_cray" >&6
2551 if test $ac_cv_os_cray = yes; then
2552 for ac_func in _getb67 GETB67 getb67; do
2553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2554 echo "$as_me:$LINENO: checking for $ac_func" >&5
2555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2556 if eval "test \"\${$as_ac_var+set}\" = set"; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2567 #define $ac_func innocuous_$ac_func
2569 /* System header to define __stub macros and hopefully few prototypes,
2570 which can conflict with char $ac_func (); below.
2571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2572 <limits.h> exists even on freestanding compilers. */
2575 # include <limits.h>
2577 # include <assert.h>
2582 /* Override any gcc2 internal prototype to avoid an error. */
2587 /* We use char because int might match the return type of a gcc2
2588 builtin and then its argument prototype would still apply. */
2590 /* The GNU C library defines this for functions which it implements
2591 to always fail with ENOSYS. Some functions are actually named
2592 something starting with __ and the normal name is an alias. */
2593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2596 char (*f) () = $ac_func;
2605 return f != $ac_func;
2610 rm -f conftest.$ac_objext conftest$ac_exeext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2612 (eval $ac_link) 2>conftest.er1
2614 grep -v '^ *+' conftest.er1 >conftest.err
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest$ac_exeext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 eval "$as_ac_var=yes"
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2637 eval "$as_ac_var=no"
2639 rm -f conftest.err conftest.$ac_objext \
2640 conftest$ac_exeext conftest.$ac_ext
2642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2644 if test `eval echo '${'$as_ac_var'}'` = yes; then
2646 cat >>confdefs.h <<_ACEOF
2647 #define CRAY_STACKSEG_END $ac_func
2656 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2657 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2658 if test "${ac_cv_c_stack_direction+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 if test "$cross_compiling" = yes; then
2662 ac_cv_c_stack_direction=0
2664 cat >conftest.$ac_ext <<_ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2671 find_stack_direction ()
2673 static char *addr = 0;
2678 return find_stack_direction ();
2681 return (&dummy > addr) ? 1 : -1;
2687 exit (find_stack_direction () < 0);
2690 rm -f conftest$ac_exeext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2692 (eval $ac_link) 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2701 ac_cv_c_stack_direction=1
2703 echo "$as_me: program exited with status $ac_status" >&5
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2708 ac_cv_c_stack_direction=-1
2710 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2713 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2714 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2716 cat >>confdefs.h <<_ACEOF
2717 #define STACK_DIRECTION $ac_cv_c_stack_direction
2725 for ac_header in stdlib.h unistd.h
2727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2729 echo "$as_me:$LINENO: checking for $ac_header" >&5
2730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2737 # Is the header compilable?
2738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2746 $ac_includes_default
2747 #include <$ac_header>
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>conftest.er1
2753 grep -v '^ *+' conftest.er1 >conftest.err
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -z "$ac_c_werror_flag"
2759 || test ! -s conftest.err'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; } &&
2765 { ac_try='test -s conftest.$ac_objext'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_header_compiler=yes
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2776 ac_header_compiler=no
2778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2780 echo "${ECHO_T}$ac_header_compiler" >&6
2782 # Is the header present?
2783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2785 cat >conftest.$ac_ext <<_ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2791 #include <$ac_header>
2793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2796 grep -v '^ *+' conftest.er1 >conftest.err
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } >/dev/null; then
2801 if test -s conftest.err; then
2802 ac_cpp_err=$ac_c_preproc_warn_flag
2803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2810 if test -z "$ac_cpp_err"; then
2811 ac_header_preproc=yes
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2816 ac_header_preproc=no
2818 rm -f conftest.err conftest.$ac_ext
2819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2820 echo "${ECHO_T}$ac_header_preproc" >&6
2822 # So? What about this header?
2823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2829 ac_header_preproc=yes
2832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2846 ## ------------------------------------------ ##
2847 ## Report this to the AC_PACKAGE_NAME lists. ##
2848 ## ------------------------------------------ ##
2851 sed "s/^/$as_me: WARNING: /" >&2
2854 echo "$as_me:$LINENO: checking for $ac_header" >&5
2855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 eval "$as_ac_Header=\$ac_header_preproc"
2861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2866 cat >>confdefs.h <<_ACEOF
2867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2875 for ac_func in getpagesize
2877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2878 echo "$as_me:$LINENO: checking for $ac_func" >&5
2879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2880 if eval "test \"\${$as_ac_var+set}\" = set"; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 cat >conftest.$ac_ext <<_ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2891 #define $ac_func innocuous_$ac_func
2893 /* System header to define __stub macros and hopefully few prototypes,
2894 which can conflict with char $ac_func (); below.
2895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2896 <limits.h> exists even on freestanding compilers. */
2899 # include <limits.h>
2901 # include <assert.h>
2906 /* Override any gcc2 internal prototype to avoid an error. */
2911 /* We use char because int might match the return type of a gcc2
2912 builtin and then its argument prototype would still apply. */
2914 /* The GNU C library defines this for functions which it implements
2915 to always fail with ENOSYS. Some functions are actually named
2916 something starting with __ and the normal name is an alias. */
2917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2920 char (*f) () = $ac_func;
2929 return f != $ac_func;
2934 rm -f conftest.$ac_objext conftest$ac_exeext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2936 (eval $ac_link) 2>conftest.er1
2938 grep -v '^ *+' conftest.er1 >conftest.err
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -z "$ac_c_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest$ac_exeext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 eval "$as_ac_var=yes"
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 eval "$as_ac_var=no"
2963 rm -f conftest.err conftest.$ac_objext \
2964 conftest$ac_exeext conftest.$ac_ext
2966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2968 if test `eval echo '${'$as_ac_var'}'` = yes; then
2969 cat >>confdefs.h <<_ACEOF
2970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2976 echo "$as_me:$LINENO: checking for working mmap" >&5
2977 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2978 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 if test "$cross_compiling" = yes; then
2982 ac_cv_func_mmap_fixed_mapped=no
2984 cat >conftest.$ac_ext <<_ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990 $ac_includes_default
2991 /* malloc might have been renamed as rpl_malloc. */
2994 /* Thanks to Mike Haertel and Jim Avera for this test.
2995 Here is a matrix of mmap possibilities:
2996 mmap private not fixed
2997 mmap private fixed at somewhere currently unmapped
2998 mmap private fixed at somewhere already mapped
2999 mmap shared not fixed
3000 mmap shared fixed at somewhere currently unmapped
3001 mmap shared fixed at somewhere already mapped
3002 For private mappings, we should verify that changes cannot be read()
3003 back from the file, nor mmap's back from the file at a different
3004 address. (There have been systems where private was not correctly
3005 implemented like the infamous i386 svr4.0, and systems where the
3006 VM page cache was not coherent with the file system buffer cache
3007 like early versions of FreeBSD and possibly contemporary NetBSD.)
3008 For shared mappings, we should conversely verify that changes get
3009 propagated back to all the places they're supposed to be.
3011 Grep wants private fixed already mapped.
3012 The main things grep needs to know about mmap are:
3013 * does it exist and is it safe to write into the mmap'd area
3014 * how to use it (BSD variants) */
3017 #include <sys/mman.h>
3019 #if !STDC_HEADERS && !HAVE_STDLIB_H
3023 /* This mess was copied from the GNU getpagesize.h. */
3024 #if !HAVE_GETPAGESIZE
3025 /* Assume that all systems that can run configure have sys/param.h. */
3026 # if !HAVE_SYS_PARAM_H
3027 # define HAVE_SYS_PARAM_H 1
3030 # ifdef _SC_PAGESIZE
3031 # define getpagesize() sysconf(_SC_PAGESIZE)
3032 # else /* no _SC_PAGESIZE */
3033 # if HAVE_SYS_PARAM_H
3034 # include <sys/param.h>
3035 # ifdef EXEC_PAGESIZE
3036 # define getpagesize() EXEC_PAGESIZE
3037 # else /* no EXEC_PAGESIZE */
3039 # define getpagesize() NBPG * CLSIZE
3042 # endif /* no CLSIZE */
3043 # else /* no NBPG */
3045 # define getpagesize() NBPC
3046 # else /* no NBPC */
3048 # define getpagesize() PAGESIZE
3049 # endif /* PAGESIZE */
3050 # endif /* no NBPC */
3051 # endif /* no NBPG */
3052 # endif /* no EXEC_PAGESIZE */
3053 # else /* no HAVE_SYS_PARAM_H */
3054 # define getpagesize() 8192 /* punt totally */
3055 # endif /* no HAVE_SYS_PARAM_H */
3056 # endif /* no _SC_PAGESIZE */
3058 #endif /* no HAVE_GETPAGESIZE */
3063 char *data, *data2, *data3;
3067 pagesize = getpagesize ();
3069 /* First, make a file with some known garbage in it. */
3070 data = (char *) malloc (pagesize);
3073 for (i = 0; i < pagesize; ++i)
3074 *(data + i) = rand ();
3076 fd = creat ("conftest.mmap", 0600);
3079 if (write (fd, data, pagesize) != pagesize)
3083 /* Next, try to mmap the file at a fixed address which already has
3084 something else allocated at it. If we can, also make sure that
3085 we see the same garbage. */
3086 fd = open ("conftest.mmap", O_RDWR);
3089 data2 = (char *) malloc (2 * pagesize);
3092 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3093 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3094 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3096 for (i = 0; i < pagesize; ++i)
3097 if (*(data + i) != *(data2 + i))
3100 /* Finally, make sure that changes to the mapped area do not
3101 percolate back to the file as seen by read(). (This is a bug on
3102 some variants of i386 svr4.0.) */
3103 for (i = 0; i < pagesize; ++i)
3104 *(data2 + i) = *(data2 + i) + 1;
3105 data3 = (char *) malloc (pagesize);
3108 if (read (fd, data3, pagesize) != pagesize)
3110 for (i = 0; i < pagesize; ++i)
3111 if (*(data + i) != *(data3 + i))
3117 rm -f conftest$ac_exeext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3119 (eval $ac_link) 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 ac_cv_func_mmap_fixed_mapped=yes
3130 echo "$as_me: program exited with status $ac_status" >&5
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3135 ac_cv_func_mmap_fixed_mapped=no
3137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3140 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3141 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3142 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3144 cat >>confdefs.h <<\_ACEOF
3152 # autoconf.info says this should be called right after AC_INIT.
3153 ac_config_headers="$ac_config_headers config.h:config.in"
3155 echo "$as_me:$LINENO: checking target system type" >&5
3156 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3157 if test "${ac_cv_target+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 ac_cv_target_alias=$target_alias
3161 test "x$ac_cv_target_alias" = "x" &&
3162 ac_cv_target_alias=$ac_cv_host_alias
3163 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3164 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3165 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3166 { (exit 1); exit 1; }; }
3169 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3170 echo "${ECHO_T}$ac_cv_target" >&6
3171 target=$ac_cv_target
3172 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3173 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3174 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3177 # The aliases save the names the user supplied, while $host etc.
3178 # will get canonicalized.
3179 test -n "$target_alias" &&
3180 test "$program_prefix$program_suffix$program_transform_name" = \
3182 program_prefix=${target_alias}-
3183 test "$program_prefix" != NONE &&
3184 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3185 # Use a double $ so make ignores it.
3186 test "$program_suffix" != NONE &&
3187 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3188 # Double any \ or $. echo might interpret backslashes.
3189 # By default was `s,x,x', remove it if useless.
3190 cat <<\_ACEOF >conftest.sed
3191 s/[\\$]/&&/g;s/;s,x,x,$//
3193 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 if test -n "$ac_tool_prefix"; then
3202 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_CC+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC="$CC" # Let the user override the test.
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 if test -n "$CC"; then
3230 echo "$as_me:$LINENO: result: $CC" >&5
3231 echo "${ECHO_T}$CC" >&6
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3238 if test -z "$ac_cv_prog_CC"; then
3240 # Extract the first word of "gcc", so it can be a program name with args.
3241 set dummy gcc; ac_word=$2
3242 echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if test -n "$ac_ct_CC"; then
3248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_ac_ct_CC="gcc"
3258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3267 if test -n "$ac_ct_CC"; then
3268 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3269 echo "${ECHO_T}$ac_ct_CC" >&6
3271 echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3280 if test -z "$CC"; then
3281 if test -n "$ac_tool_prefix"; then
3282 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3283 set dummy ${ac_tool_prefix}cc; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_CC+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_CC="${ac_tool_prefix}cc"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 if test -n "$CC"; then
3310 echo "$as_me:$LINENO: result: $CC" >&5
3311 echo "${ECHO_T}$CC" >&6
3313 echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3318 if test -z "$ac_cv_prog_CC"; then
3320 # Extract the first word of "cc", so it can be a program name with args.
3321 set dummy cc; ac_word=$2
3322 echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 if test -n "$ac_ct_CC"; then
3328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_ac_ct_CC="cc"
3338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3347 if test -n "$ac_ct_CC"; then
3348 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3349 echo "${ECHO_T}$ac_ct_CC" >&6
3351 echo "$as_me:$LINENO: result: no" >&5
3352 echo "${ECHO_T}no" >&6
3361 if test -z "$CC"; then
3362 # Extract the first word of "cc", so it can be a program name with args.
3363 set dummy cc; ac_word=$2
3364 echo "$as_me:$LINENO: checking for $ac_word" >&5
3365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3366 if test "${ac_cv_prog_CC+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3381 ac_prog_rejected=yes
3385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 if test $ac_prog_rejected = yes; then
3392 # We found a bogon in the path, so make sure we never use it.
3393 set dummy $ac_cv_prog_CC
3395 if test $# != 0; then
3396 # We chose a different compiler from the bogus one.
3397 # However, it has the same basename, so the bogon will be chosen
3398 # first if we set CC to just the basename; use the full file name.
3400 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3406 if test -n "$CC"; then
3407 echo "$as_me:$LINENO: result: $CC" >&5
3408 echo "${ECHO_T}$CC" >&6
3410 echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3415 if test -z "$CC"; then
3416 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421 echo "$as_me:$LINENO: checking for $ac_word" >&5
3422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3423 if test "${ac_cv_prog_CC+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 if test -n "$CC"; then
3447 echo "$as_me:$LINENO: result: $CC" >&5
3448 echo "${ECHO_T}$CC" >&6
3450 echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3454 test -n "$CC" && break
3457 if test -z "$CC"; then
3461 # Extract the first word of "$ac_prog", so it can be a program name with args.
3462 set dummy $ac_prog; ac_word=$2
3463 echo "$as_me:$LINENO: checking for $ac_word" >&5
3464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 if test -n "$ac_ct_CC"; then
3469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_ac_ct_CC="$ac_prog"
3479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3488 if test -n "$ac_ct_CC"; then
3489 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3490 echo "${ECHO_T}$ac_ct_CC" >&6
3492 echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6
3496 test -n "$ac_ct_CC" && break
3505 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3506 See \`config.log' for more details." >&5
3507 echo "$as_me: error: no acceptable C compiler found in \$PATH
3508 See \`config.log' for more details." >&2;}
3509 { (exit 1); exit 1; }; }
3511 # Provide some information about the compiler.
3512 echo "$as_me:$LINENO:" \
3513 "checking for C compiler version" >&5
3514 ac_compiler=`set X $ac_compile; echo $2`
3515 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3516 (eval $ac_compiler --version </dev/null >&5) 2>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }
3520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3521 (eval $ac_compiler -v </dev/null >&5) 2>&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }
3525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3526 (eval $ac_compiler -V </dev/null >&5) 2>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3546 ac_clean_files_save=$ac_clean_files
3547 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3548 # Try to create an executable without -o first, disregard a.out.
3549 # It will help us diagnose broken compilers, and finding out an intuition
3551 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3552 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3553 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3554 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3555 (eval $ac_link_default) 2>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; then
3559 # Find the output, starting from the most likely. This scheme is
3560 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3563 # Be careful to initialize this variable, since it used to be cached.
3564 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3566 # b.out is created by i960 compilers.
3567 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3569 test -f "$ac_file" || continue
3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3574 # This is the source file.
3577 # We found the default executable, but exeext='' is most
3581 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3582 # FIXME: I believe we export ac_cv_exeext for Libtool,
3583 # but it would be cool to find out if it's true. Does anybody
3584 # maintain Libtool? --akim.
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3596 See \`config.log' for more details." >&5
3597 echo "$as_me: error: C compiler cannot create executables
3598 See \`config.log' for more details." >&2;}
3599 { (exit 77); exit 77; }; }
3602 ac_exeext=$ac_cv_exeext
3603 echo "$as_me:$LINENO: result: $ac_file" >&5
3604 echo "${ECHO_T}$ac_file" >&6
3606 # Check the compiler produces executables we can run. If not, either
3607 # the compiler is broken, or we cross compile.
3608 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3609 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3610 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3611 # If not cross compiling, check that we can run a simple program.
3612 if test "$cross_compiling" != yes; then
3613 if { ac_try='./$ac_file'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3621 if test "$cross_compiling" = maybe; then
3624 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3625 If you meant to cross compile, use \`--host'.
3626 See \`config.log' for more details." >&5
3627 echo "$as_me: error: cannot run C compiled programs.
3628 If you meant to cross compile, use \`--host'.
3629 See \`config.log' for more details." >&2;}
3630 { (exit 1); exit 1; }; }
3634 echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6
3637 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3638 ac_clean_files=$ac_clean_files_save
3639 # Check the compiler produces executables we can run. If not, either
3640 # the compiler is broken, or we cross compile.
3641 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3642 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3643 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3644 echo "${ECHO_T}$cross_compiling" >&6
3646 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3647 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649 (eval $ac_link) 2>&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; then
3653 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3654 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3655 # work properly (i.e., refer to `conftest.exe'), while it won't with
3657 for ac_file in conftest.exe conftest conftest.*; do
3658 test -f "$ac_file" || continue
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3661 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3668 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3669 See \`config.log' for more details." >&5
3670 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3671 See \`config.log' for more details." >&2;}
3672 { (exit 1); exit 1; }; }
3675 rm -f conftest$ac_cv_exeext
3676 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3677 echo "${ECHO_T}$ac_cv_exeext" >&6
3679 rm -f conftest.$ac_ext
3680 EXEEXT=$ac_cv_exeext
3682 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3683 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3684 if test "${ac_cv_objext+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 cat >conftest.$ac_ext <<_ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3702 rm -f conftest.o conftest.obj
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; then
3708 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3720 See \`config.log' for more details." >&5
3721 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3722 See \`config.log' for more details." >&2;}
3723 { (exit 1); exit 1; }; }
3726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3728 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3729 echo "${ECHO_T}$ac_cv_objext" >&6
3730 OBJEXT=$ac_cv_objext
3732 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3733 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3734 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 cat >conftest.$ac_ext <<_ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3755 rm -f conftest.$ac_objext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757 (eval $ac_compile) 2>conftest.er1
3759 grep -v '^ *+' conftest.er1 >conftest.err
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -z "$ac_c_werror_flag"
3765 || test ! -s conftest.err'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; } &&
3771 { ac_try='test -s conftest.$ac_objext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3785 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3788 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3789 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3790 GCC=`test $ac_compiler_gnu = yes && echo yes`
3791 ac_test_CFLAGS=${CFLAGS+set}
3792 ac_save_CFLAGS=$CFLAGS
3794 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3795 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3796 if test "${ac_cv_prog_cc_g+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 cat >conftest.$ac_ext <<_ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3814 rm -f conftest.$ac_objext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>conftest.er1
3818 grep -v '^ *+' conftest.er1 >conftest.err
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -z "$ac_c_werror_flag"
3824 || test ! -s conftest.err'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3845 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3846 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3847 if test "$ac_test_CFLAGS" = set; then
3848 CFLAGS=$ac_save_CFLAGS
3849 elif test $ac_cv_prog_cc_g = yes; then
3850 if test "$GCC" = yes; then
3856 if test "$GCC" = yes; then
3862 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3863 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3864 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 ac_cv_prog_cc_stdc=no
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3877 #include <sys/types.h>
3878 #include <sys/stat.h>
3879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3880 struct buf { int x; };
3881 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3882 static char *e (p, i)
3888 static char *f (char * (*g) (char **, int), char **p, ...)
3893 s = g (p, va_arg (v,int));
3898 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3899 function prototypes and stuff, but not '\xHH' hex character constants.
3900 These don't provoke an error unfortunately, instead are silently treated
3901 as 'x'. The following induces an error, until -std1 is added to get
3902 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3903 array size at least. It's necessary to write '\x00'==0 to get something
3904 that's true only with -std1. */
3905 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3907 int test (int i, double x);
3908 struct s1 {int (*f) (int a);};
3909 struct s2 {int (*f) (double a);};
3910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3916 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3921 # Don't try gcc -ansi; that turns off useful extensions and
3922 # breaks some systems' header files.
3923 # AIX -qlanglvl=ansi
3924 # Ultrix and OSF/1 -std1
3925 # HP-UX 10.20 and later -Ae
3926 # HP-UX older versions -Aa -D_HPUX_SOURCE
3927 # SVR4 -Xc -D__EXTENSIONS__
3928 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3930 CC="$ac_save_CC $ac_arg"
3931 rm -f conftest.$ac_objext
3932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933 (eval $ac_compile) 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } &&
3940 { ac_try='test -z "$ac_c_werror_flag"
3941 || test ! -s conftest.err'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; } &&
3947 { ac_try='test -s conftest.$ac_objext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3953 ac_cv_prog_cc_stdc=$ac_arg
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3960 rm -f conftest.err conftest.$ac_objext
3962 rm -f conftest.$ac_ext conftest.$ac_objext
3967 case "x$ac_cv_prog_cc_stdc" in
3969 echo "$as_me:$LINENO: result: none needed" >&5
3970 echo "${ECHO_T}none needed" >&6 ;;
3972 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3973 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3974 CC="$CC $ac_cv_prog_cc_stdc" ;;
3977 # Some people use a C++ compiler to compile C. Since we use `exit',
3978 # in C++ we need to declare it. In case someone uses the same compiler
3979 # for both compiling C and C++ we need to have the C++ compiler decide
3980 # the declaration of exit, since it's the most demanding environment.
3981 cat >conftest.$ac_ext <<_ACEOF
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>conftest.er1
3990 grep -v '^ *+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -z "$ac_c_werror_flag"
3996 || test ! -s conftest.err'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; } &&
4002 { ac_try='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 for ac_declaration in \
4010 'extern "C" void std::exit (int) throw (); using std::exit;' \
4011 'extern "C" void std::exit (int); using std::exit;' \
4012 'extern "C" void exit (int) throw ();' \
4013 'extern "C" void exit (int);' \
4016 cat >conftest.$ac_ext <<_ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag"
4042 || test ! -s conftest.err'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; } &&
4048 { ac_try='test -s conftest.$ac_objext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4077 rm -f conftest.$ac_objext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4079 (eval $ac_compile) 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag"
4087 || test ! -s conftest.err'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4108 if test -n "$ac_declaration"; then
4109 echo '#ifdef __cplusplus' >>confdefs.h
4110 echo $ac_declaration >>confdefs.h
4111 echo '#endif' >>confdefs.h
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 # Find a good install program. We prefer a C program (faster),
4127 # so one script is as good as another. But avoid the broken or
4128 # incompatible versions:
4129 # SysV /etc/install, /usr/sbin/install
4130 # SunOS /usr/etc/install
4131 # IRIX /sbin/install
4133 # AmigaOS /C/install, which installs bootblocks on floppy discs
4134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4137 # OS/2's system install, which has a completely different semantic
4138 # ./install, which can be erroneously created by make from ./install.sh.
4139 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4140 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4141 if test -z "$INSTALL"; then
4142 if test "${ac_cv_path_install+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 test -z "$as_dir" && as_dir=.
4150 # Account for people who put trailing slashes in PATH elements.
4152 ./ | .// | /cC/* | \
4153 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4154 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4157 # OSF1 and SCO ODT 3.0 have their own names for install.
4158 # Don't use installbsd from OSF since it installs stuff as root
4160 for ac_prog in ginstall scoinst install; do
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4163 if test $ac_prog = install &&
4164 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4165 # AIX install. It has an incompatible calling convention.
4167 elif test $ac_prog = install &&
4168 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4169 # program-specific install script used by HP pwplus--don't use.
4172 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4184 if test "${ac_cv_path_install+set}" = set; then
4185 INSTALL=$ac_cv_path_install
4187 # As a last resort, use the slow shell script. We don't cache a
4188 # path for INSTALL within a source directory, because that will
4189 # break other packages using the cache if that directory is
4190 # removed, or if the path is relative.
4191 INSTALL=$ac_install_sh
4194 echo "$as_me:$LINENO: result: $INSTALL" >&5
4195 echo "${ECHO_T}$INSTALL" >&6
4197 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4198 # It thinks the first close brace ends the variable substitution.
4199 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4201 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4203 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4206 # Put a plausible default for CC_FOR_BUILD in Makefile.
4207 if test "x$cross_compiling" = "xno"; then
4208 CC_FOR_BUILD='$(CC)'
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4221 echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4223 if test "${ac_cv_prog_RANLIB+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 if test -n "$RANLIB"; then
4227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 RANLIB=$ac_cv_prog_RANLIB
4246 if test -n "$RANLIB"; then
4247 echo "$as_me:$LINENO: result: $RANLIB" >&5
4248 echo "${ECHO_T}$RANLIB" >&6
4250 echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4255 if test -z "$ac_cv_prog_RANLIB"; then
4256 ac_ct_RANLIB=$RANLIB
4257 # Extract the first word of "ranlib", so it can be a program name with args.
4258 set dummy ranlib; ac_word=$2
4259 echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 if test -n "$ac_ct_RANLIB"; then
4265 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_ac_ct_RANLIB="ranlib"
4275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4284 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4285 if test -n "$ac_ct_RANLIB"; then
4286 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4287 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4293 RANLIB=$ac_ct_RANLIB
4295 RANLIB="$ac_cv_prog_RANLIB"
4310 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4311 unistd.h values.h sys/param.h
4313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4315 echo "$as_me:$LINENO: checking for $ac_header" >&5
4316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4323 # Is the header compilable?
4324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4326 cat >conftest.$ac_ext <<_ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 $ac_includes_default
4333 #include <$ac_header>
4335 rm -f conftest.$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337 (eval $ac_compile) 2>conftest.er1
4339 grep -v '^ *+' conftest.er1 >conftest.err
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try='test -z "$ac_c_werror_flag"
4345 || test ! -s conftest.err'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; } &&
4351 { ac_try='test -s conftest.$ac_objext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_header_compiler=yes
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 ac_header_compiler=no
4364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4366 echo "${ECHO_T}$ac_header_compiler" >&6
4368 # Is the header present?
4369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <$ac_header>
4379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } >/dev/null; then
4387 if test -s conftest.err; then
4388 ac_cpp_err=$ac_c_preproc_warn_flag
4389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4396 if test -z "$ac_cpp_err"; then
4397 ac_header_preproc=yes
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 ac_header_preproc=no
4404 rm -f conftest.err conftest.$ac_ext
4405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4406 echo "${ECHO_T}$ac_header_preproc" >&6
4408 # So? What about this header?
4409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4415 ac_header_preproc=yes
4418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4432 ## ------------------------------------------ ##
4433 ## Report this to the AC_PACKAGE_NAME lists. ##
4434 ## ------------------------------------------ ##
4437 sed "s/^/$as_me: WARNING: /" >&2
4440 echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 eval "$as_ac_Header=\$ac_header_preproc"
4447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4452 cat >>confdefs.h <<_ACEOF
4453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4470 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4471 __argz_count __argz_stringify __argz_next
4473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4474 echo "$as_me:$LINENO: checking for $ac_func" >&5
4475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4476 if eval "test \"\${$as_ac_var+set}\" = set"; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4487 #define $ac_func innocuous_$ac_func
4489 /* System header to define __stub macros and hopefully few prototypes,
4490 which can conflict with char $ac_func (); below.
4491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4492 <limits.h> exists even on freestanding compilers. */
4495 # include <limits.h>
4497 # include <assert.h>
4502 /* Override any gcc2 internal prototype to avoid an error. */
4507 /* We use char because int might match the return type of a gcc2
4508 builtin and then its argument prototype would still apply. */
4510 /* The GNU C library defines this for functions which it implements
4511 to always fail with ENOSYS. Some functions are actually named
4512 something starting with __ and the normal name is an alias. */
4513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4516 char (*f) () = $ac_func;
4525 return f != $ac_func;
4530 rm -f conftest.$ac_objext conftest$ac_exeext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4532 (eval $ac_link) 2>conftest.er1
4534 grep -v '^ *+' conftest.er1 >conftest.err
4536 cat conftest.err >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } &&
4539 { ac_try='test -z "$ac_c_werror_flag"
4540 || test ! -s conftest.err'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; } &&
4546 { ac_try='test -s conftest$ac_exeext'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 eval "$as_ac_var=yes"
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4557 eval "$as_ac_var=no"
4559 rm -f conftest.err conftest.$ac_objext \
4560 conftest$ac_exeext conftest.$ac_ext
4562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4564 if test `eval echo '${'$as_ac_var'}'` = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4573 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4575 for ac_func in stpcpy
4577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4578 echo "$as_me:$LINENO: checking for $ac_func" >&5
4579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4580 if eval "test \"\${$as_ac_var+set}\" = set"; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4591 #define $ac_func innocuous_$ac_func
4593 /* System header to define __stub macros and hopefully few prototypes,
4594 which can conflict with char $ac_func (); below.
4595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4596 <limits.h> exists even on freestanding compilers. */
4599 # include <limits.h>
4601 # include <assert.h>
4606 /* Override any gcc2 internal prototype to avoid an error. */
4611 /* We use char because int might match the return type of a gcc2
4612 builtin and then its argument prototype would still apply. */
4614 /* The GNU C library defines this for functions which it implements
4615 to always fail with ENOSYS. Some functions are actually named
4616 something starting with __ and the normal name is an alias. */
4617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4620 char (*f) () = $ac_func;
4629 return f != $ac_func;
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4636 (eval $ac_link) 2>conftest.er1
4638 grep -v '^ *+' conftest.er1 >conftest.err
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try='test -z "$ac_c_werror_flag"
4644 || test ! -s conftest.err'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; } &&
4650 { ac_try='test -s conftest$ac_exeext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 eval "$as_ac_var=yes"
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661 eval "$as_ac_var=no"
4663 rm -f conftest.err conftest.$ac_objext \
4664 conftest$ac_exeext conftest.$ac_ext
4666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4668 if test `eval echo '${'$as_ac_var'}'` = yes; then
4669 cat >>confdefs.h <<_ACEOF
4670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4677 if test "${ac_cv_func_stpcpy}" = "yes"; then
4678 cat >>confdefs.h <<\_ACEOF
4679 #define HAVE_STPCPY 1
4684 if test $ac_cv_header_locale_h = yes; then
4685 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4686 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4687 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 cat >conftest.$ac_ext <<_ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4705 rm -f conftest.$ac_objext conftest$ac_exeext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4707 (eval $ac_link) 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_c_werror_flag"
4715 || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest$ac_exeext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 am_cv_val_LC_MESSAGES=yes
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 am_cv_val_LC_MESSAGES=no
4734 rm -f conftest.err conftest.$ac_objext \
4735 conftest$ac_exeext conftest.$ac_ext
4737 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4738 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4739 if test $am_cv_val_LC_MESSAGES = yes; then
4740 cat >>confdefs.h <<\_ACEOF
4741 #define HAVE_LC_MESSAGES 1
4746 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4747 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4748 # Check whether --enable-nls or --disable-nls was given.
4749 if test "${enable_nls+set}" = set; then
4750 enableval="$enable_nls"
4755 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4756 echo "${ECHO_T}$USE_NLS" >&6
4759 USE_INCLUDED_LIBINTL=no
4761 if test "$USE_NLS" = "yes"; then
4762 cat >>confdefs.h <<\_ACEOF
4763 #define ENABLE_NLS 1
4766 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4767 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4769 # Check whether --with-included-gettext or --without-included-gettext was given.
4770 if test "${with_included_gettext+set}" = set; then
4771 withval="$with_included_gettext"
4772 nls_cv_force_use_gnu_gettext=$withval
4774 nls_cv_force_use_gnu_gettext=no
4776 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4777 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4779 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4780 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4782 nls_cv_header_libgt=
4785 if test "${ac_cv_header_libintl_h+set}" = set; then
4786 echo "$as_me:$LINENO: checking for libintl.h" >&5
4787 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4788 if test "${ac_cv_header_libintl_h+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4792 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4794 # Is the header compilable?
4795 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4796 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4797 cat >conftest.$ac_ext <<_ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 $ac_includes_default
4804 #include <libintl.h>
4806 rm -f conftest.$ac_objext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808 (eval $ac_compile) 2>conftest.er1
4810 grep -v '^ *+' conftest.er1 >conftest.err
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -z "$ac_c_werror_flag"
4816 || test ! -s conftest.err'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; } &&
4822 { ac_try='test -s conftest.$ac_objext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_header_compiler=yes
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 ac_header_compiler=no
4835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4837 echo "${ECHO_T}$ac_header_compiler" >&6
4839 # Is the header present?
4840 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4841 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #include <libintl.h>
4850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4853 grep -v '^ *+' conftest.er1 >conftest.err
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev/null; then
4858 if test -s conftest.err; then
4859 ac_cpp_err=$ac_c_preproc_warn_flag
4860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4867 if test -z "$ac_cpp_err"; then
4868 ac_header_preproc=yes
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4873 ac_header_preproc=no
4875 rm -f conftest.err conftest.$ac_ext
4876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4877 echo "${ECHO_T}$ac_header_preproc" >&6
4879 # So? What about this header?
4880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4882 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4883 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4885 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4886 ac_header_preproc=yes
4889 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4890 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4892 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4894 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4895 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4896 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4898 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4899 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4900 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4903 ## ------------------------------------------ ##
4904 ## Report this to the AC_PACKAGE_NAME lists. ##
4905 ## ------------------------------------------ ##
4908 sed "s/^/$as_me: WARNING: /" >&2
4911 echo "$as_me:$LINENO: checking for libintl.h" >&5
4912 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4913 if test "${ac_cv_header_libintl_h+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 ac_cv_header_libintl_h=$ac_header_preproc
4918 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4919 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4922 if test $ac_cv_header_libintl_h = yes; then
4923 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4924 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4925 if test "${gt_cv_func_gettext_libc+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 cat >conftest.$ac_ext <<_ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4934 #include <libintl.h>
4938 return (int) gettext ("")
4943 rm -f conftest.$ac_objext conftest$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945 (eval $ac_link) 2>conftest.er1
4947 grep -v '^ *+' conftest.er1 >conftest.err
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -z "$ac_c_werror_flag"
4953 || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try='test -s conftest$ac_exeext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 gt_cv_func_gettext_libc=yes
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 gt_cv_func_gettext_libc=no
4972 rm -f conftest.err conftest.$ac_objext \
4973 conftest$ac_exeext conftest.$ac_ext
4975 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4976 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
4978 if test "$gt_cv_func_gettext_libc" != "yes"; then
4979 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4980 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4981 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 ac_check_lib_save_LIBS=$LIBS
4986 cat >conftest.$ac_ext <<_ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4993 /* Override any gcc2 internal prototype to avoid an error. */
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
4999 char bindtextdomain ();
5008 rm -f conftest.$ac_objext conftest$ac_exeext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010 (eval $ac_link) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1 >conftest.err
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest$ac_exeext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_lib_intl_bindtextdomain=yes
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5035 ac_cv_lib_intl_bindtextdomain=no
5037 rm -f conftest.err conftest.$ac_objext \
5038 conftest$ac_exeext conftest.$ac_ext
5039 LIBS=$ac_check_lib_save_LIBS
5041 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5042 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5043 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5044 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5045 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5046 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5059 return (int) gettext ("")
5064 rm -f conftest.$ac_objext conftest$ac_exeext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5066 (eval $ac_link) 2>conftest.er1
5068 grep -v '^ *+' conftest.er1 >conftest.err
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_c_werror_flag"
5074 || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest$ac_exeext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 gt_cv_func_gettext_libintl=yes
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091 gt_cv_func_gettext_libintl=no
5093 rm -f conftest.err conftest.$ac_objext \
5094 conftest$ac_exeext conftest.$ac_ext
5096 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5097 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5102 if test "$gt_cv_func_gettext_libc" = "yes" \
5103 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5104 cat >>confdefs.h <<\_ACEOF
5105 #define HAVE_GETTEXT 1
5108 # Extract the first word of "msgfmt", so it can be a program name with args.
5109 set dummy msgfmt; ac_word=$2
5110 echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5112 if test "${ac_cv_path_MSGFMT+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5121 for ac_dir in $PATH; do
5122 test -z "$ac_dir" && ac_dir=.
5123 if test -f $ac_dir/$ac_word; then
5124 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5125 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5131 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5135 MSGFMT="$ac_cv_path_MSGFMT"
5136 if test -n "$MSGFMT"; then
5137 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5138 echo "${ECHO_T}$MSGFMT" >&6
5140 echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6
5143 if test "$MSGFMT" != "no"; then
5145 for ac_func in dcgettext
5147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5148 echo "$as_me:$LINENO: checking for $ac_func" >&5
5149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5150 if eval "test \"\${$as_ac_var+set}\" = set"; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 cat >conftest.$ac_ext <<_ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5161 #define $ac_func innocuous_$ac_func
5163 /* System header to define __stub macros and hopefully few prototypes,
5164 which can conflict with char $ac_func (); below.
5165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 <limits.h> exists even on freestanding compilers. */
5169 # include <limits.h>
5171 # include <assert.h>
5176 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */
5184 /* The GNU C library defines this for functions which it implements
5185 to always fail with ENOSYS. Some functions are actually named
5186 something starting with __ and the normal name is an alias. */
5187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5190 char (*f) () = $ac_func;
5199 return f != $ac_func;
5204 rm -f conftest.$ac_objext conftest$ac_exeext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206 (eval $ac_link) 2>conftest.er1
5208 grep -v '^ *+' conftest.er1 >conftest.err
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 eval "$as_ac_var=yes"
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 eval "$as_ac_var=no"
5233 rm -f conftest.err conftest.$ac_objext \
5234 conftest$ac_exeext conftest.$ac_ext
5236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5238 if test `eval echo '${'$as_ac_var'}'` = yes; then
5239 cat >>confdefs.h <<_ACEOF
5240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5246 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5247 set dummy gmsgfmt; ac_word=$2
5248 echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5250 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5276 GMSGFMT=$ac_cv_path_GMSGFMT
5278 if test -n "$GMSGFMT"; then
5279 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5280 echo "${ECHO_T}$GMSGFMT" >&6
5282 echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5286 # Extract the first word of "xgettext", so it can be a program name with args.
5287 set dummy xgettext; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5299 for ac_dir in $PATH; do
5300 test -z "$ac_dir" && ac_dir=.
5301 if test -f $ac_dir/$ac_word; then
5302 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5303 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5309 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5313 XGETTEXT="$ac_cv_path_XGETTEXT"
5314 if test -n "$XGETTEXT"; then
5315 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5316 echo "${ECHO_T}$XGETTEXT" >&6
5318 echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5322 cat >conftest.$ac_ext <<_ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5332 extern int _nl_msg_cat_cntr;
5333 return _nl_msg_cat_cntr
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5340 (eval $ac_link) 2>conftest.er1
5342 grep -v '^ *+' conftest.er1 >conftest.err
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag"
5348 || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try='test -s conftest$ac_exeext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5369 rm -f conftest.err conftest.$ac_objext \
5370 conftest$ac_exeext conftest.$ac_ext
5380 if test "$CATOBJEXT" = "NONE"; then
5381 nls_cv_use_gnu_gettext=yes
5385 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5386 INTLOBJS="\$(GETTOBJS)"
5387 # Extract the first word of "msgfmt", so it can be a program name with args.
5388 set dummy msgfmt; ac_word=$2
5389 echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5391 if test "${ac_cv_path_MSGFMT+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5400 for ac_dir in $PATH; do
5401 test -z "$ac_dir" && ac_dir=.
5402 if test -f $ac_dir/$ac_word; then
5403 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5404 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5410 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5414 MSGFMT="$ac_cv_path_MSGFMT"
5415 if test -n "$MSGFMT"; then
5416 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5417 echo "${ECHO_T}$MSGFMT" >&6
5419 echo "$as_me:$LINENO: result: no" >&5
5420 echo "${ECHO_T}no" >&6
5423 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5424 set dummy gmsgfmt; ac_word=$2
5425 echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5453 GMSGFMT=$ac_cv_path_GMSGFMT
5455 if test -n "$GMSGFMT"; then
5456 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5457 echo "${ECHO_T}$GMSGFMT" >&6
5459 echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6
5463 # Extract the first word of "xgettext", so it can be a program name with args.
5464 set dummy xgettext; ac_word=$2
5465 echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5476 for ac_dir in $PATH; do
5477 test -z "$ac_dir" && ac_dir=.
5478 if test -f $ac_dir/$ac_word; then
5479 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5480 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5486 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5490 XGETTEXT="$ac_cv_path_XGETTEXT"
5491 if test -n "$XGETTEXT"; then
5492 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5493 echo "${ECHO_T}$XGETTEXT" >&6
5495 echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6
5500 USE_INCLUDED_LIBINTL=yes
5504 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5506 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5507 nls_cv_header_intl=libintl.h
5508 nls_cv_header_libgt=libgettext.h
5511 if test "$XGETTEXT" != ":"; then
5512 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5515 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5516 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5521 # We need to process the po/ directory.
5525 nls_cv_header_intl=libintl.h
5526 nls_cv_header_libgt=libgettext.h
5529 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5530 # because some of the sources are only built for this goal.
5531 if test "$PACKAGE" = gettext; then
5533 USE_INCLUDED_LIBINTL=yes
5536 for lang in $ALL_LINGUAS; do
5537 GMOFILES="$GMOFILES $lang.gmo"
5538 POFILES="$POFILES $lang.po"
5554 if test "x$CATOBJEXT" != "x"; then
5555 if test "x$ALL_LINGUAS" = "x"; then
5558 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5559 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5561 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5562 case "$ALL_LINGUAS" in
5563 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5566 LINGUAS=$NEW_LINGUAS
5567 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5568 echo "${ECHO_T}$LINGUAS" >&6
5571 if test -n "$LINGUAS"; then
5572 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5576 if test $ac_cv_header_locale_h = yes; then
5577 INCLUDE_LOCALE_H="#include <locale.h>"
5580 /* The system does not provide the header <locale.h>. Take care yourself. */"
5584 if test -f $srcdir/po2tbl.sed.in; then
5585 if test "$CATOBJEXT" = ".cat"; then
5586 if test "${ac_cv_header_linux_version_h+set}" = set; then
5587 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5588 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5589 if test "${ac_cv_header_linux_version_h+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5593 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5595 # Is the header compilable?
5596 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5597 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 $ac_includes_default
5605 #include <linux/version.h>
5607 rm -f conftest.$ac_objext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609 (eval $ac_compile) 2>conftest.er1
5611 grep -v '^ *+' conftest.er1 >conftest.err
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -z "$ac_c_werror_flag"
5617 || test ! -s conftest.err'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; } &&
5623 { ac_try='test -s conftest.$ac_objext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_header_compiler=yes
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5634 ac_header_compiler=no
5636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5638 echo "${ECHO_T}$ac_header_compiler" >&6
5640 # Is the header present?
5641 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5642 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5643 cat >conftest.$ac_ext <<_ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <linux/version.h>
5651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5654 grep -v '^ *+' conftest.er1 >conftest.err
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } >/dev/null; then
5659 if test -s conftest.err; then
5660 ac_cpp_err=$ac_c_preproc_warn_flag
5661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5668 if test -z "$ac_cpp_err"; then
5669 ac_header_preproc=yes
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_header_preproc=no
5676 rm -f conftest.err conftest.$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5678 echo "${ECHO_T}$ac_header_preproc" >&6
5680 # So? What about this header?
5681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5683 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5684 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5685 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5686 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5687 ac_header_preproc=yes
5690 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5691 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5692 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5693 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5694 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5695 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5697 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5698 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5699 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5700 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5701 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5704 ## ------------------------------------------ ##
5705 ## Report this to the AC_PACKAGE_NAME lists. ##
5706 ## ------------------------------------------ ##
5709 sed "s/^/$as_me: WARNING: /" >&2
5712 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5713 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5714 if test "${ac_cv_header_linux_version_h+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 ac_cv_header_linux_version_h=$ac_header_preproc
5719 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5720 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5723 if test $ac_cv_header_linux_version_h = yes; then
5731 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5733 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5734 $srcdir/po2tbl.sed.in > po2tbl.sed
5737 if test "$PACKAGE" = "gettext"; then
5747 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5753 if test -d $srcdir/po; then
5754 test -d po || mkdir po
5755 if test "x$srcdir" != "x."; then
5756 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5757 posrcprefix="$srcdir/"
5759 posrcprefix="../$srcdir/"
5765 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5766 < $srcdir/po/POTFILES.in > po/POTFILES
5770 # Check for common headers.
5771 # FIXME: Seems to me this can cause problems for i386-windows hosts.
5772 # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
5778 for ac_header in stdlib.h string.h strings.h unistd.h time.h
5780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5782 echo "$as_me:$LINENO: checking for $ac_header" >&5
5783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5790 # Is the header compilable?
5791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5793 cat >conftest.$ac_ext <<_ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 $ac_includes_default
5800 #include <$ac_header>
5802 rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>conftest.er1
5806 grep -v '^ *+' conftest.er1 >conftest.err
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 ac_header_compiler=yes
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 ac_header_compiler=no
5831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5833 echo "${ECHO_T}$ac_header_compiler" >&6
5835 # Is the header present?
5836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5838 cat >conftest.$ac_ext <<_ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <$ac_header>
5846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5849 grep -v '^ *+' conftest.er1 >conftest.err
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } >/dev/null; then
5854 if test -s conftest.err; then
5855 ac_cpp_err=$ac_c_preproc_warn_flag
5856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5863 if test -z "$ac_cpp_err"; then
5864 ac_header_preproc=yes
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 ac_header_preproc=no
5871 rm -f conftest.err conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5873 echo "${ECHO_T}$ac_header_preproc" >&6
5875 # So? What about this header?
5876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5882 ac_header_preproc=yes
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5899 ## ------------------------------------------ ##
5900 ## Report this to the AC_PACKAGE_NAME lists. ##
5901 ## ------------------------------------------ ##
5904 sed "s/^/$as_me: WARNING: /" >&2
5907 echo "$as_me:$LINENO: checking for $ac_header" >&5
5908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 eval "$as_ac_Header=\$ac_header_preproc"
5914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5919 cat >>confdefs.h <<_ACEOF
5920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5929 for ac_header in sys/time.h sys/resource.h
5931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5933 echo "$as_me:$LINENO: checking for $ac_header" >&5
5934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5941 # Is the header compilable?
5942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5944 cat >conftest.$ac_ext <<_ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 $ac_includes_default
5951 #include <$ac_header>
5953 rm -f conftest.$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>conftest.er1
5957 grep -v '^ *+' conftest.er1 >conftest.err
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -z "$ac_c_werror_flag"
5963 || test ! -s conftest.err'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest.$ac_objext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5975 ac_header_compiler=yes
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5980 ac_header_compiler=no
5982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5984 echo "${ECHO_T}$ac_header_compiler" >&6
5986 # Is the header present?
5987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5989 cat >conftest.$ac_ext <<_ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 #include <$ac_header>
5997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6000 grep -v '^ *+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } >/dev/null; then
6005 if test -s conftest.err; then
6006 ac_cpp_err=$ac_c_preproc_warn_flag
6007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6014 if test -z "$ac_cpp_err"; then
6015 ac_header_preproc=yes
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6020 ac_header_preproc=no
6022 rm -f conftest.err conftest.$ac_ext
6023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6024 echo "${ECHO_T}$ac_header_preproc" >&6
6026 # So? What about this header?
6027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6033 ac_header_preproc=yes
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6050 ## ------------------------------------------ ##
6051 ## Report this to the AC_PACKAGE_NAME lists. ##
6052 ## ------------------------------------------ ##
6055 sed "s/^/$as_me: WARNING: /" >&2
6058 echo "$as_me:$LINENO: checking for $ac_header" >&5
6059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 eval "$as_ac_Header=\$ac_header_preproc"
6065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6070 cat >>confdefs.h <<_ACEOF
6071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6080 for ac_header in fcntl.h fpu_control.h
6082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6084 echo "$as_me:$LINENO: checking for $ac_header" >&5
6085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6092 # Is the header compilable?
6093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6095 cat >conftest.$ac_ext <<_ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 $ac_includes_default
6102 #include <$ac_header>
6104 rm -f conftest.$ac_objext
6105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6106 (eval $ac_compile) 2>conftest.er1
6108 grep -v '^ *+' conftest.er1 >conftest.err
6110 cat conftest.err >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } &&
6113 { ac_try='test -z "$ac_c_werror_flag"
6114 || test ! -s conftest.err'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; } &&
6120 { ac_try='test -s conftest.$ac_objext'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; }; then
6126 ac_header_compiler=yes
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6131 ac_header_compiler=no
6133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6135 echo "${ECHO_T}$ac_header_compiler" >&6
6137 # Is the header present?
6138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146 #include <$ac_header>
6148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6151 grep -v '^ *+' conftest.er1 >conftest.err
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } >/dev/null; then
6156 if test -s conftest.err; then
6157 ac_cpp_err=$ac_c_preproc_warn_flag
6158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6165 if test -z "$ac_cpp_err"; then
6166 ac_header_preproc=yes
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 ac_header_preproc=no
6173 rm -f conftest.err conftest.$ac_ext
6174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6175 echo "${ECHO_T}$ac_header_preproc" >&6
6177 # So? What about this header?
6178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6184 ac_header_preproc=yes
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6201 ## ------------------------------------------ ##
6202 ## Report this to the AC_PACKAGE_NAME lists. ##
6203 ## ------------------------------------------ ##
6206 sed "s/^/$as_me: WARNING: /" >&2
6209 echo "$as_me:$LINENO: checking for $ac_header" >&5
6210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 eval "$as_ac_Header=\$ac_header_preproc"
6216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6221 cat >>confdefs.h <<_ACEOF
6222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6232 for ac_header in dlfcn.h errno.h sys/stat.h
6234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6236 echo "$as_me:$LINENO: checking for $ac_header" >&5
6237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6244 # Is the header compilable?
6245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6247 cat >conftest.$ac_ext <<_ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 $ac_includes_default
6254 #include <$ac_header>
6256 rm -f conftest.$ac_objext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258 (eval $ac_compile) 2>conftest.er1
6260 grep -v '^ *+' conftest.er1 >conftest.err
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } &&
6265 { ac_try='test -z "$ac_c_werror_flag"
6266 || test ! -s conftest.err'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; } &&
6272 { ac_try='test -s conftest.$ac_objext'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
6278 ac_header_compiler=yes
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6283 ac_header_compiler=no
6285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6287 echo "${ECHO_T}$ac_header_compiler" >&6
6289 # Is the header present?
6290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #include <$ac_header>
6300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6303 grep -v '^ *+' conftest.er1 >conftest.err
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } >/dev/null; then
6308 if test -s conftest.err; then
6309 ac_cpp_err=$ac_c_preproc_warn_flag
6310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6317 if test -z "$ac_cpp_err"; then
6318 ac_header_preproc=yes
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 ac_header_preproc=no
6325 rm -f conftest.err conftest.$ac_ext
6326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6327 echo "${ECHO_T}$ac_header_preproc" >&6
6329 # So? What about this header?
6330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6336 ac_header_preproc=yes
6339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6353 ## ------------------------------------------ ##
6354 ## Report this to the AC_PACKAGE_NAME lists. ##
6355 ## ------------------------------------------ ##
6358 sed "s/^/$as_me: WARNING: /" >&2
6361 echo "$as_me:$LINENO: checking for $ac_header" >&5
6362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 eval "$as_ac_Header=\$ac_header_preproc"
6368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6373 cat >>confdefs.h <<_ACEOF
6374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6385 for ac_func in getrusage time sigaction __setfpucw
6387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6388 echo "$as_me:$LINENO: checking for $ac_func" >&5
6389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6390 if eval "test \"\${$as_ac_var+set}\" = set"; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 cat >conftest.$ac_ext <<_ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6401 #define $ac_func innocuous_$ac_func
6403 /* System header to define __stub macros and hopefully few prototypes,
6404 which can conflict with char $ac_func (); below.
6405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406 <limits.h> exists even on freestanding compilers. */
6409 # include <limits.h>
6411 # include <assert.h>
6416 /* Override any gcc2 internal prototype to avoid an error. */
6421 /* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6424 /* The GNU C library defines this for functions which it implements
6425 to always fail with ENOSYS. Some functions are actually named
6426 something starting with __ and the normal name is an alias. */
6427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6430 char (*f) () = $ac_func;
6439 return f != $ac_func;
6444 rm -f conftest.$ac_objext conftest$ac_exeext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>conftest.er1
6448 grep -v '^ *+' conftest.er1 >conftest.err
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_c_werror_flag"
6454 || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest$ac_exeext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 eval "$as_ac_var=yes"
6468 echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6471 eval "$as_ac_var=no"
6473 rm -f conftest.err conftest.$ac_objext \
6474 conftest$ac_exeext conftest.$ac_ext
6476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6478 if test `eval echo '${'$as_ac_var'}'` = yes; then
6479 cat >>confdefs.h <<_ACEOF
6480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6487 # Check for socket libraries
6489 echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6490 echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6491 if test "${ac_cv_lib_socket_bind+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 ac_check_lib_save_LIBS=$LIBS
6495 LIBS="-lsocket $LIBS"
6496 cat >conftest.$ac_ext <<_ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6503 /* Override any gcc2 internal prototype to avoid an error. */
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6518 rm -f conftest.$ac_objext conftest$ac_exeext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520 (eval $ac_link) 2>conftest.er1
6522 grep -v '^ *+' conftest.er1 >conftest.err
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -z "$ac_c_werror_flag"
6528 || test ! -s conftest.err'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest$ac_exeext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_lib_socket_bind=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_cv_lib_socket_bind=no
6547 rm -f conftest.err conftest.$ac_objext \
6548 conftest$ac_exeext conftest.$ac_ext
6549 LIBS=$ac_check_lib_save_LIBS
6551 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6552 echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6553 if test $ac_cv_lib_socket_bind = yes; then
6554 cat >>confdefs.h <<_ACEOF
6555 #define HAVE_LIBSOCKET 1
6558 LIBS="-lsocket $LIBS"
6563 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6564 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6565 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 ac_check_lib_save_LIBS=$LIBS
6570 cat >conftest.$ac_ext <<_ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6577 /* Override any gcc2 internal prototype to avoid an error. */
6581 /* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
6583 char gethostbyname ();
6592 rm -f conftest.$ac_objext conftest$ac_exeext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6594 (eval $ac_link) 2>conftest.er1
6596 grep -v '^ *+' conftest.er1 >conftest.err
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6601 { ac_try='test -z "$ac_c_werror_flag"
6602 || test ! -s conftest.err'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; } &&
6608 { ac_try='test -s conftest$ac_exeext'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; }; then
6614 ac_cv_lib_nsl_gethostbyname=yes
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6619 ac_cv_lib_nsl_gethostbyname=no
6621 rm -f conftest.err conftest.$ac_objext \
6622 conftest$ac_exeext conftest.$ac_ext
6623 LIBS=$ac_check_lib_save_LIBS
6625 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6626 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6627 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6628 cat >>confdefs.h <<_ACEOF
6629 #define HAVE_LIBNSL 1
6637 . ${srcdir}/../../bfd/configure.host
6641 USE_MAINTAINER_MODE=no
6642 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6643 if test "${enable_maintainer_mode+set}" = set; then
6644 enableval="$enable_maintainer_mode"
6645 case "${enableval}" in
6646 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6648 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6649 echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6650 { (exit 1); exit 1; }; }; MAINT="#" ;;
6652 if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6653 echo "Setting maintainer mode" 6>&1
6660 # Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6661 if test "${enable_sim_bswap+set}" = set; then
6662 enableval="$enable_sim_bswap"
6663 case "${enableval}" in
6664 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6665 no) sim_bswap="-DWITH_BSWAP=0";;
6666 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6667 echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6668 { (exit 1); exit 1; }; }; sim_bswap="";;
6670 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6671 echo "Setting bswap flags = $sim_bswap" 6>&1
6678 # Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6679 if test "${enable_sim_cflags+set}" = set; then
6680 enableval="$enable_sim_cflags"
6681 case "${enableval}" in
6682 yes) sim_cflags="-O2 -fomit-frame-pointer";;
6683 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6684 echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6685 { (exit 1); exit 1; }; }; sim_cflags="";;
6687 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6689 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6690 echo "Setting sim cflags = $sim_cflags" 6>&1
6697 # Check whether --enable-sim-debug or --disable-sim-debug was given.
6698 if test "${enable_sim_debug+set}" = set; then
6699 enableval="$enable_sim_debug"
6700 case "${enableval}" in
6701 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6702 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6703 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6705 if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6706 echo "Setting sim debug = $sim_debug" 6>&1
6713 # Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6714 if test "${enable_sim_stdio+set}" = set; then
6715 enableval="$enable_sim_stdio"
6716 case "${enableval}" in
6717 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6718 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
6719 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6720 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6721 { (exit 1); exit 1; }; }; sim_stdio="";;
6723 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6724 echo "Setting stdio flags = $sim_stdio" 6>&1
6731 # Check whether --enable-sim-trace or --disable-sim-trace was given.
6732 if test "${enable_sim_trace+set}" = set; then
6733 enableval="$enable_sim_trace"
6734 case "${enableval}" in
6735 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6736 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6738 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6741 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6742 if test x"$sim_trace" = x; then
6743 sim_trace="-DWITH_TRACE='(TRACE_$x"
6745 sim_trace="${sim_trace}|TRACE_$x"
6748 sim_trace="$sim_trace)'" ;;
6750 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6751 echo "Setting sim trace = $sim_trace" 6>&1
6758 # Check whether --enable-sim-profile or --disable-sim-profile was given.
6759 if test "${enable_sim_profile+set}" = set; then
6760 enableval="$enable_sim_profile"
6761 case "${enableval}" in
6762 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6763 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6765 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6768 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6769 if test x"$sim_profile" = x; then
6770 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6772 sim_profile="${sim_profile}|PROFILE_$x"
6775 sim_profile="$sim_profile)'" ;;
6777 if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6778 echo "Setting sim profile = $sim_profile" 6>&1
6781 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
6785 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6786 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6787 if test "${ac_cv_type_signal+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 cat >conftest.$ac_ext <<_ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 #include <sys/types.h>
6802 extern "C" void (*signal (int, void (*)(int)))(int);
6804 void (*signal ()) ();
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817 (eval $ac_compile) 2>conftest.er1
6819 grep -v '^ *+' conftest.er1 >conftest.err
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -z "$ac_c_werror_flag"
6825 || test ! -s conftest.err'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; } &&
6831 { ac_try='test -s conftest.$ac_objext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 ac_cv_type_signal=void
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6842 ac_cv_type_signal=int
6844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6846 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6847 echo "${ECHO_T}$ac_cv_type_signal" >&6
6849 cat >>confdefs.h <<_ACEOF
6850 #define RETSIGTYPE $ac_cv_type_signal
6860 sim_link_links=tconfig.h
6861 if test -f ${srcdir}/tconfig.in
6863 sim_link_files=tconfig.in
6865 sim_link_files=../common/tconfig.in
6868 # targ-vals.def points to the libc macro description file.
6870 *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6872 sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6873 sim_link_links="${sim_link_links} targ-vals.def"
6878 default_sim_inline=""
6879 # Check whether --enable-sim-inline or --disable-sim-inline was given.
6880 if test "${enable_sim_inline+set}" = set; then
6881 enableval="$enable_sim_inline"
6883 case "$enableval" in
6884 no) sim_inline="-DDEFAULT_INLINE=0";;
6885 0) sim_inline="-DDEFAULT_INLINE=0";;
6886 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
6887 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
6888 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6891 *_INLINE=*) new_flag="-D$x";;
6892 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6893 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
6894 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
6896 if test x"$sim_inline" = x""; then
6897 sim_inline="$new_flag"
6899 sim_inline="$sim_inline $new_flag"
6903 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6904 echo "Setting inline flags = $sim_inline" 6>&1
6908 if test "x$cross_compiling" = "xno"; then
6909 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
6910 sim_inline="${default_sim_inline}"
6911 if test x"$silent" != x"yes"; then
6912 echo "Setting inline flags = $sim_inline" 6>&1
6918 sim_inline="-DDEFAULT_INLINE=0"
6921 wire_alignment="NONSTRICT_ALIGNMENT"
6922 default_alignment=""
6924 # Check whether --enable-sim-alignment or --disable-sim-alignment was given.
6925 if test "${enable_sim_alignment+set}" = set; then
6926 enableval="$enable_sim_alignment"
6927 case "${enableval}" in
6928 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
6929 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
6930 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
6931 yes) if test x"$wire_alignment" != x; then
6932 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6934 if test x"$default_alignment" != x; then
6935 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
6937 echo "No hard-wired alignment for target $target" 1>&6
6938 sim_alignment="-DWITH_ALIGNMENT=0"
6941 no) if test x"$default_alignment" != x; then
6942 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6944 if test x"$wire_alignment" != x; then
6945 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
6947 echo "No default alignment for target $target" 1>&6
6948 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
6951 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
6952 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
6953 { (exit 1); exit 1; }; }; sim_alignment="";;
6955 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
6956 echo "Setting alignment flags = $sim_alignment" 6>&1
6959 if test x"$default_alignment" != x; then
6960 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6962 if test x"$wire_alignment" != x; then
6963 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6970 # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
6971 if test "${enable_sim_hostendian+set}" = set; then
6972 enableval="$enable_sim_hostendian"
6973 case "${enableval}" in
6974 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
6975 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6976 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
6977 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
6978 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
6979 { (exit 1); exit 1; }; }; sim_hostendian="";;
6981 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
6982 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6986 if test "x$cross_compiling" = "xno"; then
6987 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6988 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6989 if test "${ac_cv_c_bigendian+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 # See if sys/param.h defines the BYTE_ORDER macro.
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 #include <sys/types.h>
7000 #include <sys/param.h>
7005 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7013 rm -f conftest.$ac_objext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015 (eval $ac_compile) 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_c_werror_flag"
7023 || test ! -s conftest.err'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; } &&
7029 { ac_try='test -s conftest.$ac_objext'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7035 # It does; now see whether it defined to BIG_ENDIAN or not.
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <sys/types.h>
7043 #include <sys/param.h>
7048 #if BYTE_ORDER != BIG_ENDIAN
7056 rm -f conftest.$ac_objext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058 (eval $ac_compile) 2>conftest.er1
7060 grep -v '^ *+' conftest.er1 >conftest.err
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } &&
7065 { ac_try='test -z "$ac_c_werror_flag"
7066 || test ! -s conftest.err'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; } &&
7072 { ac_try='test -s conftest.$ac_objext'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 ac_cv_c_bigendian=yes
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7083 ac_cv_c_bigendian=no
7085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 # It does not; compile a test program.
7091 if test "$cross_compiling" = yes; then
7092 # try to guess the endianness by grepping values into an object file
7093 ac_cv_c_bigendian=unknown
7094 cat >conftest.$ac_ext <<_ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7101 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7102 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7103 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7104 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7105 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7109 _ascii (); _ebcdic ();
7114 rm -f conftest.$ac_objext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7116 (eval $ac_compile) 2>conftest.er1
7118 grep -v '^ *+' conftest.er1 >conftest.err
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -z "$ac_c_werror_flag"
7124 || test ! -s conftest.err'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; } &&
7130 { ac_try='test -s conftest.$ac_objext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7137 ac_cv_c_bigendian=yes
7139 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7140 if test "$ac_cv_c_bigendian" = unknown; then
7141 ac_cv_c_bigendian=no
7143 # finding both strings is unlikely to happen, but who knows?
7144 ac_cv_c_bigendian=unknown
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7163 /* Are we little or big endian? From Harbison&Steele. */
7167 char c[sizeof (long)];
7170 exit (u.c[sizeof (long) - 1] == 1);
7173 rm -f conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175 (eval $ac_link) 2>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7184 ac_cv_c_bigendian=no
7186 echo "$as_me: program exited with status $ac_status" >&5
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7191 ac_cv_c_bigendian=yes
7193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7198 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7199 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7200 case $ac_cv_c_bigendian in
7203 cat >>confdefs.h <<\_ACEOF
7204 #define WORDS_BIGENDIAN 1
7210 { { echo "$as_me:$LINENO: error: unknown endianness
7211 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7212 echo "$as_me: error: unknown endianness
7213 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7214 { (exit 1); exit 1; }; } ;;
7217 if test $ac_cv_c_bigendian = yes; then
7218 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7220 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7223 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
7227 # NOTE: Don't add -Wall or -Wunused, they both include
7228 # -Wunused-parameter which reports bogus warnings.
7229 # NOTE: If you add to this list, remember to update
7230 # gdb/doc/gdbint.texinfo.
7231 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7232 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7233 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7234 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7235 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7236 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7237 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7238 # -Woverloaded-virtual -Winline -Werror"
7239 # Check whether --enable-build-warnings or --disable-build-warnings was given.
7240 if test "${enable_build_warnings+set}" = set; then
7241 enableval="$enable_build_warnings"
7242 case "${enableval}" in
7244 no) build_warnings="-w";;
7245 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7246 build_warnings="${build_warnings} ${t}";;
7247 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7248 build_warnings="${t} ${build_warnings}";;
7249 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7251 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7252 echo "Setting compiler warning flags = $build_warnings" 6>&1
7254 fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
7255 if test "${enable_sim_build_warnings+set}" = set; then
7256 enableval="$enable_sim_build_warnings"
7257 case "${enableval}" in
7259 no) build_warnings="-w";;
7260 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7261 build_warnings="${build_warnings} ${t}";;
7262 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7263 build_warnings="${t} ${build_warnings}";;
7264 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7266 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7267 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7271 if test "x${build_warnings}" != x -a "x$GCC" = xyes
7273 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7274 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
7275 # Separate out the -Werror flag as some files just cannot be
7276 # compiled with it enabled.
7277 for w in ${build_warnings}; do
7279 -Werr*) WERROR_CFLAGS=-Werror ;;
7280 *) # Check that GCC accepts it
7281 saved_CFLAGS="$CFLAGS"
7283 cat >conftest.$ac_ext <<_ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7298 rm -f conftest.$ac_objext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7300 (eval $ac_compile) 2>conftest.er1
7302 grep -v '^ *+' conftest.er1 >conftest.err
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -z "$ac_c_werror_flag"
7308 || test ! -s conftest.err'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; } &&
7314 { ac_try='test -s conftest.$ac_objext'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7320 WARN_CFLAGS="${WARN_CFLAGS} $w"
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7327 CFLAGS="$saved_CFLAGS"
7330 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7331 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
7335 default_sim_reserved_bits="1"
7336 # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7337 if test "${enable_sim_reserved_bits+set}" = set; then
7338 enableval="$enable_sim_reserved_bits"
7339 case "${enableval}" in
7340 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
7341 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
7342 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7343 echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7344 { (exit 1); exit 1; }; }; sim_reserved_bits="";;
7346 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
7347 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7350 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
7355 # Instead of defining a `subtarget' macro, code should be checking
7356 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
7360 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
7361 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
7362 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
7363 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
7364 *) SIM_SUBTARGET="";;
7371 # Select the byte order of the target
7376 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
7377 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
7378 mips64*-*-*) default_endian=BIG_ENDIAN ;;
7379 mips16*-*-*) default_endian=BIG_ENDIAN ;;
7380 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
7381 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
7382 mips*-*-*) default_endian=BIG_ENDIAN ;;
7383 *) default_endian=BIG_ENDIAN ;;
7386 wire_endian="$mips_endian"
7387 default_endian="$default_endian"
7388 # Check whether --enable-sim-endian or --disable-sim-endian was given.
7389 if test "${enable_sim_endian+set}" = set; then
7390 enableval="$enable_sim_endian"
7391 case "${enableval}" in
7392 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
7393 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
7394 yes) if test x"$wire_endian" != x; then
7395 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7397 if test x"$default_endian" != x; then
7398 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
7400 echo "No hard-wired endian for target $target" 1>&6
7401 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
7404 no) if test x"$default_endian" != x; then
7405 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7407 if test x"$wire_endian" != x; then
7408 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
7410 echo "No default endian for target $target" 1>&6
7411 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
7414 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
7415 echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
7416 { (exit 1); exit 1; }; }; sim_endian="";;
7418 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
7419 echo "Setting endian flags = $sim_endian" 6>&1
7422 if test x"$default_endian" != x; then
7423 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7425 if test x"$wire_endian" != x; then
7426 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7436 # Select the bitsize of the target
7440 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
7441 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
7442 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
7443 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
7444 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
7445 *) mips_bitsize=64 ; mips_msb=63 ;;
7447 wire_word_bitsize="$mips_bitsize"
7448 wire_word_msb="$mips_msb"
7449 wire_address_bitsize="$mips_addr_bitsize"
7450 wire_cell_bitsize=""
7451 # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7452 if test "${enable_sim_bitsize+set}" = set; then
7453 enableval="$enable_sim_bitsize"
7455 case "${enableval}" in
7456 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7457 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7458 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7459 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7460 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7461 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7463 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7465 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7466 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7468 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7470 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
7471 echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
7472 { (exit 1); exit 1; }; } ;;
7475 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7478 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7479 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
7480 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
7481 echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
7482 { (exit 1); exit 1; }; } ;;
7485 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7488 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7489 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
7490 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
7491 echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
7492 { (exit 1); exit 1; }; } ;;
7494 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
7495 echo "Setting bitsize flags = $sim_bitsize" 6>&1
7499 if test x"$wire_word_bitsize" != x; then
7500 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7502 if test x"$wire_word_msb" != x; then
7503 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7505 if test x"$wire_address_bitsize" != x; then
7506 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7508 if test x"$wire_cell_bitsize" != x; then
7509 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7516 # Select the floating hardware support of the target
7518 mips_fpu=HARDWARE_FLOATING_POINT
7521 mips*tx39*) mips_fpu=HARD_FLOATING_POINT
7524 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
7525 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
7526 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
7527 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
7528 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
7529 *) mips_fpu=HARD_FLOATING_POINT ;;
7532 default_sim_float="$mips_fpu"
7533 default_sim_float_bitsize="$mips_fpu_bitsize"
7534 # Check whether --enable-sim-float or --disable-sim-float was given.
7535 if test "${enable_sim_float+set}" = set; then
7536 enableval="$enable_sim_float"
7537 case "${enableval}" in
7538 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
7539 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
7540 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
7541 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
7542 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
7543 echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
7544 { (exit 1); exit 1; }; }; sim_float="";;
7546 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
7547 echo "Setting float flags = $sim_float" 6>&1
7552 if test x"${default_sim_float}" != x""; then
7553 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
7555 if test x"${default_sim_float_bitsize}" != x""; then
7556 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
7564 # Select the level of SMP support
7570 default_sim_smp="$mips_smp"
7571 # Check whether --enable-sim-smp or --disable-sim-smp was given.
7572 if test "${enable_sim_smp+set}" = set; then
7573 enableval="$enable_sim_smp"
7574 case "${enableval}" in
7575 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
7576 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
7577 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
7579 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
7580 echo "Setting smp flags = $sim_smp" 6>&1
7583 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
7584 if test x"$silent" != x"yes"; then
7585 echo "Setting smp flags = $sim_smp" 6>&1
7592 # Select the IGEN architecture
7595 sim_igen_machine="-M mipsIV"
7596 sim_m16_machine="-M mips16,mipsIII"
7597 sim_igen_filter="32,64,f"
7599 sim_mach_default="mips8000"
7602 mips*tx39*) sim_gen=IGEN
7603 sim_igen_filter="32,f"
7604 sim_igen_machine="-M r3900"
7606 mips64vr43*-*-*) sim_gen=IGEN
7607 sim_igen_machine="-M mipsIV"
7608 sim_mach_default="mips8000"
7610 mips64vr5*-*-*) sim_gen=IGEN
7611 sim_igen_machine="-M vr5000"
7612 sim_mach_default="mips5000"
7614 mips64vr41*) sim_gen=M16
7615 sim_igen_machine="-M vr4100"
7616 sim_m16_machine="-M vr4100"
7617 sim_igen_filter="32,64,f"
7619 sim_mach_default="mips4100"
7621 mips64vr-*-* | mips64vrel-*-*)
7623 sim_multi_configs="\
7624 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
7625 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
7626 vr5000:mipsIV:32,64,f:mips4300,mips5000\
7627 vr5400:mipsIV,vr5400:32,64,f:mips5400\
7628 vr5500:mipsIV,vr5500:32,64,f:mips5500"
7629 sim_multi_default=mips5000
7631 mips64*-*-*) sim_igen_filter="32,64,f"
7634 mips16*-*-*) sim_gen=M16
7635 sim_igen_filter="32,64,f"
7638 mipsisa32*-*-*) sim_gen=IGEN
7639 sim_igen_machine="-M mips32"
7640 sim_igen_filter="32,f"
7641 sim_mach_default="mipsisa32"
7643 mipsisa64sb1*-*-*) sim_gen=IGEN
7644 sim_igen_machine="-M mips64,mips3d,sb1"
7645 sim_igen_filter="32,64,f"
7646 sim_mach_default="mips_sb1"
7648 mipsisa64*-*-*) sim_gen=IGEN
7649 sim_igen_machine="-M mips64,mips3d"
7650 sim_igen_filter="32,64,f"
7651 sim_mach_default="mipsisa64"
7653 mips*lsi*) sim_gen=M16
7654 sim_igen_machine="-M mipsIII,mips16"
7655 sim_m16_machine="-M mips16,mipsIII"
7656 sim_igen_filter="32,f"
7658 sim_mach_default="mips4000"
7660 mips*-*-*) sim_gen=IGEN
7661 sim_igen_filter="32,f"
7665 # The MULTI generator can combine several simulation engines into one.
7666 # executable. A configuration which uses the MULTI should set two
7667 # variables: ${sim_multi_configs} and ${sim_multi_default}.
7669 # ${sim_multi_configs} is the list of engines to build. Each
7670 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
7673 # - NAME is a C-compatible prefix for the engine,
7674 # - MACHINE is a -M argument,
7675 # - FILTER is a -F argument, and
7676 # - BFDMACHS is a comma-separated list of bfd machines that the
7677 # simulator can run.
7679 # Each entry will have a separate simulation engine whose prefix is
7680 # m32<NAME>. If the machine list includes "mips16", there will also
7681 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
7682 # generated using the same machine list as the 32-bit version,
7683 # but the filter will be "16" instead of FILTER.
7685 # The simulator compares the bfd mach against BFDMACHS to decide
7686 # which engine to use. Entries in BFDMACHS should be bfd_mach
7687 # values with "bfd_mach_" removed. ${sim_multi_default} says
7688 # which entry should be the default.
7689 if test ${sim_gen} = MULTI; then
7691 # Simple sanity check.
7692 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
7693 { { echo "$as_me:$LINENO: error: Error in configure.in: MULTI simulator not set up correctly" >&5
7694 echo "$as_me: error: Error in configure.in: MULTI simulator not set up correctly" >&2;}
7695 { (exit 1); exit 1; }; }
7698 # Start in a known state.
7699 rm -f multi-include.h multi-run.c
7702 sim_multi_obj=multi-run.o
7703 sim_multi_igen_configs=
7706 cat << __EOF__ > multi-run.c
7707 /* Main entry point for MULTI simulators.
7708 Copyright (C) 2003 Free Software Foundation, Inc.
7710 This program is free software; you can redistribute it and/or modify
7711 it under the terms of the GNU General Public License as published by
7712 the Free Software Foundation; either version 2 of the License, or
7713 (at your option) any later version.
7715 This program is distributed in the hope that it will be useful,
7716 but WITHOUT ANY WARRANTY; without even the implied warranty of
7717 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7718 GNU General Public License for more details.
7720 You should have received a copy of the GNU General Public License
7721 along with this program; if not, write to the Free Software
7722 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7726 This file was generated by sim/mips/configure. */
7728 #include "sim-main.h"
7729 #include "multi-include.h"
7735 sim_engine_run (SIM_DESC sd,
7738 int signal) /* ignore */
7742 if (STATE_ARCHITECTURE (sd) == NULL)
7743 mach = bfd_mach_${sim_multi_default};
7745 mach = STATE_ARCHITECTURE (SD)->mach;
7751 for fc in ${sim_multi_configs}; do
7753 # Split up the entry. ${c} contains the first three elements.
7754 # Note: outer sqaure brackets are m4 quotes.
7755 c=`echo ${fc} | sed 's/:[^:]*$//'`
7756 bfdmachs=`echo ${fc} | sed 's/.*://'`
7757 name=`echo ${c} | sed 's/:.*//'`
7758 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
7759 filter=`echo ${c} | sed 's/.*://'`
7761 # Build the following lists:
7763 # sim_multi_flags: all -M and -F flags used by the simulator
7764 # sim_multi_src: all makefile-generated source files
7765 # sim_multi_obj: the objects for ${sim_multi_src}
7766 # sim_multi_igen_configs: igen configuration strings.
7768 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
7769 # or m16) followed by the NAME, MACHINE and FILTER part of
7770 # the ${sim_multi_configs} entry.
7771 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
7773 # Check whether mips16 handling is needed.
7776 # Run igen twice, once for normal mode and once for mips16.
7779 # The top-level function for the mips16 simulator is
7780 # in a file m16${name}_run.c, generated by the
7781 # tmp-run-multi Makefile rule.
7782 sim_multi_src="${sim_multi_src} m16${name}_run.c"
7783 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
7784 sim_multi_flags="${sim_multi_flags} -F 16"
7791 # Now add the list of igen-generated files to ${sim_multi_src}
7792 # and ${sim_multi_obj}.
7794 for base in engine icache idecode model semantics support; do
7795 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
7796 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
7797 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
7799 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
7802 # Add an include for the engine.h file. This file declares the
7803 # top-level foo_engine_run() function.
7804 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
7806 # Add case statements for this engine to sim_engine_run().
7807 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
7808 echo " case bfd_mach_${mach}:" >> multi-run.c
7809 if test ${mach} = ${sim_multi_default}; then
7810 echo " default:" >> multi-run.c
7811 sim_seen_default=yes
7814 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
7816 echo " break;" >> multi-run.c
7819 # Check whether we added a 'default:' label.
7820 if test ${sim_seen_default} = no; then
7821 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&5
7822 echo "$as_me: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&2;}
7823 { (exit 1); exit 1; }; }
7826 cat << __EOF__ >> multi-run.c
7831 mips_mach_multi (SIM_DESC sd)
7833 if (STATE_ARCHITECTURE (sd) == NULL)
7834 return bfd_mach_${sim_multi_default};
7836 switch (STATE_ARCHITECTURE (SD)->mach)
7840 # Add case statements for this engine to mips_mach_multi().
7841 for fc in ${sim_multi_configs}; do
7843 # Split up the entry. ${c} contains the first three elements.
7844 # Note: outer sqaure brackets are m4 quotes.
7845 c=`echo ${fc} | sed 's/:[^:]*$//'`
7846 bfdmachs=`echo ${fc} | sed 's/.*://'`
7848 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
7849 echo " case bfd_mach_${mach}:" >> multi-run.c
7853 cat << __EOF__ >> multi-run.c
7854 return (STATE_ARCHITECTURE (SD)->mach);
7856 return bfd_mach_${sim_multi_default};
7861 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
7864 sim_multi_src=doesnt-exist.c
7866 if test x"${sim_mach_default}" = x""; then
7867 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_mach_default} not defined" >&5
7868 echo "$as_me: error: Error in configure.in: \${sim_mach_default} not defined" >&2;}
7869 { (exit 1); exit 1; }; }
7871 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
7873 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
7874 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
7885 # Add simulated hardware devices
7891 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
7892 mips_extra_objs="dv-sockser.o"
7893 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
7900 if test x"$hw_enabled" = x"yes"; then
7905 if test "$hw_devices"; then
7906 hardware="core pal glue"
7908 hardware="core pal glue $hw_extra_devices"
7910 sim_hw_cflags="-DWITH_HW=1"
7912 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7913 # Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7914 if test "${enable_sim_hardware+set}" = set; then
7915 enableval="$enable_sim_hardware"
7917 case "${enableval}" in
7920 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7921 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7922 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7924 if test "$sim_hw_p" != yes; then
7926 sim_hw_cflags="-DWITH_HW=0"
7929 sim_hw_cflags="-DWITH_HW=1"
7932 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
7933 for i in x $hardware ; do
7937 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
7941 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
7942 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7946 if test "$sim_hw_p" != yes; then
7948 sim_hw_cflags="-DWITH_HW=0"
7951 if test x"$silent" != x"yes"; then
7952 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7958 # Choose simulator engine
7960 *) mips_igen_engine="engine.o"
7966 echo "$as_me:$LINENO: checking for X" >&5
7967 echo $ECHO_N "checking for X... $ECHO_C" >&6
7970 # Check whether --with-x or --without-x was given.
7971 if test "${with_x+set}" = set; then
7975 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7976 if test "x$with_x" = xno; then
7977 # The user explicitly disabled X.
7980 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7981 # Both variables are already set.
7984 if test "${ac_cv_have_x+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 # One or both of the vars are not set, and there is no cached value.
7988 ac_x_includes=no ac_x_libraries=no
7990 if mkdir conftest.dir; then
7992 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7993 cat >Imakefile <<'_ACEOF'
7995 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7997 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7998 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7999 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8000 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8001 for ac_extension in a so sl; do
8002 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8003 test -f $ac_im_libdir/libX11.$ac_extension; then
8004 ac_im_usrlibdir=$ac_im_libdir; break
8007 # Screen out bogus values from the imake configuration. They are
8008 # bogus both because they are the default anyway, and because
8009 # using them would break gcc on systems where it needs fixed includes.
8010 case $ac_im_incroot in
8012 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8014 case $ac_im_usrlibdir in
8016 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8023 # Standard set of common directories for X headers.
8024 # Check X11 before X11Rn because it is often a symlink to the current release.
8036 /usr/local/X11/include
8037 /usr/local/X11R6/include
8038 /usr/local/X11R5/include
8039 /usr/local/X11R4/include
8041 /usr/local/include/X11
8042 /usr/local/include/X11R6
8043 /usr/local/include/X11R5
8044 /usr/local/include/X11R4
8048 /usr/XFree86/include/X11
8052 /usr/unsupported/include
8054 /usr/local/x11r5/include
8055 /usr/lpp/Xamples/include
8057 /usr/openwin/include
8058 /usr/openwin/share/include'
8060 if test "$ac_x_includes" = no; then
8061 # Guess where to find include files, by looking for Intrinsic.h.
8062 # First, try using that file with no special directory specified.
8063 cat >conftest.$ac_ext <<_ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 #include <X11/Intrinsic.h>
8071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8074 grep -v '^ *+' conftest.er1 >conftest.err
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } >/dev/null; then
8079 if test -s conftest.err; then
8080 ac_cpp_err=$ac_c_preproc_warn_flag
8081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8088 if test -z "$ac_cpp_err"; then
8089 # We can compile using X headers with no special include directory.
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8095 for ac_dir in $ac_x_header_dirs; do
8096 if test -r "$ac_dir/X11/Intrinsic.h"; then
8097 ac_x_includes=$ac_dir
8102 rm -f conftest.err conftest.$ac_ext
8103 fi # $ac_x_includes = no
8105 if test "$ac_x_libraries" = no; then
8106 # Check for the libraries.
8107 # See if we find them without any special options.
8108 # Don't add to $LIBS permanently.
8111 cat >conftest.$ac_ext <<_ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8117 #include <X11/Intrinsic.h>
8126 rm -f conftest.$ac_objext conftest$ac_exeext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8128 (eval $ac_link) 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } &&
8135 { ac_try='test -z "$ac_c_werror_flag"
8136 || test ! -s conftest.err'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest$ac_exeext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8149 # We can link X programs with no special library path.
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8156 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8158 # Don't even attempt the hair of trying to link an X program!
8159 for ac_extension in a so sl; do
8160 if test -r $ac_dir/libXt.$ac_extension; then
8161 ac_x_libraries=$ac_dir
8167 rm -f conftest.err conftest.$ac_objext \
8168 conftest$ac_exeext conftest.$ac_ext
8169 fi # $ac_x_libraries = no
8171 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8172 # Didn't find X anywhere. Cache the known absence of X.
8173 ac_cv_have_x="have_x=no"
8175 # Record where we found X for the cache.
8176 ac_cv_have_x="have_x=yes \
8177 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8182 eval "$ac_cv_have_x"
8185 if test "$have_x" != yes; then
8186 echo "$as_me:$LINENO: result: $have_x" >&5
8187 echo "${ECHO_T}$have_x" >&6
8190 # If each of the values was on the command line, it overrides each guess.
8191 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8192 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8193 # Update the cache value to reflect the command line values.
8194 ac_cv_have_x="have_x=yes \
8195 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8196 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8197 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8207 for ac_header in string.h strings.h stdlib.h stdlib.h
8209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8211 echo "$as_me:$LINENO: checking for $ac_header" >&5
8212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8219 # Is the header compilable?
8220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8222 cat >conftest.$ac_ext <<_ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228 $ac_includes_default
8229 #include <$ac_header>
8231 rm -f conftest.$ac_objext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8233 (eval $ac_compile) 2>conftest.er1
8235 grep -v '^ *+' conftest.er1 >conftest.err
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -z "$ac_c_werror_flag"
8241 || test ! -s conftest.err'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; } &&
8247 { ac_try='test -s conftest.$ac_objext'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 ac_header_compiler=yes
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8258 ac_header_compiler=no
8260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8262 echo "${ECHO_T}$ac_header_compiler" >&6
8264 # Is the header present?
8265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8267 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 #include <$ac_header>
8275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8278 grep -v '^ *+' conftest.er1 >conftest.err
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } >/dev/null; then
8283 if test -s conftest.err; then
8284 ac_cpp_err=$ac_c_preproc_warn_flag
8285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8292 if test -z "$ac_cpp_err"; then
8293 ac_header_preproc=yes
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8298 ac_header_preproc=no
8300 rm -f conftest.err conftest.$ac_ext
8301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8302 echo "${ECHO_T}$ac_header_preproc" >&6
8304 # So? What about this header?
8305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8311 ac_header_preproc=yes
8314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8328 ## ------------------------------------------ ##
8329 ## Report this to the AC_PACKAGE_NAME lists. ##
8330 ## ------------------------------------------ ##
8333 sed "s/^/$as_me: WARNING: /" >&2
8336 echo "$as_me:$LINENO: checking for $ac_header" >&5
8337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 eval "$as_ac_Header=\$ac_header_preproc"
8343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8348 cat >>confdefs.h <<_ACEOF
8349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8357 echo "$as_me:$LINENO: checking for fabs in -lm" >&5
8358 echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
8359 if test "${ac_cv_lib_m_fabs+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 ac_check_lib_save_LIBS=$LIBS
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8371 /* Override any gcc2 internal prototype to avoid an error. */
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>conftest.er1
8390 grep -v '^ *+' conftest.er1 >conftest.err
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -z "$ac_c_werror_flag"
8396 || test ! -s conftest.err'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_lib_m_fabs=yes
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8415 rm -f conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8419 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
8420 echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
8421 if test $ac_cv_lib_m_fabs = yes; then
8422 cat >>confdefs.h <<_ACEOF
8433 for ac_func in aint anint sqrt
8435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8436 echo "$as_me:$LINENO: checking for $ac_func" >&5
8437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8438 if eval "test \"\${$as_ac_var+set}\" = set"; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8449 #define $ac_func innocuous_$ac_func
8451 /* System header to define __stub macros and hopefully few prototypes,
8452 which can conflict with char $ac_func (); below.
8453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8454 <limits.h> exists even on freestanding compilers. */
8457 # include <limits.h>
8459 # include <assert.h>
8464 /* Override any gcc2 internal prototype to avoid an error. */
8469 /* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8472 /* The GNU C library defines this for functions which it implements
8473 to always fail with ENOSYS. Some functions are actually named
8474 something starting with __ and the normal name is an alias. */
8475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8478 char (*f) () = $ac_func;
8487 return f != $ac_func;
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>conftest.er1
8496 grep -v '^ *+' conftest.er1 >conftest.err
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag"
8502 || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest$ac_exeext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 eval "$as_ac_var=yes"
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 eval "$as_ac_var=no"
8521 rm -f conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8526 if test `eval echo '${'$as_ac_var'}'` = yes; then
8527 cat >>confdefs.h <<_ACEOF
8528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8536 ac_sources="$sim_link_files"
8537 ac_dests="$sim_link_links"
8538 while test -n "$ac_sources"; do
8539 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8540 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8541 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
8543 ac_config_links="$ac_config_links $ac_config_links_1"
8546 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
8547 cgen_breaks="break cgen_rtx_error";
8550 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
8552 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
8554 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
8556 ac_config_commands="$ac_config_commands Makefile"
8558 ac_config_commands="$ac_config_commands stamp-h"
8560 cat >confcache <<\_ACEOF
8561 # This file is a shell script that caches the results of configure
8562 # tests run on this system so they can be shared between configure
8563 # scripts and configure runs, see configure's option --config-cache.
8564 # It is not useful on other systems. If it contains results you don't
8565 # want to keep, you may remove or edit it.
8567 # config.status only pays attention to the cache file if you give it
8568 # the --recheck option to rerun configure.
8570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8576 # The following way of writing the cache mishandles newlines in values,
8577 # but we know of no workaround that is simple, portable, and efficient.
8578 # So, don't put newlines in cache variables' values.
8579 # Ultrix sh set writes to stderr and can't be redirected directly,
8580 # and sets the high bit in the cache file unless we assign to the vars.
8583 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8585 # `set' does not quote correctly, so add quotes (double-quote
8586 # substitution turns \\\\ into \\, and sed turns \\ into \).
8589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8592 # `set' quotes correctly as required by POSIX, so do not add quotes.
8594 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8603 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8605 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8606 if test -w $cache_file; then
8607 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8608 cat confcache >$cache_file
8610 echo "not updating unwritable cache $cache_file"
8615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8616 # Let make expand exec_prefix.
8617 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8619 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8620 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8621 # trailing colons and then remove the whole line if VPATH becomes empty
8622 # (actually we leave an empty line to preserve line numbers).
8623 if test "x$srcdir" = x.; then
8624 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8625 s/:*\$(srcdir):*/:/;
8626 s/:*\${srcdir}:*/:/;
8628 s/^\([^=]*=[ ]*\):*/\1/;
8634 DEFS=-DHAVE_CONFIG_H
8638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8639 # 1. Remove the extension, and $U if already installed.
8640 ac_i=`echo "$ac_i" |
8641 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8643 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8644 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8648 LTLIBOBJS=$ac_ltlibobjs
8652 : ${CONFIG_STATUS=./config.status}
8653 ac_clean_files_save=$ac_clean_files
8654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8655 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8656 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8657 cat >$CONFIG_STATUS <<_ACEOF
8659 # Generated by $as_me.
8660 # Run this file to recreate the current configuration.
8661 # Compiler output produced by configure, useful for debugging
8662 # configure, is in config.log if it exists.
8667 SHELL=\${CONFIG_SHELL-$SHELL}
8670 cat >>$CONFIG_STATUS <<\_ACEOF
8671 ## --------------------- ##
8672 ## M4sh Initialization. ##
8673 ## --------------------- ##
8675 # Be Bourne compatible
8676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8679 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8680 # is contrary to our usage. Disable this feature.
8681 alias -g '${1+"$@"}'='"$@"'
8682 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8685 DUALCASE=1; export DUALCASE # for MKS sh
8687 # Support unset when possible.
8688 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8695 # Work around bugs in pre-3.0 UWIN ksh.
8696 $as_unset ENV MAIL MAILPATH
8703 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8704 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8705 LC_TELEPHONE LC_TIME
8707 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8708 eval $as_var=C; export $as_var
8714 # Required to use basename.
8715 if expr a : '\(a\)' >/dev/null 2>&1; then
8721 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8722 as_basename=basename
8728 # Name of the executable.
8729 as_me=`$as_basename "$0" ||
8730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8731 X"$0" : 'X\(//\)$' \| \
8732 X"$0" : 'X\(/\)$' \| \
8733 . : '\(.\)' 2>/dev/null ||
8735 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8736 /^X\/\(\/\/\)$/{ s//\1/; q; }
8737 /^X\/\(\/\).*/{ s//\1/; q; }
8741 # PATH needs CR, and LINENO needs CR and PATH.
8742 # Avoid depending upon Character Ranges.
8743 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8746 as_cr_digits='0123456789'
8747 as_cr_alnum=$as_cr_Letters$as_cr_digits
8749 # The user is always right.
8750 if test "${PATH_SEPARATOR+set}" != set; then
8751 echo "#! /bin/sh" >conf$$.sh
8752 echo "exit 0" >>conf$$.sh
8754 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8765 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8766 test "x$as_lineno_1" != "x$as_lineno_2" &&
8767 test "x$as_lineno_3" = "x$as_lineno_2" || {
8768 # Find who we are. Look in the path if we contain no path at all
8771 *[\\/]* ) as_myself=$0 ;;
8772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 test -z "$as_dir" && as_dir=.
8777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8782 # We did not find ourselves, most probably we were run as `sh COMMAND'
8783 # in which case we are not to be found in the path.
8784 if test "x$as_myself" = x; then
8787 if test ! -f "$as_myself"; then
8788 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8789 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8790 { (exit 1); exit 1; }; }
8792 case $CONFIG_SHELL in
8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8798 test -z "$as_dir" && as_dir=.
8799 for as_base in sh bash ksh sh5; do
8802 if ("$as_dir/$as_base" -c '
8805 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8806 test "x$as_lineno_1" != "x$as_lineno_2" &&
8807 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8808 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8809 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8810 CONFIG_SHELL=$as_dir/$as_base
8812 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8820 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8821 # uniformly replaced by the line number. The first 'sed' inserts a
8822 # line-number line before each line; the second 'sed' does the real
8823 # work. The second script uses 'N' to pair each line-number line
8824 # with the numbered line, and appends trailing '-' during
8825 # substitution so that $LINENO is not a special case at line end.
8826 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8827 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8828 sed '=' <$as_myself |
8833 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8836 s,^['$as_cr_digits']*\n,,
8838 chmod +x $as_me.lineno ||
8839 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8840 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8841 { (exit 1); exit 1; }; }
8843 # Don't try to exec as it changes $[0], causing all sort of problems
8844 # (the dirname of $[0] is not the place where we might find the
8845 # original and so on. Autoconf is especially sensible to this).
8847 # Exit status is that of the last command.
8852 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8853 *c*,-n*) ECHO_N= ECHO_C='
8855 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8856 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8859 if expr a : '\(a\)' >/dev/null 2>&1; then
8865 rm -f conf$$ conf$$.exe conf$$.file
8867 if ln -s conf$$.file conf$$ 2>/dev/null; then
8868 # We could just check for DJGPP; but this test a) works b) is more generic
8869 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8870 if test -f conf$$.exe; then
8871 # Don't use ln at all; we don't have any links
8876 elif ln conf$$.file conf$$ 2>/dev/null; then
8881 rm -f conf$$ conf$$.exe conf$$.file
8883 if mkdir -p . 2>/dev/null; then
8886 test -d ./-p && rmdir ./-p
8890 as_executable_p="test -f"
8892 # Sed expression to map a string onto a valid CPP name.
8893 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8895 # Sed expression to map a string onto a valid variable name.
8896 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8900 # We need space, tab and new line, in precisely that order.
8910 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8911 # report actual input values of CONFIG_FILES etc. instead of their
8912 # values after options handling. Logging --version etc. is OK.
8916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8917 ## Running $as_me. ##
8922 This file was extended by $as_me, which was
8923 generated by GNU Autoconf 2.59. Invocation command line was
8925 CONFIG_FILES = $CONFIG_FILES
8926 CONFIG_HEADERS = $CONFIG_HEADERS
8927 CONFIG_LINKS = $CONFIG_LINKS
8928 CONFIG_COMMANDS = $CONFIG_COMMANDS
8932 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8936 # Files that config.status was made for.
8937 if test -n "$ac_config_files"; then
8938 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8941 if test -n "$ac_config_headers"; then
8942 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8945 if test -n "$ac_config_links"; then
8946 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8949 if test -n "$ac_config_commands"; then
8950 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8953 cat >>$CONFIG_STATUS <<\_ACEOF
8956 \`$as_me' instantiates files from templates according to the
8957 current configuration.
8959 Usage: $0 [OPTIONS] [FILE]...
8961 -h, --help print this help, then exit
8962 -V, --version print version number, then exit
8963 -q, --quiet do not print progress messages
8964 -d, --debug don't remove temporary files
8965 --recheck update $as_me by reconfiguring in the same conditions
8966 --file=FILE[:TEMPLATE]
8967 instantiate the configuration file FILE
8968 --header=FILE[:TEMPLATE]
8969 instantiate the configuration header FILE
8971 Configuration files:
8974 Configuration headers:
8977 Configuration links:
8980 Configuration commands:
8983 Report bugs to <bug-autoconf@gnu.org>."
8986 cat >>$CONFIG_STATUS <<_ACEOF
8989 configured by $0, generated by GNU Autoconf 2.59,
8990 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8992 Copyright (C) 2003 Free Software Foundation, Inc.
8993 This config.status script is free software; the Free Software Foundation
8994 gives unlimited permission to copy, distribute and modify it."
8999 cat >>$CONFIG_STATUS <<\_ACEOF
9000 # If no file are specified by the user, then we need to provide default
9001 # value. By we need to know if files were specified by the user.
9007 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9008 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9016 *) # This is not an option, so the user has probably given explicit
9019 ac_need_defaults=false;;
9023 # Handling of the options.
9025 cat >>$CONFIG_STATUS <<\_ACEOF
9026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9028 --version | --vers* | -V )
9029 echo "$ac_cs_version"; exit 0 ;;
9031 # Conflict between --help and --header
9032 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9033 Try \`$0 --help' for more information." >&5
9034 echo "$as_me: error: ambiguous option: $1
9035 Try \`$0 --help' for more information." >&2;}
9036 { (exit 1); exit 1; }; };;
9037 --help | --hel | -h )
9038 echo "$ac_cs_usage"; exit 0 ;;
9039 --debug | --d* | -d )
9041 --file | --fil | --fi | --f )
9043 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9044 ac_need_defaults=false;;
9045 --header | --heade | --head | --hea )
9047 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9048 ac_need_defaults=false;;
9049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9050 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9054 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9055 Try \`$0 --help' for more information." >&5
9056 echo "$as_me: error: unrecognized option: $1
9057 Try \`$0 --help' for more information." >&2;}
9058 { (exit 1); exit 1; }; } ;;
9060 *) ac_config_targets="$ac_config_targets $1" ;;
9066 ac_configure_extra_args=
9068 if $ac_cs_silent; then
9070 ac_configure_extra_args="$ac_configure_extra_args --silent"
9074 cat >>$CONFIG_STATUS <<_ACEOF
9075 if \$ac_cs_recheck; then
9076 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9077 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9086 cat >>$CONFIG_STATUS <<\_ACEOF
9087 for ac_config_target in $ac_config_targets
9089 case "$ac_config_target" in
9090 # Handling of arguments.
9091 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
9092 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
9093 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
9094 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
9095 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
9096 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
9097 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9098 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9099 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9100 { (exit 1); exit 1; }; };;
9104 # If the user did not use the arguments to specify the items to instantiate,
9105 # then the envvar interface is used. Set only those that are not.
9106 # We use the long form for the default assignment because of an extremely
9107 # bizarre bug on SunOS 4.1.3.
9108 if $ac_need_defaults; then
9109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9111 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9112 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9115 # Have a temporary directory for convenience. Make it in the build tree
9116 # simply because there is no reason to put it here, and in addition,
9117 # creating and moving files from /tmp can sometimes cause problems.
9118 # Create a temporary directory, and hook for its removal unless debugging.
9121 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9122 trap '{ (exit 1); exit 1; }' 1 2 13 15
9125 # Create a (secure) tmp directory for tmp files.
9128 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9129 test -n "$tmp" && test -d "$tmp"
9132 tmp=./confstat$$-$RANDOM
9133 (umask 077 && mkdir $tmp)
9136 echo "$me: cannot create a temporary directory in ." >&2
9137 { (exit 1); exit 1; }
9142 cat >>$CONFIG_STATUS <<_ACEOF
9145 # CONFIG_FILES section.
9148 # No need to generate the scripts if there are no CONFIG_FILES.
9149 # This happens for instance when ./config.status config.h
9150 if test -n "\$CONFIG_FILES"; then
9151 # Protect against being on the right side of a sed subst in config.status.
9152 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9153 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9154 s,@sim_environment@,$sim_environment,;t t
9155 s,@sim_alignment@,$sim_alignment,;t t
9156 s,@sim_assert@,$sim_assert,;t t
9157 s,@sim_bitsize@,$sim_bitsize,;t t
9158 s,@sim_endian@,$sim_endian,;t t
9159 s,@sim_hostendian@,$sim_hostendian,;t t
9160 s,@sim_float@,$sim_float,;t t
9161 s,@sim_scache@,$sim_scache,;t t
9162 s,@sim_default_model@,$sim_default_model,;t t
9163 s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9164 s,@sim_hw_objs@,$sim_hw_objs,;t t
9165 s,@sim_hw@,$sim_hw,;t t
9166 s,@sim_inline@,$sim_inline,;t t
9167 s,@sim_packages@,$sim_packages,;t t
9168 s,@sim_regparm@,$sim_regparm,;t t
9169 s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9170 s,@sim_smp@,$sim_smp,;t t
9171 s,@sim_stdcall@,$sim_stdcall,;t t
9172 s,@sim_xor_endian@,$sim_xor_endian,;t t
9173 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9174 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9175 s,@SHELL@,$SHELL,;t t
9176 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9177 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9178 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9179 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9180 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9181 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9182 s,@exec_prefix@,$exec_prefix,;t t
9183 s,@prefix@,$prefix,;t t
9184 s,@program_transform_name@,$program_transform_name,;t t
9185 s,@bindir@,$bindir,;t t
9186 s,@sbindir@,$sbindir,;t t
9187 s,@libexecdir@,$libexecdir,;t t
9188 s,@datadir@,$datadir,;t t
9189 s,@sysconfdir@,$sysconfdir,;t t
9190 s,@sharedstatedir@,$sharedstatedir,;t t
9191 s,@localstatedir@,$localstatedir,;t t
9192 s,@libdir@,$libdir,;t t
9193 s,@includedir@,$includedir,;t t
9194 s,@oldincludedir@,$oldincludedir,;t t
9195 s,@infodir@,$infodir,;t t
9196 s,@mandir@,$mandir,;t t
9197 s,@build_alias@,$build_alias,;t t
9198 s,@host_alias@,$host_alias,;t t
9199 s,@target_alias@,$target_alias,;t t
9201 s,@ECHO_C@,$ECHO_C,;t t
9202 s,@ECHO_N@,$ECHO_N,;t t
9203 s,@ECHO_T@,$ECHO_T,;t t
9205 s,@build@,$build,;t t
9206 s,@build_cpu@,$build_cpu,;t t
9207 s,@build_vendor@,$build_vendor,;t t
9208 s,@build_os@,$build_os,;t t
9210 s,@host_cpu@,$host_cpu,;t t
9211 s,@host_vendor@,$host_vendor,;t t
9212 s,@host_os@,$host_os,;t t
9213 s,@target@,$target,;t t
9214 s,@target_cpu@,$target_cpu,;t t
9215 s,@target_vendor@,$target_vendor,;t t
9216 s,@target_os@,$target_os,;t t
9218 s,@CFLAGS@,$CFLAGS,;t t
9219 s,@LDFLAGS@,$LDFLAGS,;t t
9220 s,@CPPFLAGS@,$CPPFLAGS,;t t
9221 s,@ac_ct_CC@,$ac_ct_CC,;t t
9222 s,@EXEEXT@,$EXEEXT,;t t
9223 s,@OBJEXT@,$OBJEXT,;t t
9224 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9225 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9226 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9227 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9228 s,@HDEFINES@,$HDEFINES,;t t
9230 s,@RANLIB@,$RANLIB,;t t
9231 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9232 s,@SET_MAKE@,$SET_MAKE,;t t
9234 s,@EGREP@,$EGREP,;t t
9235 s,@ALLOCA@,$ALLOCA,;t t
9236 s,@USE_NLS@,$USE_NLS,;t t
9237 s,@MSGFMT@,$MSGFMT,;t t
9238 s,@GMSGFMT@,$GMSGFMT,;t t
9239 s,@XGETTEXT@,$XGETTEXT,;t t
9240 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9241 s,@CATALOGS@,$CATALOGS,;t t
9242 s,@CATOBJEXT@,$CATOBJEXT,;t t
9243 s,@DATADIRNAME@,$DATADIRNAME,;t t
9244 s,@GMOFILES@,$GMOFILES,;t t
9245 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9246 s,@INTLDEPS@,$INTLDEPS,;t t
9247 s,@INTLLIBS@,$INTLLIBS,;t t
9248 s,@INTLOBJS@,$INTLOBJS,;t t
9249 s,@POFILES@,$POFILES,;t t
9250 s,@POSUB@,$POSUB,;t t
9251 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9252 s,@GT_NO@,$GT_NO,;t t
9253 s,@GT_YES@,$GT_YES,;t t
9254 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9256 s,@MAINT@,$MAINT,;t t
9257 s,@sim_bswap@,$sim_bswap,;t t
9258 s,@sim_cflags@,$sim_cflags,;t t
9259 s,@sim_debug@,$sim_debug,;t t
9260 s,@sim_stdio@,$sim_stdio,;t t
9261 s,@sim_trace@,$sim_trace,;t t
9262 s,@sim_profile@,$sim_profile,;t t
9263 s,@SIM_SUBTARGET@,$SIM_SUBTARGET,;t t
9264 s,@sim_igen_flags@,$sim_igen_flags,;t t
9265 s,@sim_m16_flags@,$sim_m16_flags,;t t
9266 s,@sim_gen@,$sim_gen,;t t
9267 s,@sim_multi_flags@,$sim_multi_flags,;t t
9268 s,@sim_multi_igen_configs@,$sim_multi_igen_configs,;t t
9269 s,@sim_multi_src@,$sim_multi_src,;t t
9270 s,@sim_multi_obj@,$sim_multi_obj,;t t
9271 s,@mips_extra_objs@,$mips_extra_objs,;t t
9272 s,@mips_igen_engine@,$mips_igen_engine,;t t
9273 s,@mips_extra_libs@,$mips_extra_libs,;t t
9274 s,@cgen_breaks@,$cgen_breaks,;t t
9275 s,@LIBOBJS@,$LIBOBJS,;t t
9276 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9281 cat >>$CONFIG_STATUS <<\_ACEOF
9282 # Split the substitutions into bite-sized pieces for seds with
9283 # small command number limits, like on Digital OSF/1 and HP-UX.
9285 ac_sed_frag=1 # Number of current file.
9286 ac_beg=1 # First line for current file.
9287 ac_end=$ac_max_sed_lines # Line after last line for current file.
9290 while $ac_more_lines; do
9291 if test $ac_beg -gt 1; then
9292 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9294 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9296 if test ! -s $tmp/subs.frag; then
9299 # The purpose of the label and of the branching condition is to
9300 # speed up the sed processing (if there are no `@' at all, there
9301 # is no need to browse any of the substitutions).
9302 # These are the two extra sed commands mentioned above.
9304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9305 if test -z "$ac_sed_cmds"; then
9306 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9308 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9310 ac_sed_frag=`expr $ac_sed_frag + 1`
9312 ac_end=`expr $ac_end + $ac_max_sed_lines`
9315 if test -z "$ac_sed_cmds"; then
9318 fi # test -n "$CONFIG_FILES"
9321 cat >>$CONFIG_STATUS <<\_ACEOF
9322 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9323 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9325 - | *:- | *:-:* ) # input from stdin
9327 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9328 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9329 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9331 * ) ac_file_in=$ac_file.in ;;
9334 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9335 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9336 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9337 X"$ac_file" : 'X\(//\)[^/]' \| \
9338 X"$ac_file" : 'X\(//\)$' \| \
9339 X"$ac_file" : 'X\(/\)' \| \
9340 . : '\(.\)' 2>/dev/null ||
9342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9344 /^X\(\/\/\)$/{ s//\1/; q; }
9345 /^X\(\/\).*/{ s//\1/; q; }
9347 { if $as_mkdir_p; then
9352 while test ! -d "$as_dir"; do
9353 as_dirs="$as_dir $as_dirs"
9354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9356 X"$as_dir" : 'X\(//\)[^/]' \| \
9357 X"$as_dir" : 'X\(//\)$' \| \
9358 X"$as_dir" : 'X\(/\)' \| \
9359 . : '\(.\)' 2>/dev/null ||
9361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9363 /^X\(\/\/\)$/{ s//\1/; q; }
9364 /^X\(\/\).*/{ s//\1/; q; }
9367 test ! -n "$as_dirs" || mkdir $as_dirs
9368 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9370 { (exit 1); exit 1; }; }; }
9374 if test "$ac_dir" != .; then
9375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9376 # A "../" for each directory in $ac_dir_suffix.
9377 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9379 ac_dir_suffix= ac_top_builddir=
9383 .) # No --srcdir option. We are building in place.
9385 if test -z "$ac_top_builddir"; then
9388 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9390 [\\/]* | ?:[\\/]* ) # Absolute path.
9391 ac_srcdir=$srcdir$ac_dir_suffix;
9392 ac_top_srcdir=$srcdir ;;
9394 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9395 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9398 # Do not use `cd foo && pwd` to compute absolute paths, because
9399 # the directories may not exist.
9401 .) ac_abs_builddir="$ac_dir";;
9404 .) ac_abs_builddir=`pwd`;;
9405 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9406 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9409 case $ac_abs_builddir in
9410 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9412 case ${ac_top_builddir}. in
9413 .) ac_abs_top_builddir=$ac_abs_builddir;;
9414 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9415 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9418 case $ac_abs_builddir in
9419 .) ac_abs_srcdir=$ac_srcdir;;
9422 .) ac_abs_srcdir=$ac_abs_builddir;;
9423 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9424 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9427 case $ac_abs_builddir in
9428 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9430 case $ac_top_srcdir in
9431 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9432 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9433 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9439 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9440 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9443 if test x"$ac_file" != x-; then
9444 { echo "$as_me:$LINENO: creating $ac_file" >&5
9445 echo "$as_me: creating $ac_file" >&6;}
9448 # Let's still pretend it is `configure' which instantiates (i.e., don't
9449 # use $as_me), people would be surprised to read:
9450 # /* config.h. Generated by config.status. */
9451 if test x"$ac_file" = x-; then
9454 configure_input="$ac_file. "
9456 configure_input=$configure_input"Generated from `echo $ac_file_in |
9457 sed 's,.*/,,'` by configure."
9459 # First look for the input files in the build tree, otherwise in the
9461 ac_file_inputs=`IFS=:
9462 for f in $ac_file_in; do
9464 -) echo $tmp/stdin ;;
9466 # Absolute (can't be DOS-style, as IFS=:)
9467 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9468 echo "$as_me: error: cannot find input file: $f" >&2;}
9469 { (exit 1); exit 1; }; }
9472 if test -f "$f"; then
9475 elif test -f "$srcdir/$f"; then
9480 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9481 echo "$as_me: error: cannot find input file: $f" >&2;}
9482 { (exit 1); exit 1; }; }
9485 done` || { (exit 1); exit 1; }
9487 cat >>$CONFIG_STATUS <<_ACEOF
9491 cat >>$CONFIG_STATUS <<\_ACEOF
9493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9494 s,@configure_input@,$configure_input,;t t
9495 s,@srcdir@,$ac_srcdir,;t t
9496 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9497 s,@top_srcdir@,$ac_top_srcdir,;t t
9498 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9499 s,@builddir@,$ac_builddir,;t t
9500 s,@abs_builddir@,$ac_abs_builddir,;t t
9501 s,@top_builddir@,$ac_top_builddir,;t t
9502 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9503 s,@INSTALL@,$ac_INSTALL,;t t
9504 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9506 if test x"$ac_file" != x-; then
9507 mv $tmp/out $ac_file
9515 cat >>$CONFIG_STATUS <<\_ACEOF
9518 # CONFIG_HEADER section.
9521 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9522 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9524 # ac_d sets the value in "#define NAME VALUE" lines.
9525 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9526 ac_dB='[ ].*$,\1#\2'
9529 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9530 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9531 ac_uB='$,\1#\2define\3'
9535 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9536 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9538 - | *:- | *:-:* ) # input from stdin
9540 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9541 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9542 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9544 * ) ac_file_in=$ac_file.in ;;
9547 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9548 echo "$as_me: creating $ac_file" >&6;}
9550 # First look for the input files in the build tree, otherwise in the
9552 ac_file_inputs=`IFS=:
9553 for f in $ac_file_in; do
9555 -) echo $tmp/stdin ;;
9557 # Absolute (can't be DOS-style, as IFS=:)
9558 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9559 echo "$as_me: error: cannot find input file: $f" >&2;}
9560 { (exit 1); exit 1; }; }
9561 # Do quote $f, to prevent DOS paths from being IFS'd.
9564 if test -f "$f"; then
9567 elif test -f "$srcdir/$f"; then
9572 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9573 echo "$as_me: error: cannot find input file: $f" >&2;}
9574 { (exit 1); exit 1; }; }
9577 done` || { (exit 1); exit 1; }
9578 # Remove the trailing spaces.
9579 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9583 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9584 # `conftest.undefs', that substitutes the proper values into
9585 # config.h.in to produce config.h. The first handles `#define'
9586 # templates, and the second `#undef' templates.
9587 # And first: Protect against being on the right side of a sed subst in
9588 # config.status. Protect against being in an unquoted here document
9590 rm -f conftest.defines conftest.undefs
9591 # Using a here document instead of a string reduces the quoting nightmare.
9592 # Putting comments in sed scripts is not portable.
9594 # `end' is used to avoid that the second main sed command (meant for
9595 # 0-ary CPP macros) applies to n-ary macro definitions.
9596 # See the Autoconf documentation for `clear'.
9597 cat >confdef2sed.sed <<\_ACEOF
9602 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9604 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9607 # If some macros were called several times there might be several times
9608 # the same #defines, which is useless. Nevertheless, we may not want to
9609 # sort them, since we want the *last* AC-DEFINE to be honored.
9610 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9611 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9612 rm -f confdef2sed.sed
9614 # This sed command replaces #undef with comments. This is necessary, for
9615 # example, in the case of _POSIX_SOURCE, which is predefined and required
9616 # on some systems where configure will not decide to define it.
9617 cat >>conftest.undefs <<\_ACEOF
9618 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9621 # Break up conftest.defines because some shells have a limit on the size
9622 # of here documents, and old seds have small limits too (100 cmds).
9623 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9624 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9625 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9626 echo ' :' >>$CONFIG_STATUS
9628 while grep . conftest.defines >/dev/null
9630 # Write a limited-size here document to $tmp/defines.sed.
9631 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9632 # Speed up: don't consider the non `#define' lines.
9633 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9634 # Work around the forget-to-reset-the-flag bug.
9635 echo 't clr' >>$CONFIG_STATUS
9636 echo ': clr' >>$CONFIG_STATUS
9637 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9639 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9643 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9644 rm -f conftest.defines
9645 mv conftest.tail conftest.defines
9647 rm -f conftest.defines
9648 echo ' fi # grep' >>$CONFIG_STATUS
9649 echo >>$CONFIG_STATUS
9651 # Break up conftest.undefs because some shells have a limit on the size
9652 # of here documents, and old seds have small limits too (100 cmds).
9653 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9655 while grep . conftest.undefs >/dev/null
9657 # Write a limited-size here document to $tmp/undefs.sed.
9658 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9659 # Speed up: don't consider the non `#undef'
9660 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9661 # Work around the forget-to-reset-the-flag bug.
9662 echo 't clr' >>$CONFIG_STATUS
9663 echo ': clr' >>$CONFIG_STATUS
9664 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9666 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9670 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9671 rm -f conftest.undefs
9672 mv conftest.tail conftest.undefs
9674 rm -f conftest.undefs
9676 cat >>$CONFIG_STATUS <<\_ACEOF
9677 # Let's still pretend it is `configure' which instantiates (i.e., don't
9678 # use $as_me), people would be surprised to read:
9679 # /* config.h. Generated by config.status. */
9680 if test x"$ac_file" = x-; then
9681 echo "/* Generated by configure. */" >$tmp/config.h
9683 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9685 cat $tmp/in >>$tmp/config.h
9687 if test x"$ac_file" != x-; then
9688 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9689 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9690 echo "$as_me: $ac_file is unchanged" >&6;}
9692 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9694 X"$ac_file" : 'X\(//\)[^/]' \| \
9695 X"$ac_file" : 'X\(//\)$' \| \
9696 X"$ac_file" : 'X\(/\)' \| \
9697 . : '\(.\)' 2>/dev/null ||
9699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9701 /^X\(\/\/\)$/{ s//\1/; q; }
9702 /^X\(\/\).*/{ s//\1/; q; }
9704 { if $as_mkdir_p; then
9709 while test ! -d "$as_dir"; do
9710 as_dirs="$as_dir $as_dirs"
9711 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9713 X"$as_dir" : 'X\(//\)[^/]' \| \
9714 X"$as_dir" : 'X\(//\)$' \| \
9715 X"$as_dir" : 'X\(/\)' \| \
9716 . : '\(.\)' 2>/dev/null ||
9718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9720 /^X\(\/\/\)$/{ s//\1/; q; }
9721 /^X\(\/\).*/{ s//\1/; q; }
9724 test ! -n "$as_dirs" || mkdir $as_dirs
9725 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9726 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9727 { (exit 1); exit 1; }; }; }
9730 mv $tmp/config.h $ac_file
9738 cat >>$CONFIG_STATUS <<\_ACEOF
9741 # CONFIG_LINKS section.
9744 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9745 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9746 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9748 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9749 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9751 if test ! -r $srcdir/$ac_source; then
9752 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9753 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9754 { (exit 1); exit 1; }; }
9758 # Make relative symlinks.
9759 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9760 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9761 X"$ac_dest" : 'X\(//\)[^/]' \| \
9762 X"$ac_dest" : 'X\(//\)$' \| \
9763 X"$ac_dest" : 'X\(/\)' \| \
9764 . : '\(.\)' 2>/dev/null ||
9766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9768 /^X\(\/\/\)$/{ s//\1/; q; }
9769 /^X\(\/\).*/{ s//\1/; q; }
9771 { if $as_mkdir_p; then
9772 mkdir -p "$ac_dest_dir"
9774 as_dir="$ac_dest_dir"
9776 while test ! -d "$as_dir"; do
9777 as_dirs="$as_dir $as_dirs"
9778 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9780 X"$as_dir" : 'X\(//\)[^/]' \| \
9781 X"$as_dir" : 'X\(//\)$' \| \
9782 X"$as_dir" : 'X\(/\)' \| \
9783 . : '\(.\)' 2>/dev/null ||
9785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9787 /^X\(\/\/\)$/{ s//\1/; q; }
9788 /^X\(\/\).*/{ s//\1/; q; }
9791 test ! -n "$as_dirs" || mkdir $as_dirs
9792 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9793 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9794 { (exit 1); exit 1; }; }; }
9798 if test "$ac_dest_dir" != .; then
9799 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9800 # A "../" for each directory in $ac_dir_suffix.
9801 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9803 ac_dir_suffix= ac_top_builddir=
9807 .) # No --srcdir option. We are building in place.
9809 if test -z "$ac_top_builddir"; then
9812 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9814 [\\/]* | ?:[\\/]* ) # Absolute path.
9815 ac_srcdir=$srcdir$ac_dir_suffix;
9816 ac_top_srcdir=$srcdir ;;
9818 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9819 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9822 # Do not use `cd foo && pwd` to compute absolute paths, because
9823 # the directories may not exist.
9825 .) ac_abs_builddir="$ac_dest_dir";;
9827 case "$ac_dest_dir" in
9828 .) ac_abs_builddir=`pwd`;;
9829 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9830 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9833 case $ac_abs_builddir in
9834 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9836 case ${ac_top_builddir}. in
9837 .) ac_abs_top_builddir=$ac_abs_builddir;;
9838 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9839 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9842 case $ac_abs_builddir in
9843 .) ac_abs_srcdir=$ac_srcdir;;
9846 .) ac_abs_srcdir=$ac_abs_builddir;;
9847 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9848 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9851 case $ac_abs_builddir in
9852 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9854 case $ac_top_srcdir in
9855 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9856 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9857 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9863 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9864 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9867 # Try a symlink, then a hard link, then a copy.
9868 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9869 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9870 cp -p $srcdir/$ac_source $ac_dest ||
9871 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9872 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9873 { (exit 1); exit 1; }; }
9876 cat >>$CONFIG_STATUS <<\_ACEOF
9879 # CONFIG_COMMANDS section.
9881 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9882 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9883 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9884 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9885 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9886 X"$ac_dest" : 'X\(//\)[^/]' \| \
9887 X"$ac_dest" : 'X\(//\)$' \| \
9888 X"$ac_dest" : 'X\(/\)' \| \
9889 . : '\(.\)' 2>/dev/null ||
9891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9893 /^X\(\/\/\)$/{ s//\1/; q; }
9894 /^X\(\/\).*/{ s//\1/; q; }
9896 { if $as_mkdir_p; then
9901 while test ! -d "$as_dir"; do
9902 as_dirs="$as_dir $as_dirs"
9903 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9905 X"$as_dir" : 'X\(//\)[^/]' \| \
9906 X"$as_dir" : 'X\(//\)$' \| \
9907 X"$as_dir" : 'X\(/\)' \| \
9908 . : '\(.\)' 2>/dev/null ||
9910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9912 /^X\(\/\/\)$/{ s//\1/; q; }
9913 /^X\(\/\).*/{ s//\1/; q; }
9916 test ! -n "$as_dirs" || mkdir $as_dirs
9917 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9918 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9919 { (exit 1); exit 1; }; }; }
9923 if test "$ac_dir" != .; then
9924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9925 # A "../" for each directory in $ac_dir_suffix.
9926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9928 ac_dir_suffix= ac_top_builddir=
9932 .) # No --srcdir option. We are building in place.
9934 if test -z "$ac_top_builddir"; then
9937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9939 [\\/]* | ?:[\\/]* ) # Absolute path.
9940 ac_srcdir=$srcdir$ac_dir_suffix;
9941 ac_top_srcdir=$srcdir ;;
9943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9947 # Do not use `cd foo && pwd` to compute absolute paths, because
9948 # the directories may not exist.
9950 .) ac_abs_builddir="$ac_dir";;
9953 .) ac_abs_builddir=`pwd`;;
9954 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9955 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9958 case $ac_abs_builddir in
9959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9961 case ${ac_top_builddir}. in
9962 .) ac_abs_top_builddir=$ac_abs_builddir;;
9963 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9964 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9967 case $ac_abs_builddir in
9968 .) ac_abs_srcdir=$ac_srcdir;;
9971 .) ac_abs_srcdir=$ac_abs_builddir;;
9972 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9973 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9976 case $ac_abs_builddir in
9977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9979 case $ac_top_srcdir in
9980 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9981 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9982 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9987 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9988 echo "$as_me: executing $ac_dest commands" >&6;}
9990 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9991 rm -f Makesim1.tmp Makesim2.tmp Makefile
9992 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
9993 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
9994 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9995 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9996 <Makefile.sim >Makefile
9997 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9999 stamp-h ) echo > stamp-h ;;
10004 cat >>$CONFIG_STATUS <<\_ACEOF
10006 { (exit 0); exit 0; }
10008 chmod +x $CONFIG_STATUS
10009 ac_clean_files=$ac_clean_files_save
10012 # configure is writing to config.log, and then calls config.status.
10013 # config.status does its own redirection, appending to config.log.
10014 # Unfortunately, on DOS this fails, as config.log is still kept open
10015 # by configure, so config.status won't be able to write to it; its
10016 # output is simply discarded. So we exec the FD to /dev/null,
10017 # effectively closing config.log, so it can be properly (re)opened and
10018 # appended to by config.status. When coming back to configure, we
10019 # need to make the FD available again.
10020 if test "$no_create" != yes; then
10022 ac_config_status_args=
10023 test "$silent" = yes &&
10024 ac_config_status_args="$ac_config_status_args --quiet"
10026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10029 # would make configure fail if this is the last instruction.
10030 $ac_cs_success || { (exit 1); exit 1; }